コード例 #1
0
ファイル: header.php プロジェクト: abhiesa-tolexo/loaded7
          <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"');
}
コード例 #2
0
ファイル: general.js.php プロジェクト: abhiesa-tolexo/loaded7
  // run this last - determine media type
  setTimeout('_setMediaType()', 1000);

  // hide buy now and qty for out of stock products
  <?php 
if (defined('DISABLE_ADD_TO_CART') && DISABLE_ADD_TO_CART == 1 && ($lC_Template->getModule() == 'products' || $lC_Template->getModule() == 'reviews')) {
    foreach ($_GET as $key => $value) {
        $keys = end(explode("/", $key));
        if ((preg_match('/^[0-9]+(#?([0-9]+:?[0-9]+)+(;?([0-9]+:?[0-9]+)+)*)*$/', $key) || preg_match('/^[a-zA-Z0-9 -_]*$/', $key)) && $key != $lC_Session->getName() && $key != 'cPath' && $key != 'currency' && $key != 'language') {
            $id = $key;
        }
    }
    if (file_exists('templates/' . $lC_Template->getCode() . '/classes/output.php')) {
        include_once $lC_Vqmod->modCheck('templates/' . $lC_Template->getCode() . '/classes/output.php');
        if (lC_Template_output::getProductsStock($id) < 1) {
            ?>
        $(":contains('<?php 
            echo addslashes($lC_Language->get('button_buy_now'));
            ?>
')").closest('button').removeClass("btn-success").addClass("btn-default").addClass("disabled").html('<?php 
            echo addslashes($lC_Language->get('out_of_stock'));
            ?>
');
        $("input[name='quantity']").hide().parent().hide();
        <?php 
        }
    }
}
?>
  $(":contains('<?php 
コード例 #3
0
</h1>
  
  <div id="content-product-listing-category-description-container">
    <?php 
if (lC_Template_output::getCategoryDescription() != '') {
    echo '<div id="content-product-listing-category-description">' . lC_Template_output::getCategoryDescription() . '</div>';
}
?>
  </div>
  <div class="clearfix"></div>
  <div class="content-product-listing-div">
    <?php 
if (PRODUCT_LIST_FILTER == '1') {
    echo lC_Template_output::getManufacturerFilter();
}
$Qlisting = lC_Template_output::getProductsListingSql();
if ($Qlisting->numberOfRows() > 0 && (PREV_NEXT_BAR_LOCATION == '1' || PREV_NEXT_BAR_LOCATION == '3')) {
    ?>
      <!-- PAGINATION-->
      <div class="product-listing-module-pagination margin-bottom">
        <div class="pull-left large-margin-bottom page-results"><?php 
    echo $Qlisting->getBatchTotalPages($lC_Language->get('result_set_number_of_products'));
    ?>
</div>
        <div class="pull-right large-margin-bottom no-margin-top">
          <ul class="pagination no-margin-top no-margin-bottom">
            <?php 
    echo $Qlisting->getBatchPageLinks('page', lc_get_all_get_params(array('page', 'info', 'x', 'y')), false);
    ?>
          </ul>
        </div>
コード例 #4
0
ファイル: search.php プロジェクト: abhiesa-tolexo/loaded7
          <label class="control-label col-sm-3 col-lg-3 text-right margin-top"><?php 
echo $lC_Language->get('field_search_recursive');
?>
</label>
          <div class="col-sm-9 col-lg-9"><?php 
echo lc_draw_checkbox_field('recursive', null, null, 'class="form-control"', null);
?>
</div>
        </div>
        <div class="form-group">
          <label class="control-label col-sm-3 col-lg-3 text-right small-margin-top"><?php 
echo $lC_Language->get('field_search_manufacturers');
?>
</label>
          <div class="col-sm-9 col-lg-9"><?php 
echo lc_draw_pull_down_menu('manufacturer', lC_Template_output::getManufacturerDropdownArray(), null, 'class="form-control"');
?>
</div>
        </div>
        <div class="form-group">
          <label class="control-label col-sm-3 col-lg-3 text-right small-margin-top"><?php 
echo $lC_Language->get('field_search_price_from');
?>
</label>
          <div class="col-sm-9 col-lg-9"><?php 
echo lc_draw_input_field('pfrom', null, 'class="form-control"');
?>
</div>
        </div>
        <div class="form-group">
          <label class="control-label col-sm-3 col-lg-3 text-right small-margin-top"><?php 
コード例 #5
0
?>
<!--content/index/category_listing.php start-->
<div class="row">
  <div class="col-sm-12 col-lg-12">
    <h1 class="no-margin-top"><?php 
echo $lC_Template->getPageTitle();
?>
</h1>
    <?php 
if (lC_Template_output::getCategoryDescription() != '') {
    echo lC_Template_output::getCategoryDescription();
}
?>
    <div class="col-sm-12 col-lg-12 container text-center">
      <?php 
echo lC_Template_output::getCategoryListing();
?>
    </div>
  </div>
</div>
<script>
$(document).ready(function() {

  var mediaType = _setMediaType();
  var mainContentClass = $('#main-content-container').attr('class');
  if(mainContentClass == 'col-sm-6 col-lg-6') {
    thisContentClass = 'col-sm-6 col-lg-6';
  } else {
    thisContentClass = 'col-sm-4 col-lg-4';
  }  
  
コード例 #6
0
ファイル: footer.php プロジェクト: abhiesa-tolexo/loaded7
@license    https://github.com/loadedcommerce/loaded7/blob/master/LICENSE.txt
@version    $Id: footer.php v1.0 2013-08-08 datazen $
*/
?>
<!--footer.php start-->
<div id="footer" class="container">
  <hr>
  <div class="row">
    <div class="col-sm-3 col-lg-3">
      <h4 class="line3 center standart-h4title"><span><?php 
echo $lC_Language->get('text_new_arrivals');
?>
</span></h4>
      <ul class="footer-links list-indent list-unstyled">
        <?php 
echo lC_Template_output::newArrivalsListing();
?>
      </ul>
    </div>
    <div class="col-sm-3 col-lg-3">
      <h4 class="line3 center standard-h4title"><span><?php 
echo $lC_Language->get('text_customer_service');
?>
</span></h4>
      <ul class="footer-links list-indent list-unstyled">
        <li><a href="<?php 
echo lc_href_link(FILENAME_DEFAULT, 'cPath=2_3', 'AUTO');
?>
"><?php 
echo $lC_Language->get('text_shipping_returns');
?>
コード例 #7
0
ファイル: new.php プロジェクト: abhiesa-tolexo/loaded7
  
  <div id="content-product-listing-category-description-container">
    <?php 
if (lC_Template_output::getCategoryDescription() != '') {
    echo '<div id="content-product-listing-category-description">' . lC_Template_output::getCategoryDescription() . '</div>';
}
?>
  </div>
  
  <div class="content-product-listing-container">
    <?php 
$lC_Products = new lC_Products();
$lC_Products->setSortBy('date_added', '-');
$Qlisting = $lC_Products->execute(NEW_PRODUCTS_PER_PAGE_DISPLAY);
if (PRODUCT_LIST_FILTER == '1') {
    echo lC_Template_output::getManufacturerFilter();
}
if ($Qlisting->numberOfRows() > 0 && (PREV_NEXT_BAR_LOCATION == '1' || PREV_NEXT_BAR_LOCATION == '3')) {
    ?>
      <!-- PAGINATION-->
      <div class="product-listing-module-pagination margin-bottom">
        <div class="pull-left large-margin-bottom page-results"><?php 
    echo $Qlisting->getBatchTotalPages($lC_Language->get('result_set_number_of_products'));
    ?>
</div>
        <div class="pull-right large-margin-bottom no-margin-top">
          <ul class="pagination">
            <?php 
    echo $Qlisting->getBatchPageLinks('page', lc_get_all_get_params(array('page', 'info', 'x', 'y')), false);
    ?>
          </ul>
コード例 #8
0
ファイル: output.php プロジェクト: abhiesa-tolexo/loaded7
 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);
 }