Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • scilla Friend
    #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


    1. Capture
    Ninja Lead Moderator
    #517902

    Please 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.

Viewing 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, 8 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum