optionsframework_options

The Onetone optionsframework options function.

Description

optionsframework_options(); 

Usage

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

Defined (1)

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

/includes/admin-options.php  
  1. function optionsframework_options() { 
  2.  
  3. global $social_icons, $sidebars, $onetone_options_saved, $onetone_home_sections, $onetone_old_version, $onetone_model_v; 
  4.  
  5. $onetone_option_name = onetone_option_name(); 
  6. $theme_options = get_option($onetone_option_name); 
  7.  
  8. $google_fonts = array(); 
  9. $os_fonts = array_merge( array('' => __( '-- Default --', 'onetone' ) ), $os_fonts); 
  10.  
  11. $onetone_typography_mixed_fonts = array_merge( $os_fonts , $google_fonts ); 
  12. asort($onetone_typography_mixed_fonts); 
  13.  
  14. $nav_typography_defaults = array( 
  15. 'size' => '16px',  
  16. 'face' => 'Calibri, sans-serif',  
  17. 'style' => 'normal',  
  18. 'color' => '#dddddd' ); 
  19.  
  20. $footer_typography_defaults = array( 
  21. 'size' => '14px',  
  22. 'face' => 'Calibri, sans-serif',  
  23. 'style' => 'inherit',  
  24. 'color' => '#777777' ); 
  25.  
  26. $typography_options = array( 
  27. 'sizes' => array( '10', '11', '12', '13', '14', '16', '18', '20', '24', '26', '28', '30', '35', '36', '38', '40', '46', '50', '60', '64' ),  
  28. 'faces' => $onetone_typography_mixed_fonts,  
  29. 'styles' => array( 
  30. 'normal' => 'Normal',  
  31. 'italic' => 'Italic',  
  32. 'bold' => 'Bold',  
  33. 'bold italic' => 'Bold Italic',  
  34. '100' => '100',  
  35. '200' => '200',  
  36. '300' => '300',  
  37. '400' => '400',  
  38. '500' => '500',  
  39. '600' => '600',  
  40. '700' => '700',  
  41. '800' => '800',  
  42. '900' => '900'  
  43. ),  
  44.  
  45. 'color' => true ); 
  46.  
  47. $font_color = array('color' => ''); 
  48. $section_font_color = array('color' => ''); 
  49.  
  50. $choices = array(  
  51.  
  52. 'yes' => __( 'Yes', 'onetone' ),  
  53. 'no' => __( 'No', 'onetone' ) 
  54.  
  55. ); 
  56.  
  57. $choices2 = array(  
  58.  
  59. '1' => __( 'Yes', 'onetone' ),  
  60. '0' => __( 'No', 'onetone' ) 
  61.  
  62. ); 
  63.  
  64. $choices_reverse = array(  
  65.  
  66. 'no' => __( 'No', 'onetone' ),  
  67. 'yes' => __( 'Yes', 'onetone' ) 
  68.  
  69. ); 
  70.  
  71. $align = array(  
  72. '' => __( 'Default', 'onetone' ),  
  73. 'left' => __( 'Left', 'onetone' ),  
  74. 'right' => __( 'Right', 'onetone' ),  
  75. 'center' => __( 'Center', 'onetone' )  
  76. ); 
  77.  
  78. $repeat = array(  
  79. 'repeat' => __( 'Repeat', 'onetone' ),  
  80. 'repeat-x' => __( 'Repeat X', 'onetone' ),  
  81. 'repeat-y' => __( 'Repeat Y', 'onetone' ),  
  82. 'no-repeat' => __( 'No Repeat', 'onetone' ) 
  83.  
  84. ); 
  85.  
  86. $target = array( 
  87. '_blank' => __( 'Blank', 'onetone' ),  
  88. '_self' => __( 'Self', 'onetone' ) 
  89. ); 
  90.  
  91. $position = array(  
  92.  
  93. 'top left' => __( 'Top Left', 'onetone' ),  
  94. 'top center' => __( 'Top Center', 'onetone' ),  
  95. 'top right' => __( 'Top Right', 'onetone' ),  
  96. 'center left' => __( 'Center Left', 'onetone' ),  
  97. 'center center' => __( 'Center Center', 'onetone' ),  
  98. 'center right' => __( 'Center Right', 'onetone' ),  
  99. 'bottom left' => __( 'Bottom Left', 'onetone' ),  
  100. 'bottom center' => __( 'Bottom Center', 'onetone' ),  
  101. 'bottom right' => __( 'Bottom Right', 'onetone' ) 
  102.  
  103. ); 
  104.  
  105. $opacity = array_combine(range(0.1, 1, 0.1), range(0.1, 1, 0.1)); 
  106. $font_size = array_combine(range(1, 100, 1), range(1, 100, 1)); 
  107.  
  108. $section_menu = array("Home", "", "Services", "Gallery", "Team", "About", "Testimonials", "", "Contact", "Portfolio", "Pricing", "Blog"); 
  109. $section_slug = array('home', '', 'services', 'gallery', 'team', 'about', 'testimonials', '', 'contact', 'portfolio', "pricing", "blog"); 
  110. $section_padding = array('', '30px 0', '50px 0', '50px 0', '50px 0', '50px 0', '50px 0 30px', '50px 0', '50px 0', '50px 0', '50px 0', '50px 0', '50px 0', '50px 0', '50px 0'); 
  111. $text_align = array('center', 'left', 'center', 'center', 'center', 'left', 'center', 'left', 'center'); 
  112.  
  113. $section_title = array("POWERFUL ONE PAGE THEME", "", "", "GALLERY", "OUR TEAM", "ABOUT", "", "", "CONTACT", "PORTFOLIO", "PRICING", "BLOG", "", ""); 
  114. $section_color = array("#ffffff", "#555555", "#555555", "#555555", "#555555", "#666666", "#ffffff", "#555555", "#555555"); 
  115. $section_subtitle = array( 
  116. "BASED ON BOOTSTRAP FRAMEWORK AND SHORTCODES, QUICK SET AND EASY BUILD, SHINES ONE PAGE SMALL BUSINESS WEBSITE.",  
  117. "",  
  118. "",  
  119. "Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere c.<br/>Etiam ut dui eu nisi lobortis rhoncus ac quis nunc.",  
  120. "Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere c.<br/>Etiam ut dui eu nisi lobortis rhoncus ac quis nunc.",  
  121. "",  
  122. "",  
  123. "",  
  124. "Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere c.<br/>Etiam ut dui eu nisi lobortis rhoncus ac quis nunc.",  
  125. "Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere c.<br/>Etiam ut dui eu nisi lobortis rhoncus ac quis nunc.",  
  126. "Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere c.<br/>Etiam ut dui eu nisi lobortis rhoncus ac quis nunc.",  
  127. ); 
  128.  
  129.  
  130. if( $onetone_old_version ) 
  131. $content_model = '1'; 
  132. else 
  133. $content_model = '0'; 
  134.  
  135. if ( isset( $_POST['reset'] ) )  
  136. $content_model = '0'; 
  137.  
  138. $default_section_num = count($section_menu); 
  139.  
  140. $section_background = array( 
  141. array( 
  142. 'color' => '#333333',  
  143. 'image' => ONETONE_THEME_BASE_URL.'/images/home-bg01.jpg',  
  144. 'repeat' => 'repeat',  
  145. 'position' => 'center center',  
  146. 'attachment'=>'scroll' ),  
  147. array( 
  148. 'color' => '#eeeeee',  
  149. 'image' => '',  
  150. 'repeat' => 'repeat',  
  151. 'position' => 'top left',  
  152. 'attachment'=>'scroll' ),  
  153. array( 
  154. 'color' => '#ffffff',  
  155. 'image' => '',  
  156. 'repeat' => 'repeat',  
  157. 'position' => 'top left',  
  158. 'attachment'=>'scroll' ),  
  159. array( 
  160. 'color' => '#eeeeee',  
  161. 'image' => '',  
  162. 'repeat' => 'repeat',  
  163. 'position' => 'top left',  
  164. 'attachment'=>'scroll' ),  
  165. ## section 5 
  166. array( 
  167. 'color' => '#ffffff',  
  168. 'image' => '',  
  169. 'repeat' => 'repeat',  
  170. 'position' => 'top left',  
  171. 'attachment'=>'scroll' ),  
  172. array( 
  173. 'color' => '',  
  174. 'image' => esc_url('https://demo.mageewp.com/wootest/wp-content/uploads/sites/31/2016/11/Image_02.png'),  
  175. 'repeat' => 'repeat',  
  176. 'position' => 'center center',  
  177. 'attachment'=>'fixed' ),  
  178. array( 
  179. 'color' => '#37cadd',  
  180. 'image' => '',  
  181. 'repeat' => 'no-repeat',  
  182. 'position' => 'bottom center',  
  183. 'attachment'=>'scroll' ),  
  184. array( 
  185. 'color' => '#ffffff',  
  186. 'image' => '',  
  187. 'repeat' => 'repeat',  
  188. 'position' => 'top left',  
  189. 'attachment'=>'scroll' ),  
  190.  
  191. array( 
  192. 'color' => '',  
  193. 'image' => esc_url('https://demo.mageewp.com/wootest/wp-content/uploads/sites/31/2016/11/16110810_1.jpg'),  
  194. 'repeat' => 'repeat',  
  195. 'position' => 'top left',  
  196. 'attachment'=>'scroll' ),  
  197. array( 
  198. 'color' => '#ffffff',  
  199. 'image' => '',  
  200. 'repeat' => 'repeat',  
  201. 'position' => 'top left',  
  202. 'attachment'=>'scroll' ),  
  203. array( 
  204. 'color' => '#eeeeee',  
  205. 'image' => '',  
  206. 'repeat' => 'repeat',  
  207. 'position' => 'top left',  
  208. 'attachment'=>'scroll' ),  
  209. array( 
  210. 'color' => '#ffffff',  
  211. 'image' => '',  
  212. 'repeat' => 'repeat',  
  213. 'position' => 'top left',  
  214. 'attachment'=>'scroll' ),  
  215.  
  216. ); 
  217.  
  218. $section_css_class = array("section-banner", "", "", "", "", "", "", "", ""); 
  219.  
  220. $section_title_typography_defaults = array( 
  221. array('size' => '64px', 'face' => 'Lustria, serif', 'style' => 'normal', 'color' => '#ffffff' ),  
  222. array('size' => '48px', 'face' => '', 'style' => 'normal', 'color' => '#666666' ),  
  223. array('size' => '48px', 'face' => '', 'style' => 'normal', 'color' => '#666666' ),  
  224. array('size' => '36px', 'face' => '', 'style' => 'bold', 'color' => '#666666' ),  
  225. array('size' => '36px', 'face' => '', 'style' => 'bold', 'color' => '#666666' ),  
  226. array('size' => '36px', 'face' => '', 'style' => 'bold', 'color' => '#666666' ),  
  227. array('size' => '36px', 'face' => '', 'style' => 'bold', 'color' => '#ffffff' ),  
  228. array('size' => '36px', 'face' => '', 'style' => 'bold', 'color' => '#666666' ),  
  229. array('size' => '36px', 'face' => '', 'style' => 'bold', 'color' => '#666666' ),  
  230. array('size' => '36px', 'face' => '', 'style' => 'bold', 'color' => '#666666' ),  
  231. array('size' => '36px', 'face' => '', 'style' => 'bold', 'color' => '#666666' ),  
  232. array('size' => '36px', 'face' => '', 'style' => 'bold', 'color' => '#666666' ),  
  233. array('size' => '36px', 'face' => '', 'style' => 'bold', 'color' => '#666666' ),  
  234. array('size' => '36px', 'face' => '', 'style' => 'bold', 'color' => '#666666' ),  
  235. array('size' => '36px', 'face' => '', 'style' => 'bold', 'color' => '#666666' ),  
  236.  
  237. ); 
  238.  
  239. $section_subtitle_typography_defaults = array( 
  240. array('size' => '18px', 'face' => '', 'style' => 'normal', 'color' => '#ffffff' ),  
  241. array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#555555' ),  
  242. array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#555555' ),  
  243. array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#555555' ),  
  244. array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#555555' ),  
  245. array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#666666' ),  
  246. array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#ffffff' ),  
  247. array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#555555' ),  
  248. array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#555555' ),  
  249. array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#666666' ),  
  250. array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#666666' ),  
  251. array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#666666' ),  
  252. array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#666666' ),  
  253. array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#666666' ),  
  254. array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#666666' ),  
  255. array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#666666' ),  
  256. ); 
  257.  
  258. $section_content_typography_defaults = array( 
  259. array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#ffffff' ),  
  260. array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '' ),  
  261. array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#666666' ),  
  262. array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#ffffff' ),  
  263. array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '' ),  
  264. array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#555555' ),  
  265. array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#ffffff' ),  
  266. array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '' ),  
  267. array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '' ),  
  268. array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#ffffff' ),  
  269. array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '' ),  
  270. array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '' ),  
  271. array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '' ),  
  272. array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '' ),  
  273. array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '' ),  
  274. array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '' ),  
  275.  
  276. ); 
  277.  
  278. $home_sections = array( 
  279. 1 => __('Section 1 - Banner', 'onetone' ),  
  280. 2 => __('Section 2 - Slogan', 'onetone' ),  
  281. 3 => __('Section 3 - Service', 'onetone' ),  
  282. 4 => __('Section 4 - Gallery', 'onetone' ),  
  283. 5 => __('Section 5 - Team', 'onetone' ),  
  284. 6 => __('Section 6 - About', 'onetone' ),  
  285. 7 => __('Section 7 - Counter', 'onetone' ),  
  286. 8 => __('Section 8 - Testimonial', 'onetone' ),  
  287. 9 => __('Section 9 - Contact', 'onetone' ),  
  288. 10 => __('Section 10 - Portfolio', 'onetone' ),  
  289. 11 => __('Section 11 - Pricing', 'onetone' ),  
  290. 12 => __('Section 12 - Blog', 'onetone' ),  
  291. 13 => sprintf(__('Section %s', 'onetone'), 13),  
  292. 14 => sprintf(__('Section %s', 'onetone'), 14),  
  293. 15 => sprintf(__('Section %s', 'onetone'), 15),  
  294. ); 
  295.  
  296. $onetone_home_sections = $home_sections; 
  297.  
  298. $section_num = count( $home_sections ); 
  299.  
  300. $options = array(); 
  301.  
  302.  
  303. //HOME PAGE 
  304. $options[] = array( 
  305. 'icon' => 'fa-home',  
  306. 'name' => __('Home Page', 'onetone'),  
  307. 'type' => 'heading' 
  308. ); 
  309.  
  310. //HOME PAGE SECTION 
  311.  
  312. $options[] = array( 
  313. 'id' => 'header_overlay',  
  314. 'name' => __( 'Home Page Header Overlay', 'onetone' ),  
  315. 'desc' => __( 'Choose to set home page header as overlay style.', 'onetone' ),  
  316. 'std' => 1,  
  317. 'type' => 'checkbox',  
  318. 'section' => 'header_tab_section',  
  319. 'class' => '',  
  320. 'options' => $choices_reverse 
  321. ); 
  322.  
  323. $options[] = array( 
  324. 'id' => 'enable_side_nav',  
  325. 'name' => __( 'Enable Side Navigation', 'onetone' ),  
  326. 'desc' => __( 'Enable side dot navigation.', 'onetone' ),  
  327. 'std' => '',  
  328. 'type' => 'checkbox',  
  329. 'section' => 'header_tab_section',  
  330. 'class' => '',  
  331. 'options' => $choices_reverse 
  332. ); 
  333.  
  334.  
  335. // YouTube video background options 
  336. $options[] = array('name' => '', 'id' => 'youtube_video_group', 'type' => 'start_group', 'class'=>'');  
  337. $options[] = array( 
  338. 'id' => 'youtube_video_titled',  
  339. 'name' => __( 'YouTube Video Background Options', 'onetone' ).' <span id="accordion-group-youtube_video" class="fa fa-plus"></span>',  
  340. 'desc' => '',  
  341. 'std' => '',  
  342. 'type' => 'textblock-titled',  
  343. 'rows' => '4',  
  344. 'class' => 'section-accordion close',  
  345. ); 
  346.  
  347. $options[] = array('name' => '', 'id' => 'wrapper_start', 'type' => 'wrapper_start', 'class'=>'home-section-wrapper'); 
  348.  
  349. $options[] = array( 
  350. 'name' => __('YouTube ID for Video Background', 'onetone'),  
  351. 'std' => 'XDLmLYXuIDM',  
  352. 'desc' => __('Insert the eleven-letter id here, not url.', 'onetone'),  
  353. 'id' => 'section_background_video_0',  
  354. 'type' => 'text',  
  355. 'class'=>'section-item accordion-group-youtube_video' 
  356. ); 
  357.  
  358. $options[] = array('name' => __('Start Time', 'onetone'), 'std' => '18', 'desc' => __('Choose time to start to play, in seconds', 'onetone'), 'id' => 'section_youtube_start', 'type' => 'text', 'class' => 'section-item accordion-group-youtube_video' ); 
  359.  
  360. $options[] = array('name' => __('Stop Time', 'onetone'), 'std' => '0', 'desc' => __('Choose time to stop to play, in seconds', 'onetone'), 'id' => 'section_youtube_stop', 'type' => 'text', 'class' => 'section-item accordion-group-youtube_video' ); 
  361.  
  362. $options[] = array( 
  363. 'name' => __('Display Video Control Buttons.', 'onetone'),  
  364. 'desc' => __('Choose to display video controls at bottom of the section with video background.', 'onetone'),  
  365. 'id' => 'video_controls',  
  366. 'std' => '1',  
  367. 'class' => 'section-item accordion-group-youtube_video',  
  368. 'options' => $choices2,  
  369. 'type' => 'checkbox'); 
  370.  
  371. $options[] = array( 
  372. 'name' => __('Mute', 'onetone'),  
  373. 'desc' => __('Choose to set the video mute', 'onetone'),  
  374. 'id' => 'youtube_mute',  
  375. 'std' => '0',  
  376. 'class' => 'mini section-item accordion-group-youtube_video',  
  377. 'options' => $choices2,  
  378. 'type' => 'select' 
  379. ); 
  380.  
  381. $options[] = array( 
  382. 'name' => __('AutoPlay', 'onetone'),  
  383. 'desc' => __('Choose to set the video autoplay', 'onetone'),  
  384. 'id' => 'youtube_autoplay',  
  385. 'std' => '1',  
  386. 'class' => 'mini section-item accordion-group-youtube_video',  
  387. 'options' => $choices2,  
  388. 'type' => 'select' 
  389. ); 
  390.  
  391. $options[] = array( 
  392. 'name' => __('Loop', 'onetone'),  
  393. 'desc' => __('Choose to set the video loop', 'onetone'),  
  394. 'id' => 'youtube_loop',  
  395. 'std' => '1',  
  396. 'class' => 'mini section-item accordion-group-youtube_video',  
  397. 'options' => $choices2,  
  398. 'type' => 'select'); 
  399.  
  400. $options[] = array( 
  401. 'name' => __('Background Type', 'onetone'),  
  402. 'desc' => __('Choose to set the video as background of the whole site or just one section', 'onetone'),  
  403. 'id' => 'youtube_bg_type',  
  404. 'std' => '1',  
  405. 'class' => 'mini section-item accordion-group-youtube_video',  
  406. 'options' => array('1'=>__('Body Background', 'onetone'), '0'=>__('Section Background', 'onetone')),  
  407. 'type' => 'select'); 
  408.  
  409.  
  410. $options[] = array('name' => '', 'id' => 'wrapper_end', 'type' => 'wrapper_end', 'class'=>'home-section-wrapper'); 
  411. $options[] = array('name' => '', 'id' => 'youtube_video_group_', 'type' => 'end_group', 'class'=>''); 
  412.  
  413.  
  414. // Vimeo video background options 
  415. $options[] = array('name' => '', 'id' => 'vimeo_video_group', 'type' => 'start_group', 'class'=>'');  
  416. $options[] = array( 
  417. 'id' => 'vimeo_video_titled',  
  418. 'name' => __( 'Vimeo Video Background Options', 'onetone' ).' <span id="accordion-group-vimeo_video" class="fa fa-plus"></span>',  
  419. 'desc' => '',  
  420. 'std' => '',  
  421. 'type' => 'textblock-titled',  
  422. 'rows' => '4',  
  423. 'class' => 'section-accordion close',  
  424.  
  425. ); 
  426.  
  427. $options[] = array('name' => '', 'id' => 'wrapper_start', 'type' => 'wrapper_start', 'class'=>'home-section-wrapper'); 
  428.  
  429. $options[] = array( 
  430. 'name' => __('Vimeo URL for Video Background', 'onetone'),  
  431. 'std' => '',  
  432. 'desc' => __('Insert the vimeo video URL here, e.g. https://vimeo.com/193338881', 'onetone'),  
  433. 'id' => 'section_background_video_vimeo',  
  434. 'type' => 'text',  
  435. 'class'=>'section-item accordion-group-vimeo_video' 
  436. ); 
  437.  
  438. $options[] = array('name' => __('Start Time', 'onetone'), 'std' => '1', 'desc' => __('Choose time to start to play, in seconds', 'onetone'), 'id' => 'section_vimeo_start', 'type' => 'text', 'class' => 'section-item accordion-group-vimeo_video' ); 
  439.  
  440. $options[] = array( 
  441. 'name' => __('Display Video Control Buttons.', 'onetone'),  
  442. 'desc' => __('Choose to display video controls at bottom of the section with video background.', 'onetone'),  
  443. 'id' => 'vimeo_video_controls',  
  444. 'std' => '1',  
  445. 'class' => 'section-item accordion-group-vimeo_video',  
  446. 'options' => $choices2,  
  447. 'type' => 'checkbox'); 
  448.  
  449. $options[] = array( 
  450. 'name' => __('Mute', 'onetone'),  
  451. 'desc' => __('Choose to set the video mute', 'onetone'),  
  452. 'id' => 'vimeo_mute',  
  453. 'std' => '0',  
  454. 'class' => 'mini section-item accordion-group-vimeo_video',  
  455. 'options' => $choices2,  
  456. 'type' => 'select'); 
  457.  
  458. $options[] = array( 
  459. 'name' => __('AutoPlay', 'onetone'),  
  460. 'desc' => __('Choose to set the video autoplay', 'onetone'),  
  461. 'id' => 'vimeo_autoplay',  
  462. 'std' => '1',  
  463. 'class' => 'mini section-item accordion-group-vimeo_video',  
  464. 'options' => $choices2,  
  465. 'type' => 'select'); 
  466.  
  467. $options[] = array( 
  468. 'name' => __('Loop', 'onetone'),  
  469. 'desc' => __('Choose to set the video loop', 'onetone'),  
  470. 'id' => 'vimeo_loop',  
  471. 'std' => '1',  
  472. 'class' => 'mini section-item accordion-group-vimeo_video',  
  473. 'options' => $choices2,  
  474. 'type' => 'select'); 
  475.  
  476. $options[] = array( 
  477. 'name' => __('Background Type', 'onetone'),  
  478. 'desc' => __('Choose to set the video as background of the whole site or just one section', 'onetone'),  
  479. 'id' => 'vimeo_bg_type',  
  480. 'std' => '0',  
  481. 'class' => 'mini section-item accordion-group-vimeo_video',  
  482. 'options' => array('1'=>__('Body Background', 'onetone'), '0'=>__('Section Background', 'onetone')),  
  483. 'type' => 'select'); 
  484.  
  485.  
  486. $options[] = array('name' => '', 'id' => 'wrapper_end', 'type' => 'wrapper_end', 'class'=>'home-section-wrapper'); 
  487. $options[] = array('name' => '', 'id' => 'vimeo_video_group_', 'type' => 'end_group', 'class'=>''); 
  488.  
  489.  
  490.  
  491. $video_types = array( 'youtube'=> __('YouTube Video', 'onetone'), 'vimeo'=> __('Vimeo Video', 'onetone') ); 
  492. $options[] = array(  
  493. 'name' => __('Video Background Type', 'onetone'),  
  494. 'id' => 'video_background_type',  
  495. 'std' => 'youtube',  
  496. 'desc' => __('Choose type of video background', 'onetone'),  
  497. 'class' => 'mini',  
  498. 'options' => $video_types,  
  499. 'type' => 'select' 
  500. ); 
  501.  
  502. $video_background_section = array("0"=>__('No video background', 'onetone')); 
  503.  
  504. foreach( $home_sections as $k=>$v ) { 
  505.  
  506. $video_background_section[$k] = $v; 
  507.  
  508.  
  509. $options[] = array( 
  510. 'name' => __('Video Background Section', 'onetone'),  
  511. 'std' => '1',  
  512. 'id' => 'video_background_section',  
  513. 'type' => 'select',  
  514. 'options'=>$video_background_section,  
  515. 'desc' => __('Choose a section to set the video as background for', 'onetone'),  
  516. ); 
  517.  
  518.  
  519. $options[] = array( 
  520. 'name' => __('Display slider instead in section 1', 'onetone'),  
  521. 'std' => '',  
  522. 'id' => 'section_1_content',  
  523. 'type' => 'checkbox',  
  524. 'desc' => __('Choose to display default slider instead of section contents here.', 'onetone') 
  525. ); 
  526.  
  527. $options[] = array( 
  528. 'name' => __('Enable Animation', 'onetone'),  
  529. 'desc'=>__('Enable animation for default section content.', 'onetone'),  
  530. 'std' => '1',  
  531. 'id' => 'home_animated',  
  532. 'type' => 'checkbox' 
  533. ); 
  534.  
  535.  
  536.  
  537. $options[] = array('name' => '', 'id' => 'section_order', 'type' => 'start_group', 'class'=>'');  
  538.  
  539. $options[] = array( 
  540. 'id' => 'section_order_titled',  
  541. 'name' => __( 'Sections Order', 'onetone' ).' <span id="accordion-group-section_order" class="fa fa-plus"></span>',  
  542. 'desc' => '',  
  543. 'std' => '',  
  544. 'type' => 'textblock-titled',  
  545. 'rows' => '4',  
  546. 'class' => 'section-accordion close',  
  547.  
  548. ); 
  549.  
  550. $options[] = array('name' => '', 'id' => 'wrapper_start', 'type' => 'wrapper_start', 'class'=>'home-section-wrapper'); 
  551.  
  552. $options[] = array( 
  553. 'name' => '',  
  554. 'desc' => sprintf(__('<span style="padding-left:20px;">Get the <a href="%s" target="_blank">Pro version</a> of Onetone to acquire this feature.</span>', 'onetone' ), esc_url('https://www.mageewp.com/onetone-theme.html')),  
  555. 'id' => 'onetone_get_pro',  
  556. 'std' => '',  
  557. 'type' => 'info',  
  558. 'class'=>'section-item accordion-group-section-order' 
  559. ); 
  560.  
  561.  
  562. $options[] = array('name' => '', 'id' => 'wrapper_end', 'type' => 'wrapper_end', 'class'=>'home-section-wrapper'); 
  563.  
  564. $options[] = array('name' => '', 'id' => 'section_order_', 'type' => 'end_group', 'class'=>''); 
  565.  
  566. $o_section_num = isset($theme_options[ 'section_num'])?$theme_options[ 'section_num']:'';  
  567.  
  568. $options[] = array('name' => '', 'id' => 'home-sections-wrapper', 'type' => 'wrapper_start', 'class'=>'home-sections-wrapper'); 
  569.  
  570. for( $i=0; $i < $section_num; $i++ ) { 
  571.  
  572. $hide_section = ''; 
  573.  
  574. if( $i >= $o_section_num && $o_section_num >0 ) 
  575. $hide_section = 1; 
  576. if( $o_section_num <=0 && $i > 8 ) { 
  577.  
  578. $hide_section = 1; 
  579. $content_model = 1; 
  580.  
  581.  
  582.  
  583. if(!isset($section_title[$i])) {  
  584. $section_title[$i] = ""; 
  585.  
  586. if(!isset($section_subtitle[$i])) { 
  587. $section_subtitle[$i] = ""; 
  588.  
  589. if(!isset($section_color[$i])) { 
  590. $section_color[$i] = ""; 
  591.  
  592. if(!isset($section_menu[$i])) { 
  593. $section_menu[$i] = ""; 
  594.  
  595. if(!isset($section_background[$i])) { 
  596. $section_background[$i] = array('color' => '', 'image' => '', 'repeat' => '', 'position' => '', 'attachment'=>''); 
  597.  
  598. if(!isset($section_title[$i])) { 
  599. $section_title[$i] = ""; 
  600.  
  601. if(!isset($menu_title[$i])) { 
  602. $menu_title[$i] = ""; 
  603.  
  604. if(!isset($menu_slug[$i])) { 
  605. $menu_slug[$i] = ""; 
  606.  
  607. if(!isset($section_background[$i])) { 
  608. $section_background[$i] = ""; 
  609.  
  610. if(!isset($background_size[$i])) { 
  611. $background_size[$i] = ""; 
  612.  
  613. if(!isset($parallax_scrolling[$i])) { 
  614. $parallax_scrolling[$i] = ""; 
  615.  
  616. if(!isset($full_width[$i])) { 
  617. $full_width[$i] = ""; 
  618.  
  619. if(!isset($section_css_class[$i])) { 
  620. $section_css_class[$i] = ""; 
  621.  
  622. if(!isset($section_content[$i])) { 
  623. $section_content[$i] = ""; 
  624.  
  625. if(!isset($section_slug[$i])) {  
  626. $section_slug[$i] = ""; 
  627.  
  628. if(!isset($text_align[$i])) {  
  629. $text_align[$i] = ""; 
  630.  
  631. if(!isset($section_padding[$i])) {  
  632. $section_padding[$i] = ""; 
  633.  
  634. if(!isset($section_padding[$i])) {  
  635. $section_padding[$i] = ""; 
  636.  
  637. if(!isset($section_title_typography_defaults[$i])) {  
  638. $section_title_typography_defaults[$i] = array('size' => '36px', 'face' => '', 'style' => 'normal', 'color' => '#666666' ); 
  639.  
  640. if(!isset($section_subtitle_typography_defaults[$i])) {  
  641. $section_subtitle_typography_defaults[$i] = array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#666666' ); 
  642. }  
  643.  
  644. if(!isset($section_content_typography_defaults[$i])) {  
  645. $section_content_typography_defaults[$i] = array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#666666' ); 
  646.  
  647. $section_name = isset($theme_options[ 'section_title_'.$i])?$theme_options['section_title_'.$i]:'';  
  648. $menu_title = isset($theme_options[ 'menu_title_'.$i])?$theme_options['menu_title_'.$i]:'';  
  649. $section_name = $section_name?$section_name:$menu_title; 
  650. $section_name = $section_name? ' ('.$section_name.')':''; 
  651. $section_name = $home_sections[$i+1] .' '. $section_name; 
  652.  
  653. $options[] = array('name' => '', 'id' => 'section_group_start_'.$i.'', 'type' => 'start_group', 'class'=>'home-section group_close'); 
  654.  
  655. $options[] = array( 
  656. 'id' => 'sections_titled_'.$i,  
  657. 'name' => $section_name .' <span id="accordion-group-section-'.$i.'" class="fa fa-plus"></span>',  
  658. 'desc' => '',  
  659. 'std' => '',  
  660. 'type' => 'textblock-titled',  
  661. 'rows' => '',  
  662. 'class' => 'section-accordion close accordion-group-title-section-'.$i 
  663. ); 
  664.  
  665. $options[] = array('name' => '', 'id' => 'wrapper_start', 'type' => 'wrapper_start', 'class'=>'home-section-wrapper'); 
  666.  
  667. $options[] = array( 
  668. 'name' => __('Hide Section', 'onetone'),  
  669. 'std' => $hide_section,  
  670. 'id' => 'section_hide_'.$i,  
  671. 'type' => 'checkbox',  
  672. 'class'=>'section-item accordion-group-section-'.$i,  
  673. 'desc'=> __('Hide this section on front page.', 'onetone'),  
  674. ); 
  675.  
  676. $options[] = array( 
  677. 'name' => __('Section Title', 'onetone'),  
  678. 'id' => 'section_title_'.$i.'',  
  679. 'type' => 'text',  
  680. 'std' => $section_title[$i],  
  681. 'class'=>'section-item accordion-group-section-'.$i,  
  682. 'desc' => __('Insert title for this section. It would appear at the top of the section.', 'onetone'),  
  683. ); 
  684.  
  685. $options[] = array( 
  686. 'name' => __('Menu Title', 'onetone'),  
  687. 'id' => 'menu_title_'.$i.'',  
  688. 'type' => 'text',  
  689. 'std'=> $section_menu[$i],  
  690. 'desc'=> __('Insert menu title for this section. This title would appear in the header menu. If leave it as blank, the link of this section would not be displayed in header menu.', 'onetone'),  
  691. 'class'=>'section-item accordion-group-section-'.$i 
  692. ); 
  693.  
  694. $options[] = array( 
  695. 'name' => __('Menu Slug', 'onetone'),  
  696. 'id' => 'menu_slug_'.$i.'',  
  697. 'type' => 'text',  
  698. 'std'=> $section_slug[$i],  
  699. 'desc'=> __('Attention! The "slug" is the URL-friendly version of menu title. It is usually all lowercase and contains only letters, numbers, and hyphens. If the menu title contains non-eng characters, you need to fill this form.', 'onetone'),  
  700. 'class'=>'section-item accordion-group-section-'.$i 
  701. ); 
  702.  
  703.  
  704. $options[] = array( 
  705. 'name' => __('Section Background', 'onetone'),  
  706. 'id' => 'section_background_'.$i.'',  
  707. 'std' => $section_background[$i],  
  708. 'type' => 'background' ,  
  709. 'class'=>'section-item accordion-group-section-'.$i,  
  710. 'desc' => __('Set background color & background image for this section.', 'onetone'),  
  711. ); 
  712.  
  713.  
  714. $options[] = array( 
  715. 'name' => __('Parallax Scrolling Background Image', 'onetone'),  
  716. 'std' => '0',  
  717. 'id' => 'parallax_scrolling_'.$i.'',  
  718. 'type' => 'checkbox',  
  719. 'class'=>'section-item accordion-group-section-'.$i,  
  720. 'desc' => __('Choose to apply parallax scrolling effect for background image.', 'onetone'),  
  721. ); 
  722.  
  723. $options[] = array( 
  724. 'name' => __('Full Width', 'onetone'),  
  725. 'std' => 'no',  
  726. 'id' => 'full_width_'.$i.'',  
  727. 'type' => 'select',  
  728. 'desc' => __('Choose to set width of section content as 100%', 'onetone'),  
  729. 'class'=>'mini section-item accordion-group-section-'.$i,  
  730. 'options'=>$choices_reverse 
  731.  
  732. ); 
  733.  
  734. $options[] = array( 
  735. 'name' => __('Section Css Class', 'onetone'),  
  736. 'id' => 'section_css_class_'.$i.'',  
  737. 'type' => 'text',  
  738. 'std'=>$section_css_class[$i],  
  739. 'class'=>'section-item accordion-group-section-'.$i,  
  740. 'desc' => __('Set an aditional css class of this section.', 'onetone'),  
  741.  
  742. ); 
  743.  
  744. $options[] = array( 
  745. 'name' => __('Section Padding', 'onetone'),  
  746. 'id' => 'section_padding_'.$i.'',  
  747. 'type' => 'text',  
  748. 'std'=>$section_padding[$i],  
  749. 'class'=>'section-item accordion-group-section-'.$i,  
  750. 'desc' => __('Set padding for this section. In pixels (px), eg: 10px 20px 30px 0. These four numbers represent padding top/right/bottom/left.', 'onetone'),  
  751. ); 
  752.  
  753. $options[] = array( 
  754. 'name' => __('Text Align', 'onetone'),  
  755. 'std' => $text_align[$i],  
  756. 'id' => 'text_align_'.$i.'',  
  757. 'type' => 'select',  
  758. 'class'=>'mini section-item accordion-group-section-'.$i,  
  759. 'options'=>$align,  
  760. 'desc' => __('Set content align for this section.', 'onetone'),  
  761. ); 
  762.  
  763. $options[] = array( 
  764. 'name' => __('Section Title Typography', 'onetone'),  
  765. 'id' => "section_title_typography_".$i,  
  766. 'std' => $section_title_typography_defaults[$i],  
  767. 'type' => 'typography',  
  768. 'options' => $typography_options ,  
  769. 'class'=>'section-item accordion-group-section-'.$i 
  770. ); 
  771.  
  772. $options[] = array( 
  773. 'name' => __('Section Subtitle Typography', 'onetone'),  
  774. 'id' => "section_subtitle_typography_".$i,  
  775. 'std' => $section_subtitle_typography_defaults[$i],  
  776. 'type' => 'typography',  
  777. 'options' => $typography_options ,  
  778. 'class'=>'section-item accordion-group-section-'.$i 
  779. );  
  780.  
  781. $options[] = array( 
  782. 'name' => __('Section Content Typography', 'onetone'),  
  783. 'id' => "section_content_typography_".$i,  
  784. 'std' => $section_content_typography_defaults[$i],  
  785. 'type' => 'typography',  
  786. 'options' => $typography_options ,  
  787. 'class'=>'section-item accordion-group-section-'.$i 
  788. ); 
  789.  
  790. $options[] = array( 
  791. 'name' => __('Section Content Model', 'onetone'),  
  792. 'id' =>'section_content_model_'.$i,  
  793. 'std' => $content_model,  
  794. 'class' => 'section-content-model section-item accordion-group-section-'.$i,  
  795. 'type' => 'radio',  
  796. 'options'=>array('0'=> __('Default', 'onetone'), '1'=>__('Custom', 'onetone')) 
  797. ); 
  798.  
  799. // Fixed content 
  800. $options[] = array( 
  801. 'name' => __('Section Subtitle', 'onetone'),  
  802. 'id' => 'section_subtitle_'.$i.'',  
  803. 'type' => 'text',  
  804. 'std'=> $section_subtitle[$i],  
  805. 'class'=>'content-model-0 section-item accordion-group-section-'.$i,  
  806. 'desc'=> __('Insert sub-title for this section. It would appear at the bottom of the section title.', 'onetone'),  
  807. ); 
  808.  
  809. switch( $i ) { 
  810. case "0": // section banner 
  811.  
  812. $options[] = array( 
  813. 'name' => __('Icon', 'onetone'),  
  814. 'id' => "section_icon_".$i,  
  815. 'std' => '',  
  816. 'desc' => __( 'The image will display above the section title.', 'onetone' ),  
  817. 'type' => 'upload',  
  818. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  819. ); 
  820.  
  821. $options[] = array( 
  822. 'name' => __('Button Text', 'onetone'),  
  823. 'id' => "section_btn_text_".$i,  
  824. 'std' => 'Click Me',  
  825. 'type' => 'text',  
  826. 'desc' => __('Insert text for the button', 'onetone'),  
  827. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  828. ); 
  829. $options[] = array( 
  830. 'name' => __('Button Link', 'onetone'),  
  831. 'id' => "section_btn_link_".$i,  
  832. 'std' => '#',  
  833. 'desc' => __('Insert link for the button, begin with http:// or https://', 'onetone'),  
  834. 'type' => 'text',  
  835. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  836. ); 
  837. $options[] = array( 
  838. 'name' => __('Button Target', 'onetone'),  
  839. 'id' => "section_btn_target_".$i,  
  840. 'std' => '_self',  
  841. 'desc' => __('Self: open in the same window; blank: open in a new window', 'onetone'),  
  842. 'type' => 'select',  
  843. 'class'=>'content-model-0 section-item accordion-group-section-'.$i,  
  844. 'options' => $target 
  845. ); 
  846.  
  847. $banner_social_icon = array('fa-facebook', 'fa-skype', 'fa-twitter', 'fa-linkedin', 'fa-google-plus', 'fa-rss'); 
  848.  
  849. for( $s=0;$s<6;$s++ ): 
  850.  
  851. $options[] = array( 
  852. 'name' => __('Social Icon', 'onetone').' '.($s+1),  
  853. 'id' => "section_social_icon_".$i."_".$s,  
  854. 'std' => $banner_social_icon[$s],  
  855. 'type' => 'text',  
  856. 'class'=>'content-model-0 section-item accordion-group-section-'.$i,  
  857. 'desc' => __('Insert Fontawsome icon code', 'onetone') 
  858. ); 
  859. $options[] = array( 
  860. 'name' => __('Social Icon Link', 'onetone').' '.($s+1),  
  861. 'id' => "section_icon_link_".$i."_".$s,  
  862. 'std' => '#',  
  863. 'type' => 'text',  
  864. 'class'=>'content-model-0 section-item accordion-group-section-'.$i,  
  865. 'desc' => __('Insert link for the icon', 'onetone') 
  866. ); 
  867.  
  868. endfor; 
  869.  
  870. break; 
  871. case "1": // Section Slogan 
  872. $options[] = array( 
  873. 'name' => __('Button Text', 'onetone'),  
  874. 'id' => "section_btn_text_".$i,  
  875. 'std' => 'Click Me',  
  876. 'desc' => __('Insert text for the button', 'onetone'),  
  877. 'type' => 'text',  
  878. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  879. ); 
  880. $options[] = array( 
  881. 'name' => __('Button Link', 'onetone'),  
  882. 'id' => "section_btn_link_".$i,  
  883. 'std' => '#',  
  884. 'desc' => __('Insert link for the button, begin with http:// or https://', 'onetone'),  
  885. 'type' => 'text',  
  886. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  887. ); 
  888. $options[] = array( 
  889. 'name' => __('Button Target', 'onetone'),  
  890. 'id' => "section_btn_target_".$i,  
  891. 'std' => '_self',  
  892. 'desc' => __('Self: open in the same window; blank: open in a new window', 'onetone'),  
  893. 'type' => 'select',  
  894. 'class'=>'content-model-0 section-item accordion-group-section-'.$i,  
  895. 'options' => $target 
  896. ); 
  897.  
  898. $options[] = array( 
  899. 'name' => __('Description', 'onetone'),  
  900. 'desc' => '',  
  901. 'id' => 'section_desc_'.$i,  
  902. 'std' => '<h4>Morbi rutrum, elit ac fermentum egestas, tortor ante vestibulum est, eget scelerisque nisl velit eget tellus.</h4>',  
  903. 'desc' => __('Insert content for the banner, html tags allowed', 'onetone'),  
  904. 'type' => 'textarea',  
  905. 'class'=>'content-model-0 section-item accordion-group-section-'.$i,  
  906. ); 
  907.  
  908. break; 
  909. case "2": // Section Service 
  910. $icons = array('fa-leaf', 'fa-hourglass-end', 'fa-signal', 'fa-heart', 'fa-camera', 'fa-tag'); 
  911. $images = array( 
  912. 'https://demo.mageewp.com/wootest/wp-content/uploads/sites/31/2016/11/Icon_1.png',  
  913. 'https://demo.mageewp.com/wootest/wp-content/uploads/sites/31/2016/11/Icon_2.png',  
  914. 'https://demo.mageewp.com/wootest/wp-content/uploads/sites/31/2016/11/Icon_3.png',  
  915. 'https://demo.mageewp.com/wootest/wp-content/uploads/sites/31/2016/11/Icon_4.png',  
  916. 'https://demo.mageewp.com/wootest/wp-content/uploads/sites/31/2016/11/Icon_5.png',  
  917. 'https://demo.mageewp.com/wootest/wp-content/uploads/sites/31/2016/11/Icon_6.png' 
  918. ); 
  919.  
  920. $options[] = array( 
  921. 'id' => 'section_service_icon_color_'.$i.'',  
  922. 'name' => __( 'Icon Color', 'onetone' ),  
  923. 'desc' => __( 'Set service icon color.', 'onetone' ),  
  924. 'std' => '#666666',  
  925. 'type' => 'color',  
  926. 'class' => 'content-model-0 section-item accordion-group-section-'.$i,  
  927.  
  928. ); 
  929.  
  930. for($c=0;$c<6;$c++) { 
  931.  
  932. $options[] = array( 
  933. 'name' => sprintf(__('Service Icon %d', 'onetone'), $c+1),  
  934. 'id' => "section_icon_".$i."_".$c,  
  935. 'std' => '',  
  936. 'desc' => __('Insert Fontawsome icon code', 'onetone'),  
  937. 'type' => 'text',  
  938. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  939. ); 
  940. $options[] = array( 
  941. 'name' => sprintf(__('Service Image %d', 'onetone'), $c+1),  
  942. 'id' => "section_image_".$i."_".$c,  
  943. 'std' => $images[$c],  
  944. 'desc' => __('Or choose to upload icon image', 'onetone'),  
  945. 'type' => 'upload',  
  946. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  947. ); 
  948. $options[] = array( 
  949. 'name' => sprintf(__('Service Title %d', 'onetone'), $c+1),  
  950. 'id' => "section_title_".$i."_".$c,  
  951. 'std' => 'FREE PSD TEMPLATE',  
  952. 'desc' => __('Set title for service item', 'onetone'),  
  953. 'type' => 'text',  
  954. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  955. ); 
  956. $options[] = array( 
  957. 'name' => sprintf(__('Title Link %d', 'onetone'), $c+1),  
  958. 'id' => "section_link_".$i."_".$c,  
  959. 'std' => '',  
  960. 'desc' => __('Insert link for service item', 'onetone'),  
  961. 'type' => 'text',  
  962. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  963. ); 
  964.  
  965. $options[] = array( 
  966. 'name' => sprintf(__('Link Target %d', 'onetone'), $c+1),  
  967. 'id' => "section_target_".$i."_".$c,  
  968. 'std' => '',  
  969. 'desc' => __('Self: open in the same window; blank: open in a new window', 'onetone'),  
  970. 'type' => 'select',  
  971. 'options'=>$target,  
  972. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  973. ); 
  974.  
  975. $options[] = array( 
  976. 'name' => sprintf(__('Service Description %d', 'onetone'), $c+1),  
  977. 'id' => "section_desc_".$i."_".$c,  
  978. 'std' => 'Integer pulvinar elementum est, suscipit ornare ante finibus ac. Praesent vel ex dignissim, rhoncus eros luctus, dignissim arcu.',  
  979. 'desc' => __('Insert content for the banner, html tags allowed', 'onetone'),  
  980. 'type' => 'textarea',  
  981. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  982. ); 
  983.  
  984.  
  985. break; 
  986.  
  987. case "3": // Section Gallery 
  988.  
  989. $default_images = array( 
  990. esc_url('https://demo.mageewp.com/wootest/wp-content/uploads/sites/31/2016/11/16110807.jpg'),  
  991. esc_url('https://demo.mageewp.com/wootest/wp-content/uploads/sites/31/2016/11/16110805.jpg'),  
  992. esc_url('https://demo.mageewp.com/wootest/wp-content/uploads/sites/31/2016/11/16110806.jpg'),  
  993. esc_url('https://demo.mageewp.com/wootest/wp-content/uploads/sites/31/2016/11/16110802.jpg'),  
  994. esc_url('https://demo.mageewp.com/wootest/wp-content/uploads/sites/31/2016/11/161110001.jpg'),  
  995. esc_url('https://demo.mageewp.com/wootest/wp-content/uploads/sites/31/2016/11/16110803.jpg'),  
  996. ); 
  997. for($c=0;$c<6;$c++) { 
  998.  
  999.  
  1000. $options[] = array( 
  1001. 'name' => sprintf(__('Image %d', 'onetone'), $c+1),  
  1002. 'id' => "section_image_".$i."_".$c,  
  1003. 'std' => $default_images[$c],  
  1004. 'desc' => __('Choose to upload image for gallery item', 'onetone'),  
  1005. 'type' => 'upload',  
  1006. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  1007. ); 
  1008.  
  1009. $options[] = array( 
  1010. 'name' => sprintf(__('Link %d', 'onetone'), $c+1),  
  1011. 'id' => "section_link_".$i."_".$c,  
  1012. 'std' => '',  
  1013. 'desc' => __('Insert link for this item', 'onetone'),  
  1014. 'type' => 'text',  
  1015. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  1016. ); 
  1017.  
  1018. $options[] = array( 
  1019. 'name' => sprintf(__('Link Target %d', 'onetone'), $c+1),  
  1020. 'id' => "section_target_".$i."_".$c,  
  1021. 'std' => '',  
  1022. 'desc' => __('Self: open in the same window; blank: open in a new window', 'onetone'),  
  1023. 'type' => 'select',  
  1024. 'options' => $target,  
  1025. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  1026. ); 
  1027.  
  1028.  
  1029. break; 
  1030. case "4": // Section Team 
  1031. $social_icon = array('instagram', 'facebook', 'google-plus', 'envelope', '', ''); 
  1032. $avatar = array( 
  1033. esc_url('https://demo.mageewp.com/wootest/wp-content/uploads/sites/31/2016/11/team16110801.jpg'),  
  1034. esc_url('https://demo.mageewp.com/wootest/wp-content/uploads/sites/31/2016/11/team16110802.jpg'),  
  1035. esc_url('https://demo.mageewp.com/wootest/wp-content/uploads/sites/31/2016/11/team16110803.jpg'),  
  1036. esc_url('https://demo.mageewp.com/wootest/wp-content/uploads/sites/31/2016/11/team16110804.jpg'),  
  1037. '',  
  1038. '',  
  1039. '',  
  1040. '' 
  1041. ); 
  1042.  
  1043. $options[] = array( 
  1044. 'id' => "section_team_columns",  
  1045. 'name' => __( 'Columns', 'onetone' ),  
  1046. 'desc' => __( 'Set columns for portfolio module', 'onetone' ),  
  1047. 'type' => 'select',  
  1048. 'options' => array(1=>1, 2=>2, 3=>3, 4=>4),  
  1049. 'std' => '4',  
  1050. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  1051. ); 
  1052.  
  1053. $options[] = array( 
  1054. 'id' => "section_team_style",  
  1055. 'name' => __( 'Style', 'onetone' ),  
  1056. 'desc' => '',  
  1057. 'type' => 'select',  
  1058. 'options' => array(0=> __('Normal', 'onetone'), 1=>__('Carousel', 'onetone') ),  
  1059. 'std' => '4',  
  1060. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  1061. ); 
  1062.  
  1063. for( $t=0; $t<8; $t++ ) { 
  1064.  
  1065. $options[] = array( 
  1066. 'name' => sprintf(__('Avatar %d', 'onetone'), $t+1),  
  1067. 'id' => "section_avatar_".$i."_".$t,  
  1068. 'std' => $avatar[$t],  
  1069. 'desc' => __( 'Choose to upload image for the person avatar', 'onetone' ),  
  1070. 'type' => 'upload',  
  1071. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  1072. ); 
  1073.  
  1074. $options[] = array( 
  1075. 'name' => sprintf(__('Link %d', 'onetone'), $t+1),  
  1076. 'id' => "section_link_".$i."_".$t,  
  1077. 'std' => '',  
  1078. 'desc' => __( 'Set link for the person', 'onetone' ),  
  1079. 'type' => 'text',  
  1080. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  1081. ); 
  1082. $options[] = array( 
  1083. 'name' => sprintf(__('Name %d', 'onetone'), $t+1),  
  1084. 'id' => "section_name_".$i."_".$t,  
  1085. 'std' => 'KEVIN PERRY',  
  1086. 'desc' => __( 'Set name for the person', 'onetone' ),  
  1087. 'type' => 'text',  
  1088. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  1089. ); 
  1090. $options[] = array( 
  1091. 'name' => sprintf(__('Byline %d', 'onetone'), $t+1),  
  1092. 'id' => "section_byline_".$i."_".$t,  
  1093. 'std' => 'SOFTWARE DEVELOPER',  
  1094. 'desc' => __( 'Set byline for the person', 'onetone' ),  
  1095. 'type' => 'text',  
  1096. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  1097. ); 
  1098. $options[] = array( 
  1099. 'name' => sprintf(__('Description %d', 'onetone'), $t+1),  
  1100. 'id' => "section_desc_".$i."_".$t,  
  1101. 'std' => 'Vivamus congue justo eget diam interdum scelerisque. In hac habitasse platea dictumst.',  
  1102. 'desc' => __( 'Insert description for the person', 'onetone' ),  
  1103. 'type' => 'textarea',  
  1104. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  1105. ); 
  1106.  
  1107. for($k=0;$k<4;$k++): 
  1108.  
  1109. $options[] = array( 
  1110. 'id' => 'section_icon_'.$i.'_'.$t.'_'.$k,  
  1111. 'name' => sprintf(__( 'Social Icon %d - %d', 'onetone' ), $t+1, $k+1),  
  1112. 'desc' => __( 'Choose social icon', 'onetone' ),  
  1113. 'type' => 'text',  
  1114. 'std' => $social_icon[$k],  
  1115. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  1116. ); 
  1117. $options[] = array( 
  1118. 'id' => 'section_icon_link_'.$i.'_'.$t.'_'.$k,  
  1119. 'name' => sprintf(__( 'Social Icon Link %d - %d', 'onetone' ), $t+1, $k+1),  
  1120. 'desc' => __( 'Insert link for the icon', 'onetone' ),  
  1121. 'type' => 'text',  
  1122. 'std' => '#',  
  1123. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  1124. ); 
  1125.  
  1126. endfor; 
  1127.  
  1128.  
  1129.  
  1130. break; 
  1131. case "5": // Section About 
  1132.  
  1133. $options[] = array( 
  1134. 'name' => __('Left Content', 'onetone'),  
  1135. 'id' => "section_left_content_".$i,  
  1136. 'std' => '<h3>Biography</h3> 
  1137. <p>Morbi rutrum, elit ac fermentum egestas, tortor ante vestibulum est, eget scelerisque nisl velit eget tellus. Fusce porta facilisis luctus. Integer neque dolor, rhoncus nec euismod eget, pharetra et tortor. Nulla id pulvinar nunc. Vestibulum auctor nisl vel lectus ullamcorper sed pellentesque dolor eleifend. Praesent lobortis magna vel diam mattis sagittis.Mauris porta odio eu risus scelerisque id facilisis ipsum dictum vitae volutpat. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed pulvinar neque eu purus sollicitudin et sollicitudin dui ultricies. Maecenas cursus auctor tellus sit amet blandit. Maecenas a erat ac nibh molestie interdum. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Sed lorem enim, ultricies sed sodales id, convallis molestie ipsum. Morbi eget dolor ligula. Vivamus accumsan rutrum nisi nec elementum. Pellentesque at nunc risus. Phasellus ullamcorper bibendum varius. Quisque quis ligula sit amet felis ornare porta. Aenean viverra lacus et mi elementum mollis. Praesent eu justo elit.</p>',  
  1138. 'desc' => __( 'Insert content for the left column, html tags allowed', 'onetone' ),  
  1139. 'type' => 'textarea',  
  1140. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  1141. ); 
  1142.  
  1143. $options[] = array( 
  1144. 'name' => __('Right Content', 'onetone'),  
  1145. 'id' => "section_right_content_".$i,  
  1146. 'std' => '<h3>Personal Info</h3> 
  1147. <div> 
  1148. <ul class="magee-icon-list"> 
  1149. <li><i class="fa fa-phone"> </i> +1123 2456 689</li> 
  1150. </ul> 
  1151. <ul class="magee-icon-list"> 
  1152. <li><i class="fa fa-map-marker"> </i> 3301 Lorem Ipsum, Dolor Sit St</li> 
  1153. </ul> 
  1154. <ul class="magee-icon-list"> 
  1155. <li><i class="fa fa-envelope-o"> </i> admin@domain.com</a>.</li> 
  1156. </ul> 
  1157. <ul class="magee-icon-list"> 
  1158. <li><i class="fa fa-internet-explorer"> </i> <a href="#">Mageewp.com</a></li> 
  1159. </ul> 
  1160. </div>',  
  1161. 'desc' => __( 'Insert content for the right column, html tags allowed', 'onetone' ),  
  1162. 'type' => 'textarea',  
  1163. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  1164. ); 
  1165.  
  1166. break; 
  1167. case "6": // Section Counter 
  1168.  
  1169. $options[] = array( 
  1170. 'name' => __('Counter Title 1', 'onetone'),  
  1171. 'id' => "counter_title_1_".$i,  
  1172. 'std' => $onetone_old_version?'':'Themes',  
  1173. 'desc' => '',  
  1174. 'type' => 'text',  
  1175. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  1176. ); 
  1177. $options[] = array( 
  1178. 'name' => __('Counter Number 1', 'onetone'),  
  1179. 'id' => "counter_number_1_".$i,  
  1180. 'std' => $onetone_old_version?'':'200',  
  1181. 'desc' => '',  
  1182. 'type' => 'text',  
  1183. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  1184. ); 
  1185.  
  1186. $options[] = array( 
  1187. 'name' => __('Counter Title 2', 'onetone'),  
  1188. 'id' => "counter_title_2_".$i,  
  1189. 'std' => $onetone_old_version?'':'Supporters',  
  1190. 'desc' => '',  
  1191. 'type' => 'text',  
  1192. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  1193. ); 
  1194. $options[] = array( 
  1195. 'name' => __('Counter Number 2', 'onetone'),  
  1196. 'id' => "counter_number_2_".$i,  
  1197. 'std' => $onetone_old_version?'':'98',  
  1198. 'desc' => '',  
  1199. 'type' => 'text',  
  1200. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  1201. ); 
  1202.  
  1203.  
  1204. $options[] = array( 
  1205. 'name' => __('Counter Title 3', 'onetone'),  
  1206. 'id' => "counter_title_3_".$i,  
  1207. 'std' => $onetone_old_version?'':'Projuects',  
  1208. 'desc' => '',  
  1209. 'type' => 'text',  
  1210. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  1211. ); 
  1212. $options[] = array( 
  1213. 'name' => __('Counter Number 3', 'onetone'),  
  1214. 'id' => "counter_number_3_".$i,  
  1215. 'std' => $onetone_old_version?'':'1360',  
  1216. 'desc' => '',  
  1217. 'type' => 'text',  
  1218. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  1219. ); 
  1220.  
  1221. $options[] = array( 
  1222. 'name' => __('Counter Title 4', 'onetone'),  
  1223. 'id' => "counter_title_4_".$i,  
  1224. 'std' => $onetone_old_version?'':'Customers',  
  1225. 'desc' => '',  
  1226. 'type' => 'text',  
  1227. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  1228. ); 
  1229. $options[] = array( 
  1230. 'name' => __('Counter Number 4', 'onetone'),  
  1231. 'id' => "counter_number_4_".$i,  
  1232. 'std' => $onetone_old_version?'':'8000',  
  1233. 'desc' => '',  
  1234. 'type' => 'text',  
  1235. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  1236. ); 
  1237.  
  1238. break; 
  1239. case "7": // Section Testimonial 
  1240.  
  1241. $avatar = array( 
  1242. esc_url('https://demo.mageewp.com/wootest/wp-content/uploads/sites/31/2016/11/person-8-thumbnail.jpg'),  
  1243. esc_url('https://demo.mageewp.com/wootest/wp-content/uploads/sites/31/2016/11/person-7-thumbnail.jpg'),  
  1244. esc_url('https://demo.mageewp.com/wootest/wp-content/uploads/sites/31/2016/11/person-6-thumbnail.jpg'),  
  1245. '',  
  1246. '',  
  1247. '',  
  1248. '',  
  1249. '' 
  1250. ); 
  1251.  
  1252. $options[] = array( 
  1253. 'id' => "section_testimonial_columns",  
  1254. 'name' => __( 'Columns', 'onetone' ),  
  1255. 'desc' => __( 'Set columns for testimonial module', 'onetone' ),  
  1256. 'type' => 'select',  
  1257. 'options' => array(1=>1, 2=>2, 3=>3, 4=>4),  
  1258. 'std' => '3',  
  1259. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  1260. ); 
  1261.  
  1262. $options[] = array( 
  1263. 'id' => "section_testimonial_style",  
  1264. 'name' => __( 'Style', 'onetone' ),  
  1265. 'desc' => '',  
  1266. 'type' => 'select',  
  1267. 'options' => array(0=> __('Normal', 'onetone'), 1=>__('Carousel', 'onetone') ),  
  1268. 'std' => '4',  
  1269. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  1270. ); 
  1271.  
  1272. for( $t=0; $t<8; $t++ ) { 
  1273. $description = ''; 
  1274.  
  1275. if( $t<3 ) 
  1276. $description = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris consequat non ex quis consectetur. Aliquam iaculis dolor erat, ut ornare dui vulputate nec. Cras a sem mattis, tincidunt urna nec, iaculis nisl. Nam congue ultricies dui.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris consequat non ex quis consectetur. Aliquam iaculis dolor erat, ut ornare dui vulputate nec. Cras a sem mattis, tincidunt urna nec, iaculis nisl. Nam congue ultricies dui.'; 
  1277.  
  1278. $options[] = array( 
  1279. 'name' => sprintf(__('Avatar %d', 'onetone'), $t+1),  
  1280. 'id' => "section_avatar_".$i."_".$t,  
  1281. 'std' => $avatar[$t],  
  1282. 'desc' => __( 'Choose to upload image for the client avatar', 'onetone' ),  
  1283. 'type' => 'upload',  
  1284. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  1285. ); 
  1286.  
  1287. $options[] = array( 
  1288. 'name' => sprintf(__('Name %d', 'onetone'), $t+1),  
  1289. 'id' => "section_name_".$i."_".$t,  
  1290. 'std' => 'KEVIN PERRY',  
  1291. 'desc' => __( 'Insert name for the client', 'onetone' ),  
  1292. 'type' => 'text',  
  1293. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  1294. ); 
  1295. $options[] = array( 
  1296. 'name' => sprintf(__('Byline %d', 'onetone'), $t+1),  
  1297. 'id' => "section_byline_".$i."_".$t,  
  1298. 'std' => 'Web Developer',  
  1299. 'desc' => __( 'Insert byline for the client', 'onetone' ),  
  1300. 'type' => 'text',  
  1301. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  1302. ); 
  1303. $options[] = array( 
  1304. 'name' => sprintf(__('Description %d', 'onetone'), $t+1),  
  1305. 'id' => "section_desc_".$i."_".$t,  
  1306. 'std' => $description,  
  1307. 'desc' => __( 'Insert description for the client', 'onetone' ),  
  1308. 'type' => 'textarea',  
  1309. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  1310. ); 
  1311.  
  1312. break; 
  1313. case "8": // Section Contact 
  1314. $emailTo = get_option('admin_email'); 
  1315. $options[] = array( 
  1316. 'name' => __('Your E-mail', 'onetone'),  
  1317. 'id' => "section_email_".$i,  
  1318. 'std' => $emailTo,  
  1319. 'desc' => __( 'Set email address to receive mails from contact form', 'onetone' ),  
  1320. 'type' => 'text',  
  1321. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  1322. ); 
  1323.  
  1324. $options[] = array( 
  1325. 'name' => __('Button Text', 'onetone'),  
  1326. 'id' => "section_btn_text_".$i,  
  1327. 'std' => 'Post',  
  1328. 'desc' => __('Insert text for the button', 'onetone'),  
  1329. 'type' => 'text',  
  1330. 'class'=>'content-model-0 section-item accordion-group-section-'.$i 
  1331. ); 
  1332.  
  1333.  
  1334. break; 
  1335.  
  1336.  
  1337.  
  1338.  
  1339. $options[] = array( 
  1340. 'name' => __('Section Content', 'onetone'),  
  1341. 'id' => 'section_content_'.$i,  
  1342. 'std' => '',  
  1343. 'type' => 'editor',  
  1344. 'class'=>'section-item content-model-1 accordion-group-section-'.$i 
  1345. ); 
  1346.  
  1347.  
  1348. $options[] = array('name' => '', 'id' => 'wrapper_end', 'type' => 'wrapper_end', 'class'=>''); 
  1349.  
  1350. $options[] = array('name' => '', 'id' => 'section_group_end_'.$i.'', 'type' => 'end_group'); 
  1351.  
  1352.  
  1353.  
  1354. $options[] = array('name' => '', 'id' => '', 'type' => 'wrapper_end', 'class'=>''); 
  1355.  
  1356. //END HOME PAGE SECTION 
  1357.  
  1358. // Slider 
  1359. $options[] = array( 
  1360. 'icon' => 'fa-sliders',  
  1361. 'name' => __('Slideshow', 'onetone'),  
  1362. 'type' => 'heading'); 
  1363.  
  1364. //HOME PAGE SLIDER 
  1365. $options[] = array('name' => __('Slideshow', 'onetone'), 'id' => 'group_title', 'type' => 'title'); 
  1366.  
  1367. $slide_img = array( 
  1368. ONETONE_THEME_BASE_URL.'/images/banner-1.jpg',  
  1369. ONETONE_THEME_BASE_URL.'/images/banner-2.jpg',  
  1370. ONETONE_THEME_BASE_URL.'/images/banner-3.jpg',  
  1371. ONETONE_THEME_BASE_URL.'/images/banner-4.jpg',  
  1372. '',  
  1373. '',  
  1374. '',  
  1375. '',  
  1376. '',  
  1377. '',  
  1378. );  
  1379.  
  1380. $slide_desc = array( 
  1381. '<h1>The jQuery slider that just slides.</h1><p>No fancy effects or unnecessary markup.</p>',  
  1382.  
  1383. '<h1>Fluid, flexible, fantastically minimal.</h1><p>Use any HTML in your slides, extend with CSS. You have full control.</p>',  
  1384.  
  1385. '<h1>Open-source.</h1><p> Vestibulum auctor nisl vel lectus ullamcorper sed pellentesque dolor eleifend.</p>',  
  1386.  
  1387. '<h1>Uh, that\'s about it.</h1><p>I just wanted to show you another slide.</p>',  
  1388. '',  
  1389. '',  
  1390. '',  
  1391. '',  
  1392. '',  
  1393. '',  
  1394.  
  1395. ); 
  1396.  
  1397. for( $s=1;$s<=10; $s++ ): 
  1398.  
  1399. $options[] = array('name' => '', 'id' => 'slide_'.$s.'_group', 'type' => 'start_group', 'class'=>''); 
  1400. $options[] = array( 
  1401. 'id' => 'slide_titled_'.$s.'',  
  1402. 'name' => sprintf(__('Slide %d', 'onetone'), $s).' <span id="accordion-group-slide-'.$s.'" class="fa fa-plus"></span>',  
  1403. 'desc' => '',  
  1404. 'std' => '',  
  1405. 'type' => 'textblock-titled',  
  1406. 'rows' => '',  
  1407. 'class' => 'section-accordion close',  
  1408.  
  1409. ); 
  1410.  
  1411. $options[] = array('name' => '', 'id' => 'wrapper_start', 'type' => 'wrapper_start', 'class'=>'');  
  1412.  
  1413. $options[] = array( 
  1414. 'name' => __('Image', 'onetone'),  
  1415. 'id' => 'onetone_slide_image_'.$s.'',  
  1416. 'type' => 'upload',  
  1417. 'std'=> isset($slide_img[$s-1])?$slide_img[$s-1]:'',  
  1418. 'class'=>'slide-item accordion-group-slide-'.$s.'' 
  1419. ); 
  1420.  
  1421. $options[] = array( 
  1422. 'name' => __('Caption', 'onetone'),  
  1423. 'id' => 'onetone_slide_text_'.$s.'',  
  1424. 'type' => 'editor',  
  1425. 'std'=> isset($slide_desc[$s-1])?$slide_desc[$s-1]:'',  
  1426. 'class'=>'slide-item accordion-group-slide-'.$s.'' 
  1427. ); 
  1428.  
  1429. $options[] = array( 
  1430. 'name' => __('Button Text', 'onetone'),  
  1431. 'id' => 'onetone_slide_btn_txt_'.$s.'',  
  1432. 'std' => $onetone_old_version == true?'':__('Click Me', 'onetone'),  
  1433. 'desc'=> '',  
  1434. 'type' => 'text');  
  1435.  
  1436. $options[] = array( 
  1437. 'name' => __('Button Link', 'onetone'),  
  1438. 'id' => 'onetone_slide_btn_link_'.$s.'',  
  1439. 'std' => '#',  
  1440. 'desc'=> '',  
  1441. 'type' => 'text');  
  1442.  
  1443. $options[] = array( 
  1444. 'name' => __('Button Link Target', 'onetone'),  
  1445. 'id' => 'onetone_slide_btn_target_'.$s.'',  
  1446. 'std' => '_self',  
  1447. 'desc'=> '',  
  1448. 'options' => $target,  
  1449. 'type' => 'select');  
  1450.  
  1451.  
  1452. $options[] = array('name' => '', 'id' => 'wrapper_end', 'type' => 'wrapper_end', 'class'=>''); 
  1453. $options[] = array('name' => '', 'id' => 'slide_'.$s.'_group_', 'type' => 'end_group', 'class'=>''); 
  1454.  
  1455. endfor; 
  1456.  
  1457. $options[] = array( 
  1458. 'id' => 'slide_autoplay',  
  1459. 'name' => __( 'Autoplay', 'onetone' ),  
  1460. 'desc' => __('Enable slider autoplay.', 'onetone' ),  
  1461. 'std' => '1',  
  1462. 'type' => 'checkbox',  
  1463. 'class' => '',  
  1464. ); 
  1465.  
  1466. $options[] = array( 
  1467. 'name' => __('Autoplay Timeout', 'onetone'),  
  1468. 'id' => 'slide_time',  
  1469. 'std' => '5000',  
  1470. 'desc'=>__('Milliseconds between the end of the sliding effect and the start of the nex one.', 'onetone'),  
  1471. 'type' => 'text');  
  1472.  
  1473. $options[] = array( 
  1474. 'id' => 'slider_control',  
  1475. 'name' => __( 'Display Control', 'onetone' ),  
  1476. 'desc' => __( 'Display control.', 'onetone' ),  
  1477. 'std' => '1',  
  1478. 'type' => 'checkbox',  
  1479. 'class' => '',  
  1480. ); 
  1481.  
  1482. $options[] = array( 
  1483. 'id' => 'slider_pagination',  
  1484. 'name' => __( 'Display Pagination', 'onetone' ),  
  1485. 'desc' => __( 'Display pagination.', 'onetone' ),  
  1486. 'std' => '1',  
  1487. 'type' => 'checkbox',  
  1488. 'class' => '',  
  1489. ); 
  1490.  
  1491. $options[] = array( 
  1492. 'id' => 'slide_fullheight',  
  1493. 'name' => __( 'Full Height', 'onetone' ),  
  1494. 'desc' => __( 'Full screen height for desktop.', 'onetone' ),  
  1495. 'std' => '',  
  1496. 'type' => 'checkbox',  
  1497. 'class' => '',  
  1498. ); 
  1499.  
  1500. //END HOME PAGE SLIDER 
  1501.  
  1502. // About Onetone 
  1503. $options[] = array( 
  1504. 'icon' => 'fa-file-o',  
  1505. 'name' => __('About Onetone', 'onetone'),  
  1506. 'type' => 'heading'); 
  1507.  
  1508. $options[] = array( 
  1509. 'id' => 'about-onetone',  
  1510. 'name' => __('About Onetone', 'onetone'),  
  1511. 'desc' => '',  
  1512. 'std' => '',  
  1513. 'type' => 'textblock-titled',  
  1514. 'rows' => '',  
  1515. 'class' => 'sub_section_titled',  
  1516. ); 
  1517. $options[] = array( 
  1518. 'name' => '',  
  1519. 'desc' => '<div class="onetone-desc">'.__('Based on Bootstrap and coded with HTML5 and CSS3 language, Onetone is fully responsive in desktops and mobile devices. With enriched settings in theme options , you can not only change header and footer patterns, but also customize background colors, page layouts and social links, etc. Read below for additional information about Onetone.', 'onetone').'</div> 
  1520.  
  1521. <div class="theme-support"><div class="col-1-3"> 
  1522. <h4>'.__('Documentation', 'onetone').'</h4> 
  1523. <p>'.__('The online documentaiton for Onetone is an incredible resource for learning how to use Onetone. You could follow this manual step by step to build your site.', 'onetone').'</p> 
  1524. <a class="button" href="'.esc_url('https://www.mageewp.com/manuals/theme-guide-onetone.html').'" target="_blank">'.__('Documentation', 'onetone').'</a> 
  1525. </div> 
  1526. <div class="col-1-3"> 
  1527. <h4>'.__('Support Forum', 'onetone').'</h4><p>'.__('We also have a support forum for users to communicate. If you have any problem while using this theme, feel free to post in the forum. Our support team would reply you asap.', 'onetone').'</p> 
  1528. <a class="button" href="'.esc_url('https://www.mageewp.com/forums/onetone/').'" target="_blank">'.__('Support Forum', 'onetone').'</a>  
  1529. </div> 
  1530. <div class="col-1-3 last"> 
  1531. <h4>'.__('Theme Center', 'onetone').'</h4><p>'.__('Like our themes? Come here to get more.', 'onetone').'</p> 
  1532. <a class="button" href="'.esc_url('https://www.mageewp.com/wordpress-themes').'" target="_blank">'.__('Theme Center', 'onetone').'</a> 
  1533. </div></div>',  
  1534. 'id' => 'about_onetone',  
  1535. 'std' => '',  
  1536. 'type' => 'info',  
  1537. 'class'=>'',  
  1538. ); 
  1539.  
  1540. // Options Backup 
  1541. $options[] = array( 
  1542. 'icon' => 'fa-files-o',  
  1543. 'name' => __('Options Backup', 'onetone'),  
  1544. 'type' => 'heading'); 
  1545.  
  1546. $options[] = array( 
  1547. 'id' => 'options-backup',  
  1548. 'name' => __('Options Backup', 'onetone'),  
  1549. 'desc' => '',  
  1550. 'std' => '',  
  1551. 'type' => 'textblock-titled',  
  1552. 'rows' => '',  
  1553. 'class' => 'sub_section_titled',  
  1554. ); 
  1555.  
  1556.  
  1557. $backup_list = get_option('onetone_options_backup'); 
  1558. $backup_list_html = ''; 
  1559. if( is_array($backup_list) && $backup_list != NULL ) 
  1560. foreach( $backup_list as $backup_item ) { 
  1561.  
  1562. $backup_list = get_option('onetone_options_backup_'.$backup_item); 
  1563. $backup_list_html .= '<tr id="tr-'.$backup_item.'"> 
  1564. <td style="padding-left:20px;"> '.__('Backup', 'onetone').' '.date('Y-m-d H:i:s', $backup_item).'</td> 
  1565. <td><a class="button" id="onetone-restore-btn" data-key="'.$backup_item.'" href="#"><i class="fa fa-refresh"></i> '.__('Restore', 'onetone').'</a></td> 
  1566. <td><a class="button" id="onetone-delete-btn" data-key="'.$backup_item.'" href="#"><i class="fa fa-remove"></i> '.__('Delete', 'onetone').'</a></td> 
  1567. </tr>'; 
  1568.  
  1569.  
  1570. $options[] = array( 
  1571. 'name' => '',  
  1572. 'desc' => '<div class="onetone-desc"> <a class="button" id="onetone-backup-btn" href="#">'.__('Create New Backup', 'onetone').'</a> <span style=" padding-left:20px; display:none; color:green;" class="onetone-backup-complete">'.__('Theme options have been backuped.', 'onetone').'</span></div> 
  1573. <table width="100%" border="1" id="onetone-backup-lists" style=" margin-top:50px;"> 
  1574. '.$backup_list_html.' </table>',  
  1575. 'id' => 'options_backup',  
  1576. 'std' => '',  
  1577. 'type' => 'info',  
  1578. 'class'=>'',  
  1579. );  
  1580.  
  1581. //Notice 
  1582. $options[] = array( 
  1583. 'icon' => 'fa-gear',  
  1584. 'name' => __('Styling', 'onetone'),  
  1585. 'type' => 'heading' 
  1586. ); 
  1587. $notice = ''; 
  1588. $dismiss = get_option('_onetone_options_dismiss'); 
  1589. if( $dismiss != '1' ) 
  1590. $notice = '<div class="options-to-customise notice notice-warning is-dismissible" style="display:block !important;"> 
  1591. <p>'.sprintf(__( 'Styling Options have been migrated to <a href="%s">customize</a>.', 'onetone' ), admin_url('customize.php')).'</p></div>'; 
  1592.  
  1593. $options[] = array( 
  1594. 'name' => '',  
  1595. 'desc' => '<div class="onetone-notice">'.$notice.'<p><a href="'.admin_url('customize.php').'"><img src="'.ONETONE_THEME_BASE_URL.'/images/options-to-customise.jpg" /></a></p> 
  1596. </div>',  
  1597. 'id' => 'notice_onetone',  
  1598. 'std' => '',  
  1599. 'type' => 'info',  
  1600. 'class'=>'',  
  1601. ); 
  1602.  
  1603. return $options;