esc_html__( 'AmyXmas', 'amy-xmas' ), 'menu_type' => 'menu', 'menu_slug' => 'amy-xmas', 'menu_icon' => get_template_directory_uri() . '/images/config/icon_setting.png', 'framework_title' => sprintf( esc_html__( 'Amy Xmas Theme v%1$s Configuration', 'amy-xmas' ), $theme->get( 'Version' ) ), 'ajax_save' => false, 'show_reset_all' => false, ); // =============================================================================================== // ----------------------------------------------------------------------------------------------- // FRAMEWORK OPTIONS // ----------------------------------------------------------------------------------------------- // =============================================================================================== $options = array(); // --------------------------------------------------------- // HEADER // --------------------------------------------------------- $options[] = array( 'name' => 'header', 'title' => esc_html__( 'Header', 'amy-xmas' ), 'fields' => array( array( 'id' => 'favicon', 'type' => 'image', 'title' => esc_html__( 'Favicon', 'amy-xmas' ), ), array( 'id' => 'logo_text', 'type' => 'text', 'default' => get_bloginfo( 'name' ), 'title' => esc_html__( 'Site Logo Text', 'amy-xmas' ), 'info' => esc_html__( 'This is optional if you upload any logo, this is will disable...', 'amy-xmas' ), ), array( 'id' => 'logo', 'type' => 'image', 'title' => esc_html__( 'Site Logo', 'amy-xmas' ), ), array( 'id' => 'logo_menu', 'type' => 'image', 'title' => esc_html__( 'Logo in menu', 'amy-xmas' ), ), array( 'id' => 'logo2x', 'type' => 'image', 'title' => esc_html__( 'Site Logo @2x for Retina', 'amy-xmas' ), ), array( 'id' => 'logo_padding_top', 'type' => 'number', 'title' => esc_html__( 'Logo Padding Top', 'amy-xmas' ), 'after' => 'px', ), array( 'id' => 'logo_padding_bottom', 'type' => 'number', 'title' => esc_html__( 'Logo Padding Bottom', 'amy-xmas' ), 'after' => 'px', ), array( 'id' => 'menu_max_width', 'type' => 'number', 'title' => esc_html__( 'Disable menu in max-width', 'amy-xmas' ), 'default' => '992', 'label' => esc_html__( 'you can set it eg. 1200, 992, 768 or any width etc..', 'amy-xmas' ), ), ), ); // ---------------------------------------------- // FOOTER // ---------------------------------------------- $options[] = array( 'name' => 'footer', 'title' => esc_html__( 'Footer', 'amy-xmas' ), 'fields' => array( array( 'id' => 'enable_footer', 'type' => 'switcher', 'title' => esc_html__( 'Enable Footer', 'amy-xmas' ), 'label' => esc_html__( 'Enable footer widgets area in all pages.', 'amy-xmas' ), 'default' => true, ), array( 'id' => 'facebook_url', 'type' => 'text', 'title' => esc_html__( 'Facebook Url', 'amy-xmas' ), 'dependency' => array( 'enable_footer', '==', '1' ), 'default' => '#', ), array( 'id' => 'twitter_url', 'type' => 'text', 'title' => esc_html__( 'Twitter Url', 'amy-xmas' ), 'dependency' => array( 'enable_footer', '==', '1' ), 'default' => '#', ), array( 'id' => 'google_url', 'type' => 'text', 'title' => esc_html__( 'Google Url', 'amy-xmas' ), 'dependency' => array( 'enable_footer', '==', '1' ), 'default' => '#', ), array( 'id' => 'pinterest_url', 'type' => 'text', 'title' => esc_html__( 'Pinterest Url', 'amy-xmas' ), 'dependency' => array( 'enable_footer', '==', '1' ), 'default' => '#', ), array( 'id' => 'skype_url', 'type' => 'text', 'title' => esc_html__( 'Skype Url', 'amy-xmas' ), 'dependency' => array( 'enable_footer', '==', '1' ), 'default' => '#', ), array( 'id' => 'enable_copyright', 'type' => 'switcher', 'title' => esc_html__( 'Enable Copyright', 'amy-xmas' ), 'label' => esc_html__( 'Enable copyright on all pages.', 'amy-xmas' ), 'default' => true, ), array( 'id' => 'copyright_text', 'type' => 'textarea', 'title' => esc_html__( 'Copyright Content', 'amy-xmas' ), 'sanitize' => false, ), ), ); // ---------------------------------------------- // BLOG // ---------------------------------------------- $options[] = array( 'name' => 'blog', 'title' => esc_html__( 'Blog', 'amy-xmas' ), 'fields' => array( array( 'id' => 'blog_general_heading', 'type' => 'heading', 'content' => esc_html__( 'Blog', 'amy-xmas' ), ), array( 'id' => 'blog_sidebar', 'type' => 'select', 'title' => esc_html__( 'Blog Sidebar', 'amy-xmas' ), 'options' => array( 'right' => esc_html__( 'Right Sidebar', 'amy-xmas' ), 'left' => esc_html__( 'Left Sidebar', 'amy-xmas' ), 'full' => esc_html__( 'No Sidebar', 'amy-xmas' ), ), 'default' => 'right', ), array( 'id' => 'blog_widget', 'type' => 'select', 'title' => esc_html__( 'Blog Sidebar Widget', 'amy-xmas' ), 'options' => amy_xmas_wp_registered_sidebars(), 'default_option' => esc_html__( 'Select a sidebar (default primary)', 'amy-xmas' ), 'dependency' => array( 'blog_sidebar', 'any', 'right,left' ), 'default' => 'rightbar', ), array( 'id' => 'blog_pagination', 'title' => esc_html__( 'Pagination', 'amy-xmas' ), 'type' => 'switcher', 'default' => true, 'dependency' => array( 'blog_layout', 'any', 'list,grid' ), ), ), ); // ---------------------------------------------- // TYPOGRAPHY // ---------------------------------------------- $options[] = array( 'name' => 'typography', 'title' => esc_html__( 'Typography', 'amy-xmas' ), 'fields' => array( array( 'id' => 'typography', 'type' => 'group', 'button_title' => esc_html__( 'Add New Typography', 'amy-xmas' ), 'accordion' => true, 'accordion_title' => esc_html__( 'New Typography', 'amy-xmas' ), 'fields' => array( array( 'id' => 'title', 'type' => 'text', 'title' => esc_html__( 'Title', 'amy-xmas' ), ), array( 'id' => 'selector', 'type' => 'text', 'title' => esc_html__( 'Selector', 'amy-xmas' ), ), array( 'id' => 'font', 'type' => 'typography', 'title' => esc_html__( 'Font Family', 'amy-xmas' ), ), array( 'id' => 'size', 'type' => 'text', 'title' => esc_html__( 'Font Size (optional)', 'amy-xmas' ), ), array( 'id' => 'line_height', 'type' => 'text', 'title' => esc_html__( 'Line Height (optional)', 'amy-xmas' ), ), array( 'id' => 'css', 'type' => 'textarea', 'title' => esc_html__( 'Custom CSS (optional)', 'amy-xmas' ), ), ), 'default' => array( array( 'title' => esc_html__( 'Body Typography', 'amy-xmas' ), 'selector' => 'body', 'font' => array( 'family' => 'Roboto Slab', 'variant' => 'regular', ), 'size' => '15px', ), ), ), array( 'id' => 'subsets', 'type' => 'select', 'title' => esc_html__( 'Subsets', 'amy-xmas' ), 'class' => 'chosen', 'options' => array( 'latin' => 'latin', 'latin-ext' => 'latin-ext', 'cyrillic' => 'cyrillic', 'cyrillic-ext' => 'cyrillic-ext', 'greek' => 'greek', 'greek-ext' => 'greek-ext', 'vietnamese' => 'vietnamese', 'devanagari' => 'devanagari', 'khmer' => 'khmer', ), 'attributes' => array( 'data-placeholder' => esc_html__( 'Subsets', 'amy-xmas' ), 'multiple' => 'multiple', ), 'default' => array( 'latin' ), ), ), ); // ---------------------------------------------- // Custom CSS/JS // ---------------------------------------------- $options[] = array( 'name' => 'custom', 'title' => esc_html__( 'Custom CSS & JS', 'amy-xmas' ), 'fields' => array( array( 'id' => 'custom_css', 'type' => 'textarea', 'title' => esc_html__( 'Custom Css', 'amy-xmas' ), ), array( 'id' => 'custom_js', 'type' => 'textarea', 'title' => esc_html__( 'Custom Js', 'amy-xmas' ), 'after' => esc_html__( 'Do not include tag.', 'amy-xmas' ), ), ), ); AmyFramework::instance( $settings, $options );