'half_last', // 'id'=>'logo_text', // 'type'=>'text', // 'note' => "Type the logo text here, then select a color, set a size and font", // 'color_changer'=>true, // 'font_changer'=>true, // 'font_size_changer'=>array(1,10, 'em'), // 'font_preview'=>array(true, true) function make_input($size = null, $id = null, $type = null, $note = null, $values = null, $placeholder = null, $class= null) { $input_settings = array(); $f = new ReflectionFunction('make_input'); foreach ($f->getParameters() as $key => $value) { if(!empty($value->name)) $input_settings[$value->name] = ${$value->name}; } return $input_settings; } return array( 'favico' => array( 'dir' => '/images/unik.png' ), 'tabs' => array( array( 'title' => 'General Options', 'icon' => 1, 'boxes' => array( 'Layout' => array( 'icon' => 'customization', 'size' => 'half', 'columns' => true, 'description' => '', 'class' => 'layout-style', 'input_fields' => array( 'Layout Style' => make_input('half', 'layout_style', 'radio', 'Set your layout style. This setting will be applied for all pages. Pay attention, only with "Boxed" layout you will be abile to view "Main Background" image or color.', array('Wide', 'Boxed'), ''), ), ), 'Favicon' => array( 'icon' => 'customization', 'size' => 'half_last', 'columns' => true, 'description' => '', 'class' => '', 'input_fields' => array( 'Favicon image' => make_input('half', 'favicon_link', 'image_upload', '' ) ), ), 'Background Settings' => array( 'icon' => 'customization', 'size' => 'full', 'columns' => true, 'description' => '', 'class' => '', 'input_fields' => array( 'Main background' => make_input('half', 'body_background', 'image_upload', '' ), 'Background Color' => make_input('half', 'body_color', 'colorpicker', '' ), 'Canvas Color' => make_input('half', 'canvas_color', 'colorpicker', '' ), 'Background Repeat' => make_input('half', 'body_background_repeat', 'radio', '', array('Repeat', 'No-repeat', 'Repeat-X', 'Repeat-Y') ), 'Background Position' => make_input('half', 'body_background_position', 'radio', '', array('Scroll', 'Fixed') ), ), ), ) ), array( 'title' => 'Typography', 'icon' => 3, 'boxes' => array( 'Global Typography' => array( 'icon' => 'customization', 'size' => 'half', 'columns' => true, 'description' => '', 'class' => '', 'input_fields' => array( 'Global Typo'=>array( 'size'=>'half', 'id'=>'global_typo', 'type'=>'text', 'note' => "", 'color_changer'=>true, 'font_changer'=>true, 'font_size_changer'=>array(1,300, 'px'), 'font_preview'=>array(false, false), 'hide_input'=>true, ), ), ), 'Links style' => array( 'icon' => 'customization', 'size' => 'half', 'columns' => true, 'description' => '', 'class' => '', 'input_fields' => array( 'Links options'=>array( 'size'=>'half', 'id'=>'links_settings', 'type'=>'text', 'note' => "", 'color_changer'=>true, 'font_changer'=>true, 'font_size_changer'=>array(1,300, 'px'), 'font_preview'=>array(false, false), 'hide_input'=>true, ), ), ), 'Headings style' => array( 'icon' => 'customization', 'size' => 'full', 'columns' => true, 'description' => '', 'class' => '', 'input_fields' => array( 'Headings options'=>array( 'size'=>'full', 'id'=>'headings_settings', 'type'=>'text', 'note' => "", 'color_changer'=>true, 'font_changer'=>true, 'font_size_changer'=> false, 'font_preview'=>array(false, false), 'hide_input'=>true, ), 'Headings 1'=>array( 'size'=>'1_3', 'id'=>'headings_one_settings', 'type'=>'text', 'note' => "", 'color_changer'=>false, 'font_changer'=>false, 'font_size_changer'=>array(1,300, 'px'), 'font_preview'=>array(false, false), 'hide_input'=>true, ), 'Headings 2'=>array( 'size'=>'1_3', 'id'=>'headings_two_settings', 'type'=>'text', 'note' => "", 'color_changer'=>false, 'font_changer'=>false, 'font_size_changer'=>array(1,300, 'px'), 'font_preview'=>array(false, false), 'hide_input'=>true, ), 'Headings 3'=>array( 'size'=>'1_3_last', 'id'=>'headings_three_settings', 'type'=>'text', 'note' => "", 'color_changer'=>false, 'font_changer'=>false, 'font_size_changer'=>array(1,300, 'px'), 'font_preview'=>array(false, false), 'hide_input'=>true, ), 'Headings 4'=>array( 'size'=>'1_3', 'id'=>'headings_four_settings', 'type'=>'text', 'note' => "", 'color_changer'=>false, 'font_changer'=>false, 'font_size_changer'=>array(1,300, 'px'), 'font_preview'=>array(false, false), 'hide_input'=>true, ), 'Headings 5'=>array( 'size'=>'1_3', 'id'=>'headings_five_settings', 'type'=>'text', 'note' => "", 'color_changer'=>false, 'font_changer'=>false, 'font_size_changer'=>array(1,300, 'px'), 'font_preview'=>array(false, false), 'hide_input'=>true, ), 'Headings 6'=>array( 'size'=>'1_3_last', 'id'=>'headings_six_settings', 'type'=>'text', 'note' => "", 'color_changer'=>false, 'font_changer'=>false, 'font_size_changer'=>array(1,300, 'px'), 'font_preview'=>array(false, false), 'hide_input'=>true, ), ), ), ) ), array( 'title' => 'Customize defaults', 'icon' => 1, 'boxes' => array( 'Main background colors' => array( 'icon' => 'customization', 'size' => 'full', 'columns' => true, 'description' => 'Overwrite default colors.', 'class' => '', 'input_fields' => array( 'Primary' => make_input('1_3', 'primary_color', 'colorpicker', '' ), 'Secondary' => make_input('1_3', 'secondary_color', 'colorpicker', '' ) ), ), ), ), array( 'title' => 'Header', 'icon' => 8, 'boxes' => array( 'Header Settings' => array( 'icon' => 'customization', 'size' => 'full', 'columns' => true, 'description' => '', 'class' => '', 'input_fields' => array( 'Header Color' => make_input('half', 'header_color', 'colorpicker', '' ), 'Navigation Settings' => make_input('half', 'navigation', 'radio', '', array('Regular', 'Sticky', 'Sticky hide on scroll'), ''), ), ), 'Identity Settings' => array( 'icon' => 'customization', 'size' => 'full', 'columns' => true, 'description' => '', 'class' => 'identity-helper', 'input_fields' => array( 'Logo' => make_input('half', 'logo_image', 'image_upload', '' ), 'Logo As Text'=>array( 'size'=>'half', 'id'=>'logo_text', 'type'=>'text', 'note' => "", 'color_changer'=>true, 'font_changer'=>true, 'font_size_changer'=>array(1,300, 'px'), 'font_preview'=>array(true, true) ) ), ) ) ), array( 'title' => 'Footer', 'icon' => 8, 'boxes' => array( 'Footer info' => array( 'icon' => 'customization', 'size' => 'full', 'columns' => true, 'description' => '', 'class' => '', 'input_fields' => array( 'Footer copyright' => make_input('half', 'footer_info', 'textarea', 'Insert copyright info', '', 'your content'), ), ), 'Social Platforms'=>array( 'icon'=>'social', 'description'=>"Insert the link to the social share page.", 'size'=>'full', 'columns'=>true, 'input_fields'=>array( array( 'id'=>'social_platforms', 'size'=>'full', 'type'=>'social_platforms', 'platforms'=>array('facebook','twitter','linkedin','rss','dribbble','google') ) ) ) ), ), array( 'title' => '404 eror', 'icon' => 8, 'boxes' => array( '404 content' => array( 'icon'=>'', 'size'=>'full', 'description'=>'Here you can drop your 404 error content', 'input_fields' => array( 'Page background' => make_input('full', 'error_background', 'image_upload', '' ), 'Erorr emblem' => make_input('full', 'error_emblem', 'image_upload', '' ), '404 error page content' => make_input('full', '404_error', 'textarea', 'Add content for your 404 page', '', 'your content'), ) ), ) ), array( 'title' => 'Developer', 'icon' => 6, 'boxes' => array( 'Custom CSS' => array( 'icon'=>'css', 'size'=>'full', 'description'=>'Here you can write your personal CSS for customizing the classes you choose to modify.', 'input_fields' => array( make_input('half', 'custom_css', 'textarea', '' ) ) ), 'Custom js' => array( 'icon'=>'css ', 'size'=>'full', 'description'=>'Here you can write your personal CSS for customizing the classes you choose to modify.', 'input_fields' => array( make_input('half', 'custom_js', 'textarea', '' ) ) ), 'Twitter Settings'=>array( 'icon' => 'customization', 'description'=>"Used by the Twitter widget. Visit Twitter Apps , create your App , press 'Generate Access token at the bottom', insert the following from the 'Oauth' tab.", 'size'=>'full', 'columns'=>false, 'input_fields' =>array( 'Consumer Key' => array( 'id' => 'twitter_consumerkey', 'type' => 'text', 'size' => '1' ), 'Consumer Secret' => array( 'id' => 'twitter_consumersecret', 'type' => 'text', 'size' => '1', ), 'Access Token' => array( 'id' => 'twitter_accesstoken', 'type' => 'text', 'size' => '1', ), 'Access Token Secret' => array( 'id' => 'twitter_accesstokensecret', 'type' => 'text', 'size' => '1', ) ) ), ), ), array( 'title' => 'Subscribers', 'icon' => 3, 'boxes' => array( 'Subscribe form meta' => array( 'icon'=>'', 'size'=>'full', 'description'=>'Here you can add additional info for subscribe form', 'input_fields' => array( 'subscribe title and text' => make_input('full', 'subscribe_title', 'text', '' ), make_input('full', 'subscribe_text', 'textarea', '' ), ) ), 'Subscribers'=>array( 'icon' => 'social', 'description'=>'First 20 subscribers are listed here. To get the full list export files using buttons below:', 'size'=>'full', 'input_fields' => array( array( 'type'=>'subscription', 'id'=>'subscribe-form' ) ) ) ), ), array( 'title' => 'Our Themes', 'icon' => 8, 'type'=>'iframe', 'link'=>'http://teslathemes.com/our-themes/' ) ), 'option_saved_text' => 'Options successfully saved', 'styles' => array( array('wp-color-picker'),'style','select2' ), 'scripts' => array( array( 'jquery', 'jquery-ui-core','jquery-ui-datepicker','wp-color-picker' ), 'select2.min','jquery.cookie','tt_options', 'admin_js' ) );