onetone_standard_settings_data

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