C:\xampp\htdocs\landing\wp-content\updraft\plugins-old\mediamatic\inc\walkers.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php

/** Custom walker for wp_dropdown_categories for media grid view filter */
class Mediamatic_Walker_Category_Mediagridfilter extends Walker_CategoryDropdown 
{
    function 
start_el( &$output$category$depth 0$args = array(), $id 
    {
        
$pad         str_repeat'&nbsp;'$depth );
        
        if(isset(
$category->name))
        {
            
$cat_name     apply_filters'list_cats'$category->name$category );
            
            
$output .= ',{"term_id":"' $category->term_id '",';

            
$output .= '"term_name":"' $pad esc_attr$cat_name );
            if ( 
$args['show_count'] ) {

                
$output .= '&nbsp;&nbsp;';
            }
            
$output .= '"}';
        }
        
    }

}
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586