60, 'width' => 200, 'flex-width' => true, ) ); } add_action('wp_enqueue_scripts', 'unik_style'); function unik_style(){ wp_enqueue_style('bootstrap',get_stylesheet_directory_uri(). '/css/bootstrap/bootstrap.min.css'); wp_enqueue_style('font-awesome', get_stylesheet_directory_uri(). '/css/font-awesome.min.css'); wp_enqueue_style('unik-fonts', 'http://fonts.googleapis.com/css?family=Open+Sans|Prompt'); wp_enqueue_style('unik-theme-style', get_stylesheet_directory_uri(). '/style.css'); wp_enqueue_style('unik-theme-media', get_stylesheet_directory_uri(). '/css/media.css'); //js wp_enqueue_script('bootstrap', get_stylesheet_directory_uri(). '/css/bootstrap/bootstrap.min.js', array('jquery')); if ( is_singular() ) wp_enqueue_script( "comment-reply" ); } add_action('wp_footer','unik_footer_scripts'); function unik_footer_scripts(){ wp_enqueue_script('unik-main-js', get_stylesheet_directory_uri(). '/js/script.js'); } //including customizer require( get_template_directory().'/customizer.php'); add_action( 'wp_head', 'unik_color_css',999); function unik_color_css(){ $wl_theme_options = get_theme_mod('unik_options'); if($wl_theme_options['site_color']!=''){ $color= $wl_theme_options['site_color']; }else{ $color ='#0098ff'; } ?> 'menu_order, post_title', 'menu_class' => 'menu', 'echo' => true, 'link_before' => '', 'link_after' => ''); $args = wp_parse_args( $args, $defaults ); $args = apply_filters( 'wp_page_menu_args', $args ); $menu = ''; $list_args = $args; // Show Home in the menu if ( ! empty($args['show_home']) ) { if ( true === $args['show_home'] || '1' === $args['show_home'] || 1 === $args['show_home'] ) $text = __('Home','unik'); else $text = $args['show_home']; $class = ''; if ( is_front_page() && !is_paged() ) $class = 'class="current_page_item"'; $menu .= '
  • ' . $args['link_before'] . $text . $args['link_after'] . '
  • '; // If the front page is a page, add it to the exclude list if (get_option('show_on_front') == 'page') { if ( !empty( $list_args['exclude'] ) ) { $list_args['exclude'] .= ','; } else { $list_args['exclude'] = ''; } $list_args['exclude'] .= get_option('page_on_front'); } } $list_args['echo'] = false; $list_args['title_li'] = ''; $list_args['walker'] = new unik_walker_page_menu; $menu .= str_replace( array( "\r", "\n", "\t" ), '', wp_list_pages($list_args) ); if ( $menu ) $menu = ''; $menu = '
    ' . $menu . "
    \n"; $menu = apply_filters( 'wp_page_menu', $menu, $args ); if ( $args['echo'] ) echo $menu; else return $menu; } class unik_walker_page_menu extends Walker_Page{ function start_lvl( &$output, $depth = 0, $args = array() ) { $indent = str_repeat("\t", $depth); $output .= "\n$indent