'scroll', 'footer_widgets' => array( 'sidebar-1', 'sidebar-2', 'sidebar-3' ), 'container' => 'content', 'wrapper' => true, 'footer' => 'page', ) ); /** * Add support for custom backgrounds */ $defaults = array( 'default-color' => 'f5f5f5', 'default-image' => '', ); add_theme_support( 'custom-background', $defaults ); /** * Enable support for Post Thumbnails */ add_theme_support( 'post-thumbnails' ); add_image_size( 'post-thumbnail', 520, 999, false ); /** * Enable support for Post Formats */ add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link' ) ); /** * This theme uses wp_nav_menu() in one location. */ register_nav_menus( array( 'primary' => __( 'Primary Menu', 'minimalizine' ), ) ); } endif; // minimalizine_setup add_action( 'after_setup_theme', 'minimalizine_setup' ); /** * Enqueue Google Fonts */ function minimalizine_fonts() { /* translators: If there are characters in your language that are not supported by Oswald, translate this to 'off'. Do not translate into your own language. */ if ( 'off' !== _x( 'on', 'Oswald font: on or off', 'minimalizine' ) ) { wp_register_style( 'minimalizine-oswald', "https://fonts.googleapis.com/css?family=Oswald&subset=latin,latin-ext" ); } /* translators: If there are characters in your language that are not supported by Open Sans, translate this to 'off'. Do not translate into your own language. */ if ( 'off' !== _x( 'on', 'Open Sans font: on or off', 'minimalizine' ) ) { $opensans_subsets = 'latin,latin-ext'; /* translators: To add an additional Open Sans character subset specific to your language, translate this to 'greek', 'cyrillic' or 'vietnamese'. Do not translate into your own language. */ $opensans_subset = _x( 'no-subset', 'Open Sans font: add new subset (greek, cyrillic, vietnamese)', 'minimalizine' ); if ( 'cyrillic' == $opensans_subset ) $opensans_subsets .= ',cyrillic,cyrillic-ext'; elseif ( 'greek' == $opensans_subset ) $opensans_subsets .= ',greek,greek-ext'; elseif ( 'vietnamese' == $opensans_subset ) $opensans_subsets .= ',vietnamese'; $opensans_query_args = array( 'family' => 'Open+Sans:300', 'subset' => $opensans_subsets, ); wp_register_style( 'minimalizine-opensans', add_query_arg( $opensans_query_args, "https://fonts.googleapis.com/css" ), array(), null ); } } add_action( 'init', 'minimalizine_fonts' ); /** * Enqueue font styles in custom header admin */ function minimalizine_admin_fonts( $hook_suffix ) { if ( 'appearance_page_custom-header' != $hook_suffix ) return; wp_enqueue_style( 'minimalizine-oswald' ); wp_enqueue_style( 'minimalizine-opensans' ); } add_action( 'admin_enqueue_scripts', 'minimalizine_admin_fonts' ); /** * Register widgetized area and update sidebar with default widgets * * @since Minimalizine 0.3-wpcom */ function minimalizine_widgets_init() { register_sidebar( array( 'name' => __( 'One', 'minimalizine' ), 'id' => 'sidebar-1', 'before_widget' => '", 'before_title' => '