Skip to content

Commit

Permalink
Closes #4124, #3686 - News template loading behavior. Added alert-dis…
Browse files Browse the repository at this point in the history
…missible for BS4.
  • Loading branch information
CaMer0n committed May 1, 2020
1 parent cd01e81 commit d51c3e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion e107_handlers/message_handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ public static function formatMessage($mstack, $type, $message)
$icon = !empty(self::$_customIcon[$type]) ? "s-message-empty fa fa-2x ".self::$_customIcon[$type] : "s-message-".$type;


$text = "<div class='s-message alert alert-block fade in show {$type} {$bclass}' role='alert'>";
$text = "<div class='s-message alert alert-block alert-dismissible fade in show {$type} {$bclass}' role='alert'>";
$text .= (self::$_close[$type] === true) ? "<a class='close' data-dismiss='alert' aria-label='".LAN_CLOSE."'>×</a>" : "";
$text .= "<i class='s-message-icon ".$icon."'></i>
<h4 class='s-message-title'>".self::getTitle($type, $mstack)."</h4>
Expand Down
2 changes: 1 addition & 1 deletion e107_plugins/news/news.php
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ private function renderListTemplate()

$action = $currentNewsAction;

if(deftrue('BOOTSTRAP')) // v2.x
if(!deftrue('THEME_LEGACY')) // v2.x
{
$template = e107::getTemplate('news', 'news', 'list');
}
Expand Down

0 comments on commit d51c3e0

Please sign in to comment.