PHP File Manager
Editing File: wines.php
<div id="home-content"> <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2"> <div class="row content-row"> <div class="col-sm-3" id="sidebar"> <div class="row"> <div class="sidebar-inner"> <form action="/wines/search" method="post"> <input type="text" class="form-control" name="query" value="" placeholder="Search..." /> </form> <?php if($assoc_segment): ?> <div class="clear-filters"> <a href="/wines" class="btn btn-danger btn-block">Clear all filters</a> </div> <?php endif; ?> <div class="visible-xs hide-sidebar-btn"> <button type="button" class="btn btn-theme btn-lg btn-block" id="hide-filters">Hide sidebar</button> </div> <div class="filter-block"> <a href="#" class="filter-header<?php echo (!$has_selected_country) ? ' filters-closed' : ''; ?>"> <span class="filter-title">Country</span> </a> <div class="filter-list"> <ul> <?php foreach($all_countries as $i => $country_info): ?> <li<?php echo (!$has_selected_country && $i > 6) ? ' style="display: none;"' : (($selected_country === $country_info->url_name) ? ' class="selected-filter"' : ''); ?>> <a href="/wines/<?php echo filter_param('country', $country_info->url_name, array('region', 'page'), 'filter'); ?>"><?php echo input_value($country_info->name); ?></a> <?php if($has_selected_country && $selected_country === $country_info->url_name): ?> <a href="/wines/<?php echo filter_param('country', $country_info->url_name, array('region', 'page', 'country'), 'filter'); ?>" class="remove-filter" rel="nofollow">×</a> <?php endif; ?> </li> <?php endforeach; ?> <?php if(!$has_selected_country && $i > 6): ?> <li class="view-more"><a href="#">View more</a></li> <?php endif; ?> </ul> </div> </div> <?php if(isset($all_regions) && !empty($all_regions)): ?> <div class="filter-block"> <a href="#" class="filter-header<?php echo (!$has_selected_region) ? ' filters-closed' : ''; ?>"> <span class="filter-title">Region</span> </a> <div class="filter-list"> <ul> <?php foreach($all_regions as $i => $region_info): ?> <li<?php echo (!$has_selected_region && $i > 6) ? ' style="display: none;"' : (($selected_region === $region_info->url_name) ? ' class="selected-filter"' : ''); ?>> <a href="/wines/<?php echo filter_param('region', $region_info->url_name, array('page'), 'filter'); ?>"><?php echo input_value($region_info->name); ?></a> <?php if($has_selected_region && $selected_region === $region_info->url_name): ?> <a href="/wines/<?php echo filter_param('region', $region_info->url_name, array('page', 'region'), 'filter'); ?>" class="remove-filter" rel="nofollow">×</a> <?php endif; ?> </li> <?php endforeach; ?> <?php if(!$has_selected_region && $i > 6): ?> <li class="view-more"><a href="#">View more</a></li> <?php endif; ?> </ul> </div> </div> <?php endif; ?> <div class="filter-block"> <a href="#" class="filter-header<?php echo (!$has_selected_price) ? ' filters-closed' : ''; ?>"> <span class="filter-title">Price</span> </a> <div class="filter-list"> <ul> <li<?php echo ($selected_price == 'under-' . $highest_lowest->lowest) ? ' class="selected-filter"' : ''; ?>> <a href="/wines/filter/<?php echo filter_param('price', 'under-' . $highest_lowest->lowest, array('page')); ?>">Under <?php echo display_money($highest_lowest->lowest); ?></a> <?php if($has_selected_price && $selected_price == 'under-' . $highest_lowest->lowest): ?> <a href="/wines/<?php echo filter_param('price', 'under-' . $highest_lowest->lowest, array('page', 'price'), 'filter'); ?>" class="remove-filter" rel="nofollow">×</a> <?php endif; ?> </li> <?php $j = 0; for($i = $highest_lowest->lowest; $i < $highest_lowest->highest; $i += 10): ?> <li<?php echo (!$has_selected_price && $j > 4) ? ' style="display: none;"' : ''; ?><?php echo ($selected_price == 'from-' . $i) ? ' class="selected-filter"' : ''; ?>> <a href="/wines/<?php echo filter_param('price', 'from-' . $i, array('page'), 'filter'); ?>"><?php echo display_money($i) . ' - ' . display_money($i + 9.99); ?></a> <?php if($has_selected_price && $selected_price == 'from-' . $i): ?> <a href="/wines/<?php echo filter_param('price', 'from-' . $i, array('page', 'price'), 'filter'); ?>" class="remove-filter" rel="nofollow">×</a> <?php endif; ?> </li> <?php $j++; endfor; ?> <?php if(!$has_selected_price && $j > 4): ?> <li class="view-more"><a href="#">View more</a></li> <?php endif; ?> </ul> </div> </div> <div class="filter-block"> <a href="#" class="filter-header<?php echo (!$has_selected_style) ? ' filters-closed' : ''; ?>"> <span class="filter-title">Wine Style</span> </a> <div class="filter-list"> <ul> <?php foreach($all_styles as $i => $style_info): ?> <li<?php echo (!$has_selected_style && $i > 6) ? ' style="display: none;"' : (($selected_style === $style_info->url_name) ? ' class="selected-filter"' : ''); ?>> <a href="/wines/<?php echo filter_param('style', $style_info->url_name, array('page'), 'filter'); ?>"><?php echo input_value($style_info->name); ?></a> <?php if($has_selected_style && $selected_style === $style_info->url_name): ?> <a href="/wines/<?php echo filter_param('style', $style_info->url_name, array('page', 'style'), 'filter'); ?>" class="remove-filter" rel="nofollow">×</a> <?php endif; ?> </li> <?php endforeach; ?> <?php if(!$has_selected_style && $i > 6): ?> <li class="view-more"><a href="#">View more</a></li> <?php endif; ?> </ul> </div> </div> <div class="filter-block"> <a href="#" class="filter-header<?php echo (!$has_selected_selection) ? ' filters-closed' : ''; ?>"> <span class="filter-title">Selections</span> </a> <div class="filter-list"> <ul> <?php foreach($all_selections as $i => $selection_info): ?> <li<?php echo (!$has_selected_selection && $i > 6) ? ' style="display: none;"' : (($selected_selection === $selection_info->url_name) ? ' class="selected-filter"' : ''); ?>> <a href="/wines/<?php echo filter_param('selection', $selection_info->url_name, array('page'), 'filter'); ?>"><?php echo input_value($selection_info->name); ?></a> <?php if($has_selected_selection && $selected_selection === $selection_info->url_name): ?> <a href="/wines/<?php echo filter_param('selection', $selection_info->url_name, array('page', 'selection'), 'filter'); ?>" class="remove-filter" rel="nofollow">×</a> <?php endif; ?> </li> <?php endforeach; ?> <?php if(!$has_selected_selection && $i > 6): ?> <li class="view-more"><a href="#">View more</a></li> <?php endif; ?> </ul> </div> </div> <div id="sidebar-twitter"> <div class="twitter-name"> <p class="name-display">Hercules Wines</p> <p class="name-link"><a href="<?php echo $this->config->item('twitter_link'); ?>" target="_blank">@<?php echo $this->social->twitter_username; ?></a></p> </div> <div class="tweet-box"> <textarea id="tweet-contents" class="form-control" placeholder="Tweet us..." maxlength="<?php echo (142 - strlen($this->social->twitter_username)); ?>"></textarea> <button type="button" class="btn btn-theme btn-xs" id="tweet-btn" data-twitter-username="<?php echo $this->social->twitter_username; ?>">Tweet</button> </div> <div class="recent-tweet"> <?php if(($latest_tweets = $this->social->getTwitterPosts(4))): ?> <?php foreach($latest_tweets as $tweet_info): ?> <p class="tweet-row"><?php echo $this->social->linkifyTweet($tweet_info->text); ?></p> <?php endforeach; ?> <?php else: ?> <p><em>No tweets to show...</em></p> <?php endif; ?> </div> </div> </div> </div> </div> <div class="col-sm-9" id="product-list"> <button type="button" class="btn btn-theme" id="toggle-filters"><span class="glyphicon glyphicon-th-list"></span></button> <h3><?php echo ($is_home_page) ? 'Wines of the Month' : 'Our wines'; ?></h3> <div class="list-wrapper"> <?php if(!empty($all_products)): ?> <?php $last_index = (count($all_products) - 1); foreach($all_products as $i => $product_info): ?> <?php if(!($i & 1)): ?><div class="row product-wrap-row"><?php endif; ?> <div class="col-sm-6 product-cell"> <div class="product-block"> <a href="/wine/<?php echo $product_info->product_id; ?>/<?php echo $product_info->full_url_name; ?>" class="product-link"> <div class="row"> <div class="col-md-5"> <div class="product-image"> <div class="in-basket-count" id="basket-count-<?php echo $product_info->product_id; ?>"> <span class="count">0</span> <span class="glyphicon glyphicon-shopping-cart"></span> </div> <img src="<?php echo (file_exists('assets/uploads/products/' . $product_info->identifier . '.jpg')) ? '/assets/uploads/products/' . $product_info->identifier . '_thumb.jpg' : '/assets/images/no-product-image.jpg'; ?>" alt="<?php echo input_value($product_info->name); ?>" /> </div> </div> <div class="col-md-7"> <div class="product-info-inner"> <div class="product-name"> <?php echo input_value($product_info->name); ?> </div> <div class="product-price"><?php echo display_money($product_info->cost); ?></div> <?php if($product_info->stock_level == $this->config->item(STOCK_OUT_OF_STOCK)): ?> <p class="out-of-stock">Out of stock</p> <?php endif; ?> </div> </div> </div> </a> <?php if($product_info->stock_level > $this->config->item(STOCK_OUT_OF_STOCK)): ?> <form action="/basket" method="post" class="add-to-basket-form"> <div class="qty-input"> <button type="button" class="btn btn-theme btn-sm qty-control reduce-qty" data-mode="down"><span class="glyphicon glyphicon-minus"></span></button> <input type="text" class="form-control input-sm" name="qty" placeholder="0" /> <button type="button" class="btn btn-theme btn-sm qty-control increase-qty" data-mode="up"><span class="glyphicon glyphicon-plus"></span></button> <button type="submit" class="btn btn-theme btn-sm add-item-basket">Add</button> </div> <input type="hidden" name="item" value="<?php echo $product_info->product_id; ?>" /> </form> <?php endif; ?> </div> </div> <?php if($i == $last_index || ($i & 1)): ?></div><?php endif; ?> <?php endforeach; ?> <?php else: ?> <div id="no-products"> <h3>No products</h3> <h5>Sorry, but there are no wines that fall in this category.<br />Please change the filters from the sidebar.</h5> </div> <?php endif; ?> </div> <div class="clearfix"></div> <?php echo (!$this->uri->segment(1) || $this->uri->segment(1) == 'home') ? '' : $this->common->generatePagination($current_base_url, $page_segment_number, NULL, $total_products, $this->common->default_per_page, 'pager'); ?> <div class="footer-logos"> <div class="attr-logos"> <span class="payment-logos"><img src="/assets/images/site/payments-attr.gif" alt="Secure payments by PayPal - Visa - Visa Electron - Maestro - American Express - MasterCard - Solo - Secure Trading" /></span> <span class="drink-aware"><a href="http://www.drinkaware.co.uk/" target="_blank"><img src="/assets/images/site/drink-aware-logo.gif" alt="drinkaware.co.uk" /></a></span> </div> <div class="term-links"> <p><a href="/terms-and-conditions">Terms & Conditions</a> ⋅ <a href="/privacy-policy">Privacy Policy</a></p> </div> <div class="created-by"> <a href="http://rdwd.co.uk/" target="_blank">Created by <img src="/assets/images/rdit-footer.png" alt="" /> Red Dragon I.T. Ltd</a> </div> </div> </div> <div class="clearfix"></div> </div> </div> <div class="clearfix"></div> </div>
Cancel