| 1 | <?php  | 
            ||
| 13 | trait SideNavHelpers { | 
            ||
| 14 | |||
| 15 | /**  | 
            ||
| 16 | * Check menu has sub  | 
            ||
| 17 | * @author Alireza Josheghani <[email protected]>  | 
            ||
| 18 | * @since 8 Oct 2016  | 
            ||
| 19 | * @param $menu  | 
            ||
| 20 | * @return bool  | 
            ||
| 21 | */  | 
            ||
| 22 | public static function hasSub($menu)  | 
            ||
| 30 | |||
| 31 | /**  | 
            ||
| 32 | * Print item icon  | 
            ||
| 33 | * @author Alireza Josheghani <[email protected]>  | 
            ||
| 34 | * @since 8 Oct 2016  | 
            ||
| 35 | * @param $value  | 
            ||
| 36 | * @return string  | 
            ||
| 37 | */  | 
            ||
| 38 | public static function itemIcon($value)  | 
            ||
| 48 | |||
| 49 | /**  | 
            ||
| 50 | * Print item new_tab option  | 
            ||
| 51 | * @author Alireza Josheghani <[email protected]>  | 
            ||
| 52 | * @since 8 Oct 2016  | 
            ||
| 53 | * @param $newTab  | 
            ||
| 54 | * @return null|string  | 
            ||
| 55 | */  | 
            ||
| 56 | public static function new_tab($newTab)  | 
            ||
| 63 | |||
| 64 | }  |