Skip to content

Commit

Permalink
fix some poetic formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Lwangaman authored and Lwangaman committed Aug 21, 2020
1 parent e7566c3 commit 967f74d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion bibleget-io.php
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ function bibleGetQueryServer($finalquery)
// $output .= "<br /><br />Effettuate ".$count1." e ".$count2." sostituzioni.";

$matches = null;
if (preg_match_all("/<div class=\"errors\" id=\"errors\">.*?<\/div>/s", $output, $matches)) {
if (preg_match_all("/<div class=\"errorsTbl\" id=\"errorsTbl\">.*?<\/div>/s", $output, $matches)) {
// capture table of error messages, and turn it into notices for backend
$errorshtml = new DOMDocument();
$errorshtml->loadHTML("<!DOCTYPE HTML><head><title>BibleGet Query Errors</title></head><body>" . $matches[0][0] . "</body>");
Expand Down
20 changes: 12 additions & 8 deletions options.php
Original file line number Diff line number Diff line change
Expand Up @@ -1802,7 +1802,7 @@ public static function header_output()
//$linespacing_verses = get_theme_mod('linespacing_verses', self::$bibleget_style_settings->linespacing_verses->dfault);
self::generate_options_css('.bibleQuote.results p.versesParagraph', 'line-height', $BGETOPTIONS['PARAGRAPHSTYLES_LINEHEIGHT'].'em');
$linespacing_verses = $BGETOPTIONS['PARAGRAPHSTYLES_LINEHEIGHT'].'em';
$poi_linespacing = ($BGETOPTIONS['PARAGRAPHSTYLES_LINEHEIGHT'] + 1.0).'em';
$poetic_linespacing = ($BGETOPTIONS['PARAGRAPHSTYLES_LINEHEIGHT'] + 1.0).'em';
$fontsize_versenumber = $BGETOPTIONS['VERSENUMBERSTYLES_FONTSIZE'];
if($BGETOPTIONS['VERSENUMBERSTYLES_FONTSIZEUNIT'] == 'em'){
$fontsize_versenumber /= 10;
Expand All @@ -1813,19 +1813,23 @@ public static function header_output()
echo PHP_EOL;
echo '/* Senseline. A line that is broken to be reading aloud/public speaking. Poetry is included in this category. */';
echo PHP_EOL;
echo ".bibleQuote.results p.versesParagraph span.pof { display: block; text-indent: 0; margin-top:1em; margin-left:5%; line-height: $linespacing_verses; }";
echo ".bibleQuote.results p.versesParagraph span.pof { display: block; text-indent: 0; margin-top:1em; margin-left:5%; line-height: $poetic_linespacing; }";
echo PHP_EOL;
echo ".bibleQuote.results p.versesParagraph span.po { display: block; margin-left:5%; margin-top:-1%; line-height: $linespacing_verses; }";
echo ".bibleQuote.results p.versesParagraph span.po { display: block; margin-left:5%; margin-top:-1%; line-height: $poetic_linespacing; }";
echo PHP_EOL;
echo ".bibleQuote.results p.versesParagraph span.pol { display: block; margin-left:5%; margin-top:-1%; margin-bottom:1em; line-height: $linespacing_verses; }";
echo ".bibleQuote.results p.versesParagraph span.pol { display: block; margin-left:5%; margin-top:-1%; margin-bottom:1em; line-height: $poetic_linespacing; }";
echo PHP_EOL;
echo ".bibleQuote.results p.versesParagraph span.pos { display: block; margin-top:1em; margin-left:5%; line-height: $linespacing_verses; }";
echo ".bibleQuote.results p.versesParagraph span.pos { display: block; margin-top:0.3em; margin-left:5%; line-height: $poetic_linespacing; }";
echo PHP_EOL;
echo ".bibleQuote.results p.versesParagraph span.poif { display: block; margin-left:7%; margin-top:1%; line-height: $linespacing_verses; }";
echo ".bibleQuote.results p.versesParagraph span.poif { display: block; margin-left:7%; margin-top:1%; line-height: $poetic_linespacing; }";
echo PHP_EOL;
echo ".bibleQuote.results p.versesParagraph span.poi { display: block; margin-left:7%; margin-top:-1%; line-height: $poi_linespacing; }";
echo ".bibleQuote.results p.versesParagraph span.poi { display: block; margin-left:7%; margin-top:-1%; line-height: $poetic_linespacing; }";
echo PHP_EOL;
echo ".bibleQuote.results p.versesParagraph span.poil { display: block; margin-left:7%; margin-bottom:1%; line-height: $linespacing_verses; }";
echo ".bibleQuote.results p.versesParagraph span.poil { display: block; margin-left:7%; margin-bottom:1%; line-height: $poetic_linespacing; }";
echo PHP_EOL;
echo ".bibleQuote.results p.versesParagraph span.po3 { display: block; margin-left:7%; margin-top:-1%; line-height: $poetic_linespacing; }";
echo PHP_EOL;
echo ".bibleQuote.results p.versesParagraph span.po3l { display: block; margin-left:7%; margin-top:-1%; line-height: $poetic_linespacing; }";
echo PHP_EOL;
echo ".bibleQuote.results p.versesParagraph span.speaker { font-weight: bold; background-color: #eeeeee; padding: 3px; border-radius: 3px; font-size: $fontsize_versenumber; }";
echo PHP_EOL;
Expand Down

0 comments on commit 967f74d

Please sign in to comment.