/* * @package coller, Copyright Rohit Tripathi, rohitink.com * This file contains Custom Theme Related Functions. */ //Import Admin Modules require get_template_directory() . '/framework/admin_modules/register_styles.php'; require get_template_directory() . '/framework/admin_modules/register_widgets.php'; require get_template_directory() . '/framework/admin_modules/theme_setup.php'; require get_template_directory() . '/framework/admin_modules/admin_styles.php'; /* ** Walkers for Navigation menus */ //Supports Menu Desc and Icons Both class Coller_Menu_With_Description extends Walker_Nav_Menu { function start_el(&$output, $item, $depth = 0, $args = array(), $id = 0) { global $wp_query; $indent = ( $depth ) ? str_repeat( "\t", $depth ) : ''; $class_names = $value = ''; $classes = empty( $item->classes ) ? array() : (array) $item->classes; $class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item ) ); $class_names = ' class="' . esc_attr( $class_names ) . '"'; $output .= $indent . '