Skip to content

Commit

Permalink
Final 2.7.0.0
Browse files Browse the repository at this point in the history
Fix Info Icon bug in winners display.
  • Loading branch information
geoffhumphrey committed Apr 12, 2024
1 parent 6c21826 commit 247804c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 3 additions & 1 deletion sections/winners.sec.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,11 @@
$winners_table_body_1 .= "<td width=\"25%\">";
if ($_SESSION['prefsStyleSet'] == "BA") $winners_table_body_1 .= $row_scores['brewStyle'];
else $winners_table_body_1 .= $style.": ".$row_scores['brewStyle'];

if ((!empty($row_scores['brewInfo'])) && ($section != "results")) {
$winners_table_body_1 .= " <a href=\"#".$row_scores['id']."\" tabindex=\"0\" role=\"button\" data-toggle=\"popover\" data-trigger=\"hover\" data-placement=\"auto top\" data-container=\"body\" title=\"".$label_info."\" data-content=\"".str_replace("^", " ", $row_scores['brewInfo'])."\"><span class=\"hidden-xs hidden-sm hidden-md hidden-print fa fa-info-circle\"></span></a></td>";
$winners_table_body_1 .= " <a href=\"#".$row_scores['id']."\" tabindex=\"0\" role=\"button\" data-toggle=\"popover\" data-trigger=\"hover\" data-placement=\"auto top\" data-container=\"body\" title=\"".$label_info."\" data-content=\"".str_replace("^", " ", $row_scores['brewInfo'])."\"><span class=\"hidden-xs hidden-sm hidden-md hidden-print fa fa-info-circle\"></span></a>";
}

$winners_table_body_1 .= "</td>";

if ($_SESSION['prefsProEdition'] == 0) {
Expand Down
4 changes: 3 additions & 1 deletion sections/winners_category.sec.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,11 @@
$table_body1 .= "<td width=\"25%\">";
if ($winner_style_set == "BA") $table_body1 .= $row_scores['brewStyle'];
else $table_body1 .= $style.": ".$row_scores['brewStyle'];

if ((!empty($row_scores['brewInfo'])) && ($section != "results")) {
$table_body1 .= " <a href=\"#".$row_scores['id']."\" tabindex=\"0\" role=\"button\" data-toggle=\"popover\" data-trigger=\"hover\" data-placement=\"auto top\" data-container=\"body\" title=\"".$label_info."\" data-content=\"".str_replace("^", " ", $row_scores['brewInfo'])."\"><span class=\"hidden-xs hidden-sm hidden-md hidden-print fa fa-info-circle\"></span></a></td>";
$table_body1 .= " <a href=\"#".$row_scores['id']."\" tabindex=\"0\" role=\"button\" data-toggle=\"popover\" data-trigger=\"hover\" data-placement=\"auto top\" data-container=\"body\" title=\"".$label_info."\" data-content=\"".str_replace("^", " ", $row_scores['brewInfo'])."\"><span class=\"hidden-xs hidden-sm hidden-md hidden-print fa fa-info-circle\"></span></a>";
}

$table_body1 .= "</td>";

if ($_SESSION['prefsProEdition'] == 0) {
Expand Down
7 changes: 2 additions & 5 deletions sections/winners_subcategory.sec.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,10 @@
$table_body1 .= "<td width=\"25%\">";
$table_body1 .= $style.": ".$style_long;

/*
// The popover info was not populating; could not determine the cause.
// Commenting out until 3.0.0 rework.
if ((!empty($row_scores['brewInfo'])) && ($section != "results")) {
$table_body1 .= " <a href=\"#".$row_scores['id']."\" tabindex=\"0\" role=\"button\" data-toggle=\"popover\" data-trigger=\"hover\" data-placement=\"auto top\" data-container=\"body\" title=\"".$label_info."\" data-content=\"".str_replace("^", " ", $row_scores['brewInfo'])."\"><span class=\"hidden-xs hidden-sm hidden-md hidden-print fa fa-info-circle\"></span></a></td>";
$table_body1 .= " <a href=\"#".$row_scores['id']."\" tabindex=\"0\" role=\"button\" data-toggle=\"popover\" data-trigger=\"hover\" data-placement=\"auto top\" data-container=\"body\" title=\"".$label_info."\" data-content=\"".str_replace("^", " ", $row_scores['brewInfo'])."\"><span class=\"hidden-xs hidden-sm hidden-md hidden-print fa fa-info-circle\"></span></a>";
}
*/

$table_body1 .= "</td>";

if ($_SESSION['prefsProEdition'] == 0) {
Expand Down

0 comments on commit 247804c

Please sign in to comment.