onetone_standard_settings_data

The WordPress Core onetone standard settings data function.

Description

onetone_standard_settings_data( (array) $onetone_options = array() ); 

Parameters (1)

0. $onetone_options — Optional. (array) => array()
The onetone options.

Usage

  1. if ( !function_exists( 'onetone_standard_settings_data' ) ) { 
  2. require_once '/lib/customizer/customizer-data.php'; 
  3.  
  4. // The onetone options. 
  5. $onetone_options = array(); 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = onetone_standard_settings_data($onetone_options); 
  9.  

Defined (1)

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

/lib/customizer/customizer-data.php  
  1. function onetone_standard_settings_data( $onetone_options = array() ) { 
  2. global $social_icons,  
  3. $onetone_option_name,  
  4. $sidebars,  
  5. $onetone_options_saved,  
  6. $onetone_home_sections,  
  7. $onetone_default_options,  
  8. $onetone_customize_options; 
  9.  
  10. $option_name = $onetone_option_name; 
  11.  
  12. $repeat = array(  
  13. 'repeat' => __( 'Repeat', 'onetone' ),  
  14. 'repeat-x' => __( 'Repeat X', 'onetone' ),  
  15. 'repeat-y' => __( 'Repeat Y', 'onetone' ),  
  16. 'no-repeat' => __( 'No Repeat', 'onetone' ) 
  17.  
  18. ); 
  19.  
  20. $choices = array(  
  21.  
  22. 'yes' => __( 'Yes', 'onetone' ),  
  23. 'no' => __( 'No', 'onetone' ) 
  24.  
  25. ); 
  26.  
  27. $target = array( 
  28. '_blank' => __( 'Blank', 'onetone' ),  
  29. '_self' => __( 'Self', 'onetone' ) 
  30. ); 
  31.  
  32. $align = array(  
  33. '' => __( 'Default', 'onetone' ),  
  34. 'left' => __( 'Left', 'onetone' ),  
  35. 'right' => __( 'Right', 'onetone' ),  
  36. 'center' => __( 'Center', 'onetone' )  
  37. ); 
  38.  
  39. $social_icons = array( 
  40. array('title'=>'Facebook', 'icon' => 'facebook', 'link'=>'#'),  
  41. array ('title'=>'Twitter', 'icon' => 'twitter', 'link'=>'#'),  
  42. array('title'=>'LinkedIn', 'icon' => 'linkedin', 'link'=>'#'),  
  43. array ('title'=>'YouTube', 'icon' => 'youtube', 'link'=>'#'),  
  44. array('title'=>'Skype', 'icon' => 'skype', 'link'=>'#'),  
  45. array ('title'=>'Pinterest', 'icon' => 'pinterest', 'link'=>'#'),  
  46. array('title'=>'Google+', 'icon' => 'google-plus', 'link'=>'#'),  
  47. array('title'=>'Email', 'icon' => 'envelope', 'link'=>'#'),  
  48. array ('title'=>'RSS', 'icon' => 'rss', 'link'=>'#') 
  49. ); 
  50.  
  51. $os_fonts = onetone_options_typography_get_os_fonts();  
  52. $os_fonts = array_merge( array('' => __( '-- Default --', 'onetone' ) ), $os_fonts); 
  53. $opacity = array_combine(range(0, 1, 0.1), range(0, 1, 0.1)); 
  54. $font_size = array_combine(range(0, 100, 1), range(0, 100, 1)); 
  55.  
  56. $position = array(  
  57.  
  58. 'top left' => __( 'Top Left', 'onetone' ),  
  59. 'top center' => __( 'Top Center', 'onetone' ),  
  60. 'top right' => __( 'Top Right', 'onetone' ),  
  61. 'center left' => __( 'Center Left', 'onetone' ),  
  62. 'center center' => __( 'Center Center', 'onetone' ),  
  63. 'center right' => __( 'Center Right', 'onetone' ),  
  64. 'bottom left' => __( 'Bottom Left', 'onetone' ),  
  65. 'bottom center' => __( 'Bottom Center', 'onetone' ),  
  66. 'bottom right' => __( 'Bottom Right', 'onetone' ) 
  67.  
  68. ); 
  69.  
  70. $options[] = array( 
  71. 'slug' => 'onetone_general_option',  
  72. 'label' => __( 'Onetone: General Options', 'onetone' ),  
  73. 'priority' => 1,  
  74. 'type' => 'panel' 
  75. ); 
  76.  
  77.  
  78. // Tracking 
  79. $options[] = array( 
  80. 'slug' => 'onetone_tracking_options',  
  81. 'label' => __( 'Tracking', 'onetone' ),  
  82. 'panel' => 'onetone_general_option',  
  83. 'priority' => 2,  
  84. 'type' => 'section' 
  85. ); 
  86.  
  87.  
  88. $options[] = array( 
  89. 'slug' => $option_name.'[tracking_code]',  
  90. 'label' => __( 'Tracking Code', 'onetone' ),  
  91. 'description' => __( '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' ),  
  92. 'default' => '',  
  93. 'type' => 'textarea',  
  94. 'section' => 'onetone_tracking_options',  
  95. 'class' => '',  
  96.  
  97. ); 
  98.  
  99. $options[] = array( 
  100. 'slug' => $option_name.'[space_before_head]',  
  101. 'label' => __( 'Space before </head>', 'onetone' ),  
  102. 'description' => __( 'Add code before the head tag.', 'onetone' ),  
  103. 'default' => '',  
  104. 'type' => 'textarea',  
  105. 'section' => 'onetone_tracking_options',  
  106. 'class' => '',  
  107.  
  108. ); 
  109.  
  110. $options[] = array( 
  111. 'slug' => $option_name.'[space_before_body]',  
  112. 'label' => __( 'Space before </body>', 'onetone' ),  
  113. 'description' => __( 'Add code before the body tag.', 'onetone' ),  
  114. 'default' => '',  
  115. 'type' => 'textarea',  
  116. 'section' => 'onetone_tracking_options',  
  117. 'class' => '',  
  118.  
  119. ); 
  120.  
  121. // 404 
  122. $options[] = array( 
  123. 'slug' => 'onetone_404_page',  
  124. 'label' => __( '404 page', 'onetone' ),  
  125. 'panel' => 'onetone_general_option',  
  126. 'priority' => 3,  
  127. 'type' => 'section' 
  128. ); 
  129.  
  130. $options[] = array( 
  131.  
  132. 'label' => __('404 page content', 'onetone'),  
  133. 'description' => '',  
  134. 'slug' => $option_name.'[content_404]',  
  135. 'default' => '<h2>WHOOPS!</h2><p>THERE IS NOTHING HERE.<br>PERHAPS YOU WERE GIVEN THE WRONG URL?</p>',  
  136. 'type' => 'textarea',  
  137. 'section' => 'onetone_404_page',  
  138. ); 
  139.  
  140. // Blog 
  141. $options[] = array( 
  142. 'slug' => 'onetone_blog',  
  143. 'label' => __( 'Blog', 'onetone' ),  
  144. 'panel' => 'onetone_general_option',  
  145. 'priority' => 4,  
  146. 'type' => 'section' 
  147. ); 
  148.  
  149.  
  150. $options[] = array( 
  151. 'slug' => $option_name.'[archive_content]',  
  152. 'name' => __( 'Blog Archive List Content', 'onetone' ),  
  153. 'description' => __('Choose to display full content or excerpt in blog archive pages', 'onetone'),  
  154. 'default' => 'excerpt',  
  155. 'type' => 'select',  
  156. 'section' => 'onetone_blog',  
  157. 'choices' => array( 
  158. 'content' => __( 'Content', 'onetone' ),  
  159. 'excerpt' => __( 'Excerpt', 'onetone' ),  
  160. ); 
  161.  
  162.  
  163. $options[] = array( 
  164. 'slug' => $option_name.'[excerpt_length]',  
  165. 'label' => __( 'Excerpt Length', 'onetone' ),  
  166. 'description' => '',  
  167. 'default' => '55',  
  168. 'type' => 'text',  
  169. 'section' => 'onetone_blog',  
  170. ); 
  171.  
  172.  
  173.  
  174. $options[] = array( 
  175. 'slug' => $option_name.'[display_author_info]',  
  176. 'label' => __( 'Display Author Info?', 'onetone' ),  
  177. 'description' => __('Display author info on single page.', 'onetone'),  
  178. 'default' => '1',  
  179. 'type' => 'checkbox',  
  180. 'section' => 'onetone_blog',  
  181.  
  182. ); 
  183.  
  184. $options[] = array( 
  185. 'slug' => $option_name.'[display_related_posts]',  
  186. 'label' => __( 'Display Related Posts?', 'onetone' ),  
  187. 'description' => __('Display related posts on single page.', 'onetone'),  
  188. 'default' => '1',  
  189. 'type' => 'checkbox',  
  190. 'section' => 'onetone_blog',  
  191.  
  192. ); 
  193.  
  194. $options[] = array( 
  195. 'slug' => 'onetone_layout_options',  
  196. 'label' => __( 'Layout Options', 'onetone' ),  
  197. 'panel' => 'onetone_general_option',  
  198. 'priority' => 5,  
  199. 'type' => 'section' 
  200. ); 
  201.  
  202. $options[] = array( 
  203. 'slug' => $option_name.'[page_content_top_padding]',  
  204. 'label' => __( 'Page Content Top Padding', 'onetone' ),  
  205. 'description' => __( 'In pixels or percentage, ex: 10px or 10%.', 'onetone' ),  
  206. 'default' => '55px',  
  207. 'type' => 'text',  
  208. 'section' => 'onetone_layout_options',  
  209. ); 
  210. $options[] = array( 
  211. 'slug' => $option_name.'[page_content_bottom_padding]',  
  212. 'label' => __( 'Page Content Bottom Padding', 'onetone' ),  
  213. 'description' => __( 'In pixels or percentage, ex: 10px or 10%.', 'onetone' ),  
  214. 'default' => '40px',  
  215. 'type' => 'text',  
  216. 'section' => 'onetone_layout_options',  
  217. ); 
  218. $options[] = array( 
  219. 'slug' => $option_name.'[hundredp_padding]',  
  220. 'label' => __( '100% Width Left/Right Padding ###', 'onetone' ),  
  221. 'description' => __( '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' ),  
  222. 'default' => '20px',  
  223. 'type' => 'text',  
  224. 'section' => 'onetone_layout_options',  
  225. ); 
  226. $options[] = array( 
  227. 'slug' => $option_name.'[sidebar_padding]',  
  228. 'label' => __( 'Sidebar Padding', 'onetone' ),  
  229. 'description' => __( 'Enter a pixel or percentage based value, ex: 5px or 5%', 'onetone' ),  
  230. 'default' => '0',  
  231. 'type' => 'text',  
  232. 'section' => 'onetone_layout_options',  
  233. ); 
  234. $options[] = array( 
  235. 'slug' => $option_name.'[column_top_margin]',  
  236. 'label' => __( 'Column Top Margin', 'onetone' ),  
  237. 'description' => __( 'Controls the top margin for all column sizes. In pixels or percentage, ex: 10px or 10%.', 'onetone' ),  
  238. 'default' => '0px',  
  239. 'type' => 'text',  
  240. 'section' => 'onetone_layout_options',  
  241. ); 
  242. $options[] = array( 
  243. 'slug' => $option_name.'[column_bottom_margin]',  
  244. 'label' => __( 'Column Bottom Margin', 'onetone' ),  
  245. 'description' => __( 'Controls the bottom margin for all column sizes. In pixels or percentage, ex: 10px or 10%.', 'onetone' ),  
  246. 'default' => '20px',  
  247. 'type' => 'text',  
  248. 'section' => 'onetone_layout_options',  
  249. ); 
  250. // Additional 
  251. $options[] = array( 
  252. 'slug' => 'onetone_general_options',  
  253. 'label' => __( 'Additional', 'onetone' ),  
  254. 'panel' => 'onetone_general_option',  
  255. 'priority' => 6,  
  256. 'type' => 'section' 
  257. ); 
  258.  
  259. $options[] = array(  
  260. 'slug' => $option_name.'[back_to_top_btn]',  
  261. 'default' => 'show',  
  262. 'priority' => 1,  
  263. 'label' => __( 'Back to Top Button', 'onetone' ),  
  264. 'section' => 'onetone_general_options',  
  265. 'property' => '',  
  266. 'type' => 'select',  
  267. 'choices' =>array("show"=> __('Show', 'onetone'), "hide"=>__('Hide', 'onetone')),  
  268. ); 
  269.  
  270. $options[] = array( 
  271. 'label' => __('Custom CSS', 'onetone'),  
  272. 'priority' => 2,  
  273. 'description' => __('The following css code will add to the header before the closing </head> tag.', 'onetone'),  
  274. 'slug' => $option_name.'[custom_css]',  
  275. 'default' => 'body{margin:0px;}',  
  276. 'type' => 'textarea',  
  277. 'section' => 'onetone_general_options',  
  278. ); 
  279.  
  280.  
  281. $options[] = array( 
  282. 'slug' => 'onetone_header',  
  283. 'label' => __( 'Onetone: Header', 'onetone' ),  
  284. 'priority' => 2,  
  285. 'type' => 'panel' 
  286. ); 
  287.  
  288. // Top Bar Options  
  289.  
  290. $options[] = array( 
  291. 'slug' => 'onetone_top_bar_options',  
  292. 'label' => __( 'Top Bar Options', 'onetone' ),  
  293. 'panel' => 'onetone_header',  
  294. 'priority' => 1,  
  295. 'type' => 'section' 
  296. ); 
  297.  
  298. $options[] = array( 
  299. 'slug' => $option_name.'[display_top_bar]',  
  300. 'label' => __( 'Display Top Bar', 'onetone' ),  
  301. 'description' => __( 'Choose to display top bar above the header', 'onetone' ),  
  302. 'default' => 'yes',  
  303. 'type' => 'select',  
  304. 'section' => 'onetone_top_bar_options',  
  305. 'choices' => $choices 
  306. ); 
  307. $options[] = array( 
  308. 'slug' => $option_name.'[top_bar_background_color]',  
  309. 'label' => __( 'Background Color', 'onetone' ),  
  310. 'description' => __( 'Set background color for top bar', 'onetone' ),  
  311. 'default' => '#eee',  
  312. 'type' => 'color',  
  313. 'section' => 'onetone_top_bar_options',  
  314.  
  315. ); 
  316.  
  317. $options[] = array( 
  318. 'slug' => $option_name.'[top_bar_left_content]',  
  319. 'label' => __( 'Left Content', 'onetone' ),  
  320. 'description' => __( 'Choose content in left side', 'onetone' ),  
  321. 'default' => 'info',  
  322. 'type' => 'select',  
  323. 'section' => 'onetone_top_bar_options',  
  324. 'choices' => array(  
  325. 'info' => __( 'Info', 'onetone' ),  
  326. 'sns' => __( 'SNS', 'onetone' ),  
  327. 'menu' => __( 'Menu', 'onetone' ),  
  328. 'none' => __( 'None', 'onetone' ),  
  329.  
  330. ); 
  331.  
  332. $options[] = array( 
  333. 'slug' => $option_name.'[top_bar_right_content]',  
  334. 'label' => __( 'Right Content', 'onetone' ),  
  335. 'description' => __( 'Choose content in right side', 'onetone' ),  
  336. 'default' => 'sns',  
  337. 'type' => 'select',  
  338. 'section' => 'onetone_top_bar_options',  
  339. 'choices' => array(  
  340. 'info' => __( 'Info', 'onetone' ),  
  341. 'sns' => __( 'SNS', 'onetone' ),  
  342. 'menu' => __( 'Menu', 'onetone' ),  
  343. 'none' => __( 'None', 'onetone' ),  
  344. ),  
  345.  
  346. );  
  347.  
  348. $options[] = array( 
  349. 'slug' => $option_name.'[top_bar_info_color]',  
  350. 'label' => __( 'Info Color', 'onetone' ),  
  351. 'description' => __( 'Set color for info in top bar', 'onetone' ),  
  352. 'default' => '#555',  
  353. 'type' => 'color',  
  354. 'section' => 'onetone_top_bar_options',  
  355.  
  356. ); 
  357. $options[] = array( 
  358. 'slug' => $option_name.'[top_bar_info_content]',  
  359. 'label' => __( 'Info Content', 'onetone' ),  
  360. 'description' => __( 'Insert content for info in top bar', 'onetone' ),  
  361. 'default' => 'Tel: 123456789',  
  362. 'type' => 'textarea',  
  363. 'section' => 'onetone_top_bar_options',  
  364.  
  365. ); 
  366.  
  367. $options[] = array( 
  368. 'slug' => $option_name.'[top_bar_menu_color]',  
  369. 'label' => __( 'Menu Color', 'onetone' ),  
  370. 'description' => __( 'Set color for menu in top bar', 'onetone' ),  
  371. 'default' => '#555',  
  372. 'type' => 'color',  
  373. 'section' => 'onetone_top_bar_options',  
  374.  
  375. ); 
  376.  
  377. $options[] = array( 
  378. 'slug' => $option_name.'[social_links]',  
  379. 'label' => __( 'Social Links', 'onetone' ),  
  380. 'description' => '',  
  381. 'default' => '',  
  382. 'type' => 'textblock-titled',  
  383. 'section' => 'onetone_top_bar_options',  
  384.  
  385. ); 
  386.  
  387. $options[] = array( 
  388. 'slug' => $option_name.'[top_bar_social_icons_color]',  
  389. 'label' => __( 'Social Icons Color', 'onetone' ),  
  390. 'description' => '',  
  391. 'default' => '',  
  392. 'type' => 'color',  
  393. 'section' => 'onetone_top_bar_options',  
  394.  
  395. ); 
  396. $options[] = array( 
  397. 'slug' => $option_name.'[top_bar_social_icons_tooltip_position]',  
  398. 'label' => __( 'Social Icon Tooltip Position', 'onetone' ),  
  399. 'description' => '',  
  400. 'default' => 'bottom',  
  401. 'type' => 'select',  
  402. 'section' => 'onetone_top_bar_options',  
  403. 'choices' => array(  
  404. 'left' => __( 'left', 'onetone' ),  
  405. 'right' => __( 'right', 'onetone' ),  
  406. 'bottom' => __( 'bottom', 'onetone' ),  
  407.  
  408. ),  
  409.  
  410. );  
  411. if( $social_icons ): 
  412. $i = 1; 
  413.  
  414. foreach($social_icons as $social_icon) { 
  415.  
  416. $options[] = array( 
  417. 'slug' => $option_name.'[header_social_title_'.$i.']',  
  418. 'label' => __( 'Social Title', 'onetone' ) .' '.$i,  
  419. 'description' => __( 'Set title for social icon', 'onetone' ),  
  420. 'default' => $social_icon['title'],  
  421. 'type' => 'text',  
  422. 'section' => 'onetone_top_bar_options',  
  423.  
  424. ); 
  425. $options[] = array( 
  426. 'slug' => $option_name.'[header_social_icon_'.$i.']',  
  427. 'label' => __( 'Social Icon', 'onetone' ).' '.$i,  
  428. 'description' => __( 'Choose FontAwesome Icon', 'onetone' ),  
  429. 'default' => $social_icon['icon'],  
  430. 'type' => 'text',  
  431. 'section' => 'onetone_top_bar_options',  
  432.  
  433. ); 
  434. $options[] = array( 
  435. 'slug' => $option_name.'[header_social_link_'.$i.']',  
  436. 'label' => __( 'Social Icon Link', 'onetone' ).' '.$i,  
  437. 'description' => __( 'Set link for social icon', 'onetone' ),  
  438. 'default' => $social_icon['link'],  
  439. 'type' => 'text',  
  440. 'section' => 'onetone_top_bar_options',  
  441.  
  442. ); 
  443.  
  444. $i++; 
  445. endif;  
  446.  
  447.  
  448. // Logo 
  449. $options[] = array( 
  450. 'slug' => 'onetone_logo',  
  451. 'label' => __( 'Logo', 'onetone' ),  
  452. 'panel' => 'onetone_header',  
  453. 'priority' => 3,  
  454. 'type' => 'section' 
  455. ); 
  456.  
  457. $options[] = array( 
  458. 'slug' => $option_name.'[logo]',  
  459. 'label' => __( 'Upload Logo', 'onetone' ),  
  460. 'description' => __( 'Select an image file for your logo.', 'onetone' ),  
  461. 'default' => ONETONE_THEME_BASE_URL.'/images/logo.png',  
  462. 'type' => 'images',  
  463. 'section' => 'onetone_logo',  
  464. ); 
  465.  
  466. $options[] = array( 
  467. 'slug' => $option_name.'[overlay_logo]',  
  468. 'label' => __( 'Upload Overlay Header Logo', 'onetone' ),  
  469. 'description' => __( 'Select an image file for your logo.', 'onetone' ),  
  470. 'default' => ONETONE_THEME_BASE_URL.'/images/overlay-logo.png',  
  471. 'type' => 'images',  
  472. 'section' => 'onetone_logo',  
  473. ); 
  474.  
  475. $options[] = array( 
  476. 'slug' => $option_name.'[logo_retina]',  
  477. 'label' => __( 'Upload Logo (Retina Version @2x)', 'onetone' ),  
  478. 'description' => __( 'Select an image file for the retina version of the logo. It should be exactly 2x the size of main logo.', 'onetone' ),  
  479. 'default' => '',  
  480. 'type' => 'images',  
  481. 'section' => 'onetone_logo',  
  482.  
  483. ); 
  484. $options[] = array( 
  485. 'slug' => $option_name.'[retina_logo_width]',  
  486. 'label' => __( 'Standard Logo Width for Retina Logo', 'onetone' ),  
  487. 'description' => __( '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' ),  
  488. 'default' => '',  
  489. 'type' => 'text',  
  490. 'section' => 'onetone_logo',  
  491.  
  492. ); 
  493.  
  494. $options[] = array( 
  495. 'slug' => $option_name.'[retina_logo_height]',  
  496. 'label' => __( 'Standard Logo Height for Retina Logo', 'onetone' ),  
  497. 'description' => __( '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' ),  
  498. 'default' => '',  
  499. 'type' => 'text',  
  500. 'section' => 'onetone_logo',  
  501.  
  502. ); 
  503.  
  504. // Sticky Header Logo 
  505.  
  506. $options[] = array( 
  507. 'slug' => 'onetone_sticky_header_logo',  
  508. 'label' => __( 'Sticky Header Logo', 'onetone' ),  
  509. 'panel' => 'onetone_header',  
  510. 'priority' => 4,  
  511. 'type' => 'section' 
  512. ); 
  513.  
  514. $options[] = array( 
  515. 'slug' => $option_name.'[sticky_logo]',  
  516. 'label' => __( 'Upload Logo', 'onetone' ),  
  517. 'description' => __( 'Select an image file for your logo.', 'onetone' ),  
  518. 'default' => ONETONE_THEME_BASE_URL.'/images/logo.png',  
  519. 'type' => 'images',  
  520. 'section' => 'onetone_sticky_header_logo',  
  521.  
  522. ); 
  523.  
  524. $options[] = array( 
  525. 'slug' => $option_name.'[sticky_logo_retina]',  
  526. 'label' => __( 'Upload Logo (Retina Version @2x)', 'onetone' ),  
  527. 'description' => __( 'Select an image file for the retina version of the logo. It should be exactly 2x the size of main logo.', 'onetone' ),  
  528. 'default' => '',  
  529. 'type' => 'images',  
  530. 'section' => 'onetone_sticky_header_logo',  
  531.  
  532. ); 
  533.  
  534. $options[] = array( 
  535. 'slug' => $option_name.'[sticky_logo_width_for_retina_logo]',  
  536. 'label' => __( 'Sticky Logo Width for Retina Logo', 'onetone' ),  
  537. 'description' => __( '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' ),  
  538.  
  539. 'default' => '',  
  540. 'type' => 'text',  
  541. 'section' => 'onetone_sticky_header_logo',  
  542.  
  543. ); 
  544.  
  545. $options[] = array( 
  546. 'slug' => $option_name.'[sticky_logo_height_for_retina_logo]',  
  547. 'label' => __( 'Sticky Logo Height for Retina Logo', 'onetone' ),  
  548. 'description' => __( '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' ),  
  549. 'default' => '',  
  550. 'type' => 'text',  
  551. 'section' => 'onetone_sticky_header_logo',  
  552.  
  553. ); 
  554.  
  555. // Logo Options 
  556.  
  557. $options[] = array( 
  558. 'slug' => 'onetone_logo_options',  
  559. 'label' => __( 'Logo Options', 'onetone' ),  
  560. 'panel' => 'onetone_header',  
  561. 'priority' => 5,  
  562. 'type' => 'section' 
  563. ); 
  564.  
  565. $options[] = array( 
  566. 'slug' => $option_name.'[logo_position]',  
  567. 'label' => __( 'Logo Position', 'onetone' ),  
  568. 'description' => __( 'Set position for logo in header', 'onetone' ),  
  569. 'default' => 'left',  
  570. 'type' => 'select',  
  571. 'section' => 'onetone_logo_options',  
  572. 'choices' => $align 
  573. ); 
  574.  
  575. $options[] = array( 
  576. 'slug' => $option_name.'[logo_left_margin]',  
  577. 'label' => __( 'Logo Left Margin', 'onetone' ),  
  578. 'description' => __( 'Use a number without \'px\', ex: 40', 'onetone' ),  
  579. 'default' => '0',  
  580. 'type' => 'text',  
  581. 'section' => 'onetone_logo_options',  
  582.  
  583. ); 
  584. $options[] = array( 
  585. 'slug' => $option_name.'[logo_right_margin]',  
  586. 'label' => __( 'Logo Right Margin', 'onetone' ),  
  587. 'description' => __( 'Use a number without \'px\', ex: 40', 'onetone' ),  
  588. 'default' => '10',  
  589. 'type' => 'text',  
  590. 'section' => 'onetone_logo_options',  
  591.  
  592. ); 
  593. $options[] = array( 
  594. 'slug' => $option_name.'[logo_top_margin]',  
  595. 'label' => __( 'Logo Top Margin', 'onetone' ),  
  596. 'description' => __( 'Use a number without \'px\', ex: 40', 'onetone' ),  
  597. 'default' => '10',  
  598. 'type' => 'text',  
  599. 'section' => 'onetone_logo_options',  
  600.  
  601. ); 
  602. $options[] = array( 
  603. 'slug' => $option_name.'[logo_bottom_margin]',  
  604. 'label' => __( 'Logo Bottom Margin', 'onetone' ),  
  605. 'description' => __( 'Use a number without \'px\', ex: 40', 'onetone' ),  
  606. 'default' => '10',  
  607. 'type' => 'text',  
  608. 'section' => 'onetone_logo_options',  
  609.  
  610. ); 
  611.  
  612. // Header Options  
  613. $options[] = array( 
  614. 'slug' => 'onetone_header_option',  
  615. 'label' => __( 'Header Options', 'onetone' ),  
  616. 'panel' => 'onetone_header',  
  617. 'priority' => 6,  
  618. 'type' => 'section' 
  619. ); 
  620.  
  621. $options[] = array( 
  622. 'slug' => $option_name.'[header_fullwidth]',  
  623. 'label' => __( 'Full Width Header', 'onetone' ),  
  624. 'description' => __( 'Enable header full width.', 'onetone' ),  
  625. 'default' => '',  
  626. 'type' => 'checkbox',  
  627. 'section' => 'onetone_header_option',  
  628.  
  629. ); 
  630.  
  631.  
  632. $options[] = array( 
  633. 'slug' => $option_name.'[nav_hover_effect]',  
  634. 'label' => __( 'Nav Hover Effect', 'onetone' ),  
  635. 'description' => '',  
  636. 'default' => '3',  
  637. 'type' => 'image_select',  
  638. 'section' => 'onetone_header_option',  
  639. 'choices' => array( 
  640. '0'=> ONETONE_THEME_BASE_URL.'/images/nav-style0.gif',  
  641. '1'=> ONETONE_THEME_BASE_URL.'/images/nav-style1.gif',  
  642. '2'=> ONETONE_THEME_BASE_URL.'/images/nav-style2.gif',  
  643. '3'=> ONETONE_THEME_BASE_URL.'/images/nav-style3.gif',  
  644. ); 
  645.  
  646. // Header Background 
  647. $options[] = array( 
  648. 'slug' => $option_name.'[header_background_image]',  
  649. 'label' => __( 'Header Background Image', 'onetone' ),  
  650. 'description' => __( 'Background Image For Header Area', 'onetone' ),  
  651. 'default' => '',  
  652. 'type' => 'images',  
  653. 'section' => 'onetone_header_option',  
  654.  
  655. ); 
  656.  
  657. $options[] = array( 
  658. 'slug' => $option_name.'[header_background_full]',  
  659. 'label' => __( '100% Background Image', 'onetone' ),  
  660. 'description' => __( 'Turn on to have the header background image display at 100% in width and height and scale according to the browser size.', 'onetone' ),  
  661. 'default' => 'yes',  
  662. 'type' => 'select',  
  663. 'section' => 'onetone_header_option',  
  664. 'choices' => $choices 
  665. ); 
  666.  
  667. $options[] = array( 
  668. 'slug' => $option_name.'[header_background_parallax]',  
  669. 'label' => __( 'Parallax Background Image', 'onetone' ),  
  670. 'description' => __( 'Turn on to enable parallax scrolling on the background image for header top positions.', 'onetone' ),  
  671. 'default' => 'no',  
  672. 'type' => 'select',  
  673. 'section' => 'onetone_header_option',  
  674. 'choices' => $choices 
  675. ); 
  676.  
  677. $options[] = array( 
  678. 'slug' => $option_name.'[header_background_repeat]',  
  679. 'label' => __( 'Background Repeat', 'onetone' ),  
  680. 'description' => __( 'Select how the background image repeats.', 'onetone' ),  
  681. 'default' => 'repeat',  
  682. 'type' => 'select',  
  683. 'section' => 'onetone_header_option',  
  684. 'choices' => $repeat 
  685. ); 
  686. $options[] = array( 
  687. 'slug' => $option_name.'[header_top_padding]',  
  688. 'label' => __( 'Header Top Padding', 'onetone' ),  
  689. 'description' => __( 'In pixels or percentage, ex: 10px or 10%.', 'onetone' ),  
  690. 'default' => '0px',  
  691. 'type' => 'text',  
  692. 'section' => 'onetone_header_option',  
  693.  
  694. ); 
  695. $options[] = array( 
  696. 'slug' => $option_name.'[header_bottom_padding]',  
  697. 'label' => __( 'Header Bottom Padding', 'onetone' ),  
  698. 'description' => __( 'In pixels or percentage, ex: 10px or 10%.', 'onetone' ),  
  699. 'default' => '0px',  
  700. 'type' => 'text',  
  701. 'section' => 'onetone_header_option',  
  702.  
  703. ); 
  704.  
  705. //Sticky Header Options  
  706.  
  707. $options[] = array( 
  708. 'slug' => 'onetone_sticky_header',  
  709. 'label' => __( 'Sticky Header', 'onetone' ),  
  710. 'panel' => 'onetone_header',  
  711. 'priority' => 7,  
  712. 'type' => 'section' 
  713. ); 
  714.  
  715. $options[] = array( 
  716. 'slug' => $option_name.'[enable_sticky_header]',  
  717. 'label' => __( 'Enable Sticky Header', 'onetone' ),  
  718. 'description' => __( 'Choose to enable sticky header', 'onetone' ),  
  719. 'default' => 'yes',  
  720. 'type' => 'select',  
  721. 'section' => 'onetone_sticky_header',  
  722. 'choices' => $choices 
  723. ); 
  724. $options[] = array( 
  725. 'slug' => $option_name.'[enable_sticky_header_tablets]',  
  726. 'label' => __( 'Enable Sticky Header on Tablets', 'onetone' ),  
  727. 'description' => __( 'Choose to enable sticky header on tablets', 'onetone' ),  
  728. 'default' => 'no',  
  729. 'type' => 'select',  
  730. 'section' => 'onetone_sticky_header',  
  731. 'choices' => $choices 
  732. ); 
  733. $options[] = array( 
  734. 'slug' => $option_name.'[enable_sticky_header_mobiles]',  
  735. 'label' => __( 'Enable Sticky Header on Mobiles', 'onetone' ),  
  736. 'description' => __( 'Choose to enable sticky header on mobiles', 'onetone' ),  
  737. 'default' => 'no',  
  738. 'type' => 'select',  
  739. 'section' => 'onetone_sticky_header',  
  740. 'choices' => $choices 
  741. ); 
  742.  
  743.  
  744. $options[] = array( 
  745. 'slug' => $option_name.'[sticky_header_menu_item_padding]',  
  746. 'label' => __( 'Sticky Header Menu Item Padding', 'onetone' ),  
  747. 'description' => __( 'Controls the space between each menu item in the sticky header. Use a number without \'px\', default is 0. ex: 10', 'onetone' ),  
  748. 'default' => '0',  
  749. 'type' => 'text',  
  750. 'section' => 'onetone_sticky_header',  
  751.  
  752. ); 
  753. $options[] = array( 
  754. 'slug' => $option_name.'[sticky_header_navigation_font_size]',  
  755. 'label' => __( 'Sticky Header Navigation Font Size', 'onetone' ),  
  756. 'description' => __( 'Controls the font size of the menu items in the sticky header. Use a number without \'px\', default is 14. ex: 14', 'onetone' ),  
  757. 'default' => '13',  
  758. 'type' => 'text',  
  759. 'section' => 'onetone_sticky_header',  
  760.  
  761. ); 
  762. $options[] = array( 
  763. 'slug' => $option_name.'[sticky_header_logo_width]',  
  764. 'label' => __( 'Sticky Header Logo Width', 'onetone' ),  
  765. 'description' => __( 'Controls the logo width in the sticky header. Use a number without \'px\'.', 'onetone' ),  
  766. 'default' => '',  
  767. 'type' => 'text',  
  768. 'section' => 'onetone_sticky_header',  
  769.  
  770. ); 
  771.  
  772.  
  773.  
  774. $options[] = array( 
  775. 'slug' => 'onetone_page_title_bar',  
  776. 'label' => __( 'Onetone: Page Title Bar', 'onetone' ),  
  777. 'priority' => 5,  
  778. 'type' => 'panel' 
  779. ); 
  780.  
  781. $options[] = array( 
  782. 'slug' => 'onetone_styling',  
  783. 'label' => __( 'Onetone: Styling', 'onetone' ),  
  784. 'priority' => 7,  
  785. 'type' => 'panel' 
  786. ); 
  787.  
  788. $options[] = array( 
  789. 'slug' => 'onetone_styling_general',  
  790. 'label' => __( 'Primary Color', 'onetone' ),  
  791. 'panel' => 'onetone_styling',  
  792. 'priority' => 1,  
  793. 'type' => 'section' 
  794. ); 
  795.  
  796.  
  797. $options[] = array( 
  798. 'slug' => $option_name.'[primary_color]',  
  799. 'label' => __( 'Primary Color', 'onetone' ),  
  800. 'description' => __( 'Set primary color for the theme', 'onetone' ),  
  801. 'default' => '#37cadd',  
  802. 'type' => 'color',  
  803. 'section' => 'onetone_styling_general',  
  804.  
  805. ); 
  806.  
  807.  
  808. $options[] = array( 
  809. 'slug' => 'onetone_background_colors',  
  810. 'label' => __( 'Background Colors', 'onetone' ),  
  811. 'panel' => 'onetone_styling',  
  812. 'priority' => 2,  
  813. 'type' => 'section' 
  814. ); 
  815.  
  816. $options[] = array( 
  817. 'slug' => $option_name.'[sticky_header_background_color]',  
  818. 'label' => __( 'Sticky Header Background Color', 'onetone' ),  
  819. 'description' => __( 'Set background color for sticky header', 'onetone' ),  
  820. 'default' => '#ffffff',  
  821. 'type' => 'color',  
  822. 'section' => 'onetone_background_colors',  
  823. ); 
  824. $options[] = array( 
  825. 'slug' => $option_name.'[sticky_header_background_opacity]',  
  826. 'label' => __( 'Sticky Header Background Opacity', 'onetone' ),  
  827. 'description' => __( 'Opacity only works with header top position and ranges between 0 (transparent) and 1.', 'onetone' ),  
  828. 'default' => '0.7',  
  829. 'type' => 'select',  
  830. 'section' => 'onetone_background_colors',  
  831. 'choices' => $opacity,  
  832. ); 
  833. $options[] = array( 
  834. 'slug' => $option_name.'[header_background_color]',  
  835. 'label' => __( 'Header Background Color', 'onetone' ),  
  836. 'description' => __( 'Set background color for main header', 'onetone' ),  
  837. 'default' => '#ffffff',  
  838. 'type' => 'color',  
  839. 'section' => 'onetone_background_colors',  
  840. ); 
  841. $options[] = array( 
  842. 'slug' => $option_name.'[header_background_opacity]',  
  843. 'label' => __( 'Header Background Opacity', 'onetone' ),  
  844. 'description' => __( 'Opacity only works with header top position and ranges between 0 (transparent) and 1.', 'onetone' ),  
  845. 'default' => '1',  
  846. 'type' => 'select',  
  847. 'section' => 'onetone_background_colors',  
  848. 'choices' => $opacity,  
  849. ); 
  850.  
  851. $options[] = array( 
  852. 'slug' => $option_name.'[content_background_color]',  
  853. 'label' => __( 'Content Background Color', 'onetone' ),  
  854. 'description' => __( 'Set background color for site content', 'onetone' ),  
  855. 'default' => '#ffffff',  
  856. 'type' => 'color',  
  857. 'section' => 'onetone_background_colors',  
  858.  
  859. ); 
  860.  
  861. $options[] = array( 
  862. 'slug' => $option_name.'[sidebar_background_color]',  
  863. 'label' => __( 'Sidebar Background Color', 'onetone' ),  
  864. 'description' => __( 'Set background color for sidebar', 'onetone' ),  
  865. 'default' => '#ffffff',  
  866. 'type' => 'color',  
  867. 'section' => 'onetone_background_colors',  
  868. ); 
  869. $options[] = array( 
  870. 'slug' => $option_name.'[footer_background_color]',  
  871. 'label' => __( 'Footer Background Color', 'onetone' ),  
  872. 'description' => __( 'Set background color for the footer', 'onetone' ),  
  873. 'default' => '#555555',  
  874. 'type' => 'color',  
  875. 'section' => 'onetone_background_colors',  
  876. ); 
  877.  
  878. $options[] = array( 
  879. 'slug' => $option_name.'[copyright_background_color]',  
  880. 'label' => __( 'Copyright Background Color', 'onetone' ),  
  881. 'description' => __( 'Set background color for the copyright area in footer', 'onetone' ),  
  882. 'default' => '#000000',  
  883. 'type' => 'color',  
  884. 'section' => 'onetone_background_colors',  
  885. ); 
  886.  
  887. $options[] = array( 
  888. 'slug' => 'onetone_element_colors',  
  889. 'label' => __( 'Element Colors', 'onetone' ),  
  890. 'panel' => 'onetone_styling',  
  891. 'priority' => 3,  
  892. 'type' => 'section' 
  893. ); 
  894.  
  895. $options[] = array( 
  896. 'slug' => $option_name.'[form_background_color]',  
  897. 'label' => __( 'Form Background Color', 'onetone' ),  
  898. 'description' => __( 'Controls the background color of form fields', 'onetone' ),  
  899. 'default' => '',  
  900. 'type' => 'color',  
  901. 'section' => 'onetone_element_colors',  
  902. ); 
  903. $options[] = array( 
  904. 'slug' => $option_name.'[form_text_color]',  
  905. 'label' => __( 'Form Text Color', 'onetone' ),  
  906. 'description' => __( 'Controls the text color for forms', 'onetone' ),  
  907. 'default' => '#666666',  
  908. 'type' => 'color',  
  909. 'section' => 'onetone_element_colors',  
  910. ); 
  911. $options[] = array( 
  912. 'slug' => $option_name.'[form_border_color]',  
  913. 'label' => __( 'Form Border Color', 'onetone' ),  
  914. 'description' => __( 'Controls the border color for forms', 'onetone' ),  
  915. 'default' => '#666666',  
  916. 'type' => 'color',  
  917. 'section' => 'onetone_element_colors',  
  918. ); 
  919.  
  920.  
  921. $options[] = array( 
  922. 'slug' => 'onetone_font_colors',  
  923. 'label' => __( 'Font Colors', 'onetone' ),  
  924. 'panel' => 'onetone_styling',  
  925. 'priority' => 4,  
  926. 'type' => 'section' 
  927. ); 
  928.  
  929. $options[] = array( 
  930. 'slug' => $option_name.'[fixed_header_text_color]',  
  931. 'label' => __( 'Sticky Header Text Color', 'onetone' ),  
  932. 'description' => __( 'Set color for tagline in fixed header', 'onetone' ),  
  933. 'default' => '#333333',  
  934. 'type' => 'color',  
  935. 'section' => 'onetone_font_colors',  
  936.  
  937. ); 
  938. $options[] = array( 
  939. 'slug' => $option_name.'[overlay_header_text_color]',  
  940. 'label' => __( 'Overlay Header Text Color', 'onetone' ),  
  941. 'description' => __( 'Set color for tagline in overlay header', 'onetone' ),  
  942. 'default' => '#ffffff',  
  943. 'type' => 'color',  
  944. 'section' => 'onetone_font_colors',  
  945.  
  946. ); 
  947.  
  948. $options[] = array( 
  949. 'slug' => $option_name.'[page_title_color',  
  950. 'label' => __( 'Page Title', 'onetone' ),  
  951. 'description' => __( 'Set color for page title', 'onetone' ),  
  952. 'default' => '#555555',  
  953. 'type' => 'color',  
  954. 'section' => 'onetone_font_colors',  
  955.  
  956. ); 
  957.  
  958. $options[] = array( 
  959. 'slug' => $option_name.'[h1_color]',  
  960. 'label' => __( 'Heading 1 (H1) Font Color', 'onetone' ),  
  961. 'description' => __( 'Choose color for H1 headings', 'onetone' ),  
  962. 'default' => '#555555',  
  963. 'type' => 'color',  
  964. 'section' => 'onetone_font_colors',  
  965. ); 
  966.  
  967. $options[] = array( 
  968. 'slug' => $option_name.'[h2_color]',  
  969. 'label' => __( 'Heading 2 (H2) Font Color', 'onetone' ),  
  970. 'description' => __( 'Choose color for H2 headings', 'onetone' ),  
  971. 'default' => '#555555',  
  972. 'type' => 'color',  
  973. 'section' => 'onetone_font_colors',  
  974. ); 
  975.  
  976. $options[] = array( 
  977. 'slug' => $option_name.'[h3_color]',  
  978. 'label' => __( 'Heading 3 (H3) Font Color', 'onetone' ),  
  979. 'description' => __( 'Choose color for H3 headings', 'onetone' ),  
  980. 'default' => '#555555',  
  981. 'type' => 'color',  
  982. 'section' => 'onetone_font_colors',  
  983. ); 
  984.  
  985. $options[] = array( 
  986. 'slug' => $option_name.'[h4_color]',  
  987. 'label' => __( 'Heading 4 (H4) Font Color', 'onetone' ),  
  988. 'description' => __( 'Choose color for H4 headings', 'onetone' ),  
  989. 'default' => '#555555',  
  990. 'type' => 'color',  
  991. 'section' => 'onetone_font_colors',  
  992. ); 
  993.  
  994. $options[] = array( 
  995. 'slug' => $option_name.'[h5_color]',  
  996. 'label' => __( 'Heading 5 (H5) Font Color', 'onetone' ),  
  997. 'description' => __( 'Choose color for H5 headings', 'onetone' ),  
  998. 'default' => '#555555',  
  999. 'type' => 'color',  
  1000. 'section' => 'onetone_font_colors',  
  1001. ); 
  1002.  
  1003. $options[] = array( 
  1004. 'slug' => $option_name.'[h6_color]',  
  1005. 'label' => __( 'Heading 6 (H6) Font Color', 'onetone' ),  
  1006. 'description' => __( 'Choose color for H6 headings', 'onetone' ),  
  1007. 'default' => '#555555',  
  1008. 'type' => 'color',  
  1009. 'section' => 'onetone_font_colors',  
  1010. ); 
  1011.  
  1012. $options[] = array( 
  1013. 'slug' => $option_name.'[body_text_color]',  
  1014. 'label' => __( 'Body Text Color', 'onetone' ),  
  1015. 'description' => __( 'Choose color for body text', 'onetone' ),  
  1016. 'default' => '#333333',  
  1017. 'type' => 'color',  
  1018. 'section' => 'onetone_font_colors',  
  1019. ); 
  1020.  
  1021. $options[] = array( 
  1022. 'slug' => $option_name.'[links_color]',  
  1023. 'label' => __( 'Links Color', 'onetone' ),  
  1024. 'description' => __( 'Choose color for links', 'onetone' ),  
  1025. 'default' => '#37cadd',  
  1026. 'type' => 'color',  
  1027. 'section' => 'onetone_font_colors',  
  1028. ); 
  1029.  
  1030. $options[] = array( 
  1031. 'slug' => $option_name.'[breadcrumbs_text_color]',  
  1032. 'label' => __( 'Breadcrumbs Text Color', 'onetone' ),  
  1033. 'description' => __( 'Choose color for breadcrumbs', 'onetone' ),  
  1034. 'default' => '#555555',  
  1035. 'type' => 'color',  
  1036. 'section' => 'onetone_font_colors',  
  1037. ); 
  1038.  
  1039. $options[] = array( 
  1040. 'slug' => $option_name.'[sidebar_widget_headings_color]',  
  1041. 'label' => __( 'Sidebar Widget Headings Color', 'onetone' ),  
  1042. 'description' => __( 'Choose color for Sidebar widget headings', 'onetone' ),  
  1043. 'default' => '#333333',  
  1044. 'type' => 'color',  
  1045. 'section' => 'onetone_font_colors',  
  1046. ); 
  1047.  
  1048. $options[] = array( 
  1049. 'slug' => $option_name.'[footer_headings_color]',  
  1050. 'label' => __( 'Footer Headings Color', 'onetone' ),  
  1051. 'description' => __( 'Choose color for footer headings', 'onetone' ),  
  1052. 'default' => '#ffffff',  
  1053. 'type' => 'color',  
  1054. 'section' => 'onetone_font_colors',  
  1055. ); 
  1056.  
  1057. $options[] = array( 
  1058. 'slug' => $option_name.'[footer_text_color]',  
  1059. 'label' => __( 'Footer Text Color', 'onetone' ),  
  1060. 'description' => __( 'Choose color for footer text', 'onetone' ),  
  1061. 'default' => '#ffffff',  
  1062. 'type' => 'color',  
  1063. 'section' => 'onetone_font_colors',  
  1064.  
  1065. ); 
  1066.  
  1067. $options[] = array( 
  1068. 'slug' => $option_name.'[footer_link_color]',  
  1069. 'label' => __( 'Footer Link Color', 'onetone' ),  
  1070. 'description' => __( 'Choose color for links in footer', 'onetone' ),  
  1071. 'default' => '#a0a0a0',  
  1072. 'type' => 'color',  
  1073. 'section' => 'onetone_font_colors',  
  1074. ); 
  1075.  
  1076.  
  1077. $options[] = array( 
  1078. 'slug' => 'onetone_main_menu_colors',  
  1079. 'label' => __( 'Main Menu Colors', 'onetone' ),  
  1080. 'panel' => 'onetone_styling',  
  1081. 'priority' => 5,  
  1082. 'type' => 'section' 
  1083. ); 
  1084.  
  1085. $options[] = array( 
  1086. 'slug' => $option_name.'[main_menu_background_color_1]',  
  1087. 'label' => __( 'Main Menu Background Color', 'onetone' ),  
  1088. 'description' => __( 'Choose background color for main menu', 'onetone' ),  
  1089. 'default' => '',  
  1090. 'type' => 'color',  
  1091. 'section' => 'onetone_main_menu_colors',  
  1092. ); 
  1093.  
  1094. $options[] = array( 
  1095. 'slug' => $option_name.'[main_menu_font_color_1]',  
  1096. 'label' => __( 'Main Menu Font Color ( First Level )', 'onetone' ),  
  1097. 'description' => __( 'Choose font color for first level of main menu', 'onetone' ),  
  1098. 'default' => '#3d3d3d',  
  1099. 'type' => 'color',  
  1100. 'section' => 'onetone_main_menu_colors',  
  1101. ); 
  1102.  
  1103. $options[] = array( 
  1104. 'slug' => $option_name.'[main_menu_overlay_font_color_1]',  
  1105. 'label' => __( 'Main Menu Font Color of Overlay Header ( First Level )', 'onetone' ),  
  1106. 'description' => __( 'Choose font color for first level of main menu', 'onetone' ),  
  1107. 'default' => '#ffffff',  
  1108. 'type' => 'color',  
  1109. 'section' => 'onetone_main_menu_colors',  
  1110. ); 
  1111.  
  1112. $options[] = array( 
  1113. 'slug' => $option_name.'[main_menu_font_hover_color_1]',  
  1114. 'name' => __( 'Main Menu Font Hover Color ( First Level )', 'onetone' ),  
  1115. 'description' => __( 'Choose hover color for first level of main menu', 'onetone' ),  
  1116. 'default' => '#3d3d3d',  
  1117. 'type' => 'color',  
  1118. 'section' => 'onetone_main_menu_colors',  
  1119. ); 
  1120.  
  1121. $options[] = array( 
  1122. 'slug' => $option_name.'[main_menu_background_color_2]',  
  1123. 'label' => __( 'Main Menu Background Color ( Sub Level )', 'onetone' ),  
  1124. 'description' => __( 'Choose background color for sub level of main menu', 'onetone' ),  
  1125. 'default' => '#ffffff',  
  1126. 'type' => 'color',  
  1127. 'section' => 'onetone_main_menu_colors',  
  1128. ); 
  1129.  
  1130. $options[] = array( 
  1131. 'slug' => $option_name.'[main_menu_font_color_2]',  
  1132. 'label' => __( 'Main Menu Font Color ( Sub Level )', 'onetone' ),  
  1133. 'description' => __( 'Choose font color for sub level of main menu', 'onetone' ),  
  1134. 'default' => '#3d3d3d',  
  1135. 'type' => 'color',  
  1136. 'section' => 'onetone_main_menu_colors',  
  1137. ); 
  1138.  
  1139. $options[] = array( 
  1140. 'slug' => $option_name.'[main_menu_font_hover_color_2]',  
  1141. 'label' => __( 'Main Menu Font Hover Color ( Sub Level )', 'onetone' ),  
  1142. 'description' => __( 'Choose hover color for sub level of main menu', 'onetone' ),  
  1143. 'default' => '#222222',  
  1144. 'type' => 'color',  
  1145. 'section' => 'onetone_main_menu_colors',  
  1146. ); 
  1147.  
  1148. $options[] = array( 
  1149. 'slug' => $option_name.'[main_menu_separator_color_2]',  
  1150. 'label' => __( 'Main Menu Separator Color ( Sub Levels )', 'onetone' ),  
  1151. 'description' => __( 'Choose separator color for sub level of main menu', 'onetone' ),  
  1152. 'default' => '#000000',  
  1153. 'type' => 'color',  
  1154. 'section' => 'onetone_main_menu_colors',  
  1155. ); 
  1156.  
  1157.  
  1158. $options[] = array( 
  1159. 'slug' => 'onetone_side_menu_colors',  
  1160. 'label' => __( 'Front Page Side Navigation Color', 'onetone' ),  
  1161. 'panel' => 'onetone_styling',  
  1162. 'priority' => 5,  
  1163. 'type' => 'section' 
  1164. ); 
  1165.  
  1166. $options[] = array( 
  1167. 'slug' => $option_name.'[side_menu_color]',  
  1168. 'label' => __( 'Side Navigation Color', 'onetone' ),  
  1169. 'description' => __( 'Choose color for side navigation of front page.', 'onetone' ),  
  1170. 'default' => '#37cadd',  
  1171. 'type' => 'color',  
  1172. 'section' => 'onetone_side_menu_colors',  
  1173. ); 
  1174.  
  1175.  
  1176. $options[] = array( 
  1177. 'slug' => 'onetone_sidebar',  
  1178. 'label' => __( 'Onetone: Sidebar', 'onetone' ),  
  1179. 'priority' => 8,  
  1180. 'type' => 'panel' 
  1181. ); 
  1182.  
  1183. $options[] = array( 
  1184. 'slug' => 'onetone_sidebar_blog_posts',  
  1185. 'label' => __( 'Blog Posts', 'onetone' ),  
  1186. 'panel' => 'onetone_sidebar',  
  1187. 'priority' => 1,  
  1188. 'type' => 'section' 
  1189. ); 
  1190.  
  1191. $options[] = array( 
  1192. 'slug' => $option_name.'[left_sidebar_blog_posts]',  
  1193. 'label' => __( 'Left Sidebar', 'onetone' ),  
  1194. 'description' => __( 'Choose left sidebar for blog posts', 'onetone' ),  
  1195. 'default' => '',  
  1196. 'type' => 'select',  
  1197. 'section' => 'onetone_sidebar_blog_posts',  
  1198. 'choices' => $sidebars,  
  1199.  
  1200. ); 
  1201. $options[] = array( 
  1202. 'slug' => $option_name.'[right_sidebar_blog_posts]',  
  1203. 'label' => __( 'Right Sidebar', 'onetone' ),  
  1204. 'description' => __( 'Choose right sidebar for blog posts', 'onetone' ),  
  1205. 'default' => '',  
  1206. 'type' => 'select',  
  1207. 'section' => 'onetone_sidebar_blog_posts',  
  1208. 'choices' => $sidebars,  
  1209.  
  1210. ); 
  1211.  
  1212.  
  1213. $options[] = array( 
  1214. 'slug' => 'onetone_sidebar_blog_archive',  
  1215. 'label' => __( 'Blog Archive / Category Pages', 'onetone' ),  
  1216. 'panel' => 'onetone_sidebar',  
  1217. 'priority' => 2,  
  1218. 'type' => 'section' 
  1219. ); 
  1220.  
  1221. $options[] = array( 
  1222. 'slug' => $option_name.'[left_sidebar_blog_archive]',  
  1223. 'label' => __( 'Left Sidebar', 'onetone' ),  
  1224. 'description' => __( 'Choose left sidebar for blog archive page', 'onetone' ),  
  1225. 'default' => '',  
  1226. 'type' => 'select',  
  1227. 'section' => 'onetone_sidebar_blog_archive',  
  1228.  
  1229. 'choices' => $sidebars,  
  1230.  
  1231. ); 
  1232. $options[] = array( 
  1233. 'slug' => $option_name.'[right_sidebar_blog_archive]',  
  1234. 'label' => __( 'Right Sidebar', 'onetone' ),  
  1235. 'description' => __( 'Choose right sidebar for blog archive page', 'onetone' ),  
  1236. 'default' => '',  
  1237. 'type' => 'select',  
  1238. 'section' => 'onetone_sidebar_blog_archive',  
  1239.  
  1240. 'choices' => $sidebars,  
  1241.  
  1242. ); 
  1243.  
  1244.  
  1245. //Sidebar search 
  1246. $options[] = array( 
  1247. 'slug' => 'onetone_sidebar_search',  
  1248. 'label' => __( 'Search Page', 'onetone' ),  
  1249. 'panel' => 'onetone_sidebar',  
  1250. 'priority' => 7,  
  1251. 'type' => 'section' 
  1252. ); 
  1253.  
  1254. $options[] = array( 
  1255. 'slug' => $option_name.'[left_sidebar_search]',  
  1256. 'label' => __( 'Left Sidebar', 'onetone' ),  
  1257. 'description' => __( 'Choose left sidebar for blog search result page', 'onetone' ),  
  1258. 'default' => '',  
  1259. 'type' => 'select',  
  1260. 'section' => 'onetone_sidebar_search',  
  1261. 'choices' => $sidebars,  
  1262.  
  1263. ); 
  1264. $options[] = array( 
  1265. 'slug' => $option_name.'[right_sidebar_search]',  
  1266. 'label' => __( 'Right Sidebar', 'onetone' ),  
  1267. 'description' => __( 'Choose right sidebar for blog search result page', 'onetone' ),  
  1268. 'default' => '',  
  1269. 'type' => 'select',  
  1270. 'section' => 'onetone_sidebar_search',  
  1271. 'choices' => $sidebars,  
  1272.  
  1273. ); 
  1274.  
  1275. $options[] = array( 
  1276. 'slug' => 'onetone_sidebar_404',  
  1277. 'label' => __( '404 Page', 'onetone' ),  
  1278. 'panel' => 'onetone_sidebar',  
  1279. 'priority' => 8,  
  1280. 'type' => 'section' 
  1281. ); 
  1282.  
  1283. $options[] = array( 
  1284. 'slug' => $option_name.'[left_sidebar_404]',  
  1285. 'label' => __( 'Left Sidebar', 'onetone' ),  
  1286. 'description' => __( 'Choose left sidebar for 404 page', 'onetone' ),  
  1287. 'default' => '',  
  1288. 'type' => 'select',  
  1289. 'section' => 'onetone_sidebar_404',  
  1290.  
  1291. 'choices' => $sidebars,  
  1292.  
  1293. ); 
  1294. $options[] = array( 
  1295. 'slug' => $option_name.'[right_sidebar_404]',  
  1296. 'label' => __( 'Right Sidebar', 'onetone' ),  
  1297. 'description' => __( 'Choose left sidebar for 404 page', 'onetone' ),  
  1298. 'default' => '',  
  1299. 'type' => 'select',  
  1300. 'section' => 'onetone_sidebar_404',  
  1301.  
  1302. 'choices' => $sidebars,  
  1303.  
  1304. ); 
  1305.  
  1306. // FOOTER 
  1307. $options[] = array( 
  1308. 'slug' => 'onetone_footer',  
  1309. 'label' => __( 'Onetone: Footer', 'onetone' ),  
  1310. 'priority' => 9,  
  1311. 'type' => 'panel' 
  1312. ); 
  1313.  
  1314. $options[] = array( 
  1315. 'slug' => 'onetone_footer_widgets_area_options',  
  1316. 'label' => __( 'Footer Widgets Area Options', 'onetone' ),  
  1317. 'panel' => 'onetone_footer',  
  1318. 'priority' => 1,  
  1319. 'type' => 'section' 
  1320. ); 
  1321.  
  1322.  
  1323.  
  1324. $options[] = array( 
  1325. 'slug' => $option_name.'[enable_footer_widget_area]',  
  1326. 'label' => __( 'Display footer widgets?', 'onetone' ),  
  1327. 'description' => __('Choose to display footer widgets', 'onetone'),  
  1328. 'default' => '',  
  1329. 'type' => 'checkbox',  
  1330. 'section' => 'onetone_footer_widgets_area_options',  
  1331.  
  1332.  
  1333. ); 
  1334.  
  1335. $options[] = array( 
  1336. 'slug' => $option_name.'[footer_columns]',  
  1337. 'label' => __( 'Number of Footer Columns', 'onetone' ),  
  1338. 'description' => __('Set column number for footer widget area', 'onetone'),  
  1339. 'default' => '4',  
  1340. 'type' => 'select',  
  1341. 'section' => 'onetone_footer_widgets_area_options',  
  1342.  
  1343. 'choices' => array(  
  1344. '1' => '1',  
  1345. '2' => '2',  
  1346. '3' => '3',  
  1347. '4' => '4',  
  1348. ),  
  1349.  
  1350. ); 
  1351.  
  1352. $options[] = array( 
  1353. 'slug' => $option_name.'[footer_background_image]',  
  1354. 'label' => __( 'Upload Background Image', 'onetone' ),  
  1355. 'description' => __( 'Choose to upload background image for footer', 'onetone' ),  
  1356. 'default' => '',  
  1357. 'type' => 'images',  
  1358. 'section' => 'onetone_footer_widgets_area_options',  
  1359. ); 
  1360. $options[] = array( 
  1361. 'slug' => $option_name.'[footer_bg_full]',  
  1362. 'label' => __( '100% Background Image', 'onetone' ),  
  1363. 'description' => __( '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' ),  
  1364. 'default' => 'no',  
  1365. 'type' => 'select',  
  1366. 'section' => 'onetone_footer_widgets_area_options',  
  1367.  
  1368. 'choices' => $choices 
  1369. ); 
  1370. $options[] = array( 
  1371. 'slug' => $option_name.'[footer_parallax_background]',  
  1372. 'label' => __( 'Parallax Background Image', 'onetone' ),  
  1373. 'description' => __( 'Choose to set parallax background effect for footer', 'onetone' ),  
  1374. 'default' => 'no',  
  1375. 'type' => 'select',  
  1376. 'section' => 'onetone_footer_widgets_area_options',  
  1377.  
  1378. 'choices' => $choices 
  1379. ); 
  1380. $options[] = array( 
  1381. 'slug' => $option_name.'[footer_background_repeat]',  
  1382. 'label' => __( 'Background Repeat', 'onetone' ),  
  1383. 'description' => __( 'Set repeat for background image in footer', 'onetone' ),  
  1384. 'default' => 'repeat',  
  1385. 'type' => 'select',  
  1386. 'section' => 'onetone_footer_widgets_area_options',  
  1387.  
  1388. 'choices' => $repeat 
  1389. ); 
  1390. $options[] = array( 
  1391. 'slug' => $option_name.'[footer_background_position]',  
  1392. 'label' => __( 'Background Position', 'onetone' ),  
  1393. 'description' => __( 'Set position for background image in footer', 'onetone' ),  
  1394. 'default' => 'top left',  
  1395. 'type' => 'select',  
  1396. 'section' => 'onetone_footer_widgets_area_options',  
  1397.  
  1398. 'choices' => $position 
  1399. ); 
  1400. $options[] = array( 
  1401. 'slug' => $option_name.'[footer_top_padding]',  
  1402. 'label' => __( 'Footer Top Padding', 'onetone' ),  
  1403. 'description' => __( 'In pixels or percentage, ex: 10px or 10%.', 'onetone' ),  
  1404. 'default' => '60px',  
  1405. 'type' => 'text',  
  1406. 'section' => 'onetone_footer_widgets_area_options',  
  1407. ); 
  1408. $options[] = array( 
  1409. 'slug' => $option_name.'[footer_bottom_padding]',  
  1410. 'label' => __( 'Footer Bottom Padding', 'onetone' ),  
  1411. 'description' => __( 'In pixels or percentage, ex: 10px or 10%.', 'onetone' ),  
  1412. 'default' => '40px',  
  1413. 'type' => 'text',  
  1414. 'section' => 'onetone_footer_widgets_area_options',  
  1415. ); 
  1416.  
  1417.  
  1418. $options[] = array( 
  1419. 'slug' => 'onetone_copyright_options',  
  1420. 'label' => __( 'Copyright Options', 'onetone' ),  
  1421. 'panel' => 'onetone_footer',  
  1422. 'priority' => 2,  
  1423. 'type' => 'section' 
  1424. ); 
  1425.  
  1426. $options[] = array( 
  1427. 'slug' => $option_name.'[display_copyright_bar]',  
  1428. 'label' => __( 'Display Copyright Bar', 'onetone' ),  
  1429. 'description' => __( 'Choose to display copyright bar', 'onetone' ),  
  1430. 'default' => 'yes',  
  1431. 'type' => 'select',  
  1432. 'section' => 'onetone_copyright_options',  
  1433.  
  1434. 'choices' => $choices 
  1435. ); 
  1436. $options[] = array( 
  1437. 'slug' => $option_name.'[copyright]',  
  1438. 'label' => __( 'Copyright Text', 'onetone' ),  
  1439. 'description' => __( 'Enter the text that displays in the copyright bar. HTML markup can be used.', 'onetone' ),  
  1440. 'default' => 'Copyright © '.date('Y').'.',  
  1441. 'type' => 'textarea',  
  1442. 'section' => 'onetone_copyright_options',  
  1443.  
  1444. ); 
  1445. $options[] = array( 
  1446. 'slug' => $option_name.'[copyright_top_padding]',  
  1447. 'label' => __( 'Copyright Top Padding', 'onetone' ),  
  1448. 'description' => __( 'In pixels or percentage, ex: 10px or 10%.', 'onetone' ),  
  1449. 'default' => '20px',  
  1450. 'type' => 'text',  
  1451. 'section' => 'onetone_copyright_options',  
  1452. ); 
  1453. $options[] = array( 
  1454. 'slug' => $option_name.'[copyright_bottom_padding]',  
  1455. 'label' => __( 'Copyright Bottom Padding', 'onetone' ),  
  1456. 'description' => __( 'In pixels or percentage, ex: 10px or 10%.', 'onetone' ),  
  1457. 'default' => '20px',  
  1458. 'type' => 'text',  
  1459. 'section' => 'onetone_copyright_options',  
  1460. ); 
  1461.  
  1462.  
  1463. $options[] = array( 
  1464. 'slug' => 'onetone_footer_social_icons',  
  1465. 'label' => __( 'Footer Social Icons', 'onetone' ),  
  1466. 'panel' => 'onetone_footer',  
  1467. 'priority' => 3,  
  1468. 'type' => 'section' 
  1469. ); 
  1470.  
  1471. if( $social_icons ): 
  1472. $i = 1; 
  1473. foreach($social_icons as $social_icon) { 
  1474.  
  1475. $options[] = array( 
  1476. 'slug' => $option_name.'[footer_social_title_'.$i.']',  
  1477. 'label' => __( 'Social Title', 'onetone' ) .' '.$i,  
  1478. 'description' => __( 'Set title for social icon', 'onetone' ),  
  1479. 'default' => $social_icon['title'],  
  1480. 'type' => 'text',  
  1481. 'section' => 'onetone_footer_social_icons',  
  1482.  
  1483.  
  1484. ); 
  1485. $options[] = array( 
  1486. 'slug' => $option_name.'[footer_social_icon_'.$i.']',  
  1487. 'label' => __( 'Social Icon', 'onetone' ).' '.$i,  
  1488. 'description' => __( 'Choose FontAwesome icon', 'onetone' ),  
  1489. 'default' => $social_icon['icon'],  
  1490. 'type' => 'text',  
  1491. 'section' => 'onetone_footer_social_icons',  
  1492.  
  1493.  
  1494. ); 
  1495. $options[] = array( 
  1496. 'slug' => $option_name.'[footer_social_link_'.$i.']',  
  1497. 'label' => __( 'Social Icon Link', 'onetone' ).' '.$i,  
  1498. 'description' => __( 'Set link for social icon', 'onetone' ),  
  1499. 'default' => $social_icon['link'],  
  1500. 'type' => 'text',  
  1501. 'section' => 'onetone_footer_social_icons',  
  1502.  
  1503.  
  1504. ); 
  1505. $i++; 
  1506. endif;  
  1507.  
  1508.  
  1509.  
  1510.  
  1511. $onetone_customize_options = $options; 
  1512.  
  1513. return $options;