__( 'Header', 'akbar' ), 'type' => 'heading' ); // Header Logo upload option $options[] = array( 'name' => __( 'Header Logo', 'akbar' ), 'desc' => __( 'Upload logo for your header. Recommended image size is 100 X 100 pixels.', 'akbar' ), 'id' => 'akbar_header_logo_image', 'type' => 'upload' ); // Header logo and text display type option $header_display_array = array( 'logo_only' => __( 'Header Logo Only', 'akbar' ), 'text_only' => __( 'Header Text Only', 'akbar' ), 'both' => __( 'Show Both', 'akbar' ), 'none' => __( 'Disable', 'akbar' ) ); $options[] = array( 'name' => __( 'Show', 'akbar' ), 'desc' => __( 'Choose the option that you want.', 'akbar' ), 'id' => 'akbar_show_header_logo_text', 'std' => 'text_only', 'type' => 'radio', 'options' => $header_display_array ); // Header Image replace postion $options[] = array( 'name' => __( 'Need to replace Header Image?', 'akbar' ), 'desc' => sprintf( __( 'Click Here', 'akbar' ), admin_url('themes.php?page=custom-header') ), 'type' => 'info' ); // Header image position option $options[] = array( 'name' => __( 'Header Image Position', 'akbar' ), 'desc' => __( 'Choose top header image display position.', 'akbar' ), 'id' => 'akbar_header_image_position', 'std' => 'above', 'type' => 'radio', 'options' => array( 'above' => __( 'Position Above (Default): Display the Header image just above the site title and main menu part.', 'akbar' ), 'below' => __( 'Position Below: Display the Header image just below the site title and main menu part.', 'akbar' ) ) ); /*************************************************************************/ $options[] = array( 'name' => __( 'Archive', 'akbar' ), 'type' => 'heading' ); $options[] = array( 'name' => __( 'Count of posts per row', 'akbar' ), 'desc' => __( 'Choose how many posts showing in row', 'akbar' ), 'id' => 'archive_count_of_posts_per_row', 'std' => '4', 'type' => 'radio', 'options' => array( '2' => __( '2', 'akbar' ), '3' => __( '3', 'akbar' ), '4' => __( '4', 'akbar' ), '5' => __( '5', 'akbar' ), '6' => __( '6', 'akbar' ), ) ); /*************************************************************************/ $options[] = array( 'name' => __( 'Design', 'akbar' ), 'type' => 'heading' ); $options[] = array( 'name' => __( 'Site Layout', 'akbar' ), 'desc' => __( 'Choose your site layout. The change is reflected in whole site.', 'akbar' ), 'id' => 'akbar_site_layout', 'std' => 'box_1218px', 'type' => 'radio', 'options' => array( 'box_1218px' => __( 'Boxed layout with content width of 1218px', 'akbar' ), 'box_978px' => __( 'Boxed layout with content width of 978px', 'akbar' ), 'wide_1218px' => __( 'Wide layout with content width of 1218px', 'akbar' ), 'wide_978px' => __( 'Wide layout with content width of 978px', 'akbar' ), ) ); $options[] = array( 'name' => __( 'Default layout', 'akbar' ), 'desc' => __( 'Select default layout. This layout will be reflected in whole site archives, search etc. The layout for a single post and page can be controlled from below options.', 'akbar' ), 'id' => 'akbar_default_layout', 'std' => 'right_sidebar', 'type' => 'images', 'options' => array( 'right_sidebar' => AKBAR_ADMIN_IMAGES_URL . '/right-sidebar.png', 'left_sidebar' => AKBAR_ADMIN_IMAGES_URL . '/left-sidebar.png', 'no_sidebar_full_width' => AKBAR_ADMIN_IMAGES_URL . '/no-sidebar-full-width-layout.png', 'no_sidebar_content_centered' => AKBAR_ADMIN_IMAGES_URL . '/no-sidebar-content-centered-layout.png', ) ); $options[] = array( 'name' => __( 'Default layout for pages only', 'akbar' ), 'desc' => __( 'Select default layout for pages. This layout will be reflected in all pages unless unique layout is set for specific page.', 'akbar' ), 'id' => 'akbar_pages_default_layout', 'std' => 'right_sidebar', 'type' => 'images', 'options' => array( 'right_sidebar' => AKBAR_ADMIN_IMAGES_URL . '/right-sidebar.png', 'left_sidebar' => AKBAR_ADMIN_IMAGES_URL . '/left-sidebar.png', 'no_sidebar_full_width' => AKBAR_ADMIN_IMAGES_URL . '/no-sidebar-full-width-layout.png', 'no_sidebar_content_centered' => AKBAR_ADMIN_IMAGES_URL . '/no-sidebar-content-centered-layout.png', ) ); $options[] = array( 'name' => __( 'Default layout for single posts only', 'akbar' ), 'desc' => __( 'Select default layout for single posts. This layout will be reflected in all single posts unless unique layout is set for specific post.', 'akbar' ), 'id' => 'akbar_single_posts_default_layout', 'std' => 'right_sidebar', 'type' => 'images', 'options' => array( 'right_sidebar' => AKBAR_ADMIN_IMAGES_URL . '/right-sidebar.png', 'left_sidebar' => AKBAR_ADMIN_IMAGES_URL . '/left-sidebar.png', 'no_sidebar_full_width' => AKBAR_ADMIN_IMAGES_URL . '/no-sidebar-full-width-layout.png', 'no_sidebar_content_centered' => AKBAR_ADMIN_IMAGES_URL . '/no-sidebar-content-centered-layout.png', ) ); $options[] = array( 'name' => __( 'Blog Posts display type', 'akbar' ), 'desc' => __( 'Choose the display type for the latests posts view or posts page view (static front page).', 'akbar' ), 'id' => 'akbar_archive_display_type', 'std' => 'blog_large', 'type' => 'radio', 'options' => array( 'blog_large' => __( 'Blog Image Large', 'akbar' ), 'blog_medium' => __( 'Blog Image Medium', 'akbar' ), 'blog_medium_alternate' => __( 'Blog Image Alternate Medium', 'akbar' ), 'blog_full_content' => __( 'Blog Full Content', 'akbar' ), ) ); // Site primary color option $options[] = array( 'name' => __( 'Primary color option', 'akbar' ), 'desc' => __( 'This will reflect in links, buttons and many others. Choose a color to match your site.', 'akbar' ), 'id' => 'akbar_primary_color', 'std' => '#0FBE7C', 'type' => 'color' ); // Site dark light skin option $options[] = array( 'name' => __( 'Color Skin', 'akbar' ), 'desc' => __( 'Choose the light or dark skin. This will be reflected in whole site.', 'akbar' ), 'id' => 'akbar_color_skin', 'std' => 'light', 'type' => 'images', 'options' => array( 'light' => AKBAR_ADMIN_IMAGES_URL . '/light-color.jpg', 'dark' => AKBAR_ADMIN_IMAGES_URL . '/dark-color.jpg' ) ); $options[] = array( 'name' => __( 'Responsive', 'akbar' ), 'desc' => __( 'Choose if you want your theme to be responsive', 'akbar' ), 'id' => 'akbar_responsive_choose', 'std' => 'responsive', 'type' => 'images', 'options' => array( 'responsive' => AKBAR_ADMIN_IMAGES_URL . '/responsive-design.jpg', 'unresponsive' => AKBAR_ADMIN_IMAGES_URL . '/unresponsive-design.jpg' ) ); $options[] = array( 'name' => __( 'direction', 'akbar' ), 'desc' => __( 'Choose direction of your theme', 'akbar' ), 'id' => 'akbar_direction_choose', 'std' => 'rtl', 'type' => 'images', 'options' => array( 'rtl' => AKBAR_ADMIN_IMAGES_URL . '/rtl.jpg', 'ltr' => AKBAR_ADMIN_IMAGES_URL . '/ltr.jpg' ) ); $options[] = array( 'name' => __( 'Need to replace default background?', 'akbar' ), 'desc' => sprintf( __( 'Click Here', 'akbar' ), admin_url('themes.php?page=custom-background') ).' '.__( 'Note: The background will only be seen if you choose any of the boxed layout option in site layout option.', 'akbar' ), 'type' => 'info' ); $options[] = array( 'name' => __( 'Font Name', 'akbar' ), 'desc' => __( '"yekan","BBCNassim","Lato",sans-serif', 'akbar' ), 'id' => 'akbar_custom_font', 'std' => '', 'type' => 'text' ); $options[] = array( 'name' => __( 'Custom CSS', 'akbar' ), 'desc' => __( 'Write your custom css.', 'akbar' ), 'id' => 'akbar_custom_css', 'std' => '', 'type' => 'textarea' ); /*************************************************************************/ $options[] = array( 'name' => __( 'Additional', 'akbar' ), 'type' => 'heading' ); // Favicon activate option $options[] = array( 'name' => __( 'Activate favicon', 'akbar' ), 'desc' => __( 'Check to activate favicon. Upload fav icon from below option', 'akbar' ), 'id' => 'akbar_activate_favicon', 'std' => '0', 'type' => 'checkbox' ); // Fav icon upload option $options[] = array( 'name' => __( 'Upload favicon', 'akbar' ), 'desc' => __( 'Upload favicon for your site.', 'akbar' ), 'id' => 'akbar_favicon', 'type' => 'upload' ); /*************************************************************************/ $options[] = array( 'name' => __( 'Slider', 'akbar' ), 'type' => 'heading' ); // Slider activate option $options[] = array( 'name' => __( 'Activate slider', 'akbar' ), 'desc' => __( 'Check to activate slider.', 'akbar' ), 'id' => 'akbar_activate_slider', 'std' => '0', 'type' => 'checkbox' ); // Disable slider in blog page $options[] = array( 'name' => __( 'Disable slider in Posts page', 'akbar' ), 'desc' => __( 'Check to disable slider in Posts Page', 'akbar' ), 'id' => 'akbar_blog_slider', 'std' => '0', 'type' => 'checkbox' ); // Slide options for( $i=1; $i<=5; $i++) { $options[] = array( 'name' => sprintf( __( 'Image Upload #%1$s', 'akbar' ), $i ), 'desc' => __( 'Upload slider image.', 'akbar' ), 'id' => 'akbar_slider_image'.$i, 'type' => 'upload' ); $options[] = array( 'desc' => __( 'Enter title for your slider.', 'akbar' ), 'id' => 'akbar_slider_title'.$i, 'std' => '', 'type' => 'text' ); $options[] = array( 'desc' => __( 'Enter your slider description.', 'akbar' ), 'id' => 'akbar_slider_text'.$i, 'std' => '', 'type' => 'textarea' ); $options[] = array( 'desc' => __( 'Enter the button text. Default is "Read more"', 'akbar' ), 'id' => 'akbar_slider_button_text'.$i, 'std' => __( 'Read more', 'akbar' ), 'type' => 'text' ); $options[] = array( 'desc' => __( 'Enter link to redirect slider when clicked', 'akbar' ), 'id' => 'akbar_slider_link'.$i, 'std' => '', 'type' => 'text' ); } return $options; } add_action( 'optionsframework_after','akbar_options_display_sidebar' ); /** * Akbar admin sidebar */ function akbar_options_display_sidebar() { ?>