Server : LiteSpeed
System : Linux premium152.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : idesfsze ( 1473)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /home/idesfsze/pandaexpressketo.com/wp-content/themes/jnews/class/Walker/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]


Current File : /home/idesfsze/pandaexpressketo.com/wp-content/themes/jnews/class/Walker/CategoryMetaboxWalker.php
<?php
/**
 * @author : Jegtheme
 */
namespace JNews\Walker;

Class CategoryMetaboxWalker extends \Walker
{
    public $tree_type = 'category';
    public $db_fields = array ( 'parent' => 'parent', 'id' => 'term_id' );
    public $cache = array();

    public function start_el(&$output, $object, $depth = 0, $args = array(), $current_object_id = 0)
    {
        $cacheobj = array();
        $cacheobj['object'] = $object;
        $cacheobj['depth'] = $depth;
        $cacheobj['id'] = $object->term_id;
        $indent = '';

        if($depth == 1) {
            $indent = "&nbsp;-&nbsp;&nbsp;";
        } else if ($depth == 2) {
            $indent = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;&nbsp;";
        }

        $cacheobj['title'] = $indent . $object->name . "&nbsp;&nbsp;[ID : " . $object->term_id . "]";
        $this->cache[] = $cacheobj;
    }
}

F1le Man4ger