Вход Регистрация
Файл: adultscript-2.0.3-pro/files/mobile/templates/default/extend/plugins/menu_footer.plugin.php
Строк: 50
<?php
defined
('_VALID') or die('Restricted Access!');
function 
template_plugin_menu_footer($current=FALSE)
{
    
$cache VF::factory('cache');
    if (!
$links $cache->get('mobile_footer_links'0)) {
        
$db VF::factory('database');
        
$db->query("SELECT l.name, l.title, l.link, l.type, l.target, l.lang, l.current
                    FROM #__menu_links AS l, #__menu AS m
                    WHERE m.name = 'mobile_footer'
                    AND l.menu_id = m.menu_id
                    AND l.status = '1'
                    ORDER BY l.pos ASC"
);
        if (
$db->affected_rows()) {
            
$links    $db->fetch_rows();
            
$cache->store('mobile_footer_links'$links0);
        } else {
            
$links    = array();
        }
    }
    
    
$lang    VLanguage::get('language');
    
$menu     = array();
    foreach (
$links as $link) {
        
$url    = ($link['type'] == 'int') ? MOBILE_REL.$link['link'] : $link['link'];
        
$rel    ' rel="external"';
        
$name    = ($lang == 'en-US') ? $link['name'] : __($link['lang']);
        
$menu[]    = ' <a href="'.$url.'"'.$rel.' data-tole="button" date-mini="true">'.$name.'</a>';
    }
    
    return 
implode("n"$menu);
}
?>
Онлайн: 1
Реклама