__( 'Primary Menu', 'boxy' ), ) ); // Setup the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( 'boxy_custom_background_args', array( 'default-color' => 'ffffff', 'default-image' => '', ) ) ); // Enable support for Post Formats. add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link', ) ); add_theme_support( 'custom-background' ); add_theme_support( 'custom-logo' ); // Add theme support for Semantic Markup $markup = array( 'search-form', 'comment-form', 'comment-list', ); add_theme_support( 'html5', $markup ); // Add theme support for title tag add_theme_support( 'title-tag' ); /* * Add Additional image sizes * */ if( get_theme_mod('image_crop_mode') == 'soft' ) { add_image_size( 'boxy_recent-post-img', 380, 350); add_image_size( 'boxy_service-img', 100, 100); add_image_size( 'boxy-blog-full-width', 1200,350); add_image_size( 'boxy-small-featured-image-width', 450,300); add_image_size( 'boxy-blog-large-width', 800,300); add_image_size( 'boxy-rpgallery', 250, 200); }else { add_image_size( 'boxy_recent-post-img', 380, 350, true); add_image_size( 'boxy_service-img', 100, 100, true); add_image_size( 'boxy-blog-full-width', 1200,350, true ); add_image_size( 'boxy-small-featured-image-width', 450,300, true ); add_image_size( 'boxy-blog-large-width', 800,300, true ); add_image_size( 'boxy-rpgallery', 250, 200, true ); } } endif; // boxy_setup add_action( 'after_setup_theme', 'boxy_setup' ); add_action( 'after_setup_theme', 'boxy_customizer_setup',11 ); if( ! function_exists( 'boxy_customizer_setup' ) ) { //echo '
', print_r($boxy), ''; function boxy_customizer_setup() { if( count( get_theme_mods() ) <= 1 ) { global $options; $boxy = get_option('boxy'); foreach($options['panels']['theme_options']['sections'] as $section) { foreach( $section['fields'] as $name => $settings ) { //echo 'Name: ' . $name . '