Greetings All,
I've made one fix and one upgrade to the Home Page Banner Slider that I wanted to share.
The Fix - Banners not displayed in the order set in the banner manager:
Look in: includes\templates\winchester_responsive\common\tpl_home_slider.php
Find
Code:
$banner = $db->Execute("SELECT banners_id, banners_title, banners_image, banners_html_text, banners_open_new_windows, banners_url FROM " . TABLE_BANNERS . " WHERE status = 1 AND banners_group = 'homepageslide'");
Add order by banners_sort_order to end of query
Code:
$banner = $db->Execute("SELECT banners_id, banners_title, banners_image, banners_html_text, banners_open_new_windows, banners_url FROM " . TABLE_BANNERS . " WHERE status = 1 AND banners_group = 'homepageslide' order by banners_sort_order");
The Upgrade - Added the ability to NOT show Banner Title on the Banner image selectively by Banner:
Look in: includes\templates\winchester_responsive\common\tpl_home_slider.php
Find - There are 3 instances
Code:
<span class="banner"><span>' . $banner->fields['banners_title'] . '</span></span>
Replace With
Code:
<span class="banner">'.( strtolower($banner->fields['banners_title']) != 'none' ? '<span>' . $banner->fields['banners_title'] . '</span>' : '' ).'</span>
To disable the display of the Banner Title, just enter the work none or NONE for the title. It's not case sensitive!
Hope this helps!

Bookmarks