db_fields['id']; if ( !empty( $children_elements[ $element->$id_field ] ) ) { $element->classes[] = 'has-children'; } Walker_Nav_Menu::display_element( $element, $children_elements, $max_depth, $depth, $args, $output ); } } // Widgetized Areas function themefurnace_widgets_init() { register_sidebar( array( 'name' => __( 'Sidebar', 'themefurnace' ), 'id' => 'sidebar-1', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'themefurnace_widgets_init' ); // Custom Backgrounds function themefurnace_register_custom_background() { $args = array( 'default-color' => '#FF706C', 'default-image' => '', ); $args = apply_filters( 'themefurnace_custom_background_args', $args ); if ( function_exists( 'wp_get_theme' ) ) { add_theme_support( 'custom-background', $args ); } else { define( 'BACKGROUND_COLOR', $args['default-color'] ); if ( ! empty( $args['default-image'] ) ) define( 'BACKGROUND_IMAGE', $args['default-image'] ); add_theme_support( 'custom-background'); } } add_action( 'after_setup_theme', 'themefurnace_register_custom_background' ); function load_theme_fonts() { $heading = get_theme_mod('google_fonts_heading_font'); $body = get_theme_mod('google_fonts_body_font'); if((!empty($heading) && $heading != 'none') || (!empty($body) && $body != 'none')) { echo ''; } } // load colors function load_theme_colors() { $backgroundColor = get_theme_mod('background_color', '#FF706C'); $linkColor = get_theme_mod('link_color'); $accentColor = get_theme_mod('accent_color', '#FF706C'); echo ''; $body = get_theme_mod('google_fonts_body_font'); if(!empty($heading) && $heading != 'none' && !empty($body) && $body != 'none') { echo ''; } } // Post Thumbnails add_theme_support( 'post-thumbnails' ); add_image_size( 'post-full'); add_image_size( 'post-page', 990, 525, true ); add_image_size( 'post-thumb', 684, 250, true );