themeMods; } /** * Get Theme Mods * @return array **/ public function getThemeMod( $key ) { if ( isset( $this->themeMods[ $key ] ) ) return $this->themeMods[ $key ]; return false; } /** * Initializer **/ /** * Public initializer **/ public static function getInstance() { if ( null === self::$instance ) { self::$instance = new Self(); } return self::$instance; } /** * Constructor **/ protected function __construct() { $this->initVars(); $this->load(); $this->initHooks(); } /** * Init Vars **/ protected function initVars() { $this->option_ids = apply_filters( ace()->getPrefixedFilterHook( 'option_ids' ), array( '', '' ) ); } /** * Constructor **/ protected function load() { } /** * Init hooks **/ protected function initHooks() { // Actions add_action( 'init', array( $this, 'setup_theme_mods' ), 0 ); // Filter add_filter( ace()->getPrefixedFilterHook( 'theme_mod_font_families' ), array( $this, 'appendFontFamilies' ) ); } public function setup_theme_mods() { $this->themeMods = $this->getThemeModsWithDefaults( ACE_THEME_NAME_UNDERSCORE . '_' ); do_action( ace()->getPrefixedActionHook( 'setup_theme_mods' ), $this ); } public function appendFontFamilies( $font_families ) { if( '' !== get_option( ace()->getPrefixedOptionName( 'google_fonts_api_key' ), '' ) ) { $applied_google_fonts_list = get_option( ace()->getPrefixedOptionName( 'applied_google_fonts_list' ) ); if( is_array( $applied_google_fonts_list ) ) { foreach( $applied_google_fonts_list as $index => $data ) { $index_font_family = str_replace( array( '\\' ), '', $data['font-family-in-css'] ); $value = esc_attr( $data['font-name-display'] ); $font_families[ $index_font_family ] = $value; } } unset( $applied_google_fonts_list ); } $custom_fonts = get_option( ace()->getPrefixedOptionName( 'custom_fonts' ), '' ); if ( is_array( $custom_fonts ) ) { foreach( $custom_fonts as $font_family => $font_files ) { $font_families[ $font_family ] = $font_family; } } return $font_families; } /** * Get Theme Mods * * @param string $theme_options_prefix * * @return array $theme_mods : apply_filters( ace()->getPrefixedFilterHook( 'ace_filters_default_theme_mods' ), wp_parse_args( $theme_mods, $default_theme_mods ), $theme_options_prefix, $widget_areas, $animated_elements_in_content ) string $theme_options_prefix array $widget_areas array $animated_elements_in_content **/ public function getThemeModsWithDefaults( $theme_options_prefix = 'ace_' ) { $theme_mods = get_theme_mods(); // Basic Font $basic_font_family = '"HiraMinProN-W6", "HiraMinProN-W6", "ヒラギノ明朝 ProN W6"'; if ( isset( $theme_mods['basic_font_family'] ) && ! empty( $theme_mods['basic_font_family'] ) ) { $basic_font_family = $theme_mods['basic_font_family']; } // Basic Content Font $basic_content_font_family = '"HiraMinProN-W6", "HiraMinProN-W6", "ヒラギノ明朝 ProN W6"'; $content_area_background_color = esc_attr( isset( $theme_mods['content_area_background_color'] ) && $theme_mods['content_area_background_color'] != '' ? $theme_mods['content_area_background_color'] : 'rgba(255,255,255,1)' ); $main_content_background_color = esc_attr( isset( $theme_mods['main_content_background_color'] ) && $theme_mods['main_content_background_color'] != '' ? $theme_mods['main_content_background_color'] : 'rgba(255,255,255,0)' ); $default_theme_mods = array( // Basic Font Family 'basic_font_family' => $basic_font_family, // Page Load Style 'loading_page_type' => 'spinner', // Layout 'column_left_max_width' => 300, 'main_content_max_width' => 660, 'column_right_max_width' => 300, // Page Design // Sidebar Left Container 'content_area_sidebar_left_container_background_color' => 'rgba(255,255,255,0.9)', // Sidebar Right Container 'content_area_sidebar_right_container_background_color' => 'rgba(255,255,255,0.9)', // Header // Layout 'header_style_pattern' => 'plain', 'header_layout_pattern' => 'vertical', 'is_header_fixed' => false, 'is_search_on_top' => false, // Header Edge: 'none', 'two-tone' 'header_design_edge' => 'two-tone', 'header_design_edge_color' => 'rgba(255,120,60,1)', // Font Family 'header_site_name_font_family' => $basic_font_family, 'header_site_description_font_family' => $basic_font_family, 'header_nav_menu_font_family' => $basic_font_family, // Colors 'header_background_color' => 'rgba(255,255,255,1)', 'header_fixed_parts_background_color' => 'rgba(255,255,255,0.9)', 'header_site_name_color' => 'rgba(0,0,0,1)', 'header_site_description_color' => 'rgba(0,0,0,1)', 'header_breadcrumb_color' => 'rgba(0,0,0,1)', 'header_nav_menu_text_color' => 'rgba(0,0,0,0.9)', 'header_nav_menu_text_color_hover' => 'rgba(200,200,200,0.9)', // Address 'header_address_display' => false, 'header_address_phone_number' => '0000-000-000', 'header_address_message_above_number' => '', 'header_address_message_below_number' => '', // Main Area // Design 'main_area_design_edge' => 'two-tone', 'main_area_design_edge_color' => 'rgba(255,120,60,1)', // Font 'main_area_basic_font_family' => $basic_font_family, // Colors 'main_area_background_color' => 'rgba(255,255,255,1)', 'main_background_color' => 'rgba(255,255,255,1)', 'main_text_color' => 'rgba(0,0,0,1)', 'main_link_text_color' => 'rgba(0,0,0,1)', // Archive Page // Article Type 'main_archive_article_type' => 'card', // Colors 'main_archive_title_color' => 'rgba(0,0,0,1)', 'main_archive_title_background_color' => 'rgba(255,255,255,1)', 'main_archive_article_background_color' => 'rgba(255,255,255,1)', 'main_archive_article_title_color' => 'rgba(0,0,0,1)', 'main_archive_article_text_color' => 'rgba(0,0,0,1)', // Fonts 'main_archive_basic_font_family' => $basic_font_family, 'main_archive_title_font_family' => $basic_font_family, 'main_archive_article_title_font_family' => $basic_font_family, 'main_archive_article_text_font_family' => $basic_font_family, // Singular // Colors 'main_singular_title_background_color' => 'rgba(255,255,255,1)', 'main_singular_title_text_color' => 'rgba(0,0,0,1)', // Fonts 'main_singular_basic_font_family' => $basic_font_family, 'main_singular_title_font_family' => $basic_font_family, // Footer // Layout 'footer_hide_all' => false, 'footer_text_align' => 'center', 'footer_hide_theme_name' => false, 'footer_hide_site_name_description' => false, 'footer_copyright_year' => 2000, 'footer_display_credit_type' => 'none', 'footer_custom_site_info' => '', // Design 'footer_design_edge' => 'two-tone', 'footer_design_edge_color' => 'rgba(255,120,60,1)', // Colors 'footer_background_color' => 'rgba(240,240,240,1)', 'footer_text_color' => 'rgba(0,0,0,1)', 'footer_link_text_color' => 'rgba(0,0,0,1)', 'footer_nav_menu_text_color' => 'rgba(0,0,0,1)', // Fonts 'footer_text_font_family' => $basic_font_family, 'footer_link_text_font_family' => $basic_font_family, 'footer_nav_menu_font_family' => $basic_font_family, // Widget Areas ( Specified Mods ) // Others // Images 'default_thumbnail_image' => ACE_DIR_URL . '/assets/images/no-img.png', 'web_clip_icon_image' => '', 'favicon_image' => '', ); // Body $page_types = array( 'home', 'blog', 'front_page', 'archive', 'post', 'page' ); foreach( $page_types as $page_type ) { $default_theme_mods['body_' . $page_type . '_background_color'] = '#FFFFFF'; $default_theme_mods['body_' . $page_type . '_background_image'] = ''; $default_theme_mods['body_' . $page_type . '_background_image_size'] = 'auto'; $default_theme_mods['body_' . $page_type . '_background_image_position_row'] = 'center'; $default_theme_mods['body_' . $page_type . '_background_image_position_column'] = 'center'; $default_theme_mods['body_' . $page_type . '_background_image_repeat'] = 'repeat'; $default_theme_mods['body_' . $page_type . '_background_image_attachment'] = 'scroll'; } // Headlines $elements = array( 'h1' => array( 'color' => 'rgba(0,0,0,0.9)', 'font_family' => $basic_font_family, ), 'h2' => array( 'color' => 'rgba(0,0,0,0.9)', 'font_family' => $basic_font_family, ), 'h3' => array( 'color' => 'rgba(0,0,0,0.9)', 'font_family' => $basic_font_family, ), 'h4' => array( 'color' => 'rgba(0,0,0,0.9)', 'font_family' => $basic_font_family, ), 'h5' => array( 'color' => 'rgba(0,0,0,0.9)', 'font_family' => $basic_font_family, ), 'h6' => array( 'color' => 'rgba(0,0,0,0.9)', 'font_family' => $basic_font_family, ), 'p' => array( 'color' => 'rgba(0,0,0,0.9)', 'font_family' => $basic_content_font_family, ), 'table' => array( 'color' => 'rgba(0,0,0,0.9)', 'font_family' => $basic_content_font_family, ), 'list' => array( 'color' => 'rgba(0,0,0,0.9)', 'font_family' => $basic_content_font_family, ), ); foreach( $elements as $element => $data ) { $key = sprintf( 'main_singular_%s_font_family', $element ); $default_theme_mods[ $key ] = $data['font_family']; $key = sprintf( 'main_singular_%s_color', $element ); $default_theme_mods[ $key ] = $data['color']; } unset( $content_area_background_color ); // Standard Widget Areas $widget_areas = array( 'in_header', 'column_left', 'column_left_fixed', 'column_right', 'column_right_fixed', 'slidebar_left', 'slidebar_right', 'sidebar_mobile' ); foreach( $widget_areas as $index => $widget_area ) { // Prefix $id_prefix = sprintf( 'swa_%s_', $widget_area ); // Animation //$default_theme_mods[ $id_prefix . 'area_animation_enter'] = 'none'; $default_theme_mods[ $id_prefix . 'widget_animation_enter'] = 'none'; $default_theme_mods[ $id_prefix . 'widget_animation_hide'] = 'none'; // Widget Area $default_theme_mods[ $id_prefix . 'padding'] = 0; $default_theme_mods[ $id_prefix . 'border'] = false; $default_theme_mods[ $id_prefix . 'background_color'] = ( in_array( $widget_area, array( 'slidebar_left', 'slidebar_right' ) ) ? 'rgba(255,255,255,0.9)' : 'rgba(255,255,255,0.9)' ); // Widget // Widget Space $default_theme_mods[ $id_prefix . 'widget_space'] = 2; // Title $default_theme_mods[ $id_prefix . 'title_font_family'] = $basic_font_family; $default_theme_mods[ $id_prefix . 'title_color'] = '#000000'; $default_theme_mods[ $id_prefix . 'title_text_align'] = 'center'; // Text $default_theme_mods[ $id_prefix . 'text_font_family'] = $basic_font_family; $default_theme_mods[ $id_prefix . 'text_color'] = '#666666'; $default_theme_mods[ $id_prefix . 'text_link_color'] = '#337ab7'; } // Optional Widget Areas Wrapper foreach( array( 'before_primary', 'before_content', 'beginning_of_content', 'before_1st_h2_of_content', 'end_of_content', 'after_content', 'after_primary', 'in_footer' ) as $index => $widget_area ) { $owa_wrapper_setting_id_prefix = sprintf( 'owa_%1$s_wrapper_', $widget_area ); // Wrapper $default_theme_mods[ $owa_wrapper_setting_id_prefix . 'background_color'] = 'rgba(255,255,255,0)'; $default_theme_mods[ $owa_wrapper_setting_id_prefix . 'background_image'] = ''; $default_theme_mods[ $owa_wrapper_setting_id_prefix . 'background_image_size'] = 'cover'; $default_theme_mods[ $owa_wrapper_setting_id_prefix . 'background_image_position_row'] = 'center'; $default_theme_mods[ $owa_wrapper_setting_id_prefix . 'background_image_position_column'] = 'center'; $default_theme_mods[ $owa_wrapper_setting_id_prefix . 'background_image_repeat'] = 'no-repeat'; $default_theme_mods[ $owa_wrapper_setting_id_prefix . 'background_image_attachment'] = 'scroll'; } // Optional Widget Areas $owa = ace()->getWidgetAreaManager()->getOptionalWidgetAreas(); //$optional_widget_areas_args = ace()->get_option( 'widget_areas' )->get_data(); if ( is_array( $owa ) && 0 < count( $owa ) ) { foreach( $owa as $index => $each_owa ) { if ( ! isset( $each_owa['hook'] ) || ! is_string( $each_owa['hook'] ) || empty( $each_owa['hook'] ) || ( 'customize' === $each_owa['hook'] && empty( $each_owa['is_on_mobile_menu'] ) ) ) continue; $owa_setting_id_prefix = sprintf( 'owa_%1$s_%2$s_', $each_owa['hook'], absint( $each_owa['widget_num'] ) ); // CSS Animation // $default_theme_mods[ $owa_setting_id_prefix . 'animation_enter'] = 'none'; //$default_theme_mods[ $id_prefix . 'area_animation_enter'] = 'none'; $default_theme_mods[ $owa_setting_id_prefix . 'widget_animation_enter'] = 'none'; $default_theme_mods[ $owa_setting_id_prefix . 'widget_animation_hide'] = 'none'; // Widget Area Background $default_theme_mods[ $owa_setting_id_prefix . 'background_color'] = 'rgba(255,255,255,0)'; $default_theme_mods[ $owa_setting_id_prefix . 'background_image'] = ''; $default_theme_mods[ $owa_setting_id_prefix . 'background_image_size'] = 'cover'; $default_theme_mods[ $owa_setting_id_prefix . 'background_image_position_row'] = 'center'; $default_theme_mods[ $owa_setting_id_prefix . 'background_image_position_column'] = 'center'; $default_theme_mods[ $owa_setting_id_prefix . 'background_image_repeat'] = 'no-repeat'; $default_theme_mods[ $owa_setting_id_prefix . 'background_image_attachment'] = 'scroll'; $default_theme_mods[ $owa_setting_id_prefix . 'padding'] = 0; // Designs $default_theme_mods[ $owa_setting_id_prefix . 'widget_border'] = false; $default_theme_mods[ $owa_setting_id_prefix . 'widget_border_radius'] = 0; $default_theme_mods[ $owa_setting_id_prefix . 'widget_inner_padding'] = 0; // Widget Space $default_theme_mods[ $owa_setting_id_prefix . 'widget_space'] = 2; // Text Colors // Font Family $default_theme_mods[ $owa_setting_id_prefix . 'title_font_family'] = $basic_font_family; $default_theme_mods[ $owa_setting_id_prefix . 'title_color'] = '#000000'; $default_theme_mods[ $owa_setting_id_prefix . 'title_text_align'] = 'center'; $default_theme_mods[ $owa_setting_id_prefix . 'text_font_family'] = $basic_font_family; $default_theme_mods[ $owa_setting_id_prefix . 'text_color'] = '#666666'; $default_theme_mods[ $owa_setting_id_prefix . 'text_link_color'] = '#337ab7'; } } // CSS Animations by Animate.css $animated_elements_in_content = array( 'h1', 'postinfos', 'h2', 'h3', 'h4', 'h5', 'h6', 'p', 'div', 'img', 'table' ); /* foreach( $animated_elements_in_content as $element ) { $default_theme_mods[ 'singular_page_' . $element . '_animation_hover_select' ] = 'none'; $default_theme_mods[ 'singular_page_' . $element . '_animation_enter_select' ] = 'none'; } */ return apply_filters( ace()->getPrefixedFilterHook( 'default_theme_mods' ), wp_parse_args( $theme_mods, $default_theme_mods ), $theme_options_prefix, $widget_areas, $animated_elements_in_content ); } /** * Get Background Position Column for Ace Theme Mods in Array * * @return array **/ public function getThemeModsChoicesTextAligns() { return array( 'center' => esc_html__( 'Center', Ace::TEXTDOMAIN ), 'left' => esc_html__( 'Left', Ace::TEXTDOMAIN ), 'right' => esc_html__( 'Right', Ace::TEXTDOMAIN ), ); } /** * Get CSS Animate Class * * @return array **/ public function geAnimateCSSClassArray() { return array( 'none' => esc_html__( 'No Animations', Ace::TEXTDOMAIN ), 'general' => array( 'none' => esc_html__( 'No Animations', Ace::TEXTDOMAIN ), 'bounce' => 'bounce', 'flash' => 'flash', 'pulse' => 'pulse', 'rubberBand' => 'rubberBand', 'shake' => 'shake', 'swing' => 'swing', 'tada' => 'tada', 'wobble' => 'wobble', 'jello' => 'jello', 'flip' => 'flip', ), // Hover 'hover' => array( 'none' => esc_html__( 'No Animations', Ace::TEXTDOMAIN ), 'bounce' => 'bounce', 'flash' => 'flash', 'pulse' => 'pulse', 'rubberBand' => 'rubberBand', 'shake' => 'shake', 'swing' => 'swing', 'tada' => 'tada', 'wobble' => 'wobble', 'jello' => 'jello', 'flip' => 'flip', ), // Enter 'enter' => array( 'none' => esc_html__( 'No Animations', Ace::TEXTDOMAIN ), 'bounceIn' => 'bounceIn', 'bounceInDown' => 'bounceInDown', 'bounceInLeft' => 'bounceInLeft', 'bounceInRight' => 'bounceInRight', 'bounceInUp' => 'bounceInUp', 'fadeIn' => 'fadeIn', 'fadeInDown' => 'fadeInDown', 'fadeInDownBig' => 'fadeInDownBig', 'fadeInLeft' => 'fadeInLeft', 'fadeInLeftBig' => 'fadeInLeftBig', 'fadeInRight' => 'fadeInRight', 'fadeInRightBig' => 'fadeInRightBig', 'fadeInUp' => 'fadeInUp', 'fadeInUpBig' => 'fadeInUpBig', 'flipInX' => 'flipInX', 'flipInY' => 'flipInY', 'lightSpeedIn' => 'lightSpeedIn', 'rotateIn' => 'rotateIn', 'rotateInDownLeft' => 'rotateInDownLeft', 'rotateInDownRight' => 'rotateInDownRight', 'rotateInUpLeft' => 'rotateInUpLeft', 'rotateInUpRight' => 'rotateInUpRight', 'rollIn' => 'rollIn', 'zoomIn' => 'zoomIn', 'zoomInDown' => 'zoomInDown', 'zoomInLeft' => 'zoomInLeft', 'zoomInRight' => 'zoomInRight', 'zoomInUp' => 'zoomInUp', 'slideInDown' => 'slideInDown', 'slideInLeft' => 'slideInLeft', 'slideInRight' => 'slideInRight', 'slideInUp' => 'slideInUp', ), // Exit 'exit' => array( 'none' => esc_html__( 'No Animations', Ace::TEXTDOMAIN ), 'bounceOut' => 'bounceOut', 'bounceOutDown' => 'bounceOutDown', 'bounceOutLeft' => 'bounceOutLeft', 'bounceOutRight' => 'bounceOutRight', 'bounceOutUp' => 'bounceOutUp', 'fadeOut' => 'fadeOut', 'fadeOutDown' => 'fadeOutDown', 'fadeOutDownBig' => 'fadeOutDownBig', 'fadeOutLeft' => 'fadeOutLeft', 'fadeOutLeftBig' => 'fadeOutLeftBig', 'fadeOutRight' => 'fadeOutRight', 'fadeOutRightBig' => 'fadeOutRightBig', 'fadeOutUp' => 'fadeOutUp', 'fadeOutUpBig' => 'fadeOutUpBig', 'flipOutX' => 'flipOutX', 'flipOutY' => 'flipOutY', 'lightSpeedOut' => 'lightSpeedOut', 'rotateOut' => 'rotateOut', 'rotateOutDownLeft' => 'rotateOutDownLeft', 'rotateOutDownRight' => 'rotateOutDownRight', 'rotateOutUpLeft' => 'rotateOutUpLeft', 'rotateOutUpRight' => 'rotateOutUpRight', 'hinge' => 'hinge', 'rollOut' => 'rollOut', 'zoomOut' => 'zoomOut', 'zoomOutDown' => 'zoomOutDown', 'zoomOutLeft' => 'zoomOutLeft', 'zoomOutRight' => 'zoomOutRight', 'zoomOutUp' => 'zoomOutUp', 'slideOutDown' => 'slideOutDown', 'slideOutLeft' => 'slideOutLeft', 'slideOutRight' => 'slideOutRight', 'slideOutUp' => 'slideOutUp', ), ); } /** * Get CSS Animation Class * * @return array **/ public function getAnimationClasses() { return apply_filters( ace()->getPrefixedFilterHook( 'animation_classes' ), array( 'enter' => array( 'none' => __( 'None', Ace::TEXTDOMAIN ), 'enter-fade' => __( 'Fade In Down from Above', Ace::TEXTDOMAIN ), ), 'hide' => array( 'none' => __( 'None', Ace::TEXTDOMAIN ), 'hide-fade' => __( 'Fade Out Up', Ace::TEXTDOMAIN ), ), ) ); } /** * Get Font Families for Ace Theme Mods in Array * * @return array filtered **/ public function getFontFamilies() { return apply_filters( ace()->getPrefixedFilterHook( 'theme_mod_font_families' ), array( 'none' => __( 'Default', Ace::TEXTDOMAIN ), 'sans-serif' => __( 'sans-serif', Ace::TEXTDOMAIN ), 'arial,sans-serif' => __( 'arial', Ace::TEXTDOMAIN ), '"arial black",sans-serif' => __( 'arial black', Ace::TEXTDOMAIN ), '"arial narrow",sans-serif' => __( 'arial narrow', Ace::TEXTDOMAIN ), '"arial unicode ms",sans-serif' => __( 'arial unicode ms', Ace::TEXTDOMAIN ), '"Century Gothic",sans-serif' => __( 'Century Gothic', Ace::TEXTDOMAIN ), '"Franklin Gothic Medium",sans-serif' => __( 'Franklin Gothic Medium', Ace::TEXTDOMAIN ), 'Gulim,sans-serif' => __( 'Gulim', Ace::TEXTDOMAIN ), 'Dotum,sans-serif' => __( 'Dotum', Ace::TEXTDOMAIN ), 'Haettenschweiler,sans-serif' => __( 'Haettenschweiler', Ace::TEXTDOMAIN ), 'Impact,sans-serif' => __( 'Impact', Ace::TEXTDOMAIN ), '"Ludica Sans Unicode",sans-serif' => __( 'Ludica Sans Unicode', Ace::TEXTDOMAIN ), '"Microsoft Sans Serif",sans-serif' => __( 'Microsoft Sans Serif', Ace::TEXTDOMAIN ), '"MS Sans Serif",sans-serif' => __( 'MS Sans Serif', Ace::TEXTDOMAIN ), '"MV Boil",sans-serif' => __( 'MV Boil', Ace::TEXTDOMAIN ), '"New Gulim",sans-serif' => __( 'New Gulim', Ace::TEXTDOMAIN ), 'Tahoma,sans-serif' => __( 'Tahoma', Ace::TEXTDOMAIN ), 'Trebuchet,sans-serif' => __( 'Trebuchet', Ace::TEXTDOMAIN ), 'Verdana,sans-serif' => __( 'Verdana', Ace::TEXTDOMAIN ), 'serif' => __( 'serif', Ace::TEXTDOMAIN ), 'Batang,serif' => __( 'Batang', Ace::TEXTDOMAIN ), '"Book Antiqua",serif' => __( 'Book Antiqua', Ace::TEXTDOMAIN ), '"Bookman Old Style",serif' => __( 'Bookman Old Style', Ace::TEXTDOMAIN ), 'Century,serif' => __( 'Century', Ace::TEXTDOMAIN ), '"Estrangelo Edessa",serif' => __( 'Estrangelo Edessa', Ace::TEXTDOMAIN ), 'Garamond,serif' => __( 'Garamond', Ace::TEXTDOMAIN ), 'Gautami,serif' => __( 'Gautami', Ace::TEXTDOMAIN ), 'Georgia,serif' => __( 'Georgia', Ace::TEXTDOMAIN ), 'Gungsuh,serif' => __( 'Gungsuh', Ace::TEXTDOMAIN ), 'Latha,serif' => __( 'Latha', Ace::TEXTDOMAIN ), 'Mangal,serif' => __( 'Mangal', Ace::TEXTDOMAIN ), '"MS Serif",serif' => __( 'MS Serif', Ace::TEXTDOMAIN ), 'PMingLiU,serif' => __( 'PMingLiU', Ace::TEXTDOMAIN ), '"Palatino Linotype",serif' => __( 'Palatino Linotype', Ace::TEXTDOMAIN ), 'Raavi,serif' => __( 'Raavi', Ace::TEXTDOMAIN ), 'Roman,serif' => __( 'Roman', Ace::TEXTDOMAIN ), 'Shruti,serif' => __( 'Shruti', Ace::TEXTDOMAIN ), 'Sylfaen,serif' => __( 'Sylfaen', Ace::TEXTDOMAIN ), '"Times New Roman",serif' => __( 'Times New Roman', Ace::TEXTDOMAIN ), 'Tunga,serif' => __( 'Tunga', Ace::TEXTDOMAIN ), 'monospace' => __( 'Monospace', Ace::TEXTDOMAIN ), 'BatangChe,monospace' => __( 'BatangChe', Ace::TEXTDOMAIN ), 'Courier,monospace' => __( 'Courier', Ace::TEXTDOMAIN ), '"Courier New",monospace' => __( 'Courier New', Ace::TEXTDOMAIN ), 'DotumChe,monospace' => __( 'DotumChe', Ace::TEXTDOMAIN ), 'GlimChe,monospace' => __( 'GlimChe', Ace::TEXTDOMAIN ), 'GungsuhChe,monospace' => __( 'GungsuhChe', Ace::TEXTDOMAIN ), 'HG行書体,monospace' => __( 'HG Gyoshotai', Ace::TEXTDOMAIN ), '"Lucida Console",monospace' => __( 'Lucida Console', Ace::TEXTDOMAIN ), 'MingLiU,monospace' => __( 'MingLiU', Ace::TEXTDOMAIN ), 'OCRB,monospace' => __( 'OCRB', Ace::TEXTDOMAIN ), 'SimHei,monospace' => __( 'SimHei', Ace::TEXTDOMAIN ), 'SimSun,monospace' => __( 'SimSun', Ace::TEXTDOMAIN ), '"Small Fonts",monospace' => __( 'Small Fonts', Ace::TEXTDOMAIN ), 'Terminal,monospace' => __( 'Terminal', Ace::TEXTDOMAIN ), 'fantasy,fantasy' => __( 'Fantasy', Ace::TEXTDOMAIN ), 'alba,fantasy' => __( 'alba', Ace::TEXTDOMAIN ), '"alba matter",fantasy' => __( 'alba matter', Ace::TEXTDOMAIN ), '"alba super",fantasy' => __( 'alba super', Ace::TEXTDOMAIN ), '"baby kruffy",fantasy' => __( 'baby kruffy', Ace::TEXTDOMAIN ), 'Chick,fantasy' => __( 'Chick', Ace::TEXTDOMAIN ), 'Croobie,fantasy' => __( 'Croobie', Ace::TEXTDOMAIN ), 'Fat,fantasy' => __( 'Fat', Ace::TEXTDOMAIN ), 'Freshbot,fantasy' => __( 'Freshbot', Ace::TEXTDOMAIN ), 'Frosty,fantasy' => __( 'Frosty', Ace::TEXTDOMAIN ), 'GlooGun,fantasy' => __( 'GlooGun', Ace::TEXTDOMAIN ), 'Jokewood,fantasy' => __( 'Jokewood', Ace::TEXTDOMAIN ), 'Modern,fantasy' => __( 'Modern', Ace::TEXTDOMAIN ), '"Monotype Corsiva",fantasy' => __( 'Monotype Corsiva', Ace::TEXTDOMAIN ), 'Poornut,fantasy' => __( 'Poornut', Ace::TEXTDOMAIN ), '"Pussycat Snickers",fantasy' => __( 'Pussycat Snickers', Ace::TEXTDOMAIN ), '"Weltron Urban",fantasy' => __( 'Weltron Urban', Ace::TEXTDOMAIN ), 'cursive' => __( 'Cursive', Ace::TEXTDOMAIN ), '"Comic Sans MS",cursive' => __( 'Comic Sans MS', Ace::TEXTDOMAIN ), 'HGP行書体,cursive' => __( 'HGP Gyoshotai', Ace::TEXTDOMAIN ), 'HG正楷書体-PRO,cursive' => __( 'HG Seikaishotai-PRO', Ace::TEXTDOMAIN ), '"Jenkins v2.0",cursive' => __( 'Jenkins v2.0', Ace::TEXTDOMAIN ), 'Script,cursive' => __( 'Script', Ace::TEXTDOMAIN ), # Japanese '"MS UI Gothic",sans-serif' => __( 'MS UI Gothic', Ace::TEXTDOMAIN ), '"MS PGothic", "MS Pゴシック",sans-serif' => __( 'MS PGothic', Ace::TEXTDOMAIN ), '"MS Gothic", "MS ゴシック",sans-serif' => __( 'MS Gothic', Ace::TEXTDOMAIN ), '"MS PMincho", "MS P明朝",serif' => __( 'MS PMincho', Ace::TEXTDOMAIN ), '"MS Mincho", "MS 明朝",serif' => __( 'MS Mincho', Ace::TEXTDOMAIN ), '"Meiryo", "メイリオ",sans-serif' => __( 'Meiryo', Ace::TEXTDOMAIN ), '"Meiryo UI",sans-serif' => __( 'Meiryo UI', Ace::TEXTDOMAIN ), '"Yu Gothic", "游ゴシック",sans-serif' => __( 'Yu Gothic', Ace::TEXTDOMAIN ), '"Yu Mincho", "游明朝"' => __( 'Yu Mincho', Ace::TEXTDOMAIN ), '"Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3",sans-serif' => __( 'Hiragino Kaku Gothic Pro', Ace::TEXTDOMAIN ), '"HiraKakuProN-W3", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3",sans-serif' => __( '"HiraKakuProN-W3", "Hiragino Kaku Gothic ProN"', Ace::TEXTDOMAIN ), '"HiraKakuPro-W6", "ヒラギノ角ゴ Pro W6",sans-serif' => __( 'HiraKakuPro-W6', Ace::TEXTDOMAIN ), '"HiraKakuProN-W6", "HiraKakuProN-W6", "ヒラギノ角ゴ ProN W6",sans-serif' => __( '"HiraKakuProN-W6", "HiraKakuProN-W6"', Ace::TEXTDOMAIN ), '"Hiragino Kaku Gothic Std", "ヒラギノ角ゴ Std W8",sans-serif' => __( 'Hiragino Kaku Gothic Std', Ace::TEXTDOMAIN ), '"Hiragino Kaku Gothic StdN", "ヒラギノ角ゴ StdN W8",sans-serif' => __( 'Hiragino Kaku Gothic StdN', Ace::TEXTDOMAIN ), '"Hiragino Maru Gothic Pro", "ヒラギノ丸ゴ Pro W4",sans-serif' => __( 'Hiragino Maru Gothic Pro', Ace::TEXTDOMAIN ), '"Hiragino Maru Gothic ProN", "ヒラギノ丸ゴ ProN W4",sans-serif' => __( 'Hiragino Maru Gothic ProN', Ace::TEXTDOMAIN ), '"Hiragino Mincho Pro", "ヒラギノ明朝 Pro W3",serif' => __( 'Hiragino Mincho Pro', Ace::TEXTDOMAIN ), '"HiraMinProN-W3", "Hiragino Mincho ProN", "ヒラギノ明朝 ProN W3",serif' => __( '"HiraMinProN-W3", "Hiragino Mincho ProN"', Ace::TEXTDOMAIN ), '"HiraMinPro-W6", "ヒラギノ明朝 Pro W6",serif' => __( 'HiraMinPro-W6', Ace::TEXTDOMAIN ), '"HiraMinProN-W6", "HiraMinProN-W6", "ヒラギノ明朝 ProN W6",serif' => __( '"HiraMinProN-W6", "HiraMinProN-W6"', Ace::TEXTDOMAIN ), '"YuGothic", "游ゴシック体",sans-serif' => __( 'YuGothic', Ace::TEXTDOMAIN ), '"YuMincho", "游明朝体",serif' => __( 'YuMincho', Ace::TEXTDOMAIN ), 'Osaka,sans-serif' => __( 'Osaka', Ace::TEXTDOMAIN ), '"Osaka-Mono", "Osaka-等幅",sans-serif' => __( 'Osaka-Mono', Ace::TEXTDOMAIN ), '"Droid Sans",sans-serif' => __( 'Droid Sans', Ace::TEXTDOMAIN ), 'Roboto,sans-serif' => __( 'Roboto', Ace::TEXTDOMAIN ) ) ); } /** * Get Background Size for Ace Theme Mods in Array * * @return array **/ public function getThemeModsChoicesBackgroundSize() { return array( 'auto' => esc_html( 'Auto', Ace::TEXTDOMAIN ), 'cover' => esc_html( 'Cover', Ace::TEXTDOMAIN ), 'contain' => esc_html( 'Contain', Ace::TEXTDOMAIN ), ); } /** * Get Background Position Row for Ace Theme Mods in Array * * @return array **/ public function getThemeModsChoicesBackgroundPositionRow() { return array( 'center' => esc_html__( 'Center', Ace::TEXTDOMAIN ), 'top' => esc_html__( 'Top', Ace::TEXTDOMAIN ), 'bottom' => esc_html__( 'Bottom', Ace::TEXTDOMAIN ), ); } /** * Get Background Position Column for Ace Theme Mods in Array * * @return array **/ public function getThemeModsChoicesBackgroundPositionColumn() { return array( 'center' => esc_html__( 'Center', Ace::TEXTDOMAIN ), 'left' => esc_html__( 'Left', Ace::TEXTDOMAIN ), 'right' => esc_html__( 'Right', Ace::TEXTDOMAIN ), ); } /** * Get Background Repeat for Ace Theme Mods in Array * * @return array **/ public function getThemeModsChoicesBackgroundRepeats() { return array( 'no-repeat' => esc_html__( 'No Repeat', Ace::TEXTDOMAIN ), 'repeat' => esc_html__( 'Repeat', Ace::TEXTDOMAIN ), 'repeat-x' => esc_html__( 'Horizontal Repeat', Ace::TEXTDOMAIN ), 'repeat-y' => esc_html__( 'Vertical Repeat', Ace::TEXTDOMAIN ), ); } /** * Get Background Image Attachment for Ace Theme Mods in Array * * @return array **/ public function getThemeModsChoicesBackgroundAttachments() { return array( 'scroll' => esc_html__( 'Scroll', Ace::TEXTDOMAIN ), 'fixed' => esc_html__( 'Fixed', Ace::TEXTDOMAIN ), ); } # Footer Credit Type /** * Get Footer Credit Types for Ace Theme Mods in Array * * @return array **/ public function getThemeModsChoicesCreditTypes() { return array( 'none' => esc_html__( 'Not Display', Ace::TEXTDOMAIN ), 'all' => esc_html__( 'All Right Reserved', Ace::TEXTDOMAIN ), 'cc-by' => esc_html__( 'CC-BY', Ace::TEXTDOMAIN ), 'cc-by-sa' => esc_html__( 'CC-BY-SA', Ace::TEXTDOMAIN ), 'cc-by-nd' => esc_html__( 'CC-BY-ND', Ace::TEXTDOMAIN ), 'cc-by-nc' => esc_html__( 'CC-BY-NC', Ace::TEXTDOMAIN ), 'cc-by-nc-sa' => esc_html__( 'CC-BY-NC-SA', Ace::TEXTDOMAIN ), 'cc-by-nc-nd' => esc_html__( 'CC-BY-NC-ND', Ace::TEXTDOMAIN ), 'cc0' => esc_html__( 'CC0', Ace::TEXTDOMAIN ), 'public' => esc_html__( 'Public Domain', Ace::TEXTDOMAIN ), ); } /** * Get Footer Aligns for Ace Theme Mods in Array * * @return array **/ public function getThemeModsChoicesFooterAligns() { return array( 'center' => esc_html__( 'Center', Ace::TEXTDOMAIN ), 'left' => esc_html__( 'Left', Ace::TEXTDOMAIN ), 'right' => esc_html__( 'Right', Ace::TEXTDOMAIN ), ); } /** * Get Designed Edge Types * @return array **/ public function getThemeModsDesignedEdgeTypes() { return array( 'none' => esc_html__( 'None', Ace::TEXTDOMAIN ), 'thick-border' => esc_html__( 'Thick Border', Ace::TEXTDOMAIN ), 'two-tone' => esc_html__( 'Two Tone', Ace::TEXTDOMAIN ), ); } }