Example #1
0
 function sort_list()
 {
     $output = "";
     $first = "activeFilter";
     if (!empty(avia_sc_toggle::$tags)) {
         ksort(avia_sc_toggle::$tags);
         $start = array(__('All', 'avia_framework') => true);
         avia_sc_toggle::$tags = $start + avia_sc_toggle::$tags;
         foreach (avia_sc_toggle::$tags as $key => $value) {
             $output .= "<a href='#' data-tag='{{$key}}' class='{$first}'>{$key}</a>";
             $output .= "<span class='tag-seperator'>/</span>";
             $first = "";
         }
     }
     if (!empty($output)) {
         $output = "<div class='taglist'>{$output}</div>";
     }
     return $output;
 }
 function sort_list($toggle_atts)
 {
     $output = "";
     $first = "activeFilter";
     if (!empty(avia_sc_toggle::$tags)) {
         ksort(avia_sc_toggle::$tags);
         $first_item_text = apply_filters('avf_toggle_sort_first_label', __('All', 'avia_framework'), $toggle_atts);
         $start = array($first_item_text => true);
         avia_sc_toggle::$tags = $start + avia_sc_toggle::$tags;
         foreach (avia_sc_toggle::$tags as $key => $value) {
             $output .= '<a href="#" data-tag="{' . $key . '}" class="' . $first . '">' . $key . '</a>';
             $output .= "<span class='tag-seperator'>/</span>";
             $first = "";
         }
     }
     if (!empty($output)) {
         $output = "<div class='taglist'>{$output}</div>";
     }
     return $output;
 }