Ejemplo n.º 1
0
          <div class="mobile-portrait-search-input-cover"></div>
        </div>
      </div>    
      <div class="no-margin-bottom">
        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse navbar-ex1-collapse">
          <ul class="nav navbar-nav col-lg-7 z-index-1">
            <li><a href="<?php 
echo lc_href_link(FILENAME_DEFAULT, '', 'NONSSL');
?>
"><?php 
echo $lC_Language->get('text_home');
?>
</a></li>
            <?php 
echo lC_Template_output::getCategoryNav();
?>
          </ul>
          <div class="text-right small-margin-top small-margin-bottom col-lg-5">
            <form role="form" class="form-inline hide-on-mobile" name="search" id="search" action="<?php 
echo lc_href_link(FILENAME_SEARCH, null, 'NONSSL', false);
?>
" method="get">
              <span class="text-right">
                <?php 
if ($lC_Template->getBranding('social_facebook_page') != '') {
    echo lc_link_object($lC_Template->getBranding('social_facebook_page'), lc_image(DIR_WS_IMAGES . 'icons/fb-ico.png', 'Facebook', null, null, 'class="small-margin-right"'), 'target="_blank"');
}
if ($lC_Template->getBranding('social_twitter') != '') {
    echo lc_link_object($lC_Template->getBranding('social_twitter'), lc_image(DIR_WS_IMAGES . 'icons/tw-ico.png', 'Twitter', null, null, 'class="small-margin-right"'), 'target="_blank"');
}
Ejemplo n.º 2
0
 public static function getCategoryNav($categoryId = 0, $level = 0)
 {
     global $lC_Database, $lC_Language, $lC_CategoryTree;
     if ($level == 0) {
         $visibility = 'and c.categories_visibility_nav = 1';
     } else {
         $visibility = '';
     }
     $Qcategories = $lC_Database->query('select c.categories_id, cd.categories_name, c.parent_id, c.categories_mode, c.categories_link_target, c.categories_custom_url from :table_categories c, :table_categories_description cd where c.parent_id = :parent_id and c.categories_id = cd.categories_id and cd.language_id = :language_id and c.categories_status = 1 ' . $visibility . ' order by sort_order, cd.categories_name');
     $Qcategories->bindTable(':table_categories', TABLE_CATEGORIES);
     $Qcategories->bindTable(':table_categories_description', TABLE_CATEGORIES_DESCRIPTION);
     $Qcategories->bindInt(':parent_id', $categoryId);
     $Qcategories->bindInt(':language_id', $lC_Language->getID());
     $Qcategories->execute();
     $output = array();
     while ($Qcategories->next()) {
         $hasChildren = $lC_CategoryTree->hasChildren($Qcategories->valueInt('categories_id'));
         if ($Qcategories->value('categories_mode') == 'override') {
             $url = '<a href="' . $Qcategories->value('categories_custom_url') . '"' . ($Qcategories->value('categories_link_target') == 1 ? ' target="_blank"' : null) . '>' . $Qcategories->value('categories_name') . '</a>';
         } else {
             $url = lc_link_object($Qcategories->value('categories_custom_url') != '' ? lc_href_link($Qcategories->value('categories_custom_url'), '', 'AUTO') : lc_href_link(FILENAME_DEFAULT . '?cPath=' . $lC_CategoryTree->buildBreadcrumb($Qcategories->valueInt('categories_id')), '', 'AUTO'), $Qcategories->value('categories_name') . ($hasChildren > 0 && $level == 0 ? '&nbsp;<b class="caret"></b>' : null), $hasChildren > 0 && $level == 0 ? ' data-toggle="dropdown" class="dropdown-toggle"' : null);
         }
         $output[] .= '<li' . ($hasChildren > 0 ? ' class="dropdown"' : null) . '>' . $url . lC_Template_output::getCategoryNav($Qcategories->valueInt('categories_id'), $level + 1) . '</li>';
     }
     return ($categoryId > 0 ? '<ul class="dropdown-menu">' : null) . implode('', $output) . ($categoryId > 0 ? '</ul>' : null);
 }