Advertisement
Uranbold

function-options.php

Mar 6th, 2017
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 45.72 KB | None | 0 0
  1. <?php
  2.  
  3. add_action('init','of_options');
  4.  
  5. if (!function_exists('of_options'))
  6. {
  7. function of_options()
  8. {
  9. //Access the WordPress Categories via an Array
  10. $of_categories = array();
  11. $of_categories_obj = get_categories('hide_empty=0');
  12. foreach ($of_categories_obj as $of_cat) {
  13. $of_categories[$of_cat->cat_ID] = $of_cat->cat_name;}
  14. $categories_tmp = array_unshift($of_categories, "Select a category:");
  15.  
  16. //Access the WordPress Pages via an Array
  17. $of_pages = array();
  18. $of_pages_obj = get_pages('sort_column=post_parent,menu_order');
  19. foreach ($of_pages_obj as $of_page) {
  20. $of_pages[$of_page->ID] = $of_page->post_name; }
  21. $of_pages_tmp = array_unshift($of_pages, "Select a page:");
  22. //Testing
  23. $of_layout_select = array("fullwidth" => "Fullwidth","boxed" => "Boxed Layout");
  24. $of_options_bg_repeat = array("stretch" => "Strech Image","repeat" => "repeat","no-repeat" => "no-repeat","repeat-y" => "repeat-y","repeat-x" => "repeat-x");
  25. $of_options_bg_size = array("auto" => "Auto","cover" => "Cover","contain" => "Contain");
  26. $of_options_radio = array("one" => "One","two" => "Two","three" => "Three","four" => "Four","five" => "Five");
  27. $border_width = array("1px" => "1px","2px" => "2px","3px" => "3px","4px" => "4px","5px" => "5px");
  28.  
  29. //Sample Homepage blocks for the layout manager (sorter)
  30. $of_options_homepage_blocks = array
  31. (
  32. "disabled" => array (
  33. "placebo" => "placebo", //REQUIRED!
  34. "block_one" => "Block One",
  35. "block_two" => "Block Two",
  36. "block_three" => "Block Three",
  37. ),
  38. "enabled" => array (
  39. "placebo" => "placebo", //REQUIRED!
  40. "block_four" => "Block Four",
  41. ),
  42. );
  43.  
  44.  
  45. //Stylesheets Reader
  46. $alt_stylesheet_path = LAYOUT_PATH;
  47. $alt_stylesheets = array();
  48.  
  49. if ( is_dir($alt_stylesheet_path) )
  50. {
  51. if ($alt_stylesheet_dir = opendir($alt_stylesheet_path) )
  52. {
  53. while ( ($alt_stylesheet_file = readdir($alt_stylesheet_dir)) !== false )
  54. {
  55. if(stristr($alt_stylesheet_file, ".css") !== false)
  56. {
  57. $alt_stylesheets[] = $alt_stylesheet_file;
  58. }
  59. }
  60. }
  61. }
  62.  
  63.  
  64. //Background Images Reader
  65. $bg_images_path = get_stylesheet_directory(). '/images/bg/'; // change this to where you store your bg images
  66. $bg_images_url = get_template_directory_uri().'/images/bg/'; // change this to where you store your bg images
  67. $bg_images = array();
  68.  
  69. if ( is_dir($bg_images_path) ) {
  70. if ($bg_images_dir = opendir($bg_images_path) ) {
  71. while ( ($bg_images_file = readdir($bg_images_dir)) !== false ) {
  72. if(stristr($bg_images_file, ".png") !== false || stristr($bg_images_file, ".jpg") !== false) {
  73. $bg_images[] = $bg_images_url . $bg_images_file;
  74. }
  75. }
  76. }
  77. }
  78.  
  79.  
  80. /*-----------------------------------------------------------------------------------*/
  81. /* TO DO: Add options/functions that use these */
  82. /*-----------------------------------------------------------------------------------*/
  83.  
  84. //More Options
  85. $uploads_arr = wp_upload_dir();
  86. $all_uploads_path = $uploads_arr['path'];
  87. $all_uploads = get_option('of_uploads');
  88. $other_entries = array("Select a number:","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19");
  89. $body_repeat = array("no-repeat","repeat-x","repeat-y","repeat");
  90. $body_pos = array("top left","top center","top right","center left","center center","center right","bottom left","bottom center","bottom right");
  91.  
  92. // Image Alignment radio box
  93. $of_options_thumb_align = array("alignleft" => "Left","alignright" => "Right","aligncenter" => "Center");
  94.  
  95. // Image Links to Options
  96. $of_options_image_link_to = array("image" => "The Image","post" => "The Post");
  97.  
  98.  
  99. /*-----------------------------------------------------------------------------------*/
  100. /* The Options Array */
  101. /*-----------------------------------------------------------------------------------*/
  102.  
  103. // Set the Options Array
  104. global $of_options,$tw_googlefonts;
  105. $of_options = array();
  106.  
  107. /* ThemeWaves custom admin section started */
  108. // General TAB
  109. $of_options[] = array( "name" => "General",
  110. "type" => "heading"
  111. );
  112. $of_options[] = array( "name" => "General",
  113. "desc" => "",
  114. "id" => "general_info",
  115. "std" => "<h3 style=\"margin: 3px;\">General Options</h3>",
  116. "icon" => true,
  117. "type" => "info"
  118. );
  119. $of_options[] = array( "name" => "Page builder ?",
  120. "desc" => "This will enable, disable PageBuilder.",
  121. "id" => "pagebuilder",
  122. "std" => 1,
  123. "folds" => 1,
  124. "type" => "switch"
  125. );
  126. $of_options[] = array( "name" => "Preloader ?",
  127. "desc" => "This will enable, disable Preloader.",
  128. "id" => "preloader",
  129. "std" => 1,
  130. "type" => "switch"
  131. );
  132. $of_options[] = array( "name" => "Nice Scroll ?",
  133. "desc" => "This will enable, disable NiceScroll.",
  134. "id" => "nicescroll",
  135. "std" => 0,
  136. "folds" => 1,
  137. "type" => "switch"
  138. );
  139.  
  140. $of_options[] = array( "name" => "Theme Layout",
  141. "desc" => "",
  142. "id" => "layout_theme_info",
  143. "std" => "<h3 style=\"margin: 3px;\">Theme Layout</h3>",
  144. "icon" => true,
  145. "type" => "info"
  146. );
  147. $of_options[] = array( "name" => "Theme Layout Style",
  148. "desc" => "Choose the Theme layout style.",
  149. "id" => "theme_layout",
  150. "std" => "Fullwidth",
  151. "type" => "select",
  152. "options" => $of_layout_select
  153. );
  154. $of_options[] = array( "name" => "Layout Options if boxed",
  155. "desc" => "",
  156. "id" => "layout_opt_boxed_info",
  157. "std" => "<h3 style=\"margin: 3px;\">If boxed Theme Layout Style chosen.</h3>",
  158. "icon" => true,
  159. "type" => "info"
  160. );
  161. $of_options[] = array( "name" => "Background Color",
  162. "desc" => "Choose the background color.",
  163. "id" => "background_color",
  164. "std" => "#d1d1d1",
  165. "type" => "color"
  166. );
  167. $of_options[] = array( "name" => "Background Image",
  168. "desc" => "This option will only works under boxed layout chosen.",
  169. "id" => "background_image",
  170. "std" => "",
  171. "mod" => "min",
  172. "type" => "upload"
  173. );
  174. $of_options[] = array( "name" => "Background Image Repeat",
  175. "desc" => "Choose the repeat or stretch image option.",
  176. "id" => "background_repeat",
  177. "std" => "repeat",
  178. "type" => "select",
  179. "options" => $of_options_bg_repeat
  180. );
  181. $of_options[] = array( "name" => "Margin from Top",
  182. "desc" => "Boxed Layout margin top.",
  183. "id" => "margin_top",
  184. "std" => "60",
  185. "type" => "text"
  186. );
  187. $of_options[] = array( "name" => "Margin from Bottom",
  188. "desc" => "Boxed Layout margin bottom.",
  189. "id" => "margin_bottom",
  190. "std" => "60",
  191. "type" => "text"
  192. );
  193. $of_options[] = array( "name" => "Tracking",
  194. "desc" => "",
  195. "id" => "track_code_info",
  196. "std" => "<h3 style=\"margin: 3px;\">Tracking</h3>",
  197. "icon" => true,
  198. "type" => "info"
  199. );
  200. $of_options[] = array( "name" => "Tracking Code",
  201. "desc" => "Paste your Google Analytics (or other) tracking code here. This will be added into the footer template of your theme.",
  202. "id" => "tracking_code",
  203. "std" => "",
  204. "type" => "textarea"
  205. );
  206. // Header and Footer TAB
  207. $of_options[] = array( "name" => "Additional",
  208. "type" => "heading"
  209. );
  210. $of_options[] = array( "name" => "Enable animations on mobile?",
  211. "desc" => "If it's On then it will be enabled on mobile, Off will be disabled on mobile.",
  212. "id" => "moblile_animation",
  213. "std" => 0,
  214. "type" => "switch"
  215. );
  216. $of_options[] = array( "name" => "Breadcrumbs?",
  217. "desc" => "This will enable or disable Breadcrumbs.",
  218. "id" => "breadcrumps",
  219. "std" => 1,
  220. "folds" => 1,
  221. "type" => "switch"
  222. );
  223. $of_options[] = array( "name" => "Page Title Background Image",
  224. "desc" => "Inserted picture must be above 1600px width and height is atleast 120px. You can redefine or choose other option to your specific page on meta options.",
  225. "id" => "title_bg_image",
  226. "std" => "",
  227. "mod" => "min",
  228. "type" => "upload"
  229. );
  230. $of_options[] = array( "name" => "Portfolio additional heading",
  231. "desc" => "",
  232. "id" => "port_add_opt_info",
  233. "std" => "<h3 style=\"margin: 3px;\">Portfolios</h3>",
  234. "icon" => true,
  235. "type" => "info"
  236. );
  237. $of_options[] = array( "name" => "Portfolio post type slug",
  238. "desc" => "Portfolio post type slug.",
  239. "id" => "translate_portfolio",
  240. "std" => "portfolio",
  241. "type" => "text"
  242. );
  243. $of_options[] = array( "name" => "Portfolio Page",
  244. "desc" => "",
  245. "id" => "port_page",
  246. "std" => "",
  247. "type" => "select",
  248. "options" => $of_pages
  249. );
  250. $of_options[] = array( "name" => "Hide portfolio favorites on single?",
  251. "desc" => "",
  252. "id" => "hide_favorites",
  253. "std" => 0,
  254. "type" => "switch"
  255. );
  256. $of_options[] = array( "name" => "Portfolio image height",
  257. "desc" => "Related portfolios height and Default portfolio image height.",
  258. "id" => "port_height",
  259. "std" => "250",
  260. "type" => "text"
  261. );
  262. $of_options[] = array( "name" => "Hide related portfolios on single?",
  263. "desc" => "",
  264. "id" => "port_related",
  265. "std" => 0,
  266. "type" => "switch"
  267. );
  268. $of_options[] = array( "name" => "Blog Additional heading",
  269. "desc" => "",
  270. "id" => "blog_rel_por_info",
  271. "std" => "<h3 style=\"margin: 3px;\">Related Portfolio Single Link</h3>",
  272. "icon" => true,
  273. "type" => "info"
  274. );
  275. $of_options[] = array( "name" => "Disable Hover Feature on single?",
  276. "desc" => "",
  277. "id" => "port_related_hide_hover",
  278. "std" => 0,
  279. "type" => "switch"
  280. );
  281. $of_options[] = array( "name" => "'View Large' text Change",
  282. "desc" => "Empty: VIEW LARGE.",
  283. "id" => "port_related_button_text",
  284. "std" => "",
  285. "type" => "text"
  286. );
  287. $of_options[] = array( "name" => "Link Open Type?",
  288. "desc" => "Preview Url is located in Portfolio Single.",
  289. "id" => "port_related_link_type",
  290. "std" => "view_large",
  291. "type" => "select",
  292. "options" => array('view_large'=>'View large','permalink'=>'Permalink','preview_url'=>'Preview URL')
  293. );
  294. $of_options[] = array( "name" => "Blog Additional heading",
  295. "desc" => "",
  296. "id" => "blog_add_opt_info",
  297. "std" => "<h3 style=\"margin: 3px;\">Blog</h3>",
  298. "icon" => true,
  299. "type" => "info"
  300. );
  301. $of_options[] = array( "name" => "Meta on Blog Post Single?",
  302. "desc" => "If it's On then it will be showed, Off will be hidden.",
  303. "id" => "meta_on_single",
  304. "std" => 1,
  305. "folds" => 1,
  306. "type" => "switch"
  307. );
  308. $of_options[] = array( "name" => "Featured Media section on post single?",
  309. "desc" => "If it's On then it will be showed, Off will be hidden.",
  310. "id" => "feature_show",
  311. "std" => 1,
  312. "folds" => 1,
  313. "type" => "switch"
  314. );
  315. $of_options[] = array( "name" => "Post Author section on post single?",
  316. "desc" => "If it's On then it will be showed, Off will be hidden.",
  317. "id" => "post_author",
  318. "std" => 1,
  319. "folds" => 1,
  320. "type" => "switch"
  321. );
  322. $of_options[] = array( "name" => "Blog Page Title",
  323. "desc" => "Insert Title of your Blog page.",
  324. "id" => "blog_title",
  325. "std" => "Blog",
  326. "type" => "text"
  327. );
  328. $of_options[] = array( "name" => "Blog Page Subtitle",
  329. "desc" => "Insert Sub Title of your Blog page.",
  330. "id" => "blog_subtitle",
  331. "std" => "",
  332. "type" => "text"
  333. );
  334.  
  335.  
  336. // Header and Footer TAB
  337. $of_options[] = array( "name" => "Header and Footer",
  338. "type" => "heading"
  339. );
  340. $of_options[] = array( "name" => "Is Menu fixed position?",
  341. "desc" => "IF it's ON menu will fixed. Off will disable.",
  342. "id" => "menu_fixed",
  343. "std" => 1,
  344. "type" => "switch"
  345. );
  346. $of_options[] = array( "name" => "Show Logo background color",
  347. "desc" => "IF it's ON logo background color will be showed.",
  348. "id" => "logo_bg",
  349. "std" => 1,
  350. "type" => "switch"
  351. );
  352. $of_options[] = array( "name" => "Logo option heading",
  353. "desc" => "",
  354. "id" => "logo_opt_info",
  355. "std" => "<h3 style=\"margin: 3px;\">Logo options</h3>",
  356. "icon" => true,
  357. "type" => "info"
  358. );
  359. $of_options[] = array( "name" => "Upload Standard Logo",
  360. "desc" => "Please insert your logo.",
  361. "id" => "theme_logo",
  362. "std" => "",
  363. "mod" => "min",
  364. "type" => "upload"
  365. );
  366. $of_options[] = array( "name" => "Logo Margin from Top",
  367. "desc" => "Note: You need to insert only value.",
  368. "id" => "logo_top",
  369. "std" => "0",
  370. "type" => "text"
  371. );
  372. $of_options[] = array( "name" => "Logo Margin from Bottom",
  373. "desc" => "Note: You need to insert only value.",
  374. "id" => "logo_bottom",
  375. "std" => "0",
  376. "type" => "text"
  377. );
  378. $of_options[] = array( "name" => "Retina Logo",
  379. "desc" => "",
  380. "id" => "logo_retina",
  381. "std" => 0,
  382. "folds" => 1,
  383. "type" => "switch"
  384. );
  385. $of_options[] = array( "name" => "Upload Retina Logo (2x)",
  386. "desc" => "Note: You retina logo must be larger than 2x. Example: Main logo 120x200 then Retina must be 240x400.",
  387. "id" => "theme_logo_retina",
  388. "std" => "",
  389. "mod" => "min",
  390. "fold" => "logo_retina", /* the checkbox hook */
  391. "type" => "upload"
  392. );
  393. $of_options[] = array( "name" => "Standard Logo Width",
  394. "desc" => "You need to insert Non retina logo width. Height auto",
  395. "id" => "logo_width",
  396. "std" => "",
  397. "fold" => "logo_retina", /* the checkbox hook */
  398. "type" => "text"
  399. );
  400. $of_options[] = array( "name" => "Favicon option heading",
  401. "desc" => "",
  402. "id" => "favicon_opt_info",
  403. "std" => "<h3 style=\"margin: 3px;\">Favicon options</h3>",
  404. "icon" => true,
  405. "type" => "info"
  406. );
  407. $of_options[] = array( "name" => "Upload Standard Favicon",
  408. "desc" => "Please insert your favicon 16x16 icon. You may use <a href='http://www.favicon.cc/' target='_blank'>favicon.cc</a>",
  409. "id" => "theme_favicon",
  410. "std" => "",
  411. "mod" => "min",
  412. "type" => "upload"
  413. );
  414. $of_options[] = array( "name" => "Retina Favicon",
  415. "desc" => "",
  416. "id" => "favicon_retina",
  417. "std" => 0,
  418. "folds" => 1,
  419. "type" => "switch"
  420. );
  421. $of_options[] = array( "name" => "Favicon for iPhone (57x57)",
  422. "desc" => "Please upload your favicon 57x57.",
  423. "id" => "favicon_iphone",
  424. "std" => "",
  425. "mod" => "min",
  426. "fold" => "favicon_retina", /* the checkbox hook */
  427. "type" => "upload"
  428. );
  429. $of_options[] = array( "name" => "Retina Favicon for iPhone (114x114)",
  430. "desc" => "Please upload your favicon 114x114.",
  431. "id" => "favicon_iphone_retina",
  432. "std" => "",
  433. "mod" => "min",
  434. "fold" => "favicon_retina", /* the checkbox hook */
  435. "type" => "upload"
  436. );
  437. $of_options[] = array( "name" => "Favicon for iPad (72x72)",
  438. "desc" => "Please upload your favicon 72x72.",
  439. "id" => "favicon_ipad",
  440. "std" => "",
  441. "mod" => "min",
  442. "fold" => "favicon_retina", /* the checkbox hook */
  443. "type" => "upload"
  444. );
  445. $of_options[] = array( "name" => "Retina Favicon for iPad (144x144)",
  446. "desc" => "Please upload your favicon 144x144.",
  447. "id" => "favicon_ipad_retina",
  448. "std" => "",
  449. "mod" => "min",
  450. "fold" => "favicon_retina", /* the checkbox hook */
  451. "type" => "upload"
  452. );
  453.  
  454. $of_options[] = array( "name" => "Top Bar",
  455. "desc" => "",
  456. "id" => "topbar_colors_main",
  457. "std" => "<h3 style=\"margin: 3px;\">Top Bar</h3>",
  458. "icon" => true,
  459. "type" => "info"
  460. );
  461. $of_options[] = array( "name" => "Top bar",
  462. "desc" => "Insert your social icons in Social Icons Tab.",
  463. "id" => "top_bar",
  464. "std" => 0,
  465. "folds" => 1,
  466. "type" => "switch"
  467. );
  468.  
  469. $of_options[] = array( "name" => "Footer section",
  470. "desc" => "",
  471. "id" => "footer_section_info",
  472. "std" => "<h3 style=\"margin: 3px;\">Footer section</h3>",
  473. "icon" => true,
  474. "type" => "info"
  475. );
  476. $of_options[] = array( "name" => "Footer Widget",
  477. "desc" => "",
  478. "id" => "footer_widget",
  479. "std" => 1,
  480. "folds" => 1,
  481. "type" => "switch"
  482. );
  483. $url = ADMIN_DIR . 'assets/images/footer/';
  484. $of_options[] = array( "name" => "Footer Layout",
  485. "desc" => "Choose footer layout.",
  486. "id" => "footer_layout",
  487. "std" => "3-3-3-3",
  488. "type" => "images",
  489. "fold" => "footer_widget", /* the checkbox hook */
  490. "options" => array(
  491. '12' => $url . '1.png',
  492. '6-6' => $url . '2.png',
  493. '4-4-4' => $url . '3.png',
  494. '3-3-3-3' => $url . '4.png'
  495. )
  496. );
  497. $of_options[] = array( "name" => "Footer text",
  498. "desc" => "",
  499. "id" => "footer_text",
  500. "std" => 1,
  501. "folds" => 1,
  502. "type" => "switch"
  503. );
  504. $of_options[] = array( "name" => "Copyright Text",
  505. "desc" => "Insert Copyright Text.",
  506. "id" => "copyright_text",
  507. "fold" => "footer_text",
  508. "std" => "<a href='http://themeforest.net/user/themewaves/portfolio' title='Wordpress is the Best!'>Flacto</a> - Responsive & Multipurpose WP Theme by ThemeWaves. Proudly Powered by <a href='http://wordpress.org/' title='Wordpress is the Best!'>Wordpress </a>",
  509. "type" => "textarea"
  510. );
  511. // Colors and Styling TAB
  512. $of_options[] = array( "name" => "Colors and Styling",
  513. "type" => "heading"
  514. );
  515. $of_options[] = array( "name" => "General",
  516. "desc" => "",
  517. "id" => "colors_and_styling_info",
  518. "std" => "<h3 style=\"margin: 3px;\">General</h3>",
  519. "icon" => true,
  520. "type" => "info"
  521. );
  522. $of_options[] = array( "name" => "Primary Color",
  523. "desc" => "Theme Primary color has all of accent colors of this theme. Default: #2dcb73",
  524. "id" => "primary_color",
  525. "std" => "#2dcb73",
  526. "type" => "color"
  527. );
  528. $of_options[] = array( "name" => "Link Color",
  529. "desc" => "Pick a tag color (default: #2dcb73).",
  530. "id" => "link_color",
  531. "std" => "#2dcb73",
  532. "type" => "color"
  533. );
  534. $of_options[] = array( "name" => "Link Hover Color",
  535. "desc" => "Pick a tag's hover color (default: #2dcb73).",
  536. "id" => "link_hover_color",
  537. "std" => "#2dcb73",
  538. "type" => "color"
  539. );
  540. $of_options[] = array( "name" => "Header Colors",
  541. "desc" => "",
  542. "id" => "header_colors_info",
  543. "std" => "<h3 style=\"margin: 3px;\">Header</h3>",
  544. "icon" => true,
  545. "type" => "info"
  546. );
  547. $of_options[] = array( "name" => "Header Background Color",
  548. "desc" => "Pick a background color for the header (default: #fff).",
  549. "id" => "header_background",
  550. "std" => "#fff",
  551. "type" => "color"
  552. );
  553. $of_options[] = array( "name" => "Top Bar Color",
  554. "desc" => "",
  555. "id" => "topbar_colors_info",
  556. "std" => "<h3 style=\"margin: 3px;\">Top Bar Color</h3>",
  557. "icon" => true,
  558. "type" => "info"
  559. );
  560. $of_options[] = array( "name" => "Top bar Background Color",
  561. "desc" => "Insert your top bar background color.",
  562. "id" => "top_bar_bg",
  563. "std" => "#fff",
  564. "type" => "color"
  565. );
  566. $of_options[] = array( "name" => "Menu Colors Options",
  567. "desc" => "",
  568. "id" => "menu_colors_info",
  569. "std" => "<h3 style=\"margin: 3px;\">Menu</h3>",
  570. "icon" => true,
  571. "type" => "info"
  572. );
  573. $of_options[] = array( "name" => "Menu Background Color",
  574. "desc" => "Default: transparent",
  575. "id" => "menu_background",
  576. "std" => "transparent",
  577. "type" => "color"
  578. );
  579. $of_options[] = array( "name" => "Menu Link Hover&Active Color",
  580. "desc" => "Default: #2DCB73",
  581. "id" => "menu_hover",
  582. "std" => "#2DCB73",
  583. "type" => "color"
  584. );
  585. $of_options[] = array( "name" => "Menu Link Hover&Active Background Color",
  586. "desc" => "Default: transparent",
  587. "id" => "menu_hover_background",
  588. "std" => "transparent",
  589. "type" => "color"
  590. );
  591. $of_options[] = array( "name" => "Sub Menu Background Color",
  592. "desc" => "Default: #2f2f2f",
  593. "id" => "submenu_bg",
  594. "std" => "#2f2f2f",
  595. "type" => "color"
  596. );
  597. $of_options[] = array( "name" => "Sub Menu Link Color",
  598. "desc" => "Default: #aaa",
  599. "id" => "submenu_link",
  600. "std" => "#aaa",
  601. "type" => "color"
  602. );
  603. $of_options[] = array( "name" => "Sub Menu Hover Background Color",
  604. "desc" => "Default: #2f2f2f",
  605. "id" => "submenu_hover_background",
  606. "std" => "#2f2f2f",
  607. "type" => "color"
  608. );
  609. $of_options[] = array( "name" => "Sub Menu Link Hover Color",
  610. "desc" => "Default: #fff",
  611. "id" => "submenu_hover",
  612. "std" => "#fff",
  613. "type" => "color"
  614. );
  615. $of_options[] = array( "name" => "Body Colors",
  616. "desc" => "",
  617. "id" => "body_colors_info",
  618. "std" => "<h3 style=\"margin: 3px;\">Body</h3>",
  619. "icon" => true,
  620. "type" => "info"
  621. );
  622. $of_options[] = array( "name" => "Body Background Color",
  623. "desc" => "Pick a background color for the body (default: #fff).",
  624. "id" => "body_background",
  625. "std" => "#fff",
  626. "type" => "color"
  627. );
  628. $of_options[] = array( "name" => "Footer Colors",
  629. "desc" => "",
  630. "id" => "footer_colors_info",
  631. "std" => "<h3 style=\"margin: 3px;\">Footer</h3>",
  632. "icon" => true,
  633. "type" => "info"
  634. );
  635. $of_options[] = array( "name" => "Footer Background Color",
  636. "desc" => "Pick a background color for the footer (default: #2a303c).",
  637. "id" => "footer_background",
  638. "std" => "#2a303c",
  639. "type" => "color"
  640. );
  641. $of_options[] = array( "name" => "Footer Text Color",
  642. "desc" => "Pick a footers text color (default: #fff).",
  643. "id" => "footer_text_color",
  644. "std" => "#fff",
  645. "type" => "color"
  646. );
  647. $of_options[] = array( "name" => "Footer Link Color",
  648. "desc" => "Pick a footers a tag color (default: #aaaaaa).",
  649. "id" => "footer_link_color",
  650. "std" => "#aaaaaa",
  651. "type" => "color"
  652. );
  653. $of_options[] = array( "name" => "Footer Link Hover Color",
  654. "desc" => "Pick a footers a tag hover color (default: #2dcb73).",
  655. "id" => "footer_link_hover_color",
  656. "std" => "#2dcb73",
  657. "type" => "color"
  658. );
  659. // Typography TAB
  660. $of_options[] = array( "name" => "Typography",
  661. "type" => "heading"
  662. );
  663. $of_options[] = array( "name" => "Body",
  664. "desc" => "",
  665. "id" => "body_info",
  666. "std" => "<h3 style=\"margin: 3px;\">Body</h3>",
  667. "icon" => true,
  668. "type" => "info"
  669. );
  670. $of_options[] = array( "name" => "Body text font",
  671. "desc" => "Specify the body font properties",
  672. "id" => "body_text_font",
  673. "std" => array('size' => '13px','face' => 'Open Sans','style' => 'normal','color' => '#aaa'),
  674. "type" => "typography"
  675. );
  676. $of_options[] = array( "name" => "Widget",
  677. "desc" => "",
  678. "id" => "menu_link_info",
  679. "std" => "<h3 style=\"margin: 3px;\">Menu</h3>",
  680. "icon" => true,
  681. "type" => "info"
  682. );
  683. $of_options[] = array( "name" => "Menu Link customize",
  684. "desc" => "Specify the body font properties",
  685. "id" => "menu_font",
  686. "std" => array('size' => '13px','face' => 'Montserrat','style' => 'bold','color' => '#2f2f2f'),
  687. "type" => "typography"
  688. );
  689. $of_options[] = array( "name" => "Widget",
  690. "desc" => "",
  691. "id" => "widget_info",
  692. "std" => "<h3 style=\"margin: 3px;\">Widget</h3>",
  693. "icon" => true,
  694. "type" => "info"
  695. );
  696. $of_options[] = array( "name" => "Sidebar Widgets Title",
  697. "desc" => "Specify the sidebar headline font properties",
  698. "id" => "sidebar_widgets_title",
  699. "std" => array('size' => '16px','face' => 'Montserrat','style' => 'normal','color' => '#2f2f2f'),
  700. "type" => "typography"
  701. );
  702. $of_options[] = array( "name" => "Footer Widgets Title",
  703. "desc" => "Specify the sidebar headline font properties",
  704. "id" => "footer_widgets_title",
  705. "std" => array('size' => '18px','face' => 'Montserrat','style' => 'bold','color' => '#fff'),
  706. "type" => "typography"
  707. );
  708. $of_options[] = array( "name" => "Headers font styling",
  709. "desc" => "",
  710. "id" => "header_font_info",
  711. "std" => "<h3 style=\"margin: 3px;\">Headlines</h3>",
  712. "icon" => true,
  713. "type" => "info"
  714. );
  715. $of_options[] = array( "name" => "Heading Font Family",
  716. "desc" => "",
  717. "id" => "heading_font",
  718. "std" => "Montserrat",
  719. "type" => "select_google_font",
  720. "options" => $tw_googlefonts
  721. );
  722. $of_options[] = array( "name" => "H1 - Specify Font Properties",
  723. "desc" => "",
  724. "id" => "h1_spec_font",
  725. "std" => array('size' => '28px','color' => '#2f2f2f'),
  726. "type" => "typography"
  727. );
  728. $of_options[] = array( "name" => "H2 - Specify Font Properties",
  729. "desc" => "",
  730. "id" => "h2_spec_font",
  731. "std" => array('size' => '22px','color' => '#2f2f2f'),
  732. "type" => "typography"
  733. );
  734. $of_options[] = array( "name" => "H3 - Specify Font Properties",
  735. "desc" => "",
  736. "id" => "h3_spec_font",
  737. "std" => array('size' => '18px','color' => '#2f2f2f'),
  738. "type" => "typography"
  739. );
  740. $of_options[] = array( "name" => "H4 - Specify Font Properties",
  741. "desc" => "",
  742. "id" => "h4_spec_font",
  743. "std" => array('size' => '16px','color' => '#2f2f2f'),
  744. "type" => "typography"
  745. );
  746. $of_options[] = array( "name" => "H5 - Specify Font Properties",
  747. "desc" => "",
  748. "id" => "h5_spec_font",
  749. "std" => array('size' => '14px','color' => '#2f2f2f'),
  750. "type" => "typography"
  751. );
  752. $of_options[] = array( "name" => "H6 - Specify Font Properties",
  753. "desc" => "",
  754. "id" => "h6_spec_font",
  755. "std" => array('size' => '12px','color' => '#2f2f2f'),
  756. "type" => "typography"
  757. );
  758. $of_options[] = array( "name" => "Google Font Subset",
  759. "desc" => "",
  760. "id" => "google_font_subset",
  761. "std" => "<h3 style=\"margin: 3px;\">Google Font Subset</h3>",
  762. "icon" => true,
  763. "type" => "info"
  764. );
  765. $of_options[] = array( "name" => "Google Font Subset",
  766. "desc" => "Some of Google fonts have additional subsets. Please insert those subsets seperated with comma (,). More information <a href='https://developers.google.com/fonts/docs/getting_started' target='_blank'>Google Font Subset</a>",
  767. "id" => "google_font_subset",
  768. "std" => "",
  769. "type" => "text"
  770. );
  771. // Social Icons TAB
  772. $of_options[] = array( "name" => "Social Icons",
  773. "type" => "heading"
  774. );
  775. $of_options[] = array( "name" => "Social Icons heading",
  776. "desc" => "",
  777. "id" => "social_icons_info",
  778. "std" => "<h3 style=\"margin: 3px;\">Inserted Social Icons will be displayed on top Header section.</h3>",
  779. "icon" => true,
  780. "type" => "info"
  781. );
  782. $of_options[] = array( "name" => "Facebook ID",
  783. "desc" => "Enter the Facebook ID.",
  784. "id" => "facebook_username",
  785. "std" => "",
  786. "type" => "text"
  787. );
  788. $of_options[] = array( "name" => "Tumblr Username",
  789. "desc" => "Enter the Tumblr Username.",
  790. "id" => "tumblr_username",
  791. "std" => "",
  792. "type" => "text"
  793. );
  794. $of_options[] = array( "name" => "Flickr Username",
  795. "desc" => "Enter the Flickr Username.",
  796. "id" => "flickr_username",
  797. "std" => "",
  798. "type" => "text"
  799. );
  800. $of_options[] = array( "name" => "Google + ID",
  801. "desc" => "Enter the Google + Username.",
  802. "id" => "googleplus_username",
  803. "std" => "",
  804. "type" => "text"
  805. );
  806. $of_options[] = array( "name" => "Twitter Username",
  807. "desc" => "Enter the Twitter Username.",
  808. "id" => "twitter_username",
  809. "std" => "",
  810. "type" => "text"
  811. );
  812. $of_options[] = array( "name" => "Instagram Username",
  813. "desc" => "Enter the Instagram Username.",
  814. "id" => "instagram_username",
  815. "std" => "",
  816. "type" => "text"
  817. );
  818. $of_options[] = array( "name" => "RSS URL",
  819. "desc" => "Enter the RSS URL.",
  820. "id" => "rss_username",
  821. "std" => "",
  822. "type" => "text"
  823. );
  824. $of_options[] = array( "name" => "Pinterest Username",
  825. "desc" => "Enter the Pinterest Username.",
  826. "id" => "pinterest_username",
  827. "std" => "",
  828. "type" => "text"
  829. );
  830. $of_options[] = array( "name" => "Skype Username",
  831. "desc" => "Enter the Skype Username.",
  832. "id" => "skype_username",
  833. "std" => "",
  834. "type" => "text"
  835. );
  836. $of_options[] = array( "name" => "Vimeo Username",
  837. "desc" => "Enter the Vimeo Username.",
  838. "id" => "vimeo_username",
  839. "std" => "",
  840. "type" => "text"
  841. );
  842. $of_options[] = array( "name" => "Youtube URL",
  843. "desc" => "Enter the Youtube URL.",
  844. "id" => "youtube_username",
  845. "std" => "",
  846. "type" => "text"
  847. );
  848. $of_options[] = array( "name" => "Dribbble Username",
  849. "desc" => "Enter the Dribbble Username.",
  850. "id" => "dribbble_username",
  851. "std" => "",
  852. "type" => "text"
  853. );
  854. $of_options[] = array( "name" => "Linkedin URL",
  855. "desc" => "Enter the Linkedin URL.",
  856. "id" => "linkedin_username",
  857. "std" => "",
  858. "type" => "text"
  859. );
  860. $of_options[] = array( "name" => "SoundCloud URL",
  861. "desc" => "Enter the SoundCloud URL.",
  862. "id" => "soundcloud_username",
  863. "std" => "",
  864. "type" => "text"
  865. );
  866. $of_options[] = array( "name" => "Other URL",
  867. "desc" => "Enter the Other Icons.",
  868. "id" => "other_username",
  869. "std" => "",
  870. "type" => "text"
  871. );
  872.  
  873. // FB Twitter TAB
  874.  
  875. $of_options[] = array( "name" => "FB Twitter API",
  876. "type" => "heading"
  877. );
  878.  
  879. $of_options[] = array( "name" => "Social Share on Posts",
  880. "desc" => "",
  881. "id" => "social_share_info",
  882. "std" => "<h3 style=\"margin: 3px;\">Social Share on Posts</h3>",
  883. "icon" => true,
  884. "type" => "info"
  885. );
  886.  
  887. $of_options[] = array( "name" => "Social Share on Posts?",
  888. "desc" => "",
  889. "id" => "social_share",
  890. "std" => 1,
  891. "type" => "switch"
  892. );
  893. $of_options[] = array( "name" => "Social Share on Portfolios?",
  894. "desc" => "",
  895. "id" => "portfolio_share",
  896. "std" => 1,
  897. "type" => "switch"
  898. );
  899. $of_options[] = array( "name" => "Facebook Like",
  900. "desc" => "",
  901. "id" => "facebook_share",
  902. "std" => 1,
  903. "type" => "switch"
  904. );
  905. $of_options[] = array( "name" => "Twitter",
  906. "desc" => "",
  907. "id" => "twitter_share",
  908. "std" => 1,
  909. "type" => "switch"
  910. );
  911. $of_options[] = array( "name" => "GooglePlus",
  912. "desc" => "",
  913. "id" => "googleplus_share",
  914. "std" => 1,
  915. "type" => "switch"
  916. );
  917. $of_options[] = array( "name" => "Pinterest",
  918. "desc" => "",
  919. "id" => "pinterest_share",
  920. "std" => 0,
  921. "type" => "switch"
  922. );
  923. $of_options[] = array( "name" => "LinkedIn",
  924. "desc" => "",
  925. "id" => "linkedin_share",
  926. "std" => 0,
  927. "type" => "switch"
  928. );
  929.  
  930. $of_options[] = array( "name" => "Facebook & Twitter",
  931. "desc" => "",
  932. "id" => "facebook_twitter_info",
  933. "std" => "<h3 style=\"margin: 3px;\">Facebook Comment API section</h3>",
  934. "icon" => true,
  935. "type" => "info"
  936. );
  937. $of_options[] = array( "name" => "Facebook comment?",
  938. "desc" => "On will be enabling facebook comment, Off will be Wordpress default comment.",
  939. "id" => "facebook_comment",
  940. "std" => 0,
  941. "folds" => 1,
  942. "type" => "switch"
  943. );
  944. $of_options[] = array( "name" => "Facebook api key",
  945. "desc" => "Create your own Facebook Application and <a href='https://developers.facebook.com/apps' target='_blank'>get ID</a>.",
  946. "id" => "facebook_app_id",
  947. "std" => "",
  948. "fold" => "facebook_comment", /* the checkbox hook */
  949. "type" => "text"
  950. );
  951. $of_options[] = array( "name" => "Facebook & Twitter",
  952. "desc" => "",
  953. "id" => "facebook_twitter_info2",
  954. "std" => "<h3 style=\"margin: 3px;\">Twitter API section (Note this will Required!)</h3>",
  955. "icon" => true,
  956. "type" => "info"
  957. );
  958. $of_options[] = array( "name" => "Consumer key",
  959. "desc" => "You need to Create your Twitter APP and <a href='https://dev.twitter.com/apps' target='_blank'>insert the ID</a>.",
  960. "id" => "consumerkey",
  961. "std" => "",
  962. "type" => "text");
  963. $of_options[] = array( "name" => "Consumer secret",
  964. "desc" => "",
  965. "id" => "consumersecret",
  966. "std" => "",
  967. "type" => "text");
  968. $of_options[] = array( "name" => "Access token",
  969. "desc" => "",
  970. "id" => "accesstoken",
  971. "std" => "",
  972. "type" => "text");
  973. $of_options[] = array( "name" => "Access token secret",
  974. "desc" => "",
  975. "id" => "accesstokensecret",
  976. "std" => "",
  977. "type" => "text");
  978.  
  979. // Translate option TAB
  980. $of_options[] = array( "name" => "Translate",
  981. "type" => "heading"
  982. );
  983. $of_options[] = array( "name" => "Translate text",
  984. "desc" => "",
  985. "id" => "translate_info",
  986. "std" => "<h3 style=\"margin: 3px;\">All of our theme additional translation text translate able here.</h3>",
  987. "icon" => true,
  988. "type" => "info"
  989. );
  990. $of_options[] = array( "name" => "Continue Reading",
  991. "desc" => "Continue Reading text on category page.",
  992. "id" => "translate_readmore",
  993. "std" => "Continue Reading",
  994. "type" => "text"
  995. );
  996. $of_options[] = array( "name" => "Project Description",
  997. "desc" => "Project Description text on portfolio single page.",
  998. "id" => "translate_projectdesc",
  999. "std" => "Project Description",
  1000. "type" => "text"
  1001. );
  1002. $of_options[] = array( "name" => "Live Preview",
  1003. "desc" => "Live Preview text on portfolio single page.",
  1004. "id" => "translate_livepreview",
  1005. "std" => "Live Preview",
  1006. "type" => "text"
  1007. );
  1008. $of_options[] = array( "name" => "Related Portfolio",
  1009. "desc" => "Related Portfolio text on portfolio single page.",
  1010. "id" => "translate_relatedportfolio",
  1011. "std" => "Related Portfolio",
  1012. "type" => "text"
  1013. );
  1014. $of_options[] = array( "name" => "Show All",
  1015. "desc" => "Change it to your custom translate.",
  1016. "id" => "portfolio_show_all",
  1017. "std" => "Show All",
  1018. "type" => "text"
  1019. );
  1020. $of_options[] = array( "name" => "Posts",
  1021. "desc" => "",
  1022. "id" => "translate_post",
  1023. "std" => "<h3 style=\"margin: 3px;\">Posts</h3>",
  1024. "icon" => true,
  1025. "type" => "info"
  1026. );
  1027. $of_options[] = array( "name" => "Posted on",
  1028. "desc" => "Change it to your custom translate.",
  1029. "id" => "pp_date",
  1030. "std" => "Posted on",
  1031. "type" => "text"
  1032. );
  1033. $of_options[] = array( "name" => "By",
  1034. "desc" => "Change it to your custom translate.",
  1035. "id" => "pp_author",
  1036. "std" => "By",
  1037. "type" => "text"
  1038. );
  1039. $of_options[] = array( "name" => "In",
  1040. "desc" => "Change it to your custom translate.",
  1041. "id" => "pp_cateogry",
  1042. "std" => "In",
  1043. "type" => "text"
  1044. );
  1045. $of_options[] = array( "name" => "Twitter section",
  1046. "desc" => "",
  1047. "id" => "translate_post",
  1048. "std" => "<h3 style=\"margin: 3px;\">Twitter and Twitter Carousel</h3>",
  1049. "icon" => true,
  1050. "type" => "info"
  1051. );
  1052. $of_options[] = array( "name" => "Follow Us",
  1053. "desc" => "Change it to your custom translate.",
  1054. "id" => "tw_car_follow",
  1055. "std" => "Follow Us",
  1056. "type" => "text"
  1057. );
  1058. $of_options[] = array( "name" => "Right now",
  1059. "desc" => "Change it to your custom translate.",
  1060. "id" => "tw_car_rn",
  1061. "std" => "right now",
  1062. "type" => "text"
  1063. );
  1064. $of_options[] = array( "name" => " Seconds ago",
  1065. "desc" => "Change it to your custom translate.",
  1066. "id" => "tw_car_sa",
  1067. "std" => " seconds ago",
  1068. "type" => "text"
  1069. );
  1070. $of_options[] = array( "name" => "About 1 minute ago",
  1071. "desc" => "Change it to your custom translate.",
  1072. "id" => "tw_car_aoma",
  1073. "std" => "about 1 minute ago",
  1074. "type" => "text"
  1075. );
  1076. $of_options[] = array( "name" => " Minutes ago",
  1077. "desc" => "Change it to your custom translate.",
  1078. "id" => "tw_car_ma",
  1079. "std" => " minutes ago",
  1080. "type" => "text"
  1081. );
  1082. $of_options[] = array( "name" => "About 1 hour ago",
  1083. "desc" => "Change it to your custom translate.",
  1084. "id" => "tw_car_aoha",
  1085. "std" => "about 1 hour ago",
  1086. "type" => "text"
  1087. );
  1088. $of_options[] = array( "name" => " Hours ago",
  1089. "desc" => "Change it to your custom translate.",
  1090. "id" => "tw_car_ha",
  1091. "std" => " hours ago",
  1092. "type" => "text"
  1093. );
  1094. $of_options[] = array( "name" => "Yesterday",
  1095. "desc" => "Change it to your custom translate.",
  1096. "id" => "tw_car_yes",
  1097. "std" => "yesterday",
  1098. "type" => "text"
  1099. );
  1100. $of_options[] = array( "name" => " Days ago",
  1101. "desc" => "Change it to your custom translate.",
  1102. "id" => "tw_car_da",
  1103. "std" => " days ago",
  1104. "type" => "text"
  1105. );
  1106. $of_options[] = array( "name" => " Over a year ago",
  1107. "desc" => "Change it to your custom translate.",
  1108. "id" => "tw_car_oaya",
  1109. "std" => "over a year ago",
  1110. "type" => "text"
  1111. );
  1112. $of_options[] = array( "name" => "Page Title section",
  1113. "desc" => "",
  1114. "id" => "translate_page_title",
  1115. "std" => "<h3 style=\"margin: 3px;\">Page Title section</h3>",
  1116. "icon" => true,
  1117. "type" => "info"
  1118. );
  1119. $of_options[] = array( "name" => "Category",
  1120. "desc" => "Change it to your custom translate.",
  1121. "id" => "pt_category",
  1122. "std" => "Category",
  1123. "type" => "text"
  1124. );
  1125. $of_options[] = array( "name" => "Portfolio",
  1126. "desc" => "Change it to your custom translate.",
  1127. "id" => "pt_portfolio",
  1128. "std" => "Portfolio",
  1129. "type" => "text"
  1130. );
  1131. $of_options[] = array( "name" => "Tag",
  1132. "desc" => "Change it to your custom translate.",
  1133. "id" => "pt_tag",
  1134. "std" => "Tag",
  1135. "type" => "text"
  1136. );
  1137. $of_options[] = array( "name" => "Nothing Found",
  1138. "desc" => "Change it to your custom translate.",
  1139. "id" => "pt_nothing_found",
  1140. "std" => "Nothing Found",
  1141. "type" => "text"
  1142. );
  1143. $of_options[] = array( "name" => "Author",
  1144. "desc" => "Change it to your custom translate.",
  1145. "id" => "pt_author",
  1146. "std" => "Author",
  1147. "type" => "text"
  1148. );
  1149. $of_options[] = array( "name" => "Daily Archives",
  1150. "desc" => "Change it to your custom translate.",
  1151. "id" => "pt_daily_arch",
  1152. "std" => "Daily Archives",
  1153. "type" => "text"
  1154. );
  1155. $of_options[] = array( "name" => "Monthly Archives",
  1156. "desc" => "Change it to your custom translate.",
  1157. "id" => "pt_monthly_arch",
  1158. "std" => "Monthly Archives",
  1159. "type" => "text"
  1160. );
  1161. $of_options[] = array( "name" => "Yearly Archives",
  1162. "desc" => "Change it to your custom translate.",
  1163. "id" => "pt_yearly_arch",
  1164. "std" => "Yearly Archives",
  1165. "type" => "text"
  1166. );
  1167. $of_options[] = array( "name" => "Blog Archives",
  1168. "desc" => "Change it to your custom translate.",
  1169. "id" => "pt_blog_arch",
  1170. "std" => "Blog Archives",
  1171. "type" => "text"
  1172. );
  1173. $of_options[] = array( "name" => "Search results for",
  1174. "desc" => "Change it to your custom translate.",
  1175. "id" => "pt_search_result",
  1176. "std" => "Search results for",
  1177. "type" => "text"
  1178. );
  1179. $of_options[] = array( "name" => "Breadcrump text",
  1180. "desc" => "",
  1181. "id" => "translate_breadcrump",
  1182. "std" => "<h3 style=\"margin: 3px;\">Breadcrump section</h3>",
  1183. "icon" => true,
  1184. "type" => "info"
  1185. );
  1186. $of_options[] = array( "name" => "Home",
  1187. "desc" => "Change it to your custom translate.",
  1188. "id" => "br_home",
  1189. "std" => "Home",
  1190. "type" => "text"
  1191. );
  1192. $of_options[] = array( "name" => "Archive by Category",
  1193. "desc" => "Change it to your custom translate.",
  1194. "id" => "br_category",
  1195. "std" => "Archive by Category",
  1196. "type" => "text"
  1197. );
  1198. $of_options[] = array( "name" => "Search Results for",
  1199. "desc" => "Change it to your custom translate.",
  1200. "id" => "br_search",
  1201. "std" => "Search Results for",
  1202. "type" => "text"
  1203. );
  1204. $of_options[] = array( "name" => "Posts Tagged",
  1205. "desc" => "Change it to your custom translate.",
  1206. "id" => "br_tag",
  1207. "std" => "Posts Tagged",
  1208. "type" => "text"
  1209. );
  1210. $of_options[] = array( "name" => "Articles Posted by",
  1211. "desc" => "Change it to your custom translate.",
  1212. "id" => "br_author",
  1213. "std" => "Articles Posted by",
  1214. "type" => "text"
  1215. );
  1216. $of_options[] = array( "name" => "Error 404",
  1217. "desc" => "Change it to your custom translate.",
  1218. "id" => "br_404",
  1219. "std" => "Error 404",
  1220. "type" => "text"
  1221. );
  1222.  
  1223.  
  1224. // Custom CSS TAB
  1225. $of_options[] = array( "name" => "Custom CSS",
  1226. "type" => "heading"
  1227. );
  1228. $of_options[] = array( "name" => "Custom CSS",
  1229. "desc" => "",
  1230. "id" => "custom_css_info",
  1231. "std" => "<h3 style=\"margin: 3px;\">Enter the Custom CSS of your custom Modify.</h3>",
  1232. "icon" => true,
  1233. "type" => "info"
  1234. );
  1235. $of_options[] = array( "name" => "Custom CSS",
  1236. "desc" => "Paste your own customized CSS code.",
  1237. "id" => "custom_css",
  1238. "std" => "",
  1239. "type" => "textarea"
  1240. );
  1241.  
  1242. // Backup Options
  1243. $of_options[] = array( "name" => "Backup Options",
  1244. "type" => "heading"
  1245. );
  1246.  
  1247. $of_options[] = array( "name" => "Backup and Restore Options",
  1248. "id" => "of_backup",
  1249. "std" => "",
  1250. "type" => "backup",
  1251. "desc" => 'You can use the two buttons below to backup your current options, and then restore it back at a later time. This is useful if you want to experiment on the options but would like to keep the old settings in case you need it back.',
  1252. );
  1253.  
  1254. $of_options[] = array( "name" => "Transfer Theme Options Data",
  1255. "id" => "of_transfer",
  1256. "std" => "",
  1257. "type" => "transfer",
  1258. "desc" => 'You can tranfer the saved options data between different installs by copying the text inside the text box. To import data from another install, replace the data in the text box with the one from another install and click "Import Options".',
  1259. );
  1260. }//End function: of_options()
  1261. }//End chack if function exists: of_options()
  1262. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement