optionsframework_options

The Onetone optionsframework options function.

Description

optionsframework_options(); 

Usage

  1. if ( !function_exists( 'optionsframework_options' ) ) { 
  2. require_once '/includes/admin-options.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = optionsframework_options(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/admin-options.php  
  1. function optionsframework_options() { 
  2. global $social_icons, $sidebars, $options_saved, $onetone_home_sections; 
  3.  
  4. $os_fonts = array_merge(array('' => __( '-- Default --', 'onetone' ) ), $os_fonts); 
  5. $font_color = array('color' => ''); 
  6. $section_font_color = array('color' => ''); 
  7.  
  8. $section_title_typography_defaults_1 = array( 
  9. 'size' => '36px',  
  10. 'face' => '',  
  11. 'style' => '700',  
  12. 'color' => '#666666' ); 
  13.  
  14. $section_content_typography_defaults_1 = array( 
  15. 'size' => '14px',  
  16. 'face' => '',  
  17. 'style' => '400',  
  18. 'color' => '#666666' ); 
  19.  
  20. $typography_options = array( 
  21. 'sizes' => array( '10', '11', '12', '13', '14', '16', '18', '20', '24', '26', '28', '30', '35', '36', '38', '40', '46', '48', '50', '60', '64' ),  
  22. 'faces' => $os_fonts,  
  23. 'styles' => array( 
  24. 'normal' => 'normal',  
  25. 'italic' => 'italic',  
  26. 'bold' => 'bold',  
  27. 'bold italic' => 'bold italic',  
  28. '100' => '100',  
  29. '200' => '200',  
  30. '300' => '300',  
  31. '400' => '400',  
  32. '500' => '500',  
  33. '600' => '600',  
  34. '700' => '700',  
  35. '800' => '800',  
  36. '900' => '900'  
  37. ),  
  38.  
  39. 'color' => true ); 
  40.  
  41. $choices = array(  
  42.  
  43. 'yes' => __( 'Yes', 'onetone' ),  
  44. 'no' => __( 'No', 'onetone' ) 
  45.  
  46. ); 
  47. $choices2 = array(  
  48.  
  49. '1' => __( 'Yes', 'onetone' ),  
  50. '0' => __( 'No', 'onetone' ) 
  51.  
  52. ); 
  53. $choices_reverse = array(  
  54.  
  55. 'no'=> __( 'No', 'onetone' ),  
  56. 'yes' => __( 'Yes', 'onetone' ) 
  57.  
  58. ); 
  59. $align = array(  
  60. '' => __( 'Default', 'onetone' ),  
  61. 'left' => __( 'left', 'onetone' ),  
  62. 'right' => __( 'right', 'onetone' ),  
  63. 'center' => __( 'center', 'onetone' )  
  64. ); 
  65. $repeat = array(  
  66.  
  67. 'repeat' => __( 'repeat', 'onetone' ),  
  68. 'repeat-x' => __( 'repeat-x', 'onetone' ),  
  69. 'repeat-y' => __( 'repeat-y', 'onetone' ),  
  70. 'no-repeat' => __( 'no-repeat', 'onetone' ) 
  71.  
  72. ); 
  73.  
  74. $target = array( 
  75. '_blank' => __( 'Blank', 'onetone' ),  
  76. '_self' => __( 'Self', 'onetone' ) 
  77. ); 
  78.  
  79. $position = array(  
  80.  
  81. 'top left' => __( 'top left', 'onetone' ),  
  82. 'top center' => __( 'top center', 'onetone' ),  
  83. 'top right' => __( 'top right', 'onetone' ),  
  84. 'center left' => __( 'center left', 'onetone' ),  
  85. 'center center' => __( 'center center', 'onetone' ),  
  86. 'center right' => __( 'center right', 'onetone' ),  
  87. 'bottom left' => __( 'bottom left', 'onetone' ),  
  88. 'bottom center' => __( 'bottom center', 'onetone' ),  
  89. 'bottom right' => __( 'bottom right', 'onetone' ) 
  90.  
  91. ); 
  92.  
  93. $opacity = array_combine(range(0.1, 1, 0.1), range(0.1, 1, 0.1)); 
  94. $font_size = array_combine(range(1, 100, 1), range(1, 100, 1)); 
  95. $section_title = array("POWERFUL ONE PAGE THEME", "", "", "GALLERY", "OUR TEAM", "ABOUT", "TESTIMONIALS", "", "CONTACT", "", "", "", "", ""); 
  96. $section_color = array("#ffffff", "", "", "", "", "#ffffff", "#ffffff", "", ""); 
  97. $section_subtitle = array( 
  98. "BASED ON BOOTSTRAP FRAMEWORK AND SHORTCODES, QUICK SET AND EASY BUILD,  
  99. SHINES ONE PAGE SMALL BUSINESS WEBSITE.",  
  100. "",  
  101. "",  
  102. "Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere c.<br/>Etiam ut dui eu nisi lobortis rhoncus ac quis nunc.",  
  103. "Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere c.<br/>Etiam ut dui eu nisi lobortis rhoncus ac quis nunc.",  
  104. "Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere c.<br/>Etiam ut dui eu nisi lobortis rhoncus ac quis nunc.", "Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere c.<br/>Etiam ut dui eu nisi lobortis rhoncus ac quis nunc.", "", "Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere c.<br/>Etiam ut dui eu nisi lobortis rhoncus ac quis nunc."); 
  105.  
  106.  
  107.  
  108. $section_menu = array("Home", "", "Services", "Gallery", "Team", "About", "Testimonials", "", "Contact"); 
  109. $section_slug = array('home', '', 'services', 'gallery', 'team', 'about', 'testimonials', '', 'contact'); 
  110. $section_padding = array('', '30px 0', '50px 0', '50px 0', '50px 0', '50px 0', '10px 0 50px', '50px 0', '50px 0'); 
  111. $text_align = array('center', 'left', 'center', 'center', 'center', 'left', 'center', 'left', 'center'); 
  112.  
  113. if( $options_saved ) 
  114. $content_model = '1'; 
  115. else 
  116. $content_model = '0'; 
  117.  
  118. $section_1_content = onetone_option( 'section_1_content');  
  119. $section_1_content = $section_1_content=='slider'?1:$section_1_content; 
  120.  
  121. $default_section_num = count($section_menu); 
  122. $section_background = array( 
  123. array( 
  124. 'color' => '#333333',  
  125. 'image' => ONETONE_THEME_BASE_URL.'/images/home-bg01.jpg',  
  126. 'repeat' => 'repeat',  
  127. 'position' => 'top left',  
  128. 'attachment'=>'scroll' ),  
  129. array( 
  130. 'color' => '#eeeeee',  
  131. 'image' => '',  
  132. 'repeat' => 'repeat',  
  133. 'position' => 'top left',  
  134. 'attachment'=>'scroll' ),  
  135. array( 
  136. 'color' => '#ffffff',  
  137. 'image' => '',  
  138. 'repeat' => 'repeat',  
  139. 'position' => 'top left',  
  140. 'attachment'=>'scroll' ),  
  141. array( 
  142. 'color' => '#eeeeee',  
  143. 'image' => '',  
  144. 'repeat' => 'repeat',  
  145. 'position' => 'top left',  
  146. 'attachment'=>'scroll' ),  
  147. ## section 5 
  148. array( 
  149. 'color' => '#ffffff',  
  150. 'image' => '',  
  151. 'repeat' => 'repeat',  
  152. 'position' => 'top left',  
  153. 'attachment'=>'scroll' ),  
  154. array( 
  155. 'color' => '',  
  156. 'image' => esc_url('https://www.mageewp.com/onetone/wp-content/uploads/sites/17/2015/11/banner_large.jpg'),  
  157. 'repeat' => 'repeat',  
  158. 'position' => 'top left',  
  159. 'attachment'=>'scroll' ),  
  160. array( 
  161. 'color' => '#eda869',  
  162. 'image' => esc_url('https://www.mageewp.com/onetone/wp-content/uploads/sites/17/2015/11/123.jpg'),  
  163. 'repeat' => 'no-repeat',  
  164. 'position' => 'bottom center',  
  165. 'attachment'=>'scroll' ),  
  166. array( 
  167. 'color' => '#ffffff',  
  168. 'image' => '',  
  169. 'repeat' => 'repeat',  
  170. 'position' => 'top left',  
  171. 'attachment'=>'scroll' ),  
  172.  
  173. array( 
  174. 'color' => '',  
  175. 'image' => esc_url('https://www.mageewp.com/onetone/wp-content/uploads/sites/17/2015/11/last4.jpg'),  
  176. 'repeat' => 'repeat',  
  177. 'position' => 'top left',  
  178. 'attachment'=>'scroll' ) 
  179.  
  180.  
  181.  
  182. ); 
  183. $section_css_class = array("section-banner", "", "", "", "", "", "", "", ""); 
  184.  
  185.  
  186. $section_title_typography_defaults = array( 
  187. array('size' => '64px', 'face' => '', 'style' => '400', 'color' => '#ffffff' ),  
  188. array('size' => '48px', 'face' => '', 'style' => 'normal', 'color' => '#666666' ),  
  189. array('size' => '48px', 'face' => '', 'style' => 'normal', 'color' => '#666666' ),  
  190. array('size' => '36px', 'face' => '', 'style' => 'bold', 'color' => '#666666' ),  
  191. array('size' => '36px', 'face' => '', 'style' => 'bold', 'color' => '#666666' ),  
  192. array('size' => '36px', 'face' => '', 'style' => 'bold', 'color' => '#ffffff' ),  
  193. array('size' => '36px', 'face' => '', 'style' => 'bold', 'color' => '#ffffff' ),  
  194. array('size' => '36px', 'face' => '', 'style' => 'bold', 'color' => '#666666' ),  
  195. array('size' => '36px', 'face' => '', 'style' => 'bold', 'color' => '#666666' ),  
  196.  
  197. ); 
  198.  
  199. $section_content_typography_defaults = array( 
  200. array('size' => '18px', 'face' => '', 'style' => 'normal', 'color' => '#ffffff' ),  
  201. array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#666666' ),  
  202. array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#666666' ),  
  203. array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#666666' ),  
  204. array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#666666' ),  
  205. array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#ffffff' ),  
  206. array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#ffffff' ),  
  207. array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#666666' ),  
  208. array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#666666' ),  
  209. array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#666666' ),  
  210.  
  211. ); 
  212.  
  213.  
  214. $home_sections = array( 
  215. 1 => __('Section 1 - Banner', 'onetone' ),  
  216. 2 => __('Section 2 - Slogan', 'onetone' ),  
  217. 3 => __('Section 3 - Service', 'onetone' ),  
  218. 4 => __('Section 4 - Gallery', 'onetone' ),  
  219. 5 => __('Section 5 - Team', 'onetone' ),  
  220. 6 => __('Section 6 - About', 'onetone' ),  
  221. 7 => __('Section 7 - Custom', 'onetone' ),  
  222. 8 => __('Section 8 - Testimonial', 'onetone' ),  
  223. 9 => __('Section 9 - Contact', 'onetone' ),  
  224. 10 => sprintf(__('Section %s', 'onetone'), 10),  
  225. 11 => sprintf(__('Section %s', 'onetone'), 11),  
  226. 12 => sprintf(__('Section %s', 'onetone'), 12),  
  227. 13 => sprintf(__('Section %s', 'onetone'), 13),  
  228. 14 => sprintf(__('Section %s', 'onetone'), 14),  
  229. 15 => sprintf(__('Section %s', 'onetone'), 15),  
  230. ); 
  231. $onetone_home_sections = $home_sections; 
  232.  
  233. $section_num = count( $home_sections ); 
  234.  
  235. $options = array(); 
  236.  
  237.  
  238. ////HOME PAGE 
  239. $options[] = array( 
  240. 'icon' => 'fa-home',  
  241. 'name' => __('Home Page', 'onetone'),  
  242. 'type' => 'heading'); 
  243.  
  244. //HOME PAGE SECTION 
  245. $header_overlay = onetone_option( 'header_overlay' , 0); 
  246. $header_overlay = $header_overlay == 'yes'?1:$header_overlay; 
  247. $options[] = array( 
  248. 'id' => 'header_overlay',  
  249. 'name' => __( 'Home Page Header Overlay', 'onetone' ),  
  250. 'desc' => __( 'Choose to set header in home page as overlay style', 'onetone' ),  
  251. 'std' => $header_overlay,  
  252. 'type' => 'checkbox',  
  253. 'section' => 'header_tab_section',  
  254. 'class' => '',  
  255. 'options' => $choices_reverse 
  256. ); 
  257.  
  258. /** $options[] = array( 
  259. 'name' => __('Number of Sections in Homepage', 'onetone'),  
  260. 'desc' => __('Insert the number of sections here. You need to click the following "save" button to refresh this page so your change would be applied.', 'onetone'),  
  261. 'id' => 'section_num',  
  262. 'std' => $section_num,  
  263. 'type' => 'text');*/ 
  264.  
  265.  
  266. $options[] = array('name' => '', 'id' => 'youtube_video_group', 'type' => 'start_group', 'class'=>'group_close');  
  267. $options[] = array( 
  268. 'id' => 'youtube_video_titled',  
  269. 'name' => __( 'YouTube Video Background Options', 'onetone' ).' <span id="accordion-group-youtube_video" class="fa fa-plus"></span>',  
  270. 'desc' => '',  
  271. 'std' => '',  
  272. 'type' => 'textblock-titled',  
  273. 'rows' => '4',  
  274. 'class' => 'section-accordion close',  
  275.  
  276. ); 
  277. $options[] = array('name' => '', 'id' => 'wrapper_start', 'type' => 'wrapper_start', 'class'=>''); 
  278. $options[] = array('name' => __('YouTube ID for Video Background', 'onetone'), 'std' => 'cS4Fz_A4Mas', 'desc' => __('Insert the eleven-letter id here, not url.', 'onetone'), 'id' => 'section_background_video_0',  
  279. 'type' => 'text', 'class' => 'section-item accordion-group-youtube_video' ); 
  280.  
  281. $options[] = array('name' => __('Start Time', 'onetone'), 'std' => '28', 'desc' => __('Choose time to start to play, in seconds.', 'onetone'), 'id' => 'section_youtube_start',  
  282. 'type' => 'text', 'class' => 'section-item accordion-group-youtube_video' ); 
  283.  
  284. $options[] = array( 
  285. 'name' => __('Display Video Controls', 'onetone'),  
  286. 'desc' => __('Choose to display video controls at bottom of the section with video background.', 'onetone'),  
  287. 'id' => 'video_controls',  
  288. 'std' => '1',  
  289. 'class' => 'mini section-item accordion-group-youtube_video',  
  290. 'options' => $choices2,  
  291. 'type' => 'select'); 
  292.  
  293. $options[] = array( 
  294. 'name' => __('Mute', 'onetone'),  
  295. 'desc' => __('Choose to set the video mute.', 'onetone'),  
  296. 'id' => 'youtube_mute',  
  297. 'std' => '0',  
  298. 'class' => 'mini section-item accordion-group-youtube_video',  
  299. 'options' => $choices2,  
  300. 'type' => 'select'); 
  301.  
  302. $options[] = array( 
  303. 'name' => __('AutoPlay', 'onetone'),  
  304. 'desc' => __('Choose to set the video autoplay.', 'onetone'),  
  305. 'id' => 'youtube_autoplay',  
  306. 'std' => '1',  
  307. 'class' => 'mini section-item accordion-group-youtube_video',  
  308. 'options' => $choices2,  
  309. 'type' => 'select'); 
  310.  
  311. $options[] = array( 
  312. 'name' => __('Loop', 'onetone'),  
  313. 'desc' => __('Choose to set the video loop.', 'onetone'),  
  314. 'id' => 'youtube_loop',  
  315. 'std' => '1',  
  316. 'class' => 'mini section-item accordion-group-youtube_video',  
  317. 'options' => $choices2,  
  318. 'type' => 'select'); 
  319.  
  320. $options[] = array( 
  321. 'name' => __('Background Type', 'onetone'),  
  322. 'desc' => __('Choose to set the video as background of the whole site or just one section.', 'onetone'),  
  323. 'id' => 'youtube_bg_type',  
  324. 'std' => '1',  
  325. 'class' => 'mini section-item accordion-group-youtube_video',  
  326. 'options' => array('1'=>__('Body Background', 'onetone'), '0'=>__('Section Background', 'onetone')),  
  327. 'type' => 'select'); 
  328.  
  329.  
  330. $options[] = array('name' => '', 'id' => 'wrapper_end', 'type' => 'wrapper_end', 'class'=>''); 
  331. $options[] = array('name' => '', 'id' => 'youtube_video_group_', 'type' => 'end_group', 'class'=>''); 
  332.  
  333. $video_background_section = array('0'=>__('No video background', 'onetone')); 
  334. foreach( $home_sections as $k=>$v ) { 
  335. $video_background_section[$k] = $v; 
  336. $options[] = array('name' => __('Video Background Section', 'onetone'), 'std' => '1', 'id' => 'video_background_section',  
  337. 'type' => 'select', 'desc' => __('Choose a section to set the video as background for.', 'onetone'), 'options'=>$video_background_section); 
  338.  
  339.  
  340. $options[] = array( 
  341. 'name' => __('Display slider instead in section 1', 'onetone'),  
  342. 'std' => $section_1_content,  
  343. 'id' => 'section_1_content',  
  344. 'type' => 'checkbox',  
  345. 'options'=>array("content"=> __('Content', 'onetone'), "slider"=> __('Slider', 'onetone')),  
  346. 'desc' => __('Choose to display default slider instead of section contents here.', 'onetone') 
  347. ); 
  348.  
  349. $options[] = array('name' => __('Enable Animation', 'onetone'), 'desc'=>__('Enable animation for default section content. You need to activate Magee Shortcodes plugin to apply animation effects.', 'onetone'), 'std' => '1', 'id' => 'home_animated',  
  350. 'type' => 'checkbox'); 
  351.  
  352. /**if(isset($section_num) && is_numeric($section_num) && $section_num>0) { 
  353. $section_num = $section_num; 
  354. else{ 
  355. $section_num = $default_section_num; 
  356. }*/ 
  357.  
  358. $options[] = array('name' => '', 'id' => 'section_order', 'type' => 'start_group', 'class'=>'');  
  359. $options[] = array( 
  360. 'id' => 'section_order_titled',  
  361. 'name' => __( 'Sections Order', 'onetone' ).' <span id="accordion-group-section_order" class="fa fa-plus"></span>',  
  362. 'desc' => '',  
  363. 'std' => '',  
  364. 'type' => 'textblock-titled',  
  365. 'rows' => '4',  
  366. 'class' => 'section-accordion close',  
  367.  
  368. ); 
  369. $options[] = array('name' => '', 'id' => 'wrapper_start', 'type' => 'wrapper_start', 'class'=>'home-section-wrapper'); 
  370.  
  371. $options[] = array( 
  372. 'name' => '',  
  373. 'desc' => sprintf(__('<span style="padding-left:20px;">Get the <a href="%s" target="_blank">Pro version</a> of Onetone to acquire this feature.</span>', 'onetone' ), esc_url('https://www.mageewp.com/onetone-theme.html')),  
  374. 'id' => 'onetone_get_pro',  
  375. 'std' => '',  
  376. 'type' => 'info',  
  377. 'class'=>'section-item accordion-group-section-order' 
  378. ); 
  379.  
  380. $options[] = array('name' => '', 'id' => 'wrapper_end', 'type' => 'wrapper_end', 'class'=>'home-section-wrapper'); 
  381. $options[] = array('name' => '', 'id' => 'section_order_', 'type' => 'end_group', 'class'=>''); 
  382.  
  383.  
  384. $o_section_num = onetone_option( 'section_num' );  
  385. for($i=0; $i < $section_num; $i++) { 
  386.  
  387. if(!isset($section_title[$i])) {$section_title[$i] = "";} 
  388. if(!isset($section_subtitle[$i])) {$section_subtitle[$i] = "";} 
  389. if(!isset($section_color[$i])) {$section_color[$i] = "";} 
  390. if(!isset($section_menu[$i])) {$section_menu[$i] = "";} 
  391. if(!isset($section_background[$i])) { 
  392. $section_background[$i] = array('color' => '', 'image' => '', 'repeat' => '', 'position' => '', 'attachment'=>''); 
  393. if(!isset($section_css_class[$i])) {$section_css_class[$i] = "";} 
  394. if(!isset($section_content[$i])) {$section_content[$i] = "";} 
  395. if(!isset($section_slug[$i])) { $section_slug[$i] = "";} 
  396. if(!isset($text_align[$i])) { $text_align[$i] = "";} 
  397. if(!isset($section_padding[$i])) { $section_padding[$i] = "";} 
  398. $section_name = onetone_option('section_title_'.$i); 
  399. $section_name = $section_name?$section_name:onetone_option('menu_title_'.$i); 
  400. $section_name = $section_name? ' ('.$section_name.')':''; 
  401. $section_name = $home_sections[$i+1] .' '. $section_name; 
  402.  
  403. if(!isset($section_title_typography_defaults[$i])) { $section_title_typography_defaults[$i] = $section_title_typography_defaults_1;} 
  404. if(!isset($section_content_typography_defaults[$i])) { $section_content_typography_defaults[$i] = $section_title_typography_defaults_1;} 
  405.  
  406.  
  407. $hide_section = ''; 
  408. if( $i >= $o_section_num && $o_section_num >0 ) 
  409. $hide_section = 1; 
  410. if( $o_section_num <=0 && $i >8 ) { 
  411. $hide_section = 1; 
  412. $content_model = 1; 
  413. if ( isset( $_POST['reset'] ) )  
  414. $content_model = 0; 
  415.  
  416. $options[] = array('name' => '', 'id' => 'section_group_start_'.$i.'', 'type' => 'start_group', 'class'=>'home-section group_close'); 
  417.  
  418. $options[] = array( 
  419. 'id' => 'sections_titled_'.$i,  
  420. 'name' => $section_name.' <span id="accordion-group-section-'.$i.'" class="fa fa-plus"></span>',  
  421. 'desc' => '',  
  422. 'std' => '',  
  423. 'type' => 'textblock-titled',  
  424. 'rows' => '',  
  425. 'class' => 'section-accordion close accordion-group-title-section-'.$i 
  426.  
  427. ); 
  428.  
  429. $options[] = array('name' => '', 'id' => 'wrapper_start', 'type' => 'wrapper_start', 'class'=>'home-section-wrapper'); 
  430.  
  431.  
  432. $options[] = array( 
  433. 'name' => __('Hide Section', 'onetone'),  
  434. 'std' => $hide_section,  
  435. 'id' => 'section_hide_'.$i,  
  436. 'type' => 'checkbox',  
  437. 'class'=>'section-item accordion-group-section-'.$i,  
  438. 'desc'=> __('Hide this section on front page.', 'onetone'),  
  439. ); 
  440.  
  441. $options[] = array( 
  442. 'name' => __('Section Title', 'onetone'),  
  443. 'id' => 'section_title_'.$i.'',  
  444. 'type' => 'text',  
  445. 'std'=> $section_title[$i],  
  446. 'class'=>'section-item accordion-group-section-'.$i,  
  447. 'desc'=> __('Insert title for this section. It would appear at the top of the section.', 'onetone'),  
  448. ); 
  449.  
  450.  
  451. $options[] = array( 
  452. 'name' => __('Menu Title', 'onetone'),  
  453. 'id' => 'menu_title_'.$i.'',  
  454. 'type' => 'text',  
  455. 'std'=>$section_menu[$i],  
  456. 'desc'=> __('Insert menu title for this section. This title would appear in the header menu. If leave it as blank, the link of this section would not be displayed in header menu.', 'onetone'),  
  457. 'class'=>'section-item accordion-group-section-'.$i 
  458. ); 
  459. $options[] = array( 
  460. 'name' => __('Menu Slug', 'onetone'),  
  461. 'id' => 'menu_slug_'.$i.'',  
  462. 'type' => 'text',  
  463. 'std'=>$section_slug[$i],  
  464. 'desc'=> __('Attention! The "slug" is the URL-friendly version of menu title. It is usually all lowercase and contains only letters, numbers, and hyphens. If the menu title contains non-eng characters or spaces, you need to fill this form.', 'onetone'),  
  465. 'class'=>'section-item accordion-group-section-'.$i 
  466. ); 
  467.  
  468. $options[] = array( 
  469. 'name' => __('Section Background', 'onetone'),  
  470. 'id' => 'section_background_'.$i.'',  
  471. 'std' => $section_background[$i],  
  472. 'type' => 'background' ,  
  473. 'class'=>'section-item accordion-group-section-'.$i,  
  474. 'desc'=> __('Set background color & background image for this section', 'onetone'),  
  475. ); 
  476.  
  477. $options[] = array( 
  478. 'name' => __('Parallax Scrolling Background Image', 'onetone'),  
  479. 'std' => 'no',  
  480. 'id' => 'parallax_scrolling_'.$i.'',  
  481. 'type' => 'select',  
  482. 'class'=>'mini section-item accordion-group-section-'.$i,  
  483. 'options'=>$choices,  
  484. 'desc'=> __('Choose to apply parallax scrolling effect for background image', 'onetone'),  
  485. ); 
  486.  
  487.  
  488. $options[] = array( 
  489. 'name' => __('Section Css Class', 'onetone'),  
  490. 'id' => 'section_css_class_'.$i.'',  
  491. 'type' => 'text',  
  492. 'std'=>$section_css_class[$i],  
  493. 'class'=>'section-item accordion-group-section-'.$i,  
  494. 'desc' => __('Set an aditional css class of this section', 'onetone'),  
  495. ); 
  496. $options[] = array( 
  497. 'name' => __('Section Padding', 'onetone'),  
  498. 'id' => 'section_padding_'.$i.'',  
  499. 'type' => 'text',  
  500. 'std'=>$section_padding[$i],  
  501. 'class'=>'section-item accordion-group-section-'.$i,  
  502. 'desc' => __('Set padding for this section. In pixels (px), eg: 10px 20px 30px 0. These four numbers represent padding top/right/bottom/left', 'onetone'),  
  503. ); 
  504.  
  505. $options[] = array( 
  506. 'name' => __('Text Align', 'onetone'),  
  507. 'std' => $text_align[$i],  
  508. 'id' => 'text_align_'.$i.'',  
  509. 'type' => 'select',  
  510. 'class'=>'mini section-item accordion-group-section-'.$i,  
  511. 'options'=>$align,  
  512. 'desc' => __('Set content align for this section', 'onetone') 
  513. ); 
  514.  
  515.  
  516. $options[] = array( 
  517. 'name' => __('Section Title Typography', 'onetone'),  
  518. 'id' => "section_title_typography_".$i,  
  519. 'std' => $section_title_typography_defaults[$i],  
  520. 'type' => 'typography',  
  521. 'options' => $typography_options ,  
  522. 'class'=>'section-item accordion-group-section-'.$i 
  523. ); 
  524.  
  525. $options[] = array( 
  526. 'name' => __('Section Content Typography', 'onetone'),  
  527. 'id' => 'section_content_typography_'.$i,  
  528. 'std' => $section_content_typography_defaults[$i],  
  529. 'type' => 'typography',  
  530. 'options' => $typography_options ,  
  531. 'class'=> 'section-item accordion-group-section-'.$i 
  532. ); 
  533.  
  534.  
  535. $options[] = array( 
  536. 'name' => __('Section Content Model', 'onetone'),  
  537. 'id' =>'section_content_model_'.$i,  
  538. 'std' => $content_model,  
  539. 'class' => 'section-content-model section-item accordion-group-section-'.$i,  
  540. 'type' => 'radio',  
  541. 'desc' => __('Default: fixed layout, no code knowledge needed; Custom: non-fixed layout, user can use html and shortcode to get more complex structure', 'onetone'),  
  542. 'options'=>array('0'=> __('Default', 'onetone'), '1'=>__('Custom', 'onetone')) 
  543. ); 
  544.  
  545. // Fixed content 
  546.  
  547.  
  548. $options[] = array( 
  549. 'id' => 'section_color_'.$i.'',  
  550. 'name' => __( 'Font Color', 'onetone' ),  
  551. 'desc' => __( 'Set font color for the content of this section', 'onetone' ),  
  552. 'std' => $section_color[$i],  
  553. 'type' => 'color',  
  554. 'class' => 'content-model-0 section-item accordion-group-section-'.$i,  
  555.  
  556. ); 
  557.  
  558. $options[] = array( 
  559. 'name' => __('Section Subtitle', 'onetone'),  
  560. 'id' => 'section_subtitle_'.$i.'',  
  561. 'type' => 'text',  
  562. 'std'=> $section_subtitle[$i],  
  563. 'class'=>'content-model-0 section-item accordion-group-section-'.$i,  
  564. 'desc'=> __('Insert sub-title for this section. It would appear at the bottom of the section title', 'onetone'),  
  565. ); 
  566.  
  567. switch( $i ) { 
  568. case "0": // Section Slogan 
  569.  
  570. $options[] = array( 
  571. 'name' => __('Button Text', 'onetone'),  
  572. 'id' => "section_btn_text_".$i,  
  573. 'std' => 'Click Me',  
  574. 'type' => 'text',  
  575. 'desc' => __('Insert text for the button', 'onetone'),  
  576. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  577. ); 
  578. $options[] = array( 
  579. 'name' => __('Button Link', 'onetone'),  
  580. 'id' => "section_btn_link_".$i,  
  581. 'std' => '#',  
  582. 'desc' => __('Insert link for the button, begin with http:// or https://', 'onetone'),  
  583. 'type' => 'text',  
  584. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  585. ); 
  586. $options[] = array( 
  587. 'name' => __('Button Target', 'onetone'),  
  588. 'id' => "section_btn_target_".$i,  
  589. 'std' => '_self',  
  590. 'desc' => __('Self: open in the same window; blank: open in a new window', 'onetone'),  
  591. 'type' => 'select',  
  592. 'class'=>'content-model-0 section-item accordion-group-section-'.$i,  
  593. 'options' => $target 
  594. ); 
  595.  
  596. $banner_social_icon = array('fa-facebook', 'fa-skype', 'fa-twitter', 'fa-linkedin', 'fa-google-plus', 'fa-rss'); 
  597. for( $s=0;$s<6;$s++ ): 
  598.  
  599. $options[] = array( 
  600. 'name' => __('Social Icon', 'onetone').' '.($s+1),  
  601. 'id' => "section_social_icon_".$i."_".$s,  
  602. 'std' => $banner_social_icon[$s],  
  603. 'type' => 'text',  
  604. 'class'=>'content-model-0 section-item accordion-group-section-'.$i,  
  605. 'desc' => __('Insert Fontawsome icon code', 'onetone') 
  606. ); 
  607. $options[] = array( 
  608. 'name' => __('Social Icon Link', 'onetone').' '.($s+1),  
  609. 'id' => "section_icon_link_".$i."_".$s,  
  610. 'std' => '#',  
  611. 'type' => 'text',  
  612. 'class'=>'content-model-0 section-item accordion-group-section-'.$i,  
  613. 'desc' => __('Insert link for the icon', 'onetone') 
  614. ); 
  615.  
  616.  
  617. endfor; 
  618.  
  619.  
  620. break; 
  621. case "1": 
  622. $options[] = array( 
  623. 'name' => __('Button Text', 'onetone'),  
  624. 'id' => "section_btn_text_".$i,  
  625. 'std' => 'Click Me',  
  626. 'desc' => __('Insert text for the button', 'onetone'),  
  627. 'type' => 'text',  
  628. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  629. ); 
  630. $options[] = array( 
  631. 'name' => __('Button Link', 'onetone'),  
  632. 'id' => "section_btn_link_".$i,  
  633. 'std' => '#',  
  634. 'desc' => __('Insert link for the button, begin with http:// or https://', 'onetone'),  
  635. 'type' => 'text',  
  636. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  637. ); 
  638. $options[] = array( 
  639. 'name' => __('Button Target', 'onetone'),  
  640. 'id' => "section_btn_target_".$i,  
  641. 'std' => '_self',  
  642. 'desc' => __('Self: open in the same window; blank: open in a new window', 'onetone'),  
  643. 'type' => 'select',  
  644. 'class'=>'content-model-0 section-item accordion-group-section-'.$i,  
  645. 'options' => $target 
  646. ); 
  647.  
  648. $options[] = array( 
  649. 'name' => __('Description', 'onetone'),  
  650. 'id' => 'section_desc_'.$i,  
  651. 'std' => '<h4>Morbi rutrum, elit ac fermentum egestas, tortor ante vestibulum est, eget scelerisque nisl velit eget tellus.</h4>',  
  652. 'desc' => __('Insert content for the banner, html tags allowed', 'onetone'),  
  653. 'type' => 'textarea',  
  654. 'class'=>'content-model-0 section-item accordion-group-section-'.$i,  
  655. ); 
  656.  
  657.  
  658. break; 
  659. case "2": // Section Service 
  660. $icons = array('fa-leaf', 'fa-hourglass-end', 'fa-signal', 'fa-heart', 'fa-camera', 'fa-tag'); 
  661.  
  662. for($c=0;$c<6;$c++) { 
  663.  
  664. $options[] = array( 
  665. 'name' => sprintf(__('Service Icon %d', 'onetone'), $c+1),  
  666. 'id' => "section_icon_".$i."_".$c,  
  667. 'std' => $icons[$c],  
  668. 'desc' => __('Insert Fontawsome icon code', 'onetone'),  
  669. 'type' => 'text',  
  670. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  671. ); 
  672. $options[] = array( 
  673. 'name' => sprintf(__('Service Image %d', 'onetone'), $c+1),  
  674. 'id' => "section_image_".$i."_".$c,  
  675. 'std' => '',  
  676. 'desc' => __('Or choose to upload icon image', 'onetone'),  
  677. 'type' => 'upload',  
  678. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  679. ); 
  680. $options[] = array( 
  681. 'name' => sprintf(__('Service Title %d', 'onetone'), $c+1),  
  682. 'id' => "section_title_".$i."_".$c,  
  683. 'std' => 'FREE PSD TEMPLATE',  
  684. 'desc' => __('Set title for service item', 'onetone'),  
  685. 'type' => 'text',  
  686. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  687. ); 
  688. $options[] = array( 
  689. 'name' => sprintf(__('Title Link %d', 'onetone'), $c+1),  
  690. 'id' => "section_link_".$i."_".$c,  
  691. 'std' => '',  
  692. 'desc' => __('Insert link for service item', 'onetone'),  
  693. 'type' => 'text',  
  694. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  695. ); 
  696.  
  697. $options[] = array( 
  698. 'name' => sprintf(__('Link Target %d', 'onetone'), $c+1),  
  699. 'id' => "section_target_".$i."_".$c,  
  700. 'std' => '',  
  701. 'desc' => __('Self: open in the same window; blank: open in a new window', 'onetone'),  
  702. 'type' => 'select',  
  703. 'options'=>$target,  
  704. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  705. ); 
  706.  
  707. $options[] = array( 
  708. 'name' => sprintf(__('Service Description %d', 'onetone'), $c+1),  
  709. 'id' => "section_desc_".$i."_".$c,  
  710. 'std' => 'Integer pulvinar elementum est, suscipit ornare ante finibus ac. Praesent vel ex dignissim, rhoncus eros luctus, dignissim arcu.',  
  711. 'desc' => __('Insert content for the banner, html tags allowed', 'onetone'),  
  712. 'type' => 'textarea',  
  713. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  714. ); 
  715.  
  716.  
  717. break; 
  718.  
  719. case "3": // Section Gallery 
  720.  
  721. $default_images = array( 
  722. esc_url('http://www.mageewp.com/onetone/wp-content/uploads/sites/17/2015/11/7.jpg'),  
  723. esc_url('http://www.mageewp.com/onetone/wp-content/uploads/sites/17/2015/11/8.jpg'),  
  724. esc_url('http://www.mageewp.com/onetone/wp-content/uploads/sites/17/2015/11/9.jpg'),  
  725. esc_url('http://www.mageewp.com/onetone/wp-content/uploads/sites/17/2015/11/10.jpg'),  
  726. esc_url('http://www.mageewp.com/onetone/wp-content/uploads/sites/17/2015/11/11.jpg'),  
  727. esc_url('http://www.mageewp.com/onetone/wp-content/uploads/sites/17/2015/11/12.jpg'),  
  728. ); 
  729. for($c=0;$c<6;$c++) { 
  730.  
  731.  
  732. $options[] = array( 
  733. 'name' => sprintf(__('Image %d', 'onetone'), $c+1),  
  734. 'id' => "section_image_".$i."_".$c,  
  735. 'std' => $default_images[$c],  
  736. 'desc' => __('Choose to upload image for gallery item', 'onetone'),  
  737. 'type' => 'upload',  
  738. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  739. ); 
  740.  
  741. $options[] = array( 
  742. 'name' => sprintf(__('Link %d', 'onetone'), $c+1),  
  743. 'id' => "section_link_".$i."_".$c,  
  744. 'std' => '',  
  745. 'desc' => __('Insert link for this item', 'onetone'),  
  746. 'type' => 'text',  
  747. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  748. ); 
  749.  
  750. $options[] = array( 
  751. 'name' => sprintf(__('Link Target %d', 'onetone'), $c+1),  
  752. 'id' => "section_target_".$i."_".$c,  
  753. 'std' => '',  
  754. 'desc' => __('Self: open in the same window; blank: open in a new window', 'onetone'),  
  755. 'type' => 'select',  
  756. 'options'=>$target,  
  757. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  758. ); 
  759.  
  760.  
  761.  
  762.  
  763. break; 
  764. case "4": // Section Team 
  765. $social_icon = array('instagram', 'facebook', 'google-plus', 'envelope', '', ''); 
  766. $avatar = array( 
  767. esc_url('http://www.mageewp.com/onetone/wp-content/uploads/sites/17/2015/11/001.jpg'),  
  768. esc_url('http://www.mageewp.com/onetone/wp-content/uploads/sites/17/2015/11/002.jpg'),  
  769. esc_url('http://www.mageewp.com/onetone/wp-content/uploads/sites/17/2015/11/003.jpg'),  
  770. esc_url('http://www.mageewp.com/onetone/wp-content/uploads/sites/17/2015/11/004.jpg'),  
  771. '',  
  772. '',  
  773. '',  
  774. '' 
  775. ); 
  776.  
  777. $options[] = array( 
  778. 'id' => "section_team_columns",  
  779. 'name' => __( 'Columns', 'onetone' ),  
  780. 'desc' => __( 'Set columns for team module', 'onetone' ),  
  781. 'type' => 'select',  
  782. 'options' => array(2=>2, 3=>3, 4=>4),  
  783. 'std' => '4',  
  784. 'class'=>'content-model-0 section-item accordion-group-section-'.$i,  
  785. ); 
  786.  
  787. for( $t=0; $t<8; $t++ ) { 
  788.  
  789. $options[] = array( 
  790. 'name' => sprintf(__('Avatar %d', 'onetone'), $t+1),  
  791. 'id' => "section_avatar_".$i."_".$t,  
  792. 'std' => $avatar[$t],  
  793. 'desc' => __( 'Choose to upload image for the person avatar', 'onetone' ),  
  794. 'type' => 'upload',  
  795. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  796. ); 
  797.  
  798. $options[] = array( 
  799. 'name' => sprintf(__('Link %d', 'onetone'), $t+1),  
  800. 'id' => "section_link_".$i."_".$t,  
  801. 'std' => '',  
  802. 'desc' => __( 'Set link for the person', 'onetone' ),  
  803. 'type' => 'text',  
  804. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  805. ); 
  806. $options[] = array( 
  807. 'name' => sprintf(__('Name %d', 'onetone'), $t+1),  
  808. 'id' => "section_name_".$i."_".$t,  
  809. 'std' => 'KEVIN PERRY',  
  810. 'desc' => __( 'Set name for the person', 'onetone' ),  
  811. 'type' => 'text',  
  812. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  813. ); 
  814. $options[] = array( 
  815. 'name' => sprintf(__('Byline %d', 'onetone'), $t+1),  
  816. 'id' => "section_byline_".$i."_".$t,  
  817. 'std' => 'SOFTWARE DEVELOPER',  
  818. 'desc' => __( 'Set byline for the person', 'onetone' ),  
  819. 'type' => 'text',  
  820. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  821. ); 
  822. $options[] = array( 
  823. 'name' => sprintf(__('Description %d', 'onetone'), $t+1),  
  824. 'id' => "section_desc_".$i."_".$t,  
  825. 'std' => 'Vivamus congue justo eget diam interdum scelerisque. In hac habitasse platea dictumst.',  
  826. 'desc' => __( 'Insert description for the person', 'onetone' ),  
  827. 'type' => 'textarea',  
  828. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  829. ); 
  830.  
  831. for($k=0;$k<4;$k++): 
  832.  
  833. $options[] = array( 
  834. 'id' => 'section_icon_'.$i.'_'.$t.'_'.$k,  
  835. 'name' => sprintf(__( 'Social Icon %d - %d', 'onetone' ), $t+1, $k+1),  
  836. 'desc' => '',  
  837. 'type' => 'text',  
  838. 'std' => $social_icon[$k],  
  839. 'desc' => __( 'Choose social icon', 'onetone' ),  
  840. 'class'=>'content-model-0 section-item accordion-group-section-'.$i,  
  841. ); 
  842. $options[] = array( 
  843. 'id' => 'section_icon_link_'.$i.'_'.$t.'_'.$k,  
  844. 'name' => sprintf(__( 'Social Icon Link %d - %d', 'onetone' ), $t+1, $k+1),  
  845. 'type' => 'text',  
  846. 'desc' => __( 'Insert link for the icon', 'onetone' ),  
  847. 'std' => '#',  
  848. 'class'=>'content-model-0 section-item accordion-group-section-'.$i,  
  849. ); 
  850.  
  851. endfor; 
  852.  
  853.  
  854.  
  855. break; 
  856. case "5": // Section About 
  857.  
  858. $options[] = array( 
  859. 'name' => __('Left Content', 'onetone'),  
  860. 'id' => "section_left_content_".$i,  
  861. 'std' => '<h3>Biography</h3> 
  862. <p>Morbi rutrum, elit ac fermentum egestas, tortor ante vestibulum est, eget scelerisque nisl velit eget tellus. Fusce porta facilisis luctus. Integer neque dolor, rhoncus nec euismod eget, pharetra et tortor. Nulla id pulvinar nunc. Vestibulum auctor nisl vel lectus ullamcorper sed pellentesque dolor eleifend. Praesent lobortis magna vel diam mattis sagittis.Mauris porta odio eu risus scelerisque id facilisis ipsum dictum vitae volutpat. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed pulvinar neque eu purus sollicitudin et sollicitudin dui ultricies. Maecenas cursus auctor tellus sit amet blandit. Maecenas a erat ac nibh molestie interdum. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Sed lorem enim, ultricies sed sodales id, convallis molestie ipsum. Morbi eget dolor ligula. Vivamus accumsan rutrum nisi nec elementum. Pellentesque at nunc risus. Phasellus ullamcorper bibendum varius. Quisque quis ligula sit amet felis ornare porta. Aenean viverra lacus et mi elementum mollis. Praesent eu justo elit.</p>',  
  863. 'type' => 'textarea',  
  864. 'desc' => __( 'Insert content for the left column, html tags allowed', 'onetone' ),  
  865. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  866. ); 
  867.  
  868. $options[] = array( 
  869. 'name' => __('Right Content', 'onetone'),  
  870. 'id' => "section_right_content_".$i,  
  871. 'std' => '<h3>Personal Info</span></h3> 
  872. <div> 
  873. <ul class="magee-icon-list"> 
  874. <li><i class="fa fa-phone"> </i> +1123 2456 689</li> 
  875. </ul> 
  876. <ul class="magee-icon-list"> 
  877. <li><i class="fa fa-map-marker"> </i> 3301 Lorem Ipsum, Dolor Sit St</li> 
  878. </ul> 
  879. <ul class="magee-icon-list"> 
  880. <li><i class="fa fa-envelope-o"> </i> <a href="#">admin@domain.com</a>.</li> 
  881. </ul> 
  882. <ul class="magee-icon-list"> 
  883. <li><i class="fa fa-internet-explorer"> </i> <a href="#">Mageewp.com</a></li> 
  884. </ul> 
  885. </div>',  
  886. 'type' => 'textarea',  
  887. 'desc' => __( 'Insert content for the right column, html tags allowed', 'onetone' ),  
  888. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  889. ); 
  890.  
  891. break; 
  892. case "6": // Section Custom 
  893.  
  894.  
  895.  
  896. break; 
  897. case "7": // Section Testimonial 
  898.  
  899. $avatar = array( 
  900. esc_url('http://www.mageewp.com/onetone/wp-content/uploads/sites/17/2015/11/111.jpg'),  
  901. esc_url('http://www.mageewp.com/onetone/wp-content/uploads/sites/17/2015/11/222.jpg'),  
  902. esc_url('http://www.mageewp.com/onetone/wp-content/uploads/sites/17/2015/11/333.jpg'),  
  903. '',  
  904. '',  
  905. '',  
  906. '',  
  907. '' 
  908. ); 
  909.  
  910. $options[] = array( 
  911. 'id' => "section_testimonial_columns",  
  912. 'name' => __( 'Columns', 'onetone' ),  
  913. 'desc' => '',  
  914. 'type' => 'select',  
  915. 'desc' => __( 'Set columns for testimonial module', 'onetone' ),  
  916. 'options' => array(2=>2, 3=>3, 4=>4),  
  917. 'std' => '3',  
  918. 'class'=>'content-model-0 section-item accordion-group-section-'.$i,  
  919. ); 
  920.  
  921. for( $t=0; $t<8; $t++ ) { 
  922. $description = ''; 
  923. if( $t<3 ) 
  924. $description = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris consequat non ex quis consectetur. Aliquam iaculis dolor erat, ut ornare dui vulputate nec. Cras a sem mattis, tincidunt urna nec, iaculis nisl. Nam congue ultricies dui.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris consequat non ex quis consectetur. Aliquam iaculis dolor erat, ut ornare dui vulputate nec. Cras a sem mattis, tincidunt urna nec, iaculis nisl. Nam congue ultricies dui.'; 
  925.  
  926. $options[] = array( 
  927. 'name' => sprintf(__('Avatar %d', 'onetone'), $t+1),  
  928. 'id' => "section_avatar_".$i."_".$t,  
  929. 'std' => $avatar[$t],  
  930. 'desc' => __( 'Choose to upload image for the client avatar', 'onetone' ),  
  931. 'type' => 'upload',  
  932. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  933. ); 
  934.  
  935. $options[] = array( 
  936. 'name' => sprintf(__('Name %d', 'onetone'), $t+1),  
  937. 'id' => "section_name_".$i."_".$t,  
  938. 'std' => 'KEVIN PERRY',  
  939. 'desc' => __( 'Insert name for the client', 'onetone' ),  
  940. 'type' => 'text',  
  941. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  942. ); 
  943. $options[] = array( 
  944. 'name' => sprintf(__('Byline %d', 'onetone'), $t+1),  
  945. 'id' => "section_byline_".$i."_".$t,  
  946. 'std' => 'Web Developer',  
  947. 'desc' => __( 'Insert byline for the client', 'onetone' ),  
  948. 'type' => 'text',  
  949. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  950. ); 
  951. $options[] = array( 
  952. 'name' => sprintf(__('Description %d', 'onetone'), $t+1),  
  953. 'id' => "section_desc_".$i."_".$t,  
  954. 'std' => $description,  
  955. 'desc' => __( 'Insert description for the client', 'onetone' ),  
  956. 'type' => 'textarea',  
  957. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  958. ); 
  959.  
  960. break; 
  961. case "8": // Section Contact 
  962. $emailTo = get_option('admin_email'); 
  963. $options[] = array( 
  964. 'name' => __('Your E-mail', 'onetone'),  
  965. 'id' => "section_email_".$i,  
  966. 'std' => $emailTo,  
  967. 'desc' => __( 'Set email address to receive mails from contact form', 'onetone' ),  
  968. 'type' => 'text',  
  969. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  970. ); 
  971.  
  972. $options[] = array( 
  973. 'name' => __('Button Text', 'onetone'),  
  974. 'id' => "section_btn_text_".$i,  
  975. 'std' => 'Post',  
  976. 'desc' => __('Insert text for the button', 'onetone'),  
  977. 'type' => 'text',  
  978. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  979. ); 
  980. break; 
  981.  
  982.  
  983. $options[] = array( 
  984. 'name' => __('Section Content', 'onetone'),  
  985. 'id' => 'section_content_'.$i,  
  986. 'std' => '',  
  987. 'type' => 'editor',  
  988. 'class'=>'content-model-1 section-item accordion-group-section-'.$i 
  989. );  
  990.  
  991. /**$options[] = array( 
  992. 'name' => '',  
  993. 'desc' => '<div style="overflow:hidden; background-color:#eee; padding:20px;"><a data-section="'.$i.'" class="delete-section button" title="'.__('Delete this section', 'onetone').'">'.__('Delete this section', 'onetone').'</a></div>',  
  994. 'id' => 'delete_section_'.$i,  
  995. 'std' => '',  
  996. 'type' => 'info',  
  997. 'class'=>'section-item accordion-group-section-'.$i 
  998. );*/ 
  999.  
  1000. $options[] = array('name' => '', 'id' => 'wrapper_end', 'type' => 'wrapper_end', 'class'=>''); 
  1001.  
  1002. $options[] = array('name' => '', 'id' => 'section_group_end_'.$i.'', 'type' => 'end_group'); 
  1003.  
  1004.  
  1005. //END HOME PAGE SECTION 
  1006.  
  1007. // General 
  1008. $options[] = array( 
  1009. 'icon' => 'fa-tachometer',  
  1010. 'name' => __('General Options', 'onetone'),  
  1011. 'type' => 'heading'); 
  1012.  
  1013.  
  1014.  
  1015. $options[] = array( 
  1016. 'name' => __('Back to Top Button', 'onetone'),  
  1017. 'id' => 'back_to_top_btn',  
  1018. 'std' => 'show',  
  1019. 'desc' => __( 'Choose to display back to top button', 'onetone' ),  
  1020. 'class' => 'mini',  
  1021. 'type' => 'select',  
  1022. 'options'=>array("show"=> __('Show', 'onetone'), "hide"=>__('Hide', 'onetone')) 
  1023. ); 
  1024.  
  1025.  
  1026. $options[] = array( 
  1027. 'name' => __('Custom CSS', 'onetone'),  
  1028. 'desc' => __('The following css code will add to the header before the closing </head> tag.', 'onetone'),  
  1029. 'id' => 'custom_css',  
  1030. 'std' => 'body{margin:0px;}',  
  1031. 'type' => 'textarea'); 
  1032.  
  1033. $options[] = array( 
  1034. 'id' => 'tracking_titled',  
  1035. 'name' => __( 'Tracking', 'onetone' ),  
  1036. 'desc' => '',  
  1037. 'std' => '',  
  1038. 'type' => 'textblock-titled',  
  1039. 'section' => 'general_tab_section',  
  1040.  
  1041. 'class' => 'sub_section_titled',  
  1042.  
  1043. ); 
  1044.  
  1045. $options[] = array( 
  1046. 'id' => 'tracking_code',  
  1047. 'name' => __( 'Tracking Code', 'onetone' ),  
  1048. 'desc' => __( 'Paste your Google Analytics (or other) tracking code here. This will be added into the header template of your theme. Please put code inside script tags.', 'onetone' ),  
  1049. 'std' => '',  
  1050. 'type' => 'textarea',  
  1051. 'section' => 'general_tab_section',  
  1052. 'rows' => '8',  
  1053. 'class' => '',  
  1054.  
  1055. ); 
  1056. $options[] = array( 
  1057. 'id' => 'space_before_head',  
  1058. 'name' => __( 'Space before </head>', 'onetone' ),  
  1059. 'desc' => __( 'Add code before the head tag.', 'onetone' ),  
  1060. 'std' => '',  
  1061. 'type' => 'textarea',  
  1062. 'section' => 'general_tab_section',  
  1063. 'rows' => '6',  
  1064.  
  1065. 'class' => '',  
  1066.  
  1067. ); 
  1068. $options[] = array( 
  1069. 'id' => 'space_before_body',  
  1070. 'name' => __( 'Space before </body>', 'onetone' ),  
  1071. 'desc' => __( 'Add code before the body tag.', 'onetone' ),  
  1072. 'std' => '',  
  1073. 'type' => 'textarea',  
  1074. 'section' => 'general_tab_section',  
  1075. 'rows' => '6',  
  1076.  
  1077. 'class' => '',  
  1078.  
  1079. ); 
  1080.  
  1081. // header 
  1082.  
  1083. $options[] = array( 
  1084. 'icon' => 'fa-h-square',  
  1085. 'name' => __('Header', 'onetone'),  
  1086. 'type' => 'heading' 
  1087. ); 
  1088.  
  1089. $options[] = array('name' => '', 'id' => 'header_options_titled_group', 'type' => 'start_group', 'class'=>''); 
  1090. //// 
  1091. $options[] = array( 
  1092. 'id' => 'header_options_titled',  
  1093. 'name' => __( 'Header Options', 'onetone' ).' <span id="accordion-group-header_options" class="fa fa-plus"></span>',  
  1094. 'desc' => '',  
  1095. 'std' => '',  
  1096. 'type' => 'textblock-titled',  
  1097. 'section' => 'header_tab_section',  
  1098. 'rows' => '4',  
  1099. 'class' => 'section-accordion close',  
  1100.  
  1101. ); 
  1102.  
  1103. $options[] = array('name' => '', 'id' => 'wrapper_start', 'type' => 'wrapper_start', 'class'=>''); 
  1104. $options[] = array( 
  1105. 'id' => 'header_fullwidth',  
  1106. 'name' => __( 'Full Width Header', 'onetone' ),  
  1107. 'desc' => __( 'Enable header full width.', 'onetone' ),  
  1108. 'std' => '',  
  1109. 'type' => 'checkbox',  
  1110. 'section' => 'header_tab_section',  
  1111. 'class' => ' accordion-group-header_options',  
  1112.  
  1113. ); 
  1114.  
  1115.  
  1116. $options[] = array( 
  1117. 'id' => 'nav_hover_effect',  
  1118. 'name' => __( 'Nav Hover Effect', 'onetone' ),  
  1119. 'desc' => '',  
  1120. 'std' => '0',  
  1121. 'type' => 'images',  
  1122. 'section' => 'header_tab_section',  
  1123. 'class' => ' accordion-group-header_options',  
  1124. 'options' => array( 
  1125. '0'=> ONETONE_THEME_BASE_URL.'/images/nav-style0.gif',  
  1126. '1'=> ONETONE_THEME_BASE_URL.'/images/nav-style1.gif',  
  1127. '2'=> ONETONE_THEME_BASE_URL.'/images/nav-style2.gif',  
  1128. '3'=> ONETONE_THEME_BASE_URL.'/images/nav-style3.gif',  
  1129. ); 
  1130.  
  1131.  
  1132. $options[] = array('name' => '', 'id' => 'wrapper_end', 'type' => 'wrapper_end', 'class'=>''); 
  1133. $options[] = array('name' => '', 'id' => 'header_options_titled_group_', 'type' => 'end_group', 'class'=>'group_close');  
  1134.  
  1135. //// 
  1136. $options[] = array('name' => '', 'id' => 'header_background_group', 'type' => 'start_group', 'class'=>''); 
  1137. $options[] = array( 
  1138. 'id' => 'header_background_titled',  
  1139. 'name' => __( 'Header Background', 'onetone' ).' <span id="accordion-group-header_background" class="fa fa-plus"></span>',  
  1140. 'desc' => '',  
  1141. 'std' => '',  
  1142. 'type' => 'textblock-titled',  
  1143. 'section' => 'header_tab_section',  
  1144. 'rows' => '4',  
  1145. 'class' => 'section-accordion close',  
  1146.  
  1147. ); 
  1148. $options[] = array('name' => '', 'id' => 'wrapper_start', 'type' => 'wrapper_start', 'class'=>''); 
  1149. $options[] = array( 
  1150. 'id' => 'header_background_image',  
  1151. 'name' => __( 'Header Background Image', 'onetone' ),  
  1152. 'desc' => __( 'Background Image For Header Area', 'onetone' ),  
  1153. 'std' => '',  
  1154. 'type' => 'upload',  
  1155. 'section' => 'header_tab_section',  
  1156.  
  1157. 'class' => 'accordion-group-header_background',  
  1158.  
  1159. ); 
  1160. $options[] = array( 
  1161. 'id' => 'header_background_full',  
  1162. 'name' => __( '100% Background Image', 'onetone' ),  
  1163. 'desc' => __( 'Turn on to have the header background image display at 100% in width and height and scale according to the browser size.', 'onetone' ),  
  1164. 'std' => 'yes',  
  1165. 'type' => 'select',  
  1166. 'section' => 'header_tab_section',  
  1167.  
  1168. 'class' => 'accordion-group-header_background',  
  1169. 'options' => $choices 
  1170. ); 
  1171. $options[] = array( 
  1172. 'id' => 'header_background_parallax',  
  1173. 'name' => __( 'Parallax Background Image', 'onetone' ),  
  1174. 'desc' => __( 'Turn on to enable parallax scrolling on the background image for header top positions.', 'onetone' ),  
  1175. 'std' => 'no',  
  1176. 'type' => 'select',  
  1177. 'section' => 'header_tab_section',  
  1178.  
  1179. 'class' => 'accordion-group-header_background',  
  1180. 'options' => $choices_reverse 
  1181. ); 
  1182.  
  1183. $options[] = array( 
  1184. 'id' => 'header_background_repeat',  
  1185. 'name' => __( 'Background Repeat', 'onetone' ),  
  1186. 'desc' => __( 'Select how the background image repeats.', 'onetone' ),  
  1187. 'std' => '',  
  1188. 'type' => 'select',  
  1189. 'section' => 'header_tab_section',  
  1190.  
  1191. 'class' => 'accordion-group-header_background',  
  1192. 'options' => $repeat 
  1193. ); 
  1194. $options[] = array( 
  1195. 'id' => 'header_top_padding',  
  1196. 'name' => __( 'Header Top Padding', 'onetone' ),  
  1197. 'desc' => __( 'In pixels or percentage, ex: 10px or 10%.', 'onetone' ),  
  1198. 'std' => '0px',  
  1199. 'type' => 'text',  
  1200. 'section' => 'header_tab_section',  
  1201.  
  1202. 'class' => 'accordion-group-header_background',  
  1203.  
  1204. ); 
  1205. $options[] = array( 
  1206. 'id' => 'header_bottom_padding',  
  1207. 'name' => __( 'Header Bottom Padding', 'onetone' ),  
  1208. 'desc' => __( 'In pixels or percentage, ex: 10px or 10%.', 'onetone' ),  
  1209. 'std' => '0px',  
  1210. 'type' => 'text',  
  1211. 'section' => 'header_tab_section',  
  1212.  
  1213. 'class' => 'accordion-group-header_background',  
  1214.  
  1215. ); 
  1216. $options[] = array('name' => '', 'id' => 'wrapper_end', 'type' => 'wrapper_end', 'class'=>''); 
  1217. $options[] = array('name' => '', 'id' => 'header_background_group_', 'type' => 'end_group', 'class'=>''); 
  1218.  
  1219. $options[] = array('name' => '', 'id' => 'top_bar_options_group', 'type' => 'start_group', 'class'=>''); 
  1220. //// Top Bar 
  1221. $options[] = array( 
  1222. 'id' => 'top_bar_options',  
  1223. 'name' => __( 'Top Bar Options', 'onetone' ).' <span id="accordion-group-3" class="fa fa-plus"></span>',  
  1224. 'desc' => '',  
  1225. 'std' => '',  
  1226. 'type' => 'textblock-titled',  
  1227. 'section' => 'header_tab_section',  
  1228. 'rows' => '4',  
  1229.  
  1230. 'class' => 'section-accordion close',  
  1231.  
  1232. ); 
  1233. $options[] = array('name' => '', 'id' => 'wrapper_start', 'type' => 'wrapper_start', 'class'=>''); 
  1234. $options[] = array( 
  1235. 'id' => 'display_top_bar',  
  1236. 'name' => __( 'Display Top Bar', 'onetone' ),  
  1237. 'desc' => __( 'Choose to display top bar above the header', 'onetone' ),  
  1238. 'std' => '',  
  1239. 'type' => 'select',  
  1240. 'section' => 'header_tab_section',  
  1241.  
  1242. 'class' => 'accordion-group-3',  
  1243. 'options' => $choices 
  1244. ); 
  1245. $options[] = array( 
  1246. 'id' => 'top_bar_background_color',  
  1247. 'name' => __( 'Background Color', 'onetone' ),  
  1248. 'desc' => __( 'Set background color for top bar', 'onetone' ),  
  1249. 'std' => '',  
  1250. 'type' => 'color',  
  1251. 'section' => 'header_tab_section',  
  1252.  
  1253. 'class' => 'accordion-group-3',  
  1254.  
  1255. ); 
  1256. $options[] = array( 
  1257. 'id' => 'top_bar_left_content',  
  1258. 'name' => __( 'Left Content', 'onetone' ),  
  1259. 'desc' => __( 'Choose content in left side', 'onetone' ),  
  1260. 'std' => '',  
  1261. 'type' => 'select',  
  1262. 'section' => 'header_tab_section',  
  1263.  
  1264. 'class' => 'accordion-group-3',  
  1265. 'options' => array(  
  1266. 'info' => __( 'info', 'onetone' ),  
  1267. 'sns' => __( 'sns', 'onetone' ),  
  1268. 'menu' => __( 'menu', 'onetone' ),  
  1269. 'none' => __( 'none', 'onetone' ),  
  1270.  
  1271. );  
  1272. $options[] = array( 
  1273. 'id' => 'top_bar_right_content',  
  1274. 'name' => __( 'Right Content', 'onetone' ),  
  1275. 'desc' => __( 'Choose content in right side', 'onetone' ),  
  1276. 'std' => '',  
  1277. 'type' => 'select',  
  1278. 'section' => 'header_tab_section',  
  1279.  
  1280. 'class' => 'accordion-group-3',  
  1281. 'options' => array(  
  1282. 'info' => __( 'info', 'onetone' ),  
  1283.  
  1284. 'sns' => __( 'sns', 'onetone' ),  
  1285.  
  1286. 'menu' => __( 'menu', 'onetone' ),  
  1287.  
  1288. 'none' => __( 'none', 'onetone' ),  
  1289.  
  1290. ),  
  1291.  
  1292. ); 
  1293.  
  1294. $options[] = array( 
  1295. 'id' => 'top_bar_info_color',  
  1296. 'name' => __( 'Info Color', 'onetone' ),  
  1297. 'desc' => __( 'Set color for info in top bar', 'onetone' ),  
  1298. 'std' => '',  
  1299. 'type' => 'color',  
  1300. 'section' => 'header_tab_section',  
  1301.  
  1302. 'class' => 'accordion-group-3',  
  1303.  
  1304. ); 
  1305. $options[] = array( 
  1306. 'id' => 'top_bar_info_content',  
  1307. 'name' => __( 'Info Content', 'onetone' ),  
  1308. 'desc' => __( 'Insert content for info in top bar', 'onetone' ),  
  1309. 'std' => '',  
  1310. 'type' => 'textarea',  
  1311. 'section' => 'header_tab_section',  
  1312. 'rows' => '4',  
  1313. 'class' => 'accordion-group-3',  
  1314.  
  1315. ); 
  1316. $options[] = array( 
  1317. 'id' => 'top_bar_menu_color',  
  1318. 'name' => __( 'Menu Color', 'onetone' ),  
  1319. 'desc' => __( 'Set color for menu in top bar', 'onetone' ),  
  1320. 'std' => '',  
  1321. 'type' => 'color',  
  1322. 'section' => 'header_tab_section',  
  1323. 'class' => 'accordion-group-3',  
  1324.  
  1325. ); 
  1326.  
  1327. $options[] = array( 
  1328. 'id' => 'social_links',  
  1329. 'name' => __( 'Social Links', 'onetone' ),  
  1330. 'desc' => '',  
  1331. 'std' => '',  
  1332. 'type' => 'textblock-titled',  
  1333. 'section' => 'header_tab_section',  
  1334. 'rows' => '4',  
  1335. 'class' => 'accordion-group-3',  
  1336.  
  1337. ); 
  1338. if( $social_icons ): 
  1339. $i = 1; 
  1340. foreach($social_icons as $social_icon) { 
  1341.  
  1342. $options[] = array( 
  1343. 'id' => 'header_social_title_'.$i,  
  1344. 'name' => __( 'Social Title', 'onetone' ) .' '.$i,  
  1345. 'desc' => __( 'Set title for social icon', 'onetone' ),  
  1346. 'std' => $social_icon['title'],  
  1347. 'type' => 'text',  
  1348. 'section' => 'header_tab_section',  
  1349. 'class' => 'accordion-group-3',  
  1350.  
  1351. ); 
  1352. $options[] = array( 
  1353. 'id' => 'header_social_icon_'.$i,  
  1354. 'name' => __( 'Social Icon', 'onetone' ).' '.$i,  
  1355. 'desc' => __( 'Choose FontAwesome Icon', 'onetone' ),  
  1356. 'std' => $social_icon['icon'],  
  1357. 'type' => 'text',  
  1358. 'section' => 'header_tab_section',  
  1359. 'class' => 'accordion-group-3',  
  1360.  
  1361. ); 
  1362. $options[] = array( 
  1363. 'id' => 'header_social_link_'.$i,  
  1364. 'name' => __( 'Social Icon Link', 'onetone' ).' '.$i,  
  1365. 'desc' => __( 'Set link for social icon', 'onetone' ),  
  1366. 'std' => $social_icon['link'],  
  1367. 'type' => 'text',  
  1368. 'section' => 'header_tab_section',  
  1369. 'class' => 'accordion-group-3',  
  1370.  
  1371. ); 
  1372.  
  1373. $i++; 
  1374. endif;  
  1375.  
  1376.  
  1377. $options[] = array( 
  1378. 'id' => 'top_bar_social_icons_color',  
  1379. 'name' => __( 'Social Icons Color', 'onetone' ),  
  1380. 'desc' => __( 'Set color for social icons in top bar', 'onetone' ),  
  1381. 'std' => '',  
  1382. 'type' => 'color',  
  1383. 'section' => 'header_tab_section',  
  1384. 'class' => 'accordion-group-3',  
  1385.  
  1386. ); 
  1387. $options[] = array( 
  1388. 'id' => 'top_bar_social_icons_tooltip_position',  
  1389. 'name' => __( 'Social Icon Tooltip Position', 'onetone' ),  
  1390. 'desc' => __( 'Set position for tooltip of social icon', 'onetone' ),  
  1391. 'std' => 'bottom',  
  1392. 'type' => 'select',  
  1393. 'section' => 'header_tab_section',  
  1394. 'class' => 'accordion-group-3',  
  1395. 'options' => array(  
  1396. 'left' => __( 'left', 'onetone' ),  
  1397.  
  1398. 'right' => __( 'right', 'onetone' ),  
  1399.  
  1400. 'bottom' => __( 'bottom', 'onetone' ),  
  1401.  
  1402. ),  
  1403.  
  1404. ); 
  1405. $options[] = array('name' => '', 'id' => 'wrapper_end', 'type' => 'wrapper_end', 'class'=>''); 
  1406. $options[] = array('name' => '', 'id' => 'top_bar_options_group_', 'type' => 'end_group', 'class'=>''); 
  1407. // Sticky Header 
  1408. $options[] = array( 
  1409. 'icon' => 'fa-thumb-tack',  
  1410. 'name' => __('Sticky Header', 'onetone'),  
  1411. 'type' => 'heading' 
  1412. ); 
  1413.  
  1414.  
  1415. $options[] = array( 
  1416. 'id' => 'enable_sticky_header',  
  1417. 'name' => __( 'Enable Sticky Header', 'onetone' ),  
  1418. 'desc' => __( 'Choose to enable sticky header', 'onetone' ),  
  1419. 'std' => 'yes',  
  1420. 'type' => 'select',  
  1421. 'section' => 'sticky_header_tab_section',  
  1422.  
  1423. 'class' => '',  
  1424. 'options' => $choices 
  1425. ); 
  1426. $options[] = array( 
  1427. 'id' => 'enable_sticky_header_tablets',  
  1428. 'name' => __( 'Enable Sticky Header on Tablets', 'onetone' ),  
  1429. 'desc' => __( 'Choose to enable sticky header on tablets', 'onetone' ),  
  1430. 'std' => 'yes',  
  1431. 'type' => 'select',  
  1432. 'section' => 'sticky_header_tab_section',  
  1433.  
  1434. 'class' => '',  
  1435. 'options' => $choices 
  1436. ); 
  1437. $options[] = array( 
  1438. 'id' => 'enable_sticky_header_mobiles',  
  1439. 'name' => __( 'Enable Sticky Header on Mobiles', 'onetone' ),  
  1440. 'desc' => __( 'Choose to enable sticky header on mobiles', 'onetone' ),  
  1441. 'std' => '',  
  1442. 'type' => 'select',  
  1443. 'section' => 'sticky_header_tab_section',  
  1444.  
  1445. 'class' => '',  
  1446. 'options' => $choices 
  1447. ); 
  1448.  
  1449. $options[] = array( 
  1450. 'id' => 'sticky_header_menu_item_padding',  
  1451. 'name' => __( 'Sticky Header Menu Item Padding', 'onetone' ),  
  1452. 'desc' => __( 'Controls the space between each menu item in the sticky header. Use a number without \'px\', default is 0. ex: 10', 'onetone' ),  
  1453. 'std' => '0',  
  1454. 'type' => 'text',  
  1455. 'section' => 'sticky_header_tab_section',  
  1456.  
  1457. 'class' => '',  
  1458.  
  1459. ); 
  1460. $options[] = array( 
  1461. 'id' => 'sticky_header_navigation_font_size',  
  1462. 'name' => __( 'Sticky Header Navigation Font Size', 'onetone' ),  
  1463. 'desc' => __( 'Controls the font size of the menu items in the sticky header. Use a number without \'px\', default is 14. ex: 14', 'onetone' ),  
  1464. 'std' => '14',  
  1465. 'type' => 'text',  
  1466. 'section' => 'sticky_header_tab_section',  
  1467.  
  1468. 'class' => '',  
  1469.  
  1470. ); 
  1471. $options[] = array( 
  1472. 'id' => 'sticky_header_logo_width',  
  1473. 'name' => __( 'Sticky Header Logo Width', 'onetone' ),  
  1474. 'desc' => __( 'Controls the logo width in the sticky header. Use a number without \'px\'.', 'onetone' ),  
  1475. 'std' => '',  
  1476. 'type' => 'text',  
  1477. 'section' => 'sticky_header_tab_section',  
  1478.  
  1479. 'class' => '',  
  1480.  
  1481. ); 
  1482.  
  1483. //// logo 
  1484. $options[] = array( 
  1485. 'icon' => 'fa-star',  
  1486. 'name' => __('Logo', 'onetone'),  
  1487. 'type' => 'heading' 
  1488. ); 
  1489. $options[] = array('name' => '', 'id' => 'section_group_start_logo', 'type' => 'start_group', 'class'=>'home-section group_close'); 
  1490.  
  1491. $options[] = array( 
  1492. 'id' => 'logo',  
  1493. 'name' => __( 'Logo', 'onetone' ).' <span id="accordion-group-sticky_header" class="fa fa-plus"></span>',  
  1494. 'desc' => '',  
  1495. 'std' => '',  
  1496. 'type' => 'textblock-titled',  
  1497. 'section' => 'logo_tab_section',  
  1498. 'rows' => '4',  
  1499.  
  1500. 'class' => 'section-accordion close ',  
  1501.  
  1502. ); 
  1503. $options[] = array('name' => '', 'id' => 'wrapper_start', 'type' => 'wrapper_start', 'class'=>''); 
  1504. $options[] = array( 
  1505. 'id' => 'logo',  
  1506. 'name' => __( 'Upload Logo', 'onetone' ),  
  1507. 'desc' => __( 'Select an image file for your logo.', 'onetone' ),  
  1508. 'std' => '',  
  1509. 'type' => 'upload',  
  1510. 'section' => 'logo_tab_section',  
  1511.  
  1512. 'class' => '',  
  1513.  
  1514. ); 
  1515.  
  1516. $options[] = array( 
  1517. 'id' => 'logo_retina',  
  1518. 'name' => __( 'Upload Logo (Retina Version @2x)', 'onetone' ),  
  1519. 'desc' => __( 'Select an image file for the retina version of the logo. It should be exactly 2x the size of main logo.', 'onetone' ),  
  1520. 'std' => '',  
  1521. 'type' => 'upload',  
  1522. 'section' => 'logo_tab_section',  
  1523.  
  1524. 'class' => '',  
  1525.  
  1526. ); 
  1527. $options[] = array( 
  1528. 'id' => 'retina_logo_width',  
  1529. 'name' => __( 'Standard Logo Width for Retina Logo', 'onetone' ),  
  1530. 'desc' => __( 'If retina logo is uploaded, enter the standard logo (1x) version width, do not enter the retina logo width. Use a number without \'px\', ex: 40', 'onetone' ),  
  1531. 'std' => '',  
  1532. 'type' => 'text',  
  1533. 'section' => 'logo_tab_section',  
  1534.  
  1535. 'class' => '',  
  1536.  
  1537. ); 
  1538.  
  1539. $options[] = array( 
  1540. 'id' => 'retina_logo_height',  
  1541. 'name' => __( 'Standard Logo Height for Retina Logo', 'onetone' ),  
  1542. 'desc' => __( 'If retina logo is uploaded, enter the standard logo (1x) version height, do not enter the retina logo height. Use a number without \'px\', ex: 40', 'onetone' ),  
  1543. 'std' => '',  
  1544. 'type' => 'text',  
  1545. 'section' => 'logo_tab_section',  
  1546.  
  1547. 'class' => '',  
  1548.  
  1549. ); 
  1550.  
  1551. $options[] = array('name' => '', 'id' => 'wrapper_end', 'type' => 'wrapper_end', 'class'=>''); 
  1552.  
  1553. $options[] = array('name' => '', 'id' => 'section_group_end_logo', 'type' => 'end_group'); 
  1554.  
  1555. $options[] = array('name' => '', 'id' => 'section_group_start_sticky_header', 'type' => 'start_group', 'class'=>'home-section group_close'); 
  1556. $options[] = array( 
  1557. 'id' => 'sticky_header_logo',  
  1558. 'name' => __( 'Sticky Header Logo', 'onetone' ).' <span id="accordion-group-sticky_header" class="fa fa-plus"></span>',  
  1559. 'desc' => '',  
  1560. 'std' => '',  
  1561. 'type' => 'textblock-titled',  
  1562. 'section' => 'logo_tab_section',  
  1563. 'rows' => '4',  
  1564.  
  1565. 'class' => 'section-accordion close',  
  1566.  
  1567. ); 
  1568. $options[] = array('name' => '', 'id' => 'wrapper_start', 'type' => 'wrapper_start', 'class'=>'home-section-wrapper'); 
  1569. $options[] = array( 
  1570. 'id' => 'sticky_logo',  
  1571. 'name' => __( 'Upload Logo', 'onetone' ),  
  1572. 'desc' => __( 'Select an image file for your logo.', 'onetone' ),  
  1573. 'std' => '',  
  1574. 'type' => 'upload',  
  1575. 'section' => 'logo_tab_section',  
  1576.  
  1577. 'class' => 'accordion-group-sticky_header',  
  1578.  
  1579. ); 
  1580.  
  1581. $options[] = array( 
  1582. 'id' => 'sticky_logo_retina',  
  1583. 'name' => __( 'Upload Logo (Retina Version @2x)', 'onetone' ),  
  1584. 'desc' => __( 'Select an image file for the retina version of the logo. It should be exactly 2x the size of main logo.', 'onetone' ),  
  1585. 'std' => '',  
  1586. 'type' => 'upload',  
  1587. 'section' => 'logo_tab_section',  
  1588.  
  1589. 'class' => 'accordion-group-sticky_header',  
  1590.  
  1591. ); 
  1592. $options[] = array( 
  1593. 'id' => 'sticky_logo_width_for_retina_logo',  
  1594. 'name' => __( 'Sticky Logo Width for Retina Logo', 'onetone' ),  
  1595. 'desc' => __( 'If retina logo is uploaded, enter the standard logo (1x) version width, do not enter the retina logo width. Use a number without \'px\', ex: 40', 'onetone' ),  
  1596.  
  1597. 'std' => '',  
  1598. 'type' => 'text',  
  1599. 'section' => 'logo_tab_section',  
  1600.  
  1601. 'class' => 'accordion-group-sticky_header',  
  1602.  
  1603. ); 
  1604. $options[] = array( 
  1605. 'id' => 'sticky_logo_height_for_retina_logo',  
  1606. 'name' => __( 'Sticky Logo Height for Retina Logo', 'onetone' ),  
  1607. 'desc' => __( 'If retina logo is uploaded, enter the standard logo (1x) version height, do not enter the retina logo height. Use a number without \'px\', ex: 40', 'onetone' ),  
  1608. 'std' => '',  
  1609. 'type' => 'text',  
  1610. 'section' => 'logo_tab_section',  
  1611.  
  1612. 'class' => 'accordion-group-sticky_header',  
  1613.  
  1614. ); 
  1615.  
  1616. $options[] = array('name' => '', 'id' => 'wrapper_end', 'type' => 'wrapper_end', 'class'=>''); 
  1617.  
  1618. $options[] = array('name' => '', 'id' => 'section_group_end_sticky_header', 'type' => 'end_group'); 
  1619.  
  1620. $options[] = array( 
  1621. 'id' => 'logo_position',  
  1622. 'name' => __( 'Logo Position', 'onetone' ),  
  1623. 'desc' => __( 'Set position for logo in header', 'onetone' ),  
  1624. 'std' => 'left',  
  1625. 'type' => 'select',  
  1626. 'section' => 'logo_tab_section',  
  1627. 'class' => '',  
  1628. 'options' => $align 
  1629. ); 
  1630.  
  1631. $options[] = array( 
  1632. 'id' => 'logo_left_margin',  
  1633. 'name' => __( 'Logo Left Margin', 'onetone' ),  
  1634. 'desc' => __( 'Use a number without \'px\', ex: 40', 'onetone' ),  
  1635. 'std' => '',  
  1636. 'type' => 'text',  
  1637. 'section' => 'logo_tab_section',  
  1638.  
  1639. 'class' => '',  
  1640.  
  1641. ); 
  1642. $options[] = array( 
  1643. 'id' => 'logo_right_margin',  
  1644. 'name' => __( 'Logo Right Margin', 'onetone' ),  
  1645. 'desc' => __( 'Use a number without \'px\', ex: 40', 'onetone' ),  
  1646. 'std' => '',  
  1647. 'type' => 'text',  
  1648. 'section' => 'logo_tab_section',  
  1649.  
  1650. 'class' => '',  
  1651.  
  1652. ); 
  1653. $options[] = array( 
  1654. 'id' => 'logo_top_margin',  
  1655. 'name' => __( 'Logo Top Margin', 'onetone' ),  
  1656. 'desc' => __( 'Use a number without \'px\', ex: 40', 'onetone' ),  
  1657. 'std' => '',  
  1658. 'type' => 'text',  
  1659. 'section' => 'logo_tab_section',  
  1660.  
  1661. 'class' => '',  
  1662.  
  1663. ); 
  1664. $options[] = array( 
  1665. 'id' => 'logo_bottom_margin',  
  1666. 'name' => __( 'Logo Bottom Margin', 'onetone' ),  
  1667. 'desc' => __( 'Use a number without \'px\', ex: 40', 'onetone' ),  
  1668. 'std' => '',  
  1669. 'type' => 'text',  
  1670. 'section' => 'logo_tab_section',  
  1671.  
  1672. 'class' => '',  
  1673.  
  1674. ); 
  1675.  
  1676. // styleling 
  1677. $options[] = array( 
  1678. 'icon' => 'fa-eyedropper',  
  1679. 'name' => __('Styling', 'onetone'),  
  1680. 'type' => 'heading' 
  1681. ); 
  1682.  
  1683. $options[] = array( 
  1684. 'id' => 'primary_color',  
  1685. 'name' => __( 'Primary Color', 'onetone' ),  
  1686. 'desc' => __( 'Set primary color for the theme', 'onetone' ),  
  1687. 'std' => '#eda869',  
  1688. 'type' => 'color',  
  1689. 'section' => 'styling_tab_section',  
  1690. 'class' => '',  
  1691.  
  1692. ); 
  1693.  
  1694. //Background Colors 
  1695. $options[] = array('name' => '', 'id' => 'background_colors_group', 'type' => 'start_group', 'class'=>''); 
  1696. $options[] = array( 
  1697. 'id' => 'background_colors',  
  1698. 'name' => __( 'Background Colors', 'onetone' ).' <span id="accordion-group-background_colors" class="fa fa-plus"></span>',  
  1699. 'desc' => '',  
  1700. 'std' => '',  
  1701. 'type' => 'textblock-titled',  
  1702. 'section' => 'styling_tab_section',  
  1703. 'rows' => '4',  
  1704.  
  1705. 'class' => 'section-accordion close',  
  1706.  
  1707. ); 
  1708. $options[] = array('name' => '', 'id' => 'wrapper_start', 'type' => 'wrapper_start', 'class'=>''); 
  1709. $options[] = array( 
  1710. 'id' => 'sticky_header_background_color',  
  1711. 'name' => __( 'Sticky Header Background Color', 'onetone' ),  
  1712. 'desc' => __( 'Set background color for sticky header', 'onetone' ),  
  1713. 'std' => '',  
  1714. 'type' => 'color',  
  1715. 'section' => 'styling_tab_section',  
  1716.  
  1717. 'class' => 'accordion-group-background_colors',  
  1718.  
  1719. ); 
  1720. $options[] = array( 
  1721. 'id' => 'sticky_header_background_opacity',  
  1722. 'name' => __( 'Sticky Header Background Opacity', 'onetone' ),  
  1723. 'desc' => __( 'Opacity only works with header top position and ranges between 0 (transparent) and 1.', 'onetone' ),  
  1724. 'std' => '0.7',  
  1725. 'type' => 'select',  
  1726. 'section' => 'styling_tab_section',  
  1727.  
  1728. 'options' => $opacity,  
  1729. 'class' => 'accordion-group-background_colors',  
  1730.  
  1731. ); 
  1732. $options[] = array( 
  1733. 'id' => 'header_background_color',  
  1734. 'name' => __( 'Header Background Color', 'onetone' ),  
  1735. 'desc' => __( 'Set background color for main header', 'onetone' ),  
  1736. 'std' => '',  
  1737. 'type' => 'color',  
  1738. 'section' => 'styling_tab_section',  
  1739.  
  1740. 'class' => 'accordion-group-background_colors',  
  1741.  
  1742. ); 
  1743. $options[] = array( 
  1744. 'id' => 'header_background_opacity',  
  1745. 'name' => __( 'Header Background Opacity', 'onetone' ),  
  1746. 'desc' => __( 'Opacity only works with header top position and ranges between 0 (transparent) and 1.', 'onetone' ),  
  1747. 'std' => '1',  
  1748. 'type' => 'select',  
  1749. 'section' => 'styling_tab_section',  
  1750.  
  1751. 'options' => $opacity,  
  1752. 'class' => 'accordion-group-background_colors',  
  1753.  
  1754. ); 
  1755.  
  1756. $options[] = array( 
  1757. 'id' => 'content_background_color',  
  1758. 'name' => __( 'Content Background Color', 'onetone' ),  
  1759. 'desc' => __( 'Set background color for site content', 'onetone' ),  
  1760. 'std' => '',  
  1761. 'type' => 'color',  
  1762. 'section' => 'styling_tab_section',  
  1763.  
  1764. 'class' => 'accordion-group-background_colors',  
  1765.  
  1766. ); 
  1767. $options[] = array( 
  1768. 'id' => 'sidebar_background_color',  
  1769. 'name' => __( 'Sidebar Background Color', 'onetone' ),  
  1770. 'desc' => __( 'Set background color for sidebar', 'onetone' ),  
  1771. 'std' => '',  
  1772. 'type' => 'color',  
  1773. 'section' => 'styling_tab_section',  
  1774.  
  1775. 'class' => 'accordion-group-background_colors',  
  1776.  
  1777. ); 
  1778. $options[] = array( 
  1779. 'id' => 'footer_background_color',  
  1780. 'name' => __( 'Footer Background Color', 'onetone' ),  
  1781. 'desc' => __( 'Set background color for the footer', 'onetone' ),  
  1782. 'std' => '',  
  1783. 'type' => 'color',  
  1784. 'section' => 'styling_tab_section',  
  1785.  
  1786. 'class' => 'accordion-group-background_colors',  
  1787.  
  1788. ); 
  1789.  
  1790. $options[] = array( 
  1791. 'id' => 'copyright_background_color',  
  1792. 'name' => __( 'Copyright Background Color', 'onetone' ),  
  1793. 'desc' => __( 'Set background color for the copyright area in footer', 'onetone' ),  
  1794. 'std' => '',  
  1795. 'type' => 'color',  
  1796. 'section' => 'styling_tab_section',  
  1797.  
  1798. 'class' => 'accordion-group-background_colors',  
  1799.  
  1800. ); 
  1801. $options[] = array('name' => '', 'id' => 'wrapper_end', 'type' => 'wrapper_end', 'class'=>''); 
  1802. $options[] = array('name' => '', 'id' => 'background_colors_group_', 'type' => 'end_group', 'class'=>'');  
  1803. //Background Colors 
  1804. $options[] = array('name' => '', 'id' => 'element_colors_group', 'type' => 'start_group', 'class'=>''); 
  1805. $options[] = array( 
  1806. 'id' => 'element_colors',  
  1807. 'name' => __( 'Element Colors', 'onetone' ).' <span id="accordion-group-element_colors" class="fa fa-plus"></span>',  
  1808. 'desc' => '',  
  1809. 'std' => '',  
  1810. 'type' => 'textblock-titled',  
  1811. 'section' => 'styling_tab_section',  
  1812. 'rows' => '4',  
  1813.  
  1814. 'class' => 'section-accordion close',  
  1815.  
  1816. ); 
  1817. $options[] = array('name' => '', 'id' => 'wrapper_start', 'type' => 'wrapper_start', 'class'=>''); 
  1818.  
  1819. $options[] = array( 
  1820. 'id' => 'form_background_color',  
  1821. 'name' => __( 'Form Background Color', 'onetone' ),  
  1822. 'desc' => __( 'Controls the background color of form fields', 'onetone' ),  
  1823. 'std' => '',  
  1824. 'type' => 'color',  
  1825. 'section' => 'styling_tab_section',  
  1826.  
  1827. 'class' => 'accordion-group-element_colors',  
  1828.  
  1829. ); 
  1830. $options[] = array( 
  1831. 'id' => 'form_text_color',  
  1832. 'name' => __( 'Form Text Color', 'onetone' ),  
  1833. 'desc' => __( 'Controls the text color for forms', 'onetone' ),  
  1834. 'std' => '',  
  1835. 'type' => 'color',  
  1836. 'section' => 'styling_tab_section',  
  1837.  
  1838. 'class' => 'accordion-group-element_colors',  
  1839.  
  1840. ); 
  1841. $options[] = array( 
  1842. 'id' => 'form_border_color',  
  1843. 'name' => __( 'Form Border Color', 'onetone' ),  
  1844. 'desc' => __( 'Controls the border color for forms', 'onetone' ),  
  1845. 'std' => '',  
  1846. 'type' => 'color',  
  1847. 'section' => 'styling_tab_section',  
  1848.  
  1849. 'class' => 'accordion-group-element_colors',  
  1850.  
  1851. ); 
  1852. $options[] = array('name' => '', 'id' => 'wrapper_end', 'type' => 'wrapper_end', 'class'=>''); 
  1853. $options[] = array('name' => '', 'id' => 'element_colors_group_', 'type' => 'end_group', 'class'=>''); 
  1854. // layout options 
  1855. $options[] = array('name' => '', 'id' => 'layout_options_group', 'type' => 'start_group', 'class'=>''); 
  1856. $options[] = array( 
  1857. 'id' => 'layout_options',  
  1858. 'name' => __( 'Layout Options', 'onetone' ).' <span id="accordion-group-layout_options" class="fa fa-plus"></span>',  
  1859. 'desc' => '',  
  1860. 'std' => '',  
  1861. 'type' => 'textblock-titled',  
  1862. 'section' => 'styling_tab_section',  
  1863. 'rows' => '4',  
  1864.  
  1865. 'class' => 'section-accordion close',  
  1866.  
  1867. ); 
  1868. $options[] = array('name' => '', 'id' => 'wrapper_start', 'type' => 'wrapper_start', 'class'=>''); 
  1869. $options[] = array( 
  1870. 'id' => 'page_content_top_padding',  
  1871. 'name' => __( 'Page Content Top Padding', 'onetone' ),  
  1872. 'desc' => __( 'In pixels or percentage, ex: 10px or 10%.', 'onetone' ),  
  1873. 'std' => '55px',  
  1874. 'type' => 'text',  
  1875. 'section' => 'styling_tab_section',  
  1876.  
  1877. 'class' => 'accordion-group-layout_options',  
  1878.  
  1879. ); 
  1880. $options[] = array( 
  1881. 'id' => 'page_content_bottom_padding',  
  1882. 'name' => __( 'Page Content Bottom Padding', 'onetone' ),  
  1883. 'desc' => __( 'In pixels or percentage, ex: 10px or 10%.', 'onetone' ),  
  1884. 'std' => '40px',  
  1885. 'type' => 'text',  
  1886. 'section' => 'styling_tab_section',  
  1887.  
  1888. 'class' => 'accordion-group-layout_options',  
  1889.  
  1890. ); 
  1891. $options[] = array( 
  1892. 'id' => 'hundredp_padding',  
  1893. 'name' => __( '100% Width Left/Right Padding ###', 'onetone' ),  
  1894. 'desc' => __( 'This option controls the left/right padding for page content when using 100% site width or 100% width page template. In pixels or percentage, ex: 10px or 10%.', 'onetone' ),  
  1895. 'std' => '20px',  
  1896. 'type' => 'text',  
  1897. 'section' => 'styling_tab_section',  
  1898.  
  1899. 'class' => 'accordion-group-layout_options',  
  1900.  
  1901. ); 
  1902. $options[] = array( 
  1903. 'id' => 'sidebar_padding',  
  1904. 'name' => __( 'Sidebar Padding', 'onetone' ),  
  1905. 'desc' => __( 'Enter a pixel or percentage based value, ex: 5px or 5%', 'onetone' ),  
  1906. 'std' => '0',  
  1907. 'type' => 'text',  
  1908. 'section' => 'styling_tab_section',  
  1909.  
  1910. 'class' => 'accordion-group-layout_options',  
  1911.  
  1912. ); 
  1913. $options[] = array( 
  1914. 'id' => 'column_top_margin',  
  1915. 'name' => __( 'Column Top Margin', 'onetone' ),  
  1916. 'desc' => __( 'Controls the top margin for all column sizes. In pixels or percentage, ex: 10px or 10%.', 'onetone' ),  
  1917. 'std' => '0px',  
  1918. 'type' => 'text',  
  1919. 'section' => 'styling_tab_section',  
  1920.  
  1921. 'class' => 'accordion-group-layout_options',  
  1922.  
  1923. ); 
  1924. $options[] = array( 
  1925. 'id' => 'column_bottom_margin',  
  1926. 'name' => __( 'Column Bottom Margin', 'onetone' ),  
  1927. 'desc' => __( 'Controls the bottom margin for all column sizes. In pixels or percentage, ex: 10px or 10%.', 'onetone' ),  
  1928. 'std' => '20px',  
  1929. 'type' => 'text',  
  1930. 'section' => 'styling_tab_section',  
  1931.  
  1932. 'class' => 'accordion-group-layout_options',  
  1933.  
  1934. ); 
  1935. $options[] = array('name' => '', 'id' => 'wrapper_end', 'type' => 'wrapper_end', 'class'=>''); 
  1936. $options[] = array('name' => '', 'id' => 'layout_options_group_', 'type' => 'end_group', 'class'=>'');  
  1937. // Font Colors 
  1938. $options[] = array('name' => '', 'id' => 'font_colors_group', 'type' => 'start_group', 'class'=>''); 
  1939.  
  1940. $options[] = array( 
  1941. 'id' => 'font_colors',  
  1942. 'name' => __( 'Font Colors', 'onetone' ).' <span id="accordion-group-font_colors_options" class="fa fa-plus"></span>',  
  1943. 'desc' => '',  
  1944. 'std' => '',  
  1945. 'type' => 'textblock-titled',  
  1946. 'section' => 'styling_tab_section',  
  1947. 'rows' => '4',  
  1948.  
  1949. 'class' => 'section-accordion close',  
  1950.  
  1951. ); 
  1952.  
  1953. $options[] = array('name' => '', 'id' => 'wrapper_start', 'type' => 'wrapper_start', 'class'=>''); 
  1954. $options[] = array( 
  1955. 'id' => 'header_tagline_color',  
  1956. 'name' => __( 'Header Tagline', 'onetone' ),  
  1957. 'desc' => __( 'Set color for tagline in header', 'onetone' ),  
  1958. 'std' => '',  
  1959. 'type' => 'color',  
  1960. 'section' => 'styling_tab_section',  
  1961.  
  1962. 'class' => 'accordion-group-font_colors_options',  
  1963.  
  1964. ); 
  1965. $options[] = array( 
  1966. 'id' => 'page_title_color',  
  1967. 'name' => __( 'Page Title', 'onetone' ),  
  1968. 'desc' => __( 'Set color for page title', 'onetone' ),  
  1969. 'std' => '',  
  1970. 'type' => 'color',  
  1971. 'section' => 'styling_tab_section',  
  1972.  
  1973. 'class' => 'accordion-group-font_colors_options',  
  1974.  
  1975. ); 
  1976.  
  1977. $options[] = array( 
  1978. 'id' => 'h1_color',  
  1979. 'name' => __( 'Heading 1 (H1) Font Color', 'onetone' ),  
  1980. 'desc' => __( 'Choose color for H1 headings', 'onetone' ),  
  1981. 'std' => '',  
  1982. 'type' => 'color',  
  1983. 'section' => 'styling_tab_section',  
  1984.  
  1985. 'class' => 'accordion-group-font_colors_options',  
  1986.  
  1987. ); 
  1988. $options[] = array( 
  1989. 'id' => 'h2_color',  
  1990. 'name' => __( 'Heading 2 (H2) Font Color', 'onetone' ),  
  1991. 'desc' => __( 'Choose color for H2 headings', 'onetone' ),  
  1992. 'std' => '',  
  1993. 'type' => 'color',  
  1994. 'section' => 'styling_tab_section',  
  1995.  
  1996. 'class' => 'accordion-group-font_colors_options',  
  1997.  
  1998. ); 
  1999. $options[] = array( 
  2000. 'id' => 'h3_color',  
  2001. 'name' => __( 'Heading 3 (H3) Font Color', 'onetone' ),  
  2002. 'desc' => __( 'Choose color for H3 headings', 'onetone' ),  
  2003. 'std' => '',  
  2004. 'type' => 'color',  
  2005. 'section' => 'styling_tab_section',  
  2006.  
  2007. 'class' => 'accordion-group-font_colors_options',  
  2008.  
  2009. ); 
  2010. $options[] = array( 
  2011. 'id' => 'h4_color',  
  2012. 'name' => __( 'Heading 4 (H4) Font Color', 'onetone' ),  
  2013. 'desc' => __( 'Choose color for H4 headings', 'onetone' ),  
  2014. 'std' => '',  
  2015. 'type' => 'color',  
  2016. 'section' => 'styling_tab_section',  
  2017.  
  2018. 'class' => 'accordion-group-font_colors_options',  
  2019.  
  2020. ); 
  2021. $options[] = array( 
  2022. 'id' => 'h5_color',  
  2023. 'name' => __( 'Heading 5 (H5) Font Color', 'onetone' ),  
  2024. 'desc' => __( 'Choose color for H5 headings', 'onetone' ),  
  2025. 'std' => '',  
  2026. 'type' => 'color',  
  2027. 'section' => 'styling_tab_section',  
  2028.  
  2029. 'class' => 'accordion-group-font_colors_options',  
  2030.  
  2031. ); 
  2032. $options[] = array( 
  2033. 'id' => 'h6_color',  
  2034. 'name' => __( 'Heading 6 (H6) Font Color', 'onetone' ),  
  2035. 'desc' => __( 'Choose color for H6 headings', 'onetone' ),  
  2036. 'std' => '',  
  2037. 'type' => 'color',  
  2038. 'section' => 'styling_tab_section',  
  2039.  
  2040. 'class' => 'accordion-group-font_colors_options',  
  2041.  
  2042. ); 
  2043.  
  2044. $options[] = array( 
  2045. 'id' => 'body_text_color',  
  2046. 'name' => __( 'Body Text Color', 'onetone' ),  
  2047. 'desc' => __( 'Choose color for body text', 'onetone' ),  
  2048. 'std' => '',  
  2049. 'type' => 'color',  
  2050. 'section' => 'styling_tab_section',  
  2051.  
  2052. 'class' => 'accordion-group-font_colors_options',  
  2053.  
  2054. ); 
  2055. $options[] = array( 
  2056. 'id' => 'links_color',  
  2057. 'name' => __( 'Links Color', 'onetone' ),  
  2058. 'desc' => __( 'Choose color for links', 'onetone' ),  
  2059. 'std' => '',  
  2060. 'type' => 'color',  
  2061. 'section' => 'styling_tab_section',  
  2062.  
  2063. 'class' => 'accordion-group-font_colors_options',  
  2064.  
  2065. ); 
  2066. $options[] = array( 
  2067. 'id' => 'breadcrumbs_text_color',  
  2068. 'name' => __( 'Breadcrumbs Text Color', 'onetone' ),  
  2069. 'desc' => __( 'Choose color for breadcrumbs', 'onetone' ),  
  2070. 'std' => '',  
  2071. 'type' => 'color',  
  2072. 'section' => 'styling_tab_section',  
  2073.  
  2074. 'class' => 'accordion-group-font_colors_options',  
  2075.  
  2076. ); 
  2077.  
  2078. $options[] = array( 
  2079. 'id' => 'sidebar_widget_headings_color',  
  2080. 'name' => __( 'Sidebar Widget Headings Color', 'onetone' ),  
  2081. 'desc' => __( 'Choose color for Sidebar widget headings', 'onetone' ),  
  2082. 'std' => '',  
  2083. 'type' => 'color',  
  2084. 'section' => 'styling_tab_section',  
  2085.  
  2086. 'class' => 'accordion-group-font_colors_options',  
  2087.  
  2088. ); 
  2089. $options[] = array( 
  2090. 'id' => 'footer_headings_color',  
  2091. 'name' => __( 'Footer Headings Color', 'onetone' ),  
  2092. 'desc' => __( 'Choose color for footer headings', 'onetone' ),  
  2093. 'std' => '',  
  2094. 'type' => 'color',  
  2095. 'section' => 'styling_tab_section',  
  2096.  
  2097. 'class' => 'accordion-group-font_colors_options',  
  2098.  
  2099. ); 
  2100. $options[] = array( 
  2101. 'id' => 'footer_text_color',  
  2102. 'name' => __( 'Footer Text Color', 'onetone' ),  
  2103. 'desc' => __( 'Choose color for footer text', 'onetone' ),  
  2104. 'std' => '',  
  2105. 'type' => 'color',  
  2106. 'section' => 'styling_tab_section',  
  2107.  
  2108. 'class' => 'accordion-group-font_colors_options',  
  2109.  
  2110. ); 
  2111. $options[] = array( 
  2112. 'id' => 'footer_link_color',  
  2113. 'name' => __( 'Footer Link Color', 'onetone' ),  
  2114. 'desc' => __( 'Choose color for links in footer', 'onetone' ),  
  2115. 'std' => '',  
  2116. 'type' => 'color',  
  2117. 'section' => 'styling_tab_section',  
  2118.  
  2119. 'class' => 'accordion-group-font_colors_options',  
  2120.  
  2121. ); 
  2122. $options[] = array('name' => '', 'id' => 'wrapper_end', 'type' => 'wrapper_end', 'class'=>''); 
  2123. $options[] = array('name' => '', 'id' => 'font_colors_group_', 'type' => 'end_group', 'class'=>''); 
  2124. // main menu colors 
  2125. $options[] = array('name' => '', 'id' => 'main_menu_colors_group', 'type' => 'start_group', 'class'=>''); 
  2126. $options[] = array( 
  2127. 'id' => 'main_menu_colors',  
  2128. 'name' => __( 'Main Menu Colors', 'onetone' ).' <span id="accordion-group-main_menu_colors_options" class="fa fa-plus"></span>',  
  2129. 'desc' => '',  
  2130. 'std' => '',  
  2131. 'type' => 'textblock-titled',  
  2132. 'section' => 'styling_tab_section',  
  2133. 'rows' => '4',  
  2134.  
  2135. 'class' => 'section-accordion close',  
  2136.  
  2137. ); 
  2138. $options[] = array('name' => '', 'id' => 'wrapper_start', 'type' => 'wrapper_start', 'class'=>''); 
  2139. $options[] = array( 
  2140. 'id' => 'main_menu_background_color_1',  
  2141. 'name' => __( 'Main Menu Background Color', 'onetone' ),  
  2142. 'desc' => __( 'Choose background color for main menu', 'onetone' ),  
  2143. 'std' => '',  
  2144. 'type' => 'color',  
  2145. 'section' => 'styling_tab_section',  
  2146.  
  2147. 'class' => 'accordion-group-main_menu_colors_options',  
  2148.  
  2149. ); 
  2150. $options[] = array( 
  2151. 'id' => 'main_menu_font_color_1',  
  2152. 'name' => __( 'Main Menu Font Color ( First Level )', 'onetone' ),  
  2153. 'desc' => __( 'Choose font color for first level of main menu', 'onetone' ),  
  2154. 'std' => '',  
  2155. 'type' => 'color',  
  2156. 'section' => 'styling_tab_section',  
  2157.  
  2158. 'class' => 'accordion-group-main_menu_colors_options',  
  2159.  
  2160. ); 
  2161. $options[] = array( 
  2162. 'id' => 'main_menu_font_hover_color_1',  
  2163. 'name' => __( 'Main Menu Font Hover Color ( First Level )', 'onetone' ),  
  2164. 'desc' => __( 'Choose hover color for first level of main menu', 'onetone' ),  
  2165. 'std' => '',  
  2166. 'type' => 'color',  
  2167. 'section' => 'styling_tab_section',  
  2168.  
  2169. 'class' => 'accordion-group-main_menu_colors_options',  
  2170.  
  2171. ); 
  2172. $options[] = array( 
  2173. 'id' => 'main_menu_background_color_2',  
  2174. 'name' => __( 'Main Menu Background Color ( Sub Level )', 'onetone' ),  
  2175. 'desc' => __( 'Choose background color for sub level of main menu', 'onetone' ),  
  2176. 'std' => '',  
  2177. 'type' => 'color',  
  2178. 'section' => 'styling_tab_section',  
  2179.  
  2180. 'class' => 'accordion-group-main_menu_colors_options',  
  2181.  
  2182. ); 
  2183.  
  2184. $options[] = array( 
  2185. 'id' => 'main_menu_font_color_2',  
  2186. 'name' => __( 'Main Menu Font Color ( Sub Level )', 'onetone' ),  
  2187. 'desc' => __( 'Choose font color for sub level of main menu', 'onetone' ),  
  2188. 'std' => '',  
  2189. 'type' => 'color',  
  2190. 'section' => 'styling_tab_section',  
  2191.  
  2192. 'class' => 'accordion-group-main_menu_colors_options',  
  2193.  
  2194. ); 
  2195. $options[] = array( 
  2196. 'id' => 'main_menu_font_hover_color_2',  
  2197. 'name' => __( 'Main Menu Font Hover Color ( Sub Level )', 'onetone' ),  
  2198. 'desc' => __( 'Choose hover color for sub level of main menu', 'onetone' ),  
  2199. 'std' => '',  
  2200. 'type' => 'color',  
  2201. 'section' => 'styling_tab_section',  
  2202.  
  2203. 'class' => 'accordion-group-main_menu_colors_options',  
  2204.  
  2205. ); 
  2206. $options[] = array( 
  2207. 'id' => 'main_menu_separator_color_2',  
  2208. 'name' => __( 'Main Menu Separator Color ( Sub Levels )', 'onetone' ),  
  2209. 'desc' => __( 'Choose separator color for sub level of main menu', 'onetone' ),  
  2210. 'std' => '',  
  2211. 'type' => 'color',  
  2212. 'section' => 'styling_tab_section',  
  2213.  
  2214. 'class' => 'accordion-group-main_menu_colors_options',  
  2215.  
  2216. ); 
  2217. $options[] = array('name' => '', 'id' => 'wrapper_end', 'type' => 'wrapper_end', 'class'=>''); 
  2218.  
  2219. $options[] = array('name' => '', 'id' => 'main_menu_colors_group_', 'type' => 'end_group', 'class'=>''); 
  2220. //Sidebar 
  2221.  
  2222. $options[] = array( 
  2223. 'icon' => 'fa-columns',  
  2224. 'name' => __('Sidebar', 'onetone'),  
  2225. 'type' => 'heading' 
  2226. ); 
  2227. $options[] = array('name' => '', 'id' => 'sidebar_blog_posts_group', 'type' => 'start_group', 'class'=>''); 
  2228. $options[] = array( 
  2229. 'id' => 'sidebar_blog_posts',  
  2230. 'name' => __( 'Blog Posts', 'onetone' ).' <span id="accordion-group-8" class="fa fa-plus"></span>',  
  2231. 'desc' => '',  
  2232. 'std' => '',  
  2233. 'type' => 'textblock-titled',  
  2234. 'section' => 'sidebar_tab_section',  
  2235. 'rows' => '4',  
  2236.  
  2237. 'class' => 'section-accordion close',  
  2238.  
  2239. ); 
  2240. $options[] = array('name' => '', 'id' => 'wrapper_start', 'type' => 'wrapper_start', 'class'=>''); 
  2241.  
  2242. $options[] = array( 
  2243. 'id' => 'left_sidebar_blog_posts',  
  2244. 'name' => __( 'Left Sidebar', 'onetone' ),  
  2245. 'desc' => __( 'Choose left sidebar for blog posts', 'onetone' ),  
  2246. 'std' => '',  
  2247. 'type' => 'select',  
  2248. 'section' => 'sidebar_tab_section',  
  2249.  
  2250. 'class' => 'accordion-group-8',  
  2251. 'options' => $sidebars,  
  2252.  
  2253. ); 
  2254. $options[] = array( 
  2255. 'id' => 'right_sidebar_blog_posts',  
  2256. 'name' => __( 'Right Sidebar', 'onetone' ),  
  2257. 'desc' => __( 'Choose right sidebar for blog posts', 'onetone' ),  
  2258. 'std' => '',  
  2259. 'type' => 'select',  
  2260. 'section' => 'sidebar_tab_section',  
  2261.  
  2262. 'class' => 'accordion-group-8',  
  2263. 'options' => $sidebars,  
  2264.  
  2265. ); 
  2266. $options[] = array('name' => '', 'id' => 'wrapper_end', 'type' => 'wrapper_end', 'class'=>''); 
  2267. $options[] = array('name' => '', 'id' => 'sidebar_blog_posts_group_', 'type' => 'end_group', 'class'=>''); 
  2268. // 
  2269. $options[] = array('name' => '', 'id' => 'sidebar_blog_archive_group', 'type' => 'start_group', 'class'=>''); 
  2270. $options[] = array( 
  2271. 'id' => 'sidebar_blog_archive',  
  2272. 'name' => __( 'Blog Archive / Category Pages', 'onetone' ).' <span id="accordion-group-10" class="fa fa-plus"></span>',  
  2273. 'desc' => '',  
  2274. 'std' => '',  
  2275. 'type' => 'textblock-titled',  
  2276. 'section' => 'sidebar_tab_section',  
  2277. 'rows' => '4',  
  2278.  
  2279. 'class' => 'section-accordion close',  
  2280.  
  2281. ); 
  2282. $options[] = array('name' => '', 'id' => 'wrapper_start', 'type' => 'wrapper_start', 'class'=>''); 
  2283. $options[] = array( 
  2284. 'id' => 'left_sidebar_blog_archive',  
  2285. 'name' => __( 'Left Sidebar', 'onetone' ),  
  2286. 'desc' => __( 'Choose left sidebar for blog archive page', 'onetone' ),  
  2287. 'std' => '',  
  2288. 'type' => 'select',  
  2289. 'section' => 'sidebar_tab_section',  
  2290.  
  2291. 'class' => 'accordion-group-10',  
  2292. 'options' => $sidebars,  
  2293.  
  2294. ); 
  2295. $options[] = array( 
  2296. 'id' => 'right_sidebar_blog_archive',  
  2297. 'name' => __( 'Right Sidebar', 'onetone' ),  
  2298. 'desc' => __( 'Choose right sidebar for blog archive page', 'onetone' ),  
  2299. 'std' => '',  
  2300. 'type' => 'select',  
  2301. 'section' => 'sidebar_tab_section',  
  2302.  
  2303. 'class' => 'accordion-group-10',  
  2304. 'options' => $sidebars,  
  2305.  
  2306. ); 
  2307. $options[] = array('name' => '', 'id' => 'wrapper_end', 'type' => 'wrapper_end', 'class'=>''); 
  2308. $options[] = array('name' => '', 'id' => 'sidebar_blog_archive_group_', 'type' => 'end_group', 'class'=>''); 
  2309.  
  2310. //Sidebar search' 
  2311. $options[] = array('name' => '', 'id' => 'sidebar_search_group', 'type' => 'start_group', 'class'=>''); 
  2312. $options[] = array( 
  2313. 'id' => 'sidebar_search',  
  2314. 'name' => __( 'Search Page', 'onetone' ).' <span id="accordion-group-14" class="fa fa-plus"></span>',  
  2315. 'desc' => '',  
  2316. 'std' => '',  
  2317. 'type' => 'textblock-titled',  
  2318. 'section' => 'sidebar_tab_section',  
  2319. 'rows' => '4',  
  2320.  
  2321. 'class' => 'section-accordion close',  
  2322.  
  2323. ); 
  2324. $options[] = array('name' => '', 'id' => 'wrapper_start', 'type' => 'wrapper_start', 'class'=>''); 
  2325. $options[] = array( 
  2326. 'id' => 'left_sidebar_search',  
  2327. 'name' => __( 'Left Sidebar', 'onetone' ),  
  2328. 'desc' => __( 'Choose left sidebar for blog search result page', 'onetone' ),  
  2329. 'std' => '',  
  2330. 'type' => 'select',  
  2331. 'section' => 'sidebar_tab_section',  
  2332.  
  2333. 'class' => 'accordion-group-14',  
  2334. 'options' => $sidebars,  
  2335.  
  2336. ); 
  2337. $options[] = array( 
  2338. 'id' => 'right_sidebar_search',  
  2339. 'name' => __( 'Right Sidebar', 'onetone' ),  
  2340. 'desc' => __( 'Choose right sidebar for blog search result page', 'onetone' ),  
  2341. 'std' => '',  
  2342. 'type' => 'select',  
  2343. 'section' => 'sidebar_tab_section',  
  2344.  
  2345. 'class' => 'accordion-group-14',  
  2346. 'options' => $sidebars,  
  2347.  
  2348. ); 
  2349. $options[] = array('name' => '', 'id' => 'wrapper_end', 'type' => 'wrapper_end', 'class'=>''); 
  2350. $options[] = array('name' => '', 'id' => 'sidebar_search_group_', 'type' => 'end_group', 'class'=>''); 
  2351. //Sidebar 404 page' 
  2352. $options[] = array('name' => '', 'id' => 'sidebar_404_group', 'type' => 'start_group', 'class'=>''); 
  2353. $options[] = array( 
  2354. 'id' => 'sidebar_404',  
  2355. 'name' => __( '404 Page', 'onetone' ).' <span id="accordion-group-404" class="fa fa-plus"></span>',  
  2356. 'desc' => '',  
  2357. 'std' => '',  
  2358. 'type' => 'textblock-titled',  
  2359. 'section' => 'sidebar_tab_section',  
  2360. 'rows' => '4',  
  2361.  
  2362. 'class' => 'section-accordion close',  
  2363.  
  2364. ); 
  2365. $options[] = array('name' => '', 'id' => 'wrapper_start', 'type' => 'wrapper_start', 'class'=>'');  
  2366. $options[] = array( 
  2367. 'id' => 'left_sidebar_404',  
  2368. 'name' => __( 'Left Sidebar', 'onetone' ),  
  2369. 'desc' => __( 'Choose left sidebar for 404 page', 'onetone' ),  
  2370. 'std' => '',  
  2371. 'type' => 'select',  
  2372. 'section' => 'sidebar_tab_section',  
  2373.  
  2374. 'class' => 'accordion-group-404',  
  2375. 'options' => $sidebars,  
  2376.  
  2377. ); 
  2378. $options[] = array( 
  2379. 'id' => 'right_sidebar_404',  
  2380. 'name' => __( 'Right Sidebar', 'onetone' ),  
  2381. 'desc' => __( 'Choose right sidebar for 404 page', 'onetone' ),  
  2382. 'std' => '',  
  2383. 'type' => 'select',  
  2384. 'section' => 'sidebar_tab_section',  
  2385.  
  2386. 'class' => 'accordion-group-404',  
  2387. 'options' => $sidebars,  
  2388.  
  2389. );  
  2390. $options[] = array('name' => '', 'id' => 'wrapper_end', 'type' => 'wrapper_end', 'class'=>''); 
  2391. $options[] = array('name' => '', 'id' => 'sidebar_404_group_', 'type' => 'end_group', 'class'=>'');  
  2392. // Slider 
  2393. $options[] = array( 
  2394. 'icon' => 'fa-sliders',  
  2395. 'name' => __('Slider', 'onetone'),  
  2396. 'type' => 'heading'); 
  2397.  
  2398.  
  2399.  
  2400. //HOME PAGE SLIDER 
  2401. $options[] = array('name' => __('Slideshow', 'onetone'), 'id' => 'group_title', 'type' => 'title'); 
  2402. $options[] = array('name' => '', 'id' => 'slide_1_group', 'type' => 'start_group', 'class'=>''); 
  2403.  
  2404. $options[] = array( 
  2405. 'id' => 'slide_titled_1',  
  2406. 'name' => __('Slide 1', 'onetone').' <span id="accordion-group-slide-1" class="fa fa-plus"></span>',  
  2407. 'desc' => '',  
  2408. 'std' => '',  
  2409. 'type' => 'textblock-titled',  
  2410. 'rows' => '',  
  2411. 'class' => 'section-accordion close',  
  2412.  
  2413. ); 
  2414. $options[] = array('name' => '', 'id' => 'wrapper_start', 'type' => 'wrapper_start', 'class'=>'');  
  2415. $options[] = array( 
  2416. 'name' => __('Image', 'onetone'),  
  2417. 'id' => 'onetone_slide_image_1',  
  2418. 'type' => 'upload',  
  2419. 'std'=>ONETONE_THEME_BASE_URL.'/images/banner-1.jpg',  
  2420. 'class'=>'slide-item accordion-group-slide-1' 
  2421. ); 
  2422.  
  2423.  
  2424. $options[] = array( 
  2425. 'name' => __('Caption', 'onetone'),  
  2426. 'id' => 'onetone_slide_text_1',  
  2427. 'type' => 'editor',  
  2428. 'std'=>'<h1>The jQuery slider that just slides.</h1><p>No fancy effects or unnecessary markup.</p><a class="btn" href="#download">Download</a>',  
  2429. 'class'=>'slide-item accordion-group-slide-1' 
  2430. ); 
  2431.  
  2432. $options[] = array('name' => '', 'id' => 'wrapper_end', 'type' => 'wrapper_end', 'class'=>''); 
  2433. $options[] = array('name' => '', 'id' => 'slide_1_group_', 'type' => 'end_group', 'class'=>''); 
  2434. $options[] = array('name' => '', 'id' => 'slide_2_group', 'type' => 'start_group', 'class'=>''); 
  2435.  
  2436. $options[] = array( 
  2437. 'id' => 'slide_titled_2',  
  2438. 'name' => __('Slide 2', 'onetone').' <span id="accordion-group-slide-2" class="fa fa-plus"></span>',  
  2439. 'desc' => '',  
  2440. 'std' => '',  
  2441. 'type' => 'textblock-titled',  
  2442. 'rows' => '',  
  2443. 'class' => 'section-accordion close',  
  2444.  
  2445. ); 
  2446. $options[] = array('name' => '', 'id' => 'wrapper_start', 'type' => 'wrapper_start', 'class'=>''); 
  2447. $options[] = array( 
  2448. 'name' => __('Image', 'onetone'),  
  2449. 'id' => 'onetone_slide_image_2',  
  2450. 'type' => 'upload',  
  2451. 'std'=>ONETONE_THEME_BASE_URL.'/images/banner-2.jpg',  
  2452. 'class'=>'slide-item accordion-group-slide-2' 
  2453. ); 
  2454.  
  2455. $options[] = array( 
  2456. 'name' => __('Caption', 'onetone'),  
  2457. 'id' => 'onetone_slide_text_2',  
  2458. 'type' => 'editor',  
  2459. 'std'=>'<h1>Fluid, flexible, fantastically minimal.</h1><p>Use any HTML in your slides, extend with CSS. You have full control.</p><a class="btn" href="#download">Download</a>',  
  2460. 'class'=>'slide-item accordion-group-slide-2' 
  2461. ); 
  2462.  
  2463. $options[] = array('name' => '', 'id' => 'wrapper_end', 'type' => 'wrapper_end', 'class'=>''); 
  2464. $options[] = array('name' => '', 'id' => 'slide_2_group_', 'type' => 'end_group', 'class'=>''); 
  2465. $options[] = array('name' => '', 'id' => 'slide_3_group', 'type' => 'start_group', 'class'=>''); 
  2466.  
  2467. $options[] = array( 
  2468. 'id' => 'slide_titled_3',  
  2469. 'name' => __('Slide 3', 'onetone').' <span id="accordion-group-slide-3" class="fa fa-plus"></span>',  
  2470. 'desc' => '',  
  2471. 'std' => '',  
  2472. 'type' => 'textblock-titled',  
  2473. 'rows' => '',  
  2474. 'class' => 'section-accordion close',  
  2475.  
  2476. ); 
  2477. $options[] = array('name' => '', 'id' => 'wrapper_start', 'type' => 'wrapper_start', 'class'=>''); 
  2478. $options[] = array( 
  2479. 'name' => __('Image', 'onetone'),  
  2480. 'id' => 'onetone_slide_image_3',  
  2481. 'type' => 'upload',  
  2482. 'std'=>ONETONE_THEME_BASE_URL.'/images/banner-3.jpg',  
  2483. 'class'=>'slide-item accordion-group-slide-3' 
  2484. ); 
  2485.  
  2486. $options[] = array( 
  2487. 'name' => __('Caption', 'onetone'),  
  2488. 'id' => 'onetone_slide_text_3',  
  2489. 'type' => 'editor',  
  2490. 'std'=>'<h1>Open-source.</h1><p> Vestibulum auctor nisl vel lectus ullamcorper sed pellentesque dolor eleifend.</p><a class="btn" href="#">Contribute</a>',  
  2491. 'class'=>'slide-item accordion-group-slide-3' 
  2492. ); 
  2493.  
  2494. $options[] = array('name' => '', 'id' => 'wrapper_end', 'type' => 'wrapper_end', 'class'=>''); 
  2495. $options[] = array('name' => '', 'id' => 'slide_3_group_', 'type' => 'end_group', 'class'=>''); 
  2496. $options[] = array('name' => '', 'id' => 'slide_4_group', 'type' => 'start_group', 'class'=>'');  
  2497.  
  2498. $options[] = array( 
  2499. 'id' => 'slide_titled_4',  
  2500. 'name' => __('Slide 4', 'onetone').' <span id="accordion-group-slide-4" class="fa fa-plus"></span>',  
  2501. 'desc' => '',  
  2502. 'std' => '',  
  2503. 'type' => 'textblock-titled',  
  2504. 'rows' => '',  
  2505. 'class' => 'section-accordion close',  
  2506.  
  2507. ); 
  2508. $options[] = array('name' => '', 'id' => 'wrapper_start', 'type' => 'wrapper_start', 'class'=>''); 
  2509. $options[] = array( 
  2510. 'name' => __('Image', 'onetone'),  
  2511. 'id' => 'onetone_slide_image_4',  
  2512. 'type' => 'upload',  
  2513. 'std'=>ONETONE_THEME_BASE_URL.'/images/banner-4.jpg',  
  2514. 'class'=>'slide-item accordion-group-slide-4' 
  2515. ); 
  2516.  
  2517. $options[] = array( 
  2518. 'name' => __('Caption', 'onetone'),  
  2519. 'id' => 'onetone_slide_text_4',  
  2520. 'type' => 'editor', 'std'=>'<h1>Uh, that\'s about it.</h1><p>I just wanted to show you another slide.</p><a class="btn" href="#download">Download</a>',  
  2521. 'class'=>'slide-item accordion-group-slide-4' 
  2522. ); 
  2523.  
  2524. $options[] = array('name' => '', 'id' => 'wrapper_end', 'type' => 'wrapper_end', 'class'=>''); 
  2525. $options[] = array('name' => '', 'id' => 'slide_4_group_', 'type' => 'end_group', 'class'=>''); 
  2526. $options[] = array('name' => '', 'id' => 'slide_5_group', 'type' => 'start_group', 'class'=>''); 
  2527.  
  2528. $options[] = array( 
  2529. 'id' => 'slide_titled_5',  
  2530. 'name' => __('Slide 5', 'onetone').' <span id="accordion-group-slide-5" class="fa fa-plus"></span>',  
  2531. 'desc' => '',  
  2532. 'std' => '',  
  2533. 'type' => 'textblock-titled',  
  2534. 'rows' => '',  
  2535. 'class' => 'section-accordion close',  
  2536.  
  2537. ); 
  2538. $options[] = array('name' => '', 'id' => 'wrapper_start', 'type' => 'wrapper_start', 'class'=>''); 
  2539. $options[] = array( 
  2540. 'name' => __('Image', 'onetone'),  
  2541. 'id' => 'onetone_slide_image_5',  
  2542. 'type' => 'upload',  
  2543. 'class'=>'slide-item accordion-group-slide-5' 
  2544. ); 
  2545.  
  2546. $options[] = array( 
  2547. 'name' => __('Caption', 'onetone'),  
  2548. 'id' => 'onetone_slide_text_5',  
  2549. 'type' => 'editor',  
  2550. 'class'=>'slide-item accordion-group-slide-5' 
  2551. ); 
  2552. $options[] = array('name' => '', 'id' => 'wrapper_end', 'type' => 'wrapper_end', 'class'=>''); 
  2553. $options[] = array('name' => '', 'id' => 'slide_5_group', 'type' => 'end_group', 'class'=>''); 
  2554.  
  2555. $options[] = array( 
  2556. 'name' => __('Slide Speed', 'onetone'),  
  2557. 'id' => 'slide_time',  
  2558. 'std' => '5000',  
  2559. 'desc'=>__('Milliseconds between the end of the sliding effect and the start of the nex one.', 'onetone'),  
  2560. 'type' => 'text');  
  2561.  
  2562. //END HOME PAGE SLIDER 
  2563.  
  2564. // FOOTER 
  2565. $options[] = array( 
  2566. 'icon' => 'fa-hand-o-down',  
  2567. 'name' => __('Footer', 'onetone'),  
  2568. 'type' => 'heading'); 
  2569.  
  2570.  
  2571.  
  2572.  
  2573. $options[] = array( 
  2574. 'id' => 'footer_widgets_area_options',  
  2575. 'name' => __( 'Footer Widgets Area Options', 'onetone' ),  
  2576. 'desc' => '',  
  2577. 'std' => '',  
  2578. 'type' => 'textblock-titled',  
  2579. 'section' => 'footer_tab_section',  
  2580. 'rows' => '4',  
  2581.  
  2582. 'class' => 'sub_section_titled',  
  2583.  
  2584. ); 
  2585.  
  2586. $options[] = array( 
  2587. 'id' => 'enable_footer_widget_area',  
  2588. 'name' => __( 'Display footer widgets?', 'onetone' ),  
  2589. 'desc' => __( 'Choose to display footer widgets', 'onetone' ),  
  2590. 'std' => '1',  
  2591. 'type' => 'select',  
  2592. 'section' => 'footer_tab_section',  
  2593.  
  2594. 'class' => '',  
  2595. 'options' => $choices2 
  2596. ); 
  2597. $options[] = array( 
  2598. 'id' => 'footer_columns',  
  2599. 'name' => __( 'Number of Footer Columns', 'onetone' ),  
  2600. 'desc' => __( 'Set column number for footer widget area', 'onetone' ),  
  2601. 'std' => '4',  
  2602. 'type' => 'select',  
  2603. 'section' => 'footer_tab_section',  
  2604. 'class' => '',  
  2605. 'options' => array(  
  2606. '1' => '1',  
  2607. '2' => '2',  
  2608. '3' => '3',  
  2609. '4' => '4',  
  2610.  
  2611. ),  
  2612.  
  2613. ); 
  2614. $options[] = array( 
  2615. 'id' => 'footer_background_image',  
  2616. 'name' => __( 'Upload Background Image', 'onetone' ),  
  2617. 'desc' => __( 'Choose to upload background image for footer', 'onetone' ),  
  2618. 'std' => '',  
  2619. 'type' => 'upload',  
  2620. 'section' => 'footer_tab_section',  
  2621.  
  2622. 'class' => '',  
  2623.  
  2624. ); 
  2625. $options[] = array( 
  2626. 'id' => 'footer_bg_full',  
  2627. 'name' => __( '100% Background Image', 'onetone' ),  
  2628. 'desc' => __( 'Select yes to have the footer widgets area background image display at 100% in width and height and scale according to the browser size.', 'onetone' ),  
  2629. 'std' => 'no',  
  2630. 'type' => 'select',  
  2631. 'section' => 'footer_tab_section',  
  2632.  
  2633. 'class' => '',  
  2634. 'options' => $choices_reverse 
  2635. ); 
  2636. $options[] = array( 
  2637. 'id' => 'footer_parallax_background',  
  2638. 'name' => __( 'Parallax Background Image', 'onetone' ),  
  2639. 'desc' => __( 'Choose to set parallax background effect for footer', 'onetone' ),  
  2640. 'std' => 'no',  
  2641. 'type' => 'select',  
  2642. 'section' => 'footer_tab_section',  
  2643.  
  2644. 'class' => '',  
  2645. 'options' => $choices_reverse 
  2646. ); 
  2647. $options[] = array( 
  2648. 'id' => 'footer_background_repeat',  
  2649. 'name' => __( 'Background Repeat', 'onetone' ),  
  2650. 'desc' => __( 'Set repeat for background image in footer', 'onetone' ),  
  2651. 'std' => 'repeat',  
  2652. 'type' => 'select',  
  2653. 'section' => 'footer_tab_section',  
  2654.  
  2655. 'class' => '',  
  2656. 'options' => $repeat 
  2657. ); 
  2658. $options[] = array( 
  2659. 'id' => 'footer_background_position',  
  2660. 'name' => __( 'Background Position', 'onetone' ),  
  2661. 'desc' => __( 'Set position for background image in footer', 'onetone' ),  
  2662. 'std' => 'top left',  
  2663. 'type' => 'select',  
  2664. 'section' => 'footer_tab_section',  
  2665.  
  2666. 'class' => '',  
  2667. 'options' => $position 
  2668. ); 
  2669. $options[] = array( 
  2670. 'id' => 'footer_top_padding',  
  2671. 'name' => __( 'Footer Top Padding', 'onetone' ),  
  2672. 'desc' => __( 'In pixels or percentage, ex: 10px or 10%.', 'onetone' ),  
  2673. 'std' => '60px',  
  2674. 'type' => 'text',  
  2675. 'section' => 'footer_tab_section',  
  2676.  
  2677. 'class' => '',  
  2678.  
  2679. ); 
  2680. $options[] = array( 
  2681. 'id' => 'footer_bottom_padding',  
  2682. 'name' => __( 'Footer Bottom Padding', 'onetone' ),  
  2683. 'desc' => __( 'In pixels or percentage, ex: 10px or 10%.', 'onetone' ),  
  2684. 'std' => '40px',  
  2685. 'type' => 'text',  
  2686. 'section' => 'footer_tab_section',  
  2687.  
  2688. 'class' => '',  
  2689.  
  2690. ); 
  2691. $options[] = array( 
  2692. 'id' => 'footer_social_icons',  
  2693. 'name' => __( 'Footer Social Icons', 'onetone' ),  
  2694. 'desc' => '',  
  2695. 'std' => '',  
  2696. 'type' => 'textblock-titled',  
  2697. 'section' => 'footer_tab_section',  
  2698. 'rows' => '4',  
  2699.  
  2700. 'class' => 'sub_section_titled',  
  2701.  
  2702. ); 
  2703.  
  2704.  
  2705. if( $social_icons ): 
  2706. $i = 1; 
  2707. foreach($social_icons as $social_icon) { 
  2708.  
  2709. $options[] = array( 
  2710. 'id' => 'footer_social_title_'.$i,  
  2711. 'name' => __( 'Social Title', 'onetone' ) .' '.$i,  
  2712. 'desc' => __( 'Set title for social icon', 'onetone' ),  
  2713. 'std' => $social_icon['title'],  
  2714. 'type' => 'text',  
  2715. 'section' => 'footer_tab_section',  
  2716. 'class' => '',  
  2717.  
  2718. ); 
  2719. $options[] = array( 
  2720. 'id' => 'footer_social_icon_'.$i,  
  2721. 'name' => __( 'Social Icon', 'onetone' ).' '.$i,  
  2722. 'desc' => __( 'Choose FontAwesome icon', 'onetone' ),  
  2723. 'std' => $social_icon['icon'],  
  2724. 'type' => 'text',  
  2725. 'section' => 'footer_tab_section',  
  2726. 'class' => '',  
  2727.  
  2728. ); 
  2729. $options[] = array( 
  2730. 'id' => 'footer_social_link_'.$i,  
  2731. 'name' => __( 'Social Icon Link', 'onetone' ).' '.$i,  
  2732. 'desc' => __( 'Set link for social icon', 'onetone' ),  
  2733. 'std' => $social_icon['link'],  
  2734. 'type' => 'text',  
  2735. 'section' => 'footer_tab_section',  
  2736. 'class' => '',  
  2737.  
  2738. ); 
  2739.  
  2740. $i++; 
  2741. endif;  
  2742.  
  2743. // 404 
  2744.  
  2745. $options[] = array(  
  2746. 'icon' => 'fa-frown-o',  
  2747. 'name' => __('404 page', 'onetone'),  
  2748. 'type' => 'heading' 
  2749. ); 
  2750. $options[] = array( 
  2751.  
  2752. 'name' => __('404 page content', 'onetone'),  
  2753. 'desc' => '',  
  2754. 'id' => 'content_404',  
  2755. 'std' => '<h2>WHOOPS!</h2> 
  2756. <p>THERE IS NOTHING HERE.<br>PERHAPS YOU WERE GIVEN THE WRONG URL?</p>',  
  2757. 'type' => 'editor'); 
  2758.  
  2759.  
  2760. // Blog 
  2761.  
  2762. $options[] = array(  
  2763. 'icon' => 'fa-bold',  
  2764. 'name' => __('Blog', 'onetone'),  
  2765. 'type' => 'heading' 
  2766. ); 
  2767.  
  2768.  
  2769. $options[] = array( 
  2770. 'id' => 'display_author_info',  
  2771. 'name' => __( 'Display Author Info?', 'onetone' ),  
  2772. 'desc' => __('Display author info on single page.', 'onetone'),  
  2773. 'std' => '1',  
  2774. 'type' => 'checkbox',  
  2775. 'class' => '',  
  2776. ); 
  2777. $options[] = array( 
  2778. 'id' => 'display_related_posts',  
  2779. 'name' => __( 'Display Related Posts?', 'onetone' ),  
  2780. 'desc' => __('Display related posts on single page.', 'onetone'),  
  2781. 'std' => '1',  
  2782. 'type' => 'checkbox',  
  2783. 'class' => '',  
  2784. ); 
  2785.  
  2786. return $options;