<div class="locale" data-keepget="<?php echo keepGet('l', false); ?> "> <div class="current"> <div class="current_align"><?php echo getLanguageName($locale); ?> </div> </div> </div> <?php // Add the notice $conf_notice = readNotice(); $type_notice = $conf_notice['type']; $text_notice = $conf_notice['notice']; // Simple notice if ($type_notice == 'simple' || $type_notice == 'advanced') { // We must encode special HTML characters if ($type_notice == 'simple') { $text_notice = '<span class="title home-images">' . T_("Notice") . '</span><span class="text">' . htmlentities($text_notice) . '</span>'; } // Echo the notice echo '<div class="notice ' . $type_notice . '">' . $text_notice . '</div>'; } ?> </div> <!-- END HOMEPAGE --> <?php
/** * Print the notice in Twitter Bootstrap markup * * @param boolean $with_close=true Include the close alert link? * @param boolean $block=false Also add the alert-block class? * @return null * @version 2012-05-17.00 * @author Sunny Walker <*****@*****.**> */ function printBootstrapNotice($with_close = true, $block = false) { global $notice_class; $notice = readNotice(); if ($notice != '') { echo '<div class="alert' . ($notice_class != '' ? " {$notice_class}" : '') . ($block ? ' alert-block' : '') . '">'; if ($with_close) { echo '<a href="#" class="close" data-dismiss="alert">×</a>'; } echo $notice . '</div>'; } }
break; case 'quicksearch': $search = quicklookup($option); if (empty($search)) { echo JText::_('AEC_QUICKSEARCH_NOTFOUND'); } else { echo $search; } exit; break; case 'noticesmodal': getNotices(); exit; break; case 'readnoticeajax': readNotice($id[0]); exit; break; case 'readnoticesajax': $db = JFactory::getDBO(); $query = 'UPDATE #__acctexp_eventlog' . ' SET `notify` = \'0\'' . ' WHERE `notify` = \'1\''; $db->setQuery($query); $db->query(); exit; break; case 'getnotice': echo getNotice(); exit; break; case 'readallnotices': $db = JFactory::getDBO();
// Left position case 'top': $background_image_vertical_top = ' selected=""'; $background_image_vertical_center = ''; break; // Right position // Right position case 'bottom': $background_image_vertical_bottom = ' selected=""'; $background_image_vertical_center = ''; break; } if ($background['image_adapt'] == 'on') { $background_image_adapt = ' checked=""'; } // Read the notice configuration $notice_conf = readNotice(); $notice_text = $notice_conf['notice']; switch ($notice_conf['type']) { // Simple notice input case 'simple': $notice_simple = ' checked=""'; $notice_none = ''; break; // Advanced notice input // Advanced notice input case 'advanced': $notice_advanced = ' checked=""'; $notice_none = ''; break; }