-
AuthorPosts
-
January 8, 2014 at 7:28 pm #193599
Hello Everyone,
How may i remove buttons Created, Ordering, Hits and View all from JA Content Slider?
Thank you in advance!
Best regards,
Scilla
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
January 9, 2014 at 9:17 am #517902Please open the file templates/ja_obelisk/html/mod_jacontentslider/default-home.php and comment (by adding /* and */ in red) to the snippet below:
/*
echo '<div class="ja-contentslider-wrapper">';$script = '<script type="text/javascript">'
.' function contentSliderOrder(e,classid){
$$(".ja-contentslider-'.$module->id.' ").removeClass("active");
$$(".ja-control-order-'.$module->id.' .jactoolbar").removeClass("active");
$$(".ja-control-order-'.$module->id.' .jactoolbar-"+classid).addClass("active");
$("ja-contentslider-"+classid+"-'.$module->id.'").addClass("active");
}'
.'</script>';
echo $script;
echo '<div class="ja-button-control ja-control-order-'.$module->id.'">';
foreach($order_field as $o){
$act = '';
if($o == $sort_order_field) $act =' active';
echo '<a href="javascript:contentSliderOrder(this,''.$o.'')" class="jactoolbar-'.$o.' jactoolbar'.$act.'">';
echo JText::_('TPL_JA_MOD_CONTENTSLIDER_'.strtoupper($o));
echo '</a>';
}if(count($catid) == 1 && $catid[0] != ''){
if($params->get('source') == 'content'){
echo '<a class="ja-contentslider_view_all" href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($catid[0])).'" title="'.JText::_('TPL_JA_MOD_CONTENTSLIDER_VIEW_ALL_TITLES').'">'.JText::_('TPL_JA_MOD_CONTENTSLIDER_VIEW_ALL').'</a>';
}else if($params->get('source') == 'k2'){
echo '<a class="ja-contentslider_view_all" href="'.urldecode(JRoute::_(K2HelperRoute::getCategoryRoute($catid[0]))).'" title="'.JText::_('TPL_JA_MOD_CONTENTSLIDER_VIEW_ALL_TITLES').'">'.JText::_('TPL_JA_MOD_CONTENTSLIDER_VIEW_ALL').'</a>';}
}
echo '</div>';
*/
Then the buttons will be hidden as you wish.
1 user says Thank You to Ninja Lead for this useful post
AuthorPostsViewing 2 posts - 1 through 2 (of 2 total)This topic contains 2 replies, has 2 voices, and was last updated by Ninja Lead 10 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
ja content slider – how to remove buttons created, ordering, hits and View All
Viewing 2 posts - 1 through 2 (of 2 total)