$sections[] = array( 'title' => __('General', 'aakanksha'), 'header' => __('Welcome to the Aakanksha Options Framework', 'aakanksha'), 'desc' => '', 'icon_class' => 'el-icon-large', 'icon' => 'el-icon-cog', 'submenu' => true, 'fields' => array( array( 'id'=>'custom_logo', 'url'=> true, 'type' => 'media', 'title' => __('Logo', 'aakanksha'), 'default' =>'', 'subtitle' => __('Upload custom logo to your blog page.', 'aakanksha'), ), /* array( 'id'=>'favicon', 'url'=> true, 'type' => 'media', 'title' => __('Your Favicon', 'aakanksha'), 'default' => array( 'url' => get_template_directory_uri() .'/images/icons/favicon.png' ), 'subtitle' => __('Upload a file( png, ico, jpg, gif or bmp ) from your computer (maximum size:1MB ).', 'aakanksha'), ),*/ array( 'id'=>'logo_width', 'type' => 'text', 'default' => '220', 'title' => __('Logo’s width (px)', 'aakanksha'), 'subtitle' => __('Ex:220', 'aakanksha'), ), array( 'id'=>'logo_top', 'type' => 'text', 'default' => '0', 'title' => __('Logo’s margin-top (px)', 'aakanksha'), 'subtitle' => __('Ex: 10', 'aakanksha'), ), array( 'id'=>'logo_left', 'type' => 'text', 'default' => '30', 'title' => __('Logo’s margin-left (px)', 'aakanksha'), 'subtitle' => __('Ex: 30', 'aakanksha'), ), /* array( 'id'=>'touch_icon', 'url'=> true, 'type' => 'media', 'title' => __('Apple touch icon', 'aakanksha'), 'default' => array( 'url' => get_template_directory_uri() .'/images/icons/apple-touch-icon-16x16.png' ), 'subtitle' => __('Upload your touch icon here.', 'aakanksha'), ), array( 'id'=>'touch_icon_72', 'url'=> true, 'type' => 'media', 'title' => __('Apple touch icon 72x72', 'aakanksha'), 'default' => array( 'url' => get_template_directory_uri() .'/images/icons/apple-touch-icon-72x72.png' ), 'subtitle' => __('Upload your touch icon here.', 'aakanksha'), ), array( 'id'=>'touch_icon_144', 'url'=> true, 'type' => 'media', 'title' => __('Apple touch icon 144x144', 'aakanksha'), 'default' => array( 'url' => get_template_directory_uri() .'/images/icons/apple-touch-icon-144x144.png' ), 'subtitle' => __('Upload your touch icon here.', 'aakanksha'), ),*/ ), ); // Typography -------------------------------------------------------------------------- > $sections[] = array( 'title' => __('Typography', 'aakanksha'), 'header' => '', 'desc' => '', 'icon_class' => 'el-icon-large', 'icon' => 'el-icon-font', 'submenu' => true, 'fields' => array( array( 'id'=>'body_font', 'type' => 'typography', 'title' => __('Body', 'aakanksha'), 'compiler'=>false, 'google'=>true, 'font-backup'=>false, 'font-style'=>true, 'subsets'=>true, 'font-size'=>true, 'line-height'=>false, 'word-spacing'=>false, 'letter-spacing'=>false, 'color'=>true, 'preview'=>true, 'output' => array('body'), 'units'=>'px', 'subtitle'=> __('Choose custom font options to use for the main body text.', 'aakanksha'), 'default'=> array( 'font-family'=>'Lato', 'font-size'=>'14px', 'color'=>'#5f6f81', 'font-weight'=>'300', ) ), array( 'id'=>'menu_font', 'type' => 'typography', 'title' => __('Menu', 'aakanksha'), 'compiler'=>false, 'google'=>true, 'font-backup'=>false, 'font-style'=>false, 'subsets'=>false, 'text-align'=>false, 'font-size'=>true, 'line-height'=>false, 'word-spacing'=>false, 'letter-spacing'=>false, 'color'=>false, 'preview'=>true, 'output' => array('#mainnav ul li a, #mainnav ul ul a, #mainnav-mobi, .header-wrap, .site-title, .site-description'), 'units'=>'px', 'subtitle'=> __('Choose custom font options to use for the main navigation menu.', 'aakanksha'), 'default'=> array( 'font-family'=>'Lato', 'font-size'=>'14px', 'font-weight'=>'700', 'color'=>'#000000' ) ), array( 'id'=>'headings_font', 'type' => 'typography', 'title' => __('Headings', 'aakanksha'), 'compiler'=>false, 'google'=>true, 'font-backup'=>false, 'font-style'=>false, 'subsets'=>true, 'font-size'=>false, 'line-height'=>false, 'word-spacing'=>false, 'letter-spacing'=>false, 'color'=>false, 'preview'=>true, 'output' => array('h1, h2, h3, h4, h5, h6'), 'units'=>'px', 'subtitle'=> __('Choose custom font options to use for the headings (h1, h2, h3,...)', 'aakanksha'), 'default'=> array( 'font-family'=>'Lato', 'font-weight'=>'700', 'color'=>'#000000' ), ), ), ); // Styling -------------------------------------------------------------------------- > /*$sections[] = array( 'icon' => 'el-icon-brush', 'icon_class' => 'el-icon-large', 'title' => __('Styling', 'aakanksha'), 'submenu' => true, 'fields' => array( array( 'id'=>'main_color', 'type' => 'color', 'title' => __('Main Color', 'aakanksha'), 'subtitle' => __('Choose color.', 'aakanksha'), 'default' => '#e8432e', 'transparent'=>false, 'validate' => 'color', ), array( 'id'=>'link_color', 'type' => 'color', 'title' => __('Links Color', 'aakanksha'), 'subtitle' => __('Choose color.', 'aakanksha'), 'default' => '#e8432e', 'transparent'=>false, 'validate' => 'color', ), ) );*/ // Blog -------------------------------------------------------------------------- > $sections[] = array( 'icon' => 'el-icon-blogger', 'icon_class' => 'el-icon-large', 'title' => __('Blog Setting', 'aakanksha'), 'submenu' => true, 'fields' => array( array( 'id'=>'header_blog_title', 'type' => 'text', 'default' => 'Blog', 'title' => __('Type your title', 'aakanksha'), //'subtitle' => __('Ex:560(px)', 'aakanksha'), ), array( 'id'=>'header_blog_title_color', 'type' => 'color', 'title' => __('Color of Title', 'aakanksha'), 'subtitle' => __('Choose color for the title.', 'aakanksha'), 'default' => '#000000', 'transparent'=>false, 'validate' => 'color', ), array( 'id'=>'header_blog_subtitle', 'type' => 'textarea', 'default' => 'Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo. ', 'title' => __('Type your sub title', 'aakanksha'), //'subtitle' => __('Ex:560(px)', 'aakanksha'), ), array( 'id'=>'header_blog_subtitle_color', 'type' => 'color', 'title' => __('Choose color for the sub-title', 'aakanksha'), 'subtitle' => __('Select your font color for Sub Title.', 'aakanksha'), 'default' => '#ffffff', 'transparent'=>false, 'validate' => 'color', ), array( 'id'=>'header_blog_color', 'type' => 'color', 'title' => __('Color header background', 'aakanksha'), 'subtitle' => __('Choose the color for the header backgrounds.', 'aakanksha'), 'default' => '#cccccc', 'transparent'=>false, 'validate' => 'color', ), array( 'id'=>'header_blog_img', 'url'=> true, 'type' => 'media', 'title' => __('Background header image', 'aakanksha'), 'default' =>'', 'subtitle' => __('Upload an image for the background header.', 'aakanksha'), ), array( 'id' => 'header_blog_repeat', 'type' => 'button_set', 'title' => __('Background Image Repeat', 'aakanksha'), 'subtitle' => __('Select your preferred background style', 'aakanksha'), //Must provide key => value pairs for options 'options' => array('no-repeat' => __('No Repeat','aakanksha'), 'repeat' => __('Repeat','aakanksha')), 'default' => '1' ), array( 'id'=>'header_blog_parallax', 'type' => 'switch', 'title' => __('Parallax header background', 'aakanksha'), 'subtitle'=> __('Enable this option to replace the header image with animated parallax effect.', 'aakanksha'), 'default' => '1', 'on' => __('On', 'aakanksha' ), 'off' => __('Off', 'aakanksha' ), ), array( 'id'=>'header_blog_cover', 'type' => 'switch', 'title' => __('Background Header Cover', 'aakanksha'), 'subtitle'=> __('Enable this option to cover the header blog’s images.', 'aakanksha'), 'default' => '1', 'on' => __('On', 'aakanksha' ), 'off' => __('Off', 'aakanksha' ), ), array( 'id'=>'social_share_blog', 'type' => 'checkbox', 'title' => __('Social Sharing Links', 'aakanksha'), 'subtitle' => __('Select the social sharing links to share your content across a range of social networks.', 'aakanksha' ), 'options' => array( 'twitter' => 'Twitter', 'facebook' => 'Facebook', 'google_plus' => 'Google Plus', ), 'default' => array( 'twitter' => '1', 'facebook' => '1', 'google_plus' => '1', ) ), ) ); // Portfolio -------------------------------------------------------------------------- > $sections[] = array( 'icon' => 'el-icon-website', 'icon_class' => 'el-icon-large', 'title' => __('Portfolio Setting', 'aakanksha'), 'submenu' => true, 'fields' => array( array( 'id'=>'btn_port_getintouch', 'type' => 'switch', 'title' => __('Show / Hide button Get In Touch', 'aakanksha'), 'subtitle'=> __('Enable this,“Get in touch” button will be displayed at the end of every portfolio posts.', 'aakanksha'), 'default' => '1', 'on' => __('On', 'aakanksha' ), 'off' => __('Off', 'aakanksha' ), ), array( 'id'=>'btn_port_getintouch_link', 'type' => 'text', 'title' => __('Link button Get in Touch', 'aakanksha'), 'subtitle' => __('', 'aakanksha'), 'default' => '' ), array( 'id'=>'social_share_port', 'type' => 'checkbox', 'title' => __('Social Sharing Links', 'aakanksha'), 'subtitle' => __('Select the social sharing links to share your content across a range of social networks.', 'aakanksha' ), 'options' => array( 'twitter' => 'Twitter', 'facebook' => 'Facebook', 'google_plus' => 'Google Plus', ), 'default' => array( 'twitter' => '1', 'facebook' => '1', 'google_plus' => '1', ) ), ) ); // Footer -------------------------------------------------------------------------- > $sections[] = array( 'icon' => 'el-icon-bookmark', 'icon_class' => 'el-icon-large', 'title' => __('Footer', 'aakanksha'), 'submenu' => true, 'fields' => array( array( 'id'=>'contact_form', 'type' => 'text', 'title' => __('Contact 7 form shortcode', 'aakanksha'), 'subtitle' => __('*NOTE : Make sure the code doesn\'t contain double quotes. Replace double quotes with single quote.
Ex: [contact-form-7 id=\'1\' title=\'Contact form 1\']', 'aakanksha'), 'default' => '' ), array( 'id'=>'copyright', 'type' => 'textarea', 'title' => __('Copyright', 'aakanksha'), 'subtitle' => __('Type your website copyright.', 'aakanksha'), 'default' => "2016 Aakanksha. All right reserved." ), array( 'id'=>'address_footer', 'type' => 'text', 'default' => '173A Nguyen Van Troi, Phu Nhuan, HCMC', 'title' => __('Type your address', 'aakanksha'), ), array( 'id'=>'phone_footer', 'type' => 'text', 'default' => '0988 11 22 33', 'title' => __('Type your phone', 'aakanksha'), ), array( 'id'=>'email_footer', 'type' => 'text', 'default' => 'aakanksha.singh@thetechpower.com', 'title' => __('Type your email', 'aakanksha'), ), array( 'id'=>'footer_blog_title', 'type' => 'text', 'default' => 'Contact Us', 'title' => __('Type your title', 'aakanksha'), ), array( 'id'=>'footer_blog_title_color', 'type' => 'color', 'title' => __('Color of Title', 'aakanksha'), 'subtitle' => __('Choose color for the title.', 'aakanksha'), 'default' => '#ffffff', 'transparent'=>false, 'validate' => 'color', ), array( 'id'=>'footer_blog_subtitle', 'type' => 'textarea', 'default' => 'Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo. ', 'title' => __('Type your sub title', 'aakanksha'), ), array( 'id'=>'footer_blog_subtitle_color', 'type' => 'color', 'title' => __('Color of Sub Title', 'aakanksha'), 'subtitle' => __('Choose color for the sub-title.', 'aakanksha'), 'default' => '#ffffff', 'transparent'=>false, 'validate' => 'color', ), array( 'id'=>'footer_blog_color', 'type' => 'color', 'title' => __('Background Color for Footer', 'aakanksha'), 'subtitle' => __('Choose background color for blog header.', 'aakanksha'), 'default' => '#cccccc', 'transparent'=>false, 'validate' => 'color', ), array( 'id'=>'footer_blog_img', 'url'=> true, 'type' => 'media', 'title' => __('Footer Background', 'aakanksha'), 'default' => '', 'subtitle' => __('Upload an image for footer background.', 'aakanksha'), 'default' => "" ), array( 'id' => 'footer_blog_repeat', 'type' => 'button_set', 'title' => __('Background Image Repeat', 'aakanksha'), 'subtitle' => __('Select your preferred background style', 'aakanksha'), //Must provide key => value pairs for options 'options' => array('no-repeat' => __('No Repeat','aakanksha'), 'repeat' => __('Repeat','aakanksha')), 'default' => '1' ), array( 'id'=>'footer_blog_parallax', 'type' => 'switch', 'title' => __('Parallax Background Footer', 'aakanksha'), 'subtitle'=> __('Enable this option to replace the header image with animated parallax effect.', 'aakanksha'), 'default' => '1', 'on' => __('On', 'aakanksha' ), 'off' => __('Off', 'aakanksha' ), ), array( 'id'=>'footer_blog_cover', 'type' => 'switch', 'title' => __('Background Footer Cover', 'aakanksha'), 'subtitle'=> __('Enable this option to cover the footer background images.', 'aakanksha'), 'default' => '1', 'on' => __('On', 'aakanksha' ), 'off' => __('Off', 'aakanksha' ), ), ) ); // Custom CSS -------------------------------------------------------------------------- > $sections[] = array( 'icon' => 'el-icon-css', 'icon_class' => 'el-icon-large', 'title' => __('Custom CSS', 'aakanksha'), 'submenu' => true, 'fields' => array( array( 'id'=>'custom_css', 'type' => 'ace_editor', 'title' => __('CSS Code', 'aakanksha'), 'subtitle' => __('Paste your custom CSS code here.', 'aakanksha'), 'mode' => 'css', 'theme' => 'monokai', //'desc' => 'Possible modes can be found at http://ace.c9.io/.', 'default' => "#test{\nmargin: 0 auto;\n}" ), ) ); // SEO -------------------------------------------------------------------------- > $sections[] = array( 'icon' => 'el-icon-asterisk', 'icon_class' => 'el-icon-large', 'title' => __('SEO', 'aakanksha'), 'submenu' => true, 'fields' => array( array( 'id'=>'meta_author', 'type' => 'textarea', 'title' => __('Meta Author', 'aakanksha'), 'subtitle' => __('Type your meta author.', 'aakanksha'), 'desc' => "", 'default' => "" ), array( 'id'=>'meta_description', 'type' => 'textarea', 'title' => __('Meta Description', 'aakanksha'), 'subtitle' => __('Type your meta description.', 'aakanksha'), 'desc' => "", 'default' => "" ), array( 'id'=>'meta_keyword', 'type' => 'textarea', 'title' => __('Meta Keyword', 'aakanksha'), 'subtitle' => __('Type your meta keyword.', 'aakanksha'), 'desc' => "", 'default' => "" ), array( 'id'=>'google_analytics', 'type' => 'textarea', 'title' => __('Google Analytics Code', 'aakanksha'), 'subtitle' => __('Paste your Google Analytics javascript or other tracking code here. This code will be added before the closing tag.', 'aakanksha'), 'desc' => "", 'default' => "" ) ) ); // Social -------------------------------------------------------------------------- > $sections[] = array( 'icon' => 'el-icon-twitter', 'icon_class' => 'el-icon-large', 'title' => __('Social Networks', 'aakanksha'), 'submenu' => true, 'fields' => array( array( 'id'=>'facebook', 'type' => 'text', 'title' => __('Facebook', 'aakanksha'), 'subtitle' => __('Insert your Facebook fanpage here.', 'aakanksha'), 'desc' => "", 'default' => "https://facebook.com/thetechpower" ), array( 'id'=>'twitter', 'type' => 'text', 'title' => __('Twitter', 'aakanksha'), 'subtitle' => __('Insert your Twitter URL here.', 'aakanksha'), 'desc' => "", 'default' => "https://twitter.com/iamthetechpower" ), array( 'id'=>'dribbble', 'type' => 'text', 'title' => __('Dribbble', 'aakanksha'), 'subtitle' => __('Insert your Dribbble URL here.', 'aakanksha'), 'desc' => "", 'default' => "" ), array( 'id'=>'google_plus', 'type' => 'text', 'title' => __('Google Plus', 'aakanksha'), 'subtitle' => __('Insert your Google Plus URL here.', 'aakanksha'), 'desc' => "", 'default' => "" ), array( 'id'=>'pinterest', 'type' => 'text', 'title' => __('Pinterest', 'aakanksha'), 'subtitle' => __('Insert your Pinterest URL here.', 'aakanksha'), 'desc' => "", 'default' => "https://www.pinterest.com/aakanksha5742" ), array( 'id'=>'flickr', 'type' => 'text', 'title' => __('Flickr', 'aakanksha'), 'subtitle' => __('Insert your Flickr URL here.', 'aakanksha'), 'desc' => "", 'default' => "" ), array( 'id'=>'linkedin', 'type' => 'text', 'title' => __('Linkedin', 'aakanksha'), 'subtitle' => __('Insert your Linkedin URL here.', 'aakanksha'), 'desc' => "", 'default' => "" ), ) ); global $ReduxFramework; $ReduxFramework = new ReduxFramework($sections, $args, $tabs); // Function used to retrieve theme option values if ( ! function_exists('aakanksha_option') ) { function aakanksha_option($id, $fallback = false, $param = false ) { global $aakanksha_options; if ( $fallback == false ) $fallback = ''; $output = ( isset($aakanksha_options[$id]) && $aakanksha_options[$id] !== '' ) ? $aakanksha_options[$id] : $fallback; if ( !empty($aakanksha_options[$id]) && $param ) { $output = $aakanksha_options[$id][$param]; } return $output; } }