PageRenderTime 73ms CodeModel.GetById 28ms RepoModel.GetById 0ms app.codeStats 1ms

/wp-content/themes/k2/include/goodlayers-option.php

https://bitbucket.org/summitds/bloomsburgpa.org
PHP | 1626 lines | 1313 code | 267 blank | 46 comment | 46 complexity | a2306225cad0ce5371403092c4d3b70a MD5 | raw file
Possible License(s): GPL-2.0, AGPL-1.0, BSD-3-Clause, GPL-3.0, LGPL-2.1
  1. <?php
  2. /*
  3. * Summit Design Studio Option File
  4. * ---------------------------------------------------------------------
  5. * @version 1.0
  6. * @author Summit Design Studio
  7. * @link http://summitdesignstudio.com
  8. * @copyright Copyright (c) Summit Design Studio
  9. * ---------------------------------------------------------------------
  10. * This file contains the panel elements and create the
  11. * panel to the back-end of the framework
  12. * ---------------------------------------------------------------------
  13. */
  14. // goodlayers panel navigation elements
  15. //list($collection1, $i1) = get_patterns($folder = 'patterns_vol1', $i = 16);
  16. //list($collection2, $i2) = get_patterns($folder = 'patterns_vol2', $i1);
  17. //list($collection3, $i3) = get_patterns($folder = 'patterns_vol3', $i2);
  18. list($collection, $i4) = get_patterns($folder = 'misc', 166);
  19. $goodlayers_menu = array(
  20. __('General', 'gdl_back_office') => array(
  21. __('Page Style', 'gdl_back_office')=>'gdl_panel_page_style',
  22. __('Sidebar', 'gdl_back_office')=>'gdl_panel_sidebar',
  23. __('Footer Style', 'gdl_back_office')=>'gdl_panel_footer_style',
  24. __('Google Analytics', 'gdl_back_office')=>'gdl_panel_google_analytics',
  25. __('Favicon', 'gdl_back_office')=>'gdl_panel_favicon'),
  26. __('Font Style', 'gdl_back_office') => array(
  27. __('Font Size', 'gdl_back_office')=>'gdl_panel_font_size',
  28. __('Font Family', 'gdl_back_office')=>'gdl_panel_font',
  29. __('Upload Font', 'gdl_back_office')=>'gdl_panel_upload_font'),
  30. __('Overall Elements', 'gdl_back_office') => array(
  31. __('Logo', 'gdl_back_office')=>'gdl_panel_logo',
  32. __('Top Navigation', 'gdl_back_office')=>'gdl_panel_top_navigation',
  33. __('Background Style', 'gdl_back_office')=>'gdl_panel_background',
  34. __('Top Right Area', 'gdl_back_office')=>'gdl_panel_top_right_area',
  35. __('Social Network', 'gdl_back_office')=>'gdl_panel_social_network',
  36. __('Social Shares', 'gdl_back_office')=>'gdl_panel_social_shares',
  37. __('Copyright Area', 'gdl_back_office')=>'gdl_panel_copyright_area'),
  38. //__('Dummy Data', 'gdl_back_office')=>'gdl_panel_dummy_data' ),
  39. __('Elements Color', 'gdl_back_office') => array(
  40. __('Navigation', 'gdl_back_office')=>'gdl_panel_navigation',
  41. __('Top Search', 'gdl_back_office')=>'gdl_panel_top_search',
  42. __('Body', 'gdl_back_office')=>'gdl_panel_body',
  43. __('Footer', 'gdl_back_office')=>'gdl_panel_footer',
  44. __('Slider', 'gdl_back_office')=>'gdl_panel_slider',
  45. __('Blog / Portfolio', 'gdl_back_office')=>'gdl_panel_blog_port',
  46. __('Contact Form/Comments', 'gdl_back_office')=>'gdl_panel_contact_form',
  47. __('Stunning Text', 'gdl_back_office')=>'gdl_panel_stunning_text',
  48. __('Additional Elements', 'gdl_back_office')=>'gdl_panel_additional_elements',
  49. __('Price Item', 'gdl_back_office')=>'gdl_panel_price_item',
  50. __('Load Default Color', 'gdl_back_office')=>'gdl_panel_load_default_color'),
  51. __('Translator','gdl_back_office')=> array(
  52. __('Enable Admin Translator', 'gdl_back_office')=>'gdl_panel_enable_admin_translator',
  53. __('Blog/Portfolio', 'gdl_back_office')=>'gdl_panel_blog_port_translator',
  54. __('Contact Form', 'gdl_back_office')=>'gdl_panel_contact_form_translator',
  55. __('Contact Widget', 'gdl_back_office')=>'gdl_panel_contact_widget_translator',
  56. __('Additional Elements', 'gdl_back_office')=>'gdl_panel_additional_elements_translator',
  57. ),
  58. __('Slider Setting', 'gdl_back_office') => array(
  59. __('Nivo Slider', 'gdl_back_office')=>'gdl_panel_nivo_slider',
  60. __('Flex Slider', 'gdl_back_office')=>'gdl_panel_flex_slider',
  61. __('Anything Slider', 'gdl_back_office')=>'gdl_panel_anything_slider')
  62. );
  63. // goodlayers panel elements ( the head of array links to the menu of navigation elements )
  64. $goodlayers_element = array(
  65. //General
  66. 'gdl_panel_page_style' => array(
  67. __('ENABLE RESPONSIVE', 'gdl_back_office')=>array(
  68. 'type'=>'radioenabled',
  69. 'name'=>THEME_SHORT_NAME.'_enable_responsive',
  70. 'default'=>'disable',
  71. 'description'=>' *** Flex slider is only slider that supports the responsive mode.'
  72. ),
  73. __('USE PORTFOLIO PAGE AS', 'gdl_back_office')=>array(
  74. 'type'=>'combobox',
  75. 'name'=>THEME_SHORT_NAME.'_use_portfolio_as',
  76. 'options'=>array('1'=>'portfolio style', '2'=>'blog style'),
  77. 'description'=>'You can choose the portfolio page style to be the portfolio style or the same as blog style.'),
  78. __('CHANGE PORTFOLIO SLUG', 'gdl_back_office')=>array(
  79. 'type'=>'inputtext',
  80. 'name'=>THEME_SHORT_NAME.'_gdl_portfolio_slug',
  81. 'default'=>'portfolio',
  82. 'description'=>'Change/Rewrite the permalink when you use the permalink type as %postname%.'
  83. ),
  84. __('SEARCH/ARCHIVE SIDEBAR', 'gdl_back_office')=>array(
  85. 'type'=>'radioimage',
  86. 'name'=>THEME_SHORT_NAME.'_search_archive_sidebar',
  87. 'default'=>'no-sidebar',
  88. 'options'=>array(
  89. '1'=>array('value'=>'right-sidebar','default'=>'selected','image'=>'/include/images/right-sidebar-120.png'),
  90. '2'=>array('value'=>'left-sidebar','image'=>'/include/images/left-sidebar-120.png'),
  91. '3'=>array('value'=>'both-sidebar','image'=>'/include/images/both-sidebar-120.png'),
  92. '4'=>array('value'=>'no-sidebar','image'=>'/include/images/no-sidebar-120.png'))),
  93. __('SEARCH/ARCHIVE EXCERPT NUM', 'gdl_back_office')=>array(
  94. 'type'=>'inputtext',
  95. 'name'=>THEME_SHORT_NAME.'_search_archive_num_excerpt',
  96. 'default'=>'285',
  97. 'description'=>'Input the number of character you want to cut from the content to be the excerpt of search and archive page.'),
  98. __('DEFAULT POST SIDEBAR', 'gdl_back_office')=>array(
  99. 'type'=>'radioimage',
  100. 'name'=>THEME_SHORT_NAME.'_default_post_sidebar',
  101. 'default'=>'post-no-sidebar',
  102. 'options'=>array(
  103. '1'=>array('value'=>'post-right-sidebar','default'=>'selected','image'=>'/include/images/right-sidebar-120.png'),
  104. '2'=>array('value'=>'post-left-sidebar','image'=>'/include/images/left-sidebar-120.png'),
  105. '3'=>array('value'=>'post-both-sidebar','image'=>'/include/images/both-sidebar-120.png'),
  106. '4'=>array('value'=>'post-no-sidebar','image'=>'/include/images/no-sidebar-120.png'))),
  107. __('DEFAULT POST LEFT SIDEBAR', 'gdl_back_office')=>array(
  108. 'type'=>'combobox',
  109. 'name'=>THEME_SHORT_NAME.'_default_post_left_sidebar',
  110. 'options'=> get_sidebar_name(),
  111. 'body'=>'gdl-default-post-left-sidebar'),
  112. __('DEFAULT POST RIGHT SIDEBAR', 'gdl_back_office')=>array(
  113. 'type'=>'combobox',
  114. 'name'=>THEME_SHORT_NAME.'_default_post_right_sidebar',
  115. 'options'=> get_sidebar_name(),
  116. 'body'=>'gdl-default-post-right-sidebar'),
  117. __('DEFAULT PAGE SIDEBAR', 'gdl_back_office')=>array(
  118. 'type'=>'radioimage',
  119. 'name'=>THEME_SHORT_NAME.'_default_page_sidebar',
  120. 'default'=>'page-no-sidebar',
  121. 'options'=>array(
  122. '1'=>array('value'=>'page-right-sidebar','default'=>'selected','image'=>'/include/images/right-sidebar-120.png'),
  123. '2'=>array('value'=>'page-left-sidebar','image'=>'/include/images/left-sidebar-120.png'),
  124. '3'=>array('value'=>'page-both-sidebar','image'=>'/include/images/both-sidebar-120.png'),
  125. '4'=>array('value'=>'page-no-sidebar','image'=>'/include/images/no-sidebar-120.png'))),
  126. __('DEFAULT PAGE LEFT SIDEBAR', 'gdl_back_office')=>array(
  127. 'type'=>'combobox',
  128. 'name'=>THEME_SHORT_NAME.'_default_page_left_sidebar',
  129. 'options'=> get_sidebar_name(),
  130. 'body'=>'gdl-default-page-left-sidebar'),
  131. __('DEFAULT PAGE RIGHT SIDEBAR', 'gdl_back_office')=>array(
  132. 'type'=>'combobox',
  133. 'name'=>THEME_SHORT_NAME.'_default_page_right_sidebar',
  134. 'options'=> get_sidebar_name(),
  135. 'body'=>'gdl-default-page-right-sidebar'),
  136. ),
  137. 'gdl_panel_sidebar' => array(
  138. __('CREATE SIDEBAR', 'gdl_back_office')=>array('type'=>'sidebar','name'=>THEME_SHORT_NAME.'_create_sidebar')
  139. ),
  140. 'gdl_panel_footer_style' => array(
  141. __('CHOOSE FOOTER STYLE', 'gdl_back_office')=>array(
  142. 'type'=>'radioimage',
  143. 'name'=>THEME_SHORT_NAME.'_footer_style',
  144. 'default'=>'footer-style1',
  145. 'options'=>array(
  146. '1'=>array('value'=>'footer-style1','image'=>'/include/images/footer-style1.png'),
  147. '2'=>array('value'=>'footer-style2','image'=>'/include/images/footer-style2.png'),
  148. '3'=>array('value'=>'footer-style3','image'=>'/include/images/footer-style3.png'),
  149. '4'=>array('value'=>'footer-style4','image'=>'/include/images/footer-style4.png'),
  150. '5'=>array('value'=>'footer-style5','image'=>'/include/images/footer-style5.png'),
  151. '6'=>array('value'=>'footer-style6','image'=>'/include/images/footer-style6.png'),
  152. )),
  153. __('SHOW FOOTER', 'gdl_back_office')=>array('type'=>'radioenabled', 'name'=> THEME_SHORT_NAME.'_show_footer'),
  154. __('SHOW COPYRIGHT', 'gdl_back_office')=>array('type'=>'radioenabled', 'name'=> THEME_SHORT_NAME.'_show_copyright'),
  155. ),
  156. 'gdl_panel_google_analytics' => array(
  157. __('ENABLE GOOGLE ANALYTICS', 'gdl_back_office')=>array('type'=>'radioenabled', 'name'=> THEME_SHORT_NAME.'_enable_analytics', 'default'=>'disable'),
  158. __('GOOGLE ANALYTICS CODE', 'gdl_back_office')=>array('type'=>'textarea', 'name'=> THEME_SHORT_NAME.'_analytics_code',
  159. 'description'=>'Place the code you get from google here. This should be something like <br>' .
  160. htmlspecialchars('<script type="text/javascript">') . '<br> ... <br>' .
  161. htmlspecialchars('</script>'))
  162. ),
  163. 'gdl_panel_favicon' => array(
  164. __('ENABLE FAVICON', 'gdl_back_office')=>array('type'=>'radioenabled','name'=> THEME_SHORT_NAME.'_enable_favicon', 'default'=>'disable'),
  165. __('UPLOAD FAVICON ICON', 'gdl_back_office')=>array('type'=>'upload','name'=> THEME_SHORT_NAME.'_favicon_image'),
  166. ),
  167. //Theme Style
  168. 'gdl_panel_font_size' => array(
  169. __('H1 SIZE', 'gdl_back_office')=>array('type'=>'sliderbar','name'=>THEME_SHORT_NAME.'_h1_size','default'=>'30'),
  170. __('H2 SIZE', 'gdl_back_office')=>array('type'=>'sliderbar','name'=>THEME_SHORT_NAME.'_h2_size','default'=>'25'),
  171. __('H3 SIZE', 'gdl_back_office')=>array('type'=>'sliderbar','name'=>THEME_SHORT_NAME.'_h3_size','default'=>'20'),
  172. __('H4 SIZE', 'gdl_back_office')=>array('type'=>'sliderbar','name'=>THEME_SHORT_NAME.'_h4_size','default'=>'18'),
  173. __('H5 SIZE', 'gdl_back_office')=>array('type'=>'sliderbar','name'=>THEME_SHORT_NAME.'_h5_size','default'=>'16'),
  174. __('H6 SIZE', 'gdl_back_office')=>array('type'=>'sliderbar','name'=>THEME_SHORT_NAME.'_h6_size','default'=>'15')
  175. ),
  176. 'gdl_panel_font' => array(
  177. __('HEADER FONT', 'gdl_back_office')=>array('type'=>'font-combobox','name'=>THEME_SHORT_NAME.'_header_font', 'default'=>'- Droid Serif',
  178. 'description'=>'Choose the header font of this theme. This font will be used in all title and header elements including the slider title.'),
  179. __('CONTENT FONT', 'gdl_back_office')=>array('type'=>'font-combobox','name'=>THEME_SHORT_NAME.'_content_font',
  180. 'description'=>'Choose the font to use with content. We are highly NOT recommended to use CUFON as a content font.'),
  181. __('STUNNING TEXT FONT', 'gdl_back_office')=>array('type'=>'font-combobox','name'=>THEME_SHORT_NAME.'_stunning_text_font', 'default'=>'- Museo Sans',
  182. 'description'=>'Choose the font to use with stunning text title.')
  183. ),
  184. 'gdl_panel_upload_font' => array(
  185. __('UPLOAD FONT', 'gdl_back_office')=>array(
  186. 'type'=>'uploadfont',
  187. 'name'=>THEME_SHORT_NAME.'_upload_font',
  188. 'file'=>THEME_SHORT_NAME.'_upload_font_file')
  189. ),
  190. //Overall Elements
  191. 'gdl_panel_logo' => array(
  192. __('LOGO', 'gdl_back_office')=>array('type'=>'upload','name'=>THEME_SHORT_NAME.'_logo'),
  193. __('LOGO TOP MARGIN', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_logo_top_margin','default'=>'35',
  194. 'description'=>'Input number to set the top space of the logo. The minimum value is 1.'),
  195. __('LOGO LEFT MARGIN', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_logo_left_margin','default'=>'0'),
  196. __('LOGO BOTTOM MARGIN', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_logo_bottom_margin','default'=>'26',
  197. 'description'=>'Input number to set the bottom space of the logo. The minimum value is 1.')
  198. ),
  199. 'gdl_panel_top_navigation' => array(
  200. __('ENABLE TOP NAVIGATION', 'gdl_back_office')=>array('type'=>'radioenabled','name'=>THEME_SHORT_NAME.'_enable_top_navigation',
  201. 'description'=>'Top navigation is a bar over the logo. You can create a link and caption as you want. '),
  202. __('LEFT TOP NAVIGATION', 'gdl_back_office')=>array('type'=>'radioenabled','name'=>THEME_SHORT_NAME.'_left_top_navigation',
  203. 'description'=>'Top navigation menu on the left side. Top navigation text on the right side. '),
  204. __('ENABLE TOP SEARCH', 'gdl_back_office')=>array('type'=>'radioenabled','name'=>THEME_SHORT_NAME.'_enable_top_search',
  205. 'description'=>'Toggle to enable/disable search box at the right side of main navigation.'),
  206. __('TOP NAVIGATION RIGHT TEXT', 'gdl_back_office')=>array('type'=>'textarea','name'=>THEME_SHORT_NAME.'_top_navigation_right_text'),
  207. ),
  208. 'gdl_panel_background' => array(
  209. __('BACKGROUND TYPE', 'gdl_back_office')=>array('type'=>'combobox','name'=>THEME_SHORT_NAME.'_background_style','options'=>array('0'=>'Pattern','1'=>'Custom Image','2'=>'None'),
  210. 'description'=>'You can choose the background you want between our pre-provided pettern and your custom image.'),
  211. __('PATTERN COLLECTION', 'gdl_back_office')=>array('type'=>'combobox','name'=>THEME_SHORT_NAME.'_background_pattern_collection','options'=>array('0'=>'K2 Default Collection','1'=>'Subtle Patterns Volume 1','2'=>'Subtle Patterns Volume 2', '3'=>'Subtle Patterns Volume 3', '4'=>'Miscellaneous'),
  212. 'description'=>'Select a pattern collection.'),
  213. __('K2 Default Collection','gdl_back_office')=>array(
  214. 'type'=>'radioimage',
  215. 'name'=>THEME_SHORT_NAME.'_background_pattern',
  216. 'class'=>THEME_SHORT_NAME.'_background_pattern_div',
  217. 'default'=>'',
  218. 'options'=>array(
  219. '1'=>array('value'=>'1','image'=>'/include/images/pattern/pattern-1.png'),
  220. '2'=>array('value'=>'2','image'=>'/include/images/pattern/pattern-2.png'),
  221. '3'=>array('value'=>'3','image'=>'/include/images/pattern/pattern-3.png'),
  222. '4'=>array('value'=>'4','image'=>'/include/images/pattern/pattern-4.png'),
  223. '5'=>array('value'=>'5','image'=>'/include/images/pattern/pattern-5.png'),
  224. '6'=>array('value'=>'6','image'=>'/include/images/pattern/pattern-6.png'),
  225. '7'=>array('value'=>'7','image'=>'/include/images/pattern/pattern-7.png'),
  226. '8'=>array('value'=>'8','image'=>'/include/images/pattern/pattern-8.png'),
  227. '9'=>array('value'=>'9','image'=>'/include/images/pattern/pattern-9.png'),
  228. '10'=>array('value'=>'10','image'=>'/include/images/pattern/pattern-10.png'),
  229. '11'=>array('value'=>'11','image'=>'/include/images/pattern/pattern-11.png'),
  230. '12'=>array('value'=>'12','image'=>'/include/images/pattern/pattern-12.png'),
  231. '13'=>array('value'=>'13','image'=>'/include/images/pattern/pattern-13.png'),
  232. '14'=>array('value'=>'14','image'=>'/include/images/pattern/pattern-14.png'),
  233. '15'=>array('value'=>'15','image'=>'/include/images/pattern/pattern-15.png'),
  234. )
  235. ),
  236. __('Subtle Patterns Volume 1','gdl_back_office')=>array(
  237. 'type'=>'radioimage',
  238. 'name'=>THEME_SHORT_NAME.'_background_pattern',
  239. 'class'=>THEME_SHORT_NAME.'_background_pattern_div2',
  240. 'default'=>'',
  241. 'options'=>array(
  242. '16'=>array('value'=>'16','image'=>'/patterns/patterns_vol1/45degreee_fabric.png'),
  243. '17'=>array('value'=>'17','image'=>'/patterns/patterns_vol1/60degree_gray.png'),
  244. '18'=>array('value'=>'18','image'=>'/patterns/patterns_vol1/always_grey.png'),
  245. '19'=>array('value'=>'19','image'=>'/patterns/patterns_vol1/beige_paper.png'),
  246. '20'=>array('value'=>'20','image'=>'/patterns/patterns_vol1/black-Linen.png'),
  247. '21'=>array('value'=>'21','image'=>'/patterns/patterns_vol1/black_denim.png'),
  248. '22'=>array('value'=>'22','image'=>'/patterns/patterns_vol1/black_paper.png'),
  249. '23'=>array('value'=>'23','image'=>'/patterns/patterns_vol1/blackmamba.png'),
  250. '24'=>array('value'=>'24','image'=>'/patterns/patterns_vol1/bright_squares.png'),
  251. '25'=>array('value'=>'25','image'=>'/patterns/patterns_vol1/brushed_alu.png'),
  252. '26'=>array('value'=>'26','image'=>'/patterns/patterns_vol1/brushed_alu_dark.png'),
  253. '27'=>array('value'=>'27','image'=>'/patterns/patterns_vol1/carbon_fibre.png'),
  254. '28'=>array('value'=>'28','image'=>'/patterns/patterns_vol1/concrete_wall.png'),
  255. '29'=>array('value'=>'29','image'=>'/patterns/patterns_vol1/concrete_wall_2.png'),
  256. '30'=>array('value'=>'30','image'=>'/patterns/patterns_vol1/concrete_wall_3.png'),
  257. '31'=>array('value'=>'31','image'=>'/patterns/patterns_vol1/cork_1.png'),
  258. '32'=>array('value'=>'32','image'=>'/patterns/patterns_vol1/crossed_stripes.png'),
  259. '33'=>array('value'=>'33','image'=>'/patterns/patterns_vol1/dark_stripes.png'),
  260. '34'=>array('value'=>'34','image'=>'/patterns/patterns_vol1/darth_stripe.png'),
  261. '35'=>array('value'=>'35','image'=>'/patterns/patterns_vol1/double_lined.png'),
  262. '36'=>array('value'=>'36','image'=>'/patterns/patterns_vol1/exclusive_paper.png'),
  263. '37'=>array('value'=>'37','image'=>'/patterns/patterns_vol1/fabric_1.png'),
  264. '38'=>array('value'=>'38','image'=>'/patterns/patterns_vol1/gray_sand.png'),
  265. '39'=>array('value'=>'39','image'=>'/patterns/patterns_vol1/green-fibers.png'),
  266. '40'=>array('value'=>'40','image'=>'/patterns/patterns_vol1/green_gobbler.png'),
  267. '41'=>array('value'=>'41','image'=>'/patterns/patterns_vol1/grunge_wall.png'),
  268. '42'=>array('value'=>'42','image'=>'/patterns/patterns_vol1/handmadepaper.png'),
  269. '43'=>array('value'=>'43','image'=>'/patterns/patterns_vol1/leather_1.png'),
  270. '44'=>array('value'=>'44','image'=>'/patterns/patterns_vol1/light_honeycomb.png'),
  271. '45'=>array('value'=>'45','image'=>'/patterns/patterns_vol1/little_pluses.png'),
  272. '46'=>array('value'=>'46','image'=>'/patterns/patterns_vol1/micro_carbon.png'),
  273. '47'=>array('value'=>'47','image'=>'/patterns/patterns_vol1/noisy.png'),
  274. '48'=>array('value'=>'48','image'=>'/patterns/patterns_vol1/old_mathematics.png'),
  275. '49'=>array('value'=>'49','image'=>'/patterns/patterns_vol1/padded.png'),
  276. '50'=>array('value'=>'50','image'=>'/patterns/patterns_vol1/paper_1.png'),
  277. '51'=>array('value'=>'51','image'=>'/patterns/patterns_vol1/paper_2.png'),
  278. '52'=>array('value'=>'52','image'=>'/patterns/patterns_vol1/paper_3.png'),
  279. '53'=>array('value'=>'53','image'=>'/patterns/patterns_vol1/pinstripe.png'),
  280. '54'=>array('value'=>'54','image'=>'/patterns/patterns_vol1/random_grey_variations.png'),
  281. '55'=>array('value'=>'55','image'=>'/patterns/patterns_vol1/rockywall.png'),
  282. '56'=>array('value'=>'56','image'=>'/patterns/patterns_vol1/smooth_wall.png'),
  283. '57'=>array('value'=>'57','image'=>'/patterns/patterns_vol1/soft_wallpaper.png'),
  284. '58'=>array('value'=>'58','image'=>'/patterns/patterns_vol1/subtle_freckles.png'),
  285. '59'=>array('value'=>'59','image'=>'/patterns/patterns_vol1/subtle_orange_emboss.png'),
  286. '60'=>array('value'=>'60','image'=>'/patterns/patterns_vol1/tactile_noise.png'),
  287. '61'=>array('value'=>'61','image'=>'/patterns/patterns_vol1/vichy.png'),
  288. '62'=>array('value'=>'62','image'=>'/patterns/patterns_vol1/wavecut.png'),
  289. '63'=>array('value'=>'63','image'=>'/patterns/patterns_vol1/white_carbon.png'),
  290. '64'=>array('value'=>'64','image'=>'/patterns/patterns_vol1/white_sand.png'),
  291. '65'=>array('value'=>'65','image'=>'/patterns/patterns_vol1/wood_1.png'),
  292. )
  293. ),
  294. __('Subtle Patterns Volume 2','gdl_back_office')=>array(
  295. 'type'=>'radioimage',
  296. 'name'=>THEME_SHORT_NAME.'_background_pattern',
  297. 'class'=>THEME_SHORT_NAME.'_background_pattern_div3',
  298. 'default'=>'',
  299. 'options'=>array(
  300. '66'=>array('value'=>'66','image'=>'/patterns/patterns_vol2/bgnoise_lg.png'),
  301. '67'=>array('value'=>'67','image'=>'/patterns/patterns_vol2/black_linen_v2.png'),
  302. '68'=>array('value'=>'68','image'=>'/patterns/patterns_vol2/black_scales.png'),
  303. '69'=>array('value'=>'69','image'=>'/patterns/patterns_vol2/carbon_fibre_v2.png'),
  304. '70'=>array('value'=>'70','image'=>'/patterns/patterns_vol2/cardboard.png'),
  305. '71'=>array('value'=>'71','image'=>'/patterns/patterns_vol2/circles.png'),
  306. '72'=>array('value'=>'72','image'=>'/patterns/patterns_vol2/crissXcross.png'),
  307. '73'=>array('value'=>'73','image'=>'/patterns/patterns_vol2/crosses.png'),
  308. '74'=>array('value'=>'74','image'=>'/patterns/patterns_vol2/cubes.png'),
  309. '75'=>array('value'=>'75','image'=>'/patterns/patterns_vol2/dark_brick_wall.png'),
  310. '76'=>array('value'=>'76','image'=>'/patterns/patterns_vol2/dark_circles.png'),
  311. '77'=>array('value'=>'77','image'=>'/patterns/patterns_vol2/dark_leather.png'),
  312. '78'=>array('value'=>'78','image'=>'/patterns/patterns_vol2/dark_mosaic.png'),
  313. '79'=>array('value'=>'79','image'=>'/patterns/patterns_vol2/diagonal-noise.png'),
  314. '80'=>array('value'=>'80','image'=>'/patterns/patterns_vol2/diamonds.png'),
  315. '81'=>array('value'=>'81','image'=>'/patterns/patterns_vol2/elastoplast.png'),
  316. '82'=>array('value'=>'82','image'=>'/patterns/patterns_vol2/elegant_grid.png'),
  317. '83'=>array('value'=>'83','image'=>'/patterns/patterns_vol2/fancy_deboss.png'),
  318. '84'=>array('value'=>'84','image'=>'/patterns/patterns_vol2/felt.png'),
  319. '85'=>array('value'=>'85','image'=>'/patterns/patterns_vol2/flowers.png'),
  320. '86'=>array('value'=>'86','image'=>'/patterns/patterns_vol2/gold_scale.png'),
  321. '87'=>array('value'=>'87','image'=>'/patterns/patterns_vol2/green_dust_scratch.png'),
  322. '88'=>array('value'=>'88','image'=>'/patterns/patterns_vol2/inflicted.png'),
  323. '89'=>array('value'=>'89','image'=>'/patterns/patterns_vol2/light_alu.png'),
  324. '90'=>array('value'=>'90','image'=>'/patterns/patterns_vol2/light_checkered_tiles.png'),
  325. '91'=>array('value'=>'91','image'=>'/patterns/patterns_vol2/littleknobs.png'),
  326. '92'=>array('value'=>'92','image'=>'/patterns/patterns_vol2/mirrored_squares.png'),
  327. '93'=>array('value'=>'93','image'=>'/patterns/patterns_vol2/noise_pattern_with_crosslines.png'),
  328. '94'=>array('value'=>'94','image'=>'/patterns/patterns_vol2/paven.png'),
  329. '95'=>array('value'=>'95','image'=>'/patterns/patterns_vol2/polaroid.png'),
  330. '96'=>array('value'=>'96','image'=>'/patterns/patterns_vol2/pool_table.png'),
  331. '97'=>array('value'=>'97','image'=>'/patterns/patterns_vol2/project_papper.png'),
  332. '98'=>array('value'=>'98','image'=>'/patterns/patterns_vol2/real_cf.png'),
  333. '99'=>array('value'=>'99','image'=>'/patterns/patterns_vol2/rip_jobs.png'),
  334. '100'=>array('value'=>'100','image'=>'/patterns/patterns_vol2/robots.png'),
  335. '101'=>array('value'=>'101','image'=>'/patterns/patterns_vol2/roughcloth.png'),
  336. '102'=>array('value'=>'102','image'=>'/patterns/patterns_vol2/rubber_grip.png'),
  337. '103'=>array('value'=>'103','image'=>'/patterns/patterns_vol2/silver_scales.png'),
  338. '104'=>array('value'=>'104','image'=>'/patterns/patterns_vol2/small_tiles.png'),
  339. '105'=>array('value'=>'105','image'=>'/patterns/patterns_vol2/soft_circle_scales.png'),
  340. '106'=>array('value'=>'106','image'=>'/patterns/patterns_vol2/square_bg.png'),
  341. '107'=>array('value'=>'107','image'=>'/patterns/patterns_vol2/squares.png'),
  342. '108'=>array('value'=>'108','image'=>'/patterns/patterns_vol2/stucco.png'),
  343. '109'=>array('value'=>'109','image'=>'/patterns/patterns_vol2/triangles.png'),
  344. '110'=>array('value'=>'110','image'=>'/patterns/patterns_vol2/type.png'),
  345. '111'=>array('value'=>'111','image'=>'/patterns/patterns_vol2/washi.png'),
  346. '112'=>array('value'=>'112','image'=>'/patterns/patterns_vol2/white_texture.png'),
  347. '113'=>array('value'=>'113','image'=>'/patterns/patterns_vol2/whitey.png'),
  348. '114'=>array('value'=>'114','image'=>'/patterns/patterns_vol2/woven.png'),
  349. '115'=>array('value'=>'115','image'=>'/patterns/patterns_vol2/xv.png'),
  350. )
  351. ),
  352. __('Subtle Patterns Volume 3','gdl_back_office')=>array(
  353. 'type'=>'radioimage',
  354. 'name'=>THEME_SHORT_NAME.'_background_pattern',
  355. 'class'=>THEME_SHORT_NAME.'_background_pattern_div4',
  356. 'default'=>'',
  357. 'options'=>array(
  358. '116'=>array('value'=>'116','image'=>'/patterns/patterns_vol3/batthern.png'),
  359. '117'=>array('value'=>'117','image'=>'/patterns/patterns_vol3/black_thread.png'),
  360. '118'=>array('value'=>'118','image'=>'/patterns/patterns_vol3/broken_noise.png'),
  361. '119'=>array('value'=>'119','image'=>'/patterns/patterns_vol3/candyhole.png'),
  362. '120'=>array('value'=>'120','image'=>'/patterns/patterns_vol3/carbon_fibre_big.png'),
  363. '121'=>array('value'=>'121','image'=>'/patterns/patterns_vol3/checkered_pattern.png'),
  364. '122'=>array('value'=>'122','image'=>'/patterns/patterns_vol3/classy_fabric.png'),
  365. '123'=>array('value'=>'123','image'=>'/patterns/patterns_vol3/connect.png'),
  366. '124'=>array('value'=>'124','image'=>'/patterns/patterns_vol3/dark_matter.png'),
  367. '125'=>array('value'=>'125','image'=>'/patterns/patterns_vol3/dark_wood.png'),
  368. '126'=>array('value'=>'126','image'=>'/patterns/patterns_vol3/darkdenim3.png'),
  369. '127'=>array('value'=>'127','image'=>'/patterns/patterns_vol3/denim.png'),
  370. '128'=>array('value'=>'128','image'=>'/patterns/patterns_vol3/diagmonds.png'),
  371. '129'=>array('value'=>'129','image'=>'/patterns/patterns_vol3/dvsup.png'),
  372. '130'=>array('value'=>'130','image'=>'/patterns/patterns_vol3/fabric_plaid.png'),
  373. '131'=>array('value'=>'131','image'=>'/patterns/patterns_vol3/fake_brick.png'),
  374. '132'=>array('value'=>'132','image'=>'/patterns/patterns_vol3/foggy_birds.png'),
  375. '133'=>array('value'=>'133','image'=>'/patterns/patterns_vol3/foil.png'),
  376. '134'=>array('value'=>'134','image'=>'/patterns/patterns_vol3/graphy.png'),
  377. '135'=>array('value'=>'135','image'=>'/patterns/patterns_vol3/gridme.png'),
  378. '136'=>array('value'=>'136','image'=>'/patterns/patterns_vol3/grilled.png'),
  379. '137'=>array('value'=>'137','image'=>'/patterns/patterns_vol3/groovepaper.png'),
  380. '138'=>array('value'=>'138','image'=>'/patterns/patterns_vol3/gun_metal.png'),
  381. '139'=>array('value'=>'139','image'=>'/patterns/patterns_vol3/hixs_pattern_evolution.png'),
  382. '140'=>array('value'=>'140','image'=>'/patterns/patterns_vol3/irongrip.png'),
  383. '141'=>array('value'=>'141','image'=>'/patterns/patterns_vol3/knitted-netting.png'),
  384. '142'=>array('value'=>'142','image'=>'/patterns/patterns_vol3/light_grey_floral_motif.png'),
  385. '143'=>array('value'=>'143','image'=>'/patterns/patterns_vol3/lined_paper.png'),
  386. '144'=>array('value'=>'144','image'=>'/patterns/patterns_vol3/merely_cubed.png'),
  387. '145'=>array('value'=>'145','image'=>'/patterns/patterns_vol3/nami.png'),
  388. '146'=>array('value'=>'146','image'=>'/patterns/patterns_vol3/old_wall.png'),
  389. '147'=>array('value'=>'147','image'=>'/patterns/patterns_vol3/pineapplecut.png'),
  390. '148'=>array('value'=>'148','image'=>'/patterns/patterns_vol3/plaid.png'),
  391. '149'=>array('value'=>'149','image'=>'/patterns/patterns_vol3/polonez_car.png'),
  392. '150'=>array('value'=>'150','image'=>'/patterns/patterns_vol3/px_by_Gre3g.png'),
  393. '151'=>array('value'=>'151','image'=>'/patterns/patterns_vol3/ravenna.png'),
  394. '152'=>array('value'=>'152','image'=>'/patterns/patterns_vol3/ricepaper.png'),
  395. '153'=>array('value'=>'153','image'=>'/patterns/patterns_vol3/ricepaper2.png'),
  396. '154'=>array('value'=>'154','image'=>'/patterns/patterns_vol3/small-crackle-bright.png'),
  397. '155'=>array('value'=>'155','image'=>'/patterns/patterns_vol3/soft_pad.png'),
  398. '156'=>array('value'=>'156','image'=>'/patterns/patterns_vol3/starring.png'),
  399. '157'=>array('value'=>'157','image'=>'/patterns/patterns_vol3/struckaxiom.png'),
  400. '158'=>array('value'=>'158','image'=>'/patterns/patterns_vol3/texturetastic_gray.png'),
  401. '159'=>array('value'=>'159','image'=>'/patterns/patterns_vol3/vertical_cloth.png'),
  402. '160'=>array('value'=>'160','image'=>'/patterns/patterns_vol3/white_brick_wall.png'),
  403. '161'=>array('value'=>'161','image'=>'/patterns/patterns_vol3/white_paperboard.png'),
  404. '162'=>array('value'=>'162','image'=>'/patterns/patterns_vol3/white_plaster.png'),
  405. '163'=>array('value'=>'163','image'=>'/patterns/patterns_vol3/whitediamond.png'),
  406. '164'=>array('value'=>'164','image'=>'/patterns/patterns_vol3/wood_pattern.png'),
  407. '165'=>array('value'=>'165','image'=>'/patterns/patterns_vol3/zigzag.png'),
  408. )
  409. ),
  410. __('UPLOAD PATTERN', 'gdl_back_office')=>array('type'=>'pupload','name'=>THEME_SHORT_NAME.'_custom_pattern'),
  411. __('Miscellaneous','gdl_back_office')=>array(
  412. 'type'=>'radioimage',
  413. 'name'=>THEME_SHORT_NAME.'_background_pattern',
  414. 'class'=>THEME_SHORT_NAME.'_background_pattern_div5',
  415. 'default'=>'',
  416. 'options'=>$collection
  417. ),
  418. __('CUSTOM BACKGROUND', 'gdl_back_office')=>array('type'=>'upload','name'=>THEME_SHORT_NAME.'_background_custom'),
  419. ),
  420. 'gdl_panel_top_right_area'=>array(
  421. __('TEXT ABOVE ICON', 'gdl_back_office')=>array('type'=>'textarea','name'=>THEME_SHORT_NAME.'_social_wrapper_text', 'default'=>'',
  422. 'description'=>'This is the text that will appear above the social icon( top right side ). Leave it blank to remove it.'),
  423. ),
  424. 'gdl_panel_social_network' => array(
  425. __('MARGIN TOP', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_social_wrapper_margin', 'default'=>'33',
  426. 'description'=>'Set the top sapce over the social icons( top right side ). The minimun value is 1'),
  427. __('DELICIOUS', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_delicious',
  428. 'description'=>'Place the link you want and delicious icon will appear. To remove it, just leave it blank.'),
  429. __('DEVIANTART', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_deviantart',
  430. 'description'=>'Place the link you want and deviantart icon will appear. To remove it, just leave it blank.'),
  431. __('DIGG', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_digg',
  432. 'description'=>'Place the link you want and digg icon will appear. To remove it, just leave it blank.'),
  433. __('FACEBOOK', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_facebook',
  434. 'description'=>'Place the link you want and facebook icon will appear. To remove it, just leave it blank.'),
  435. __('FLICKR', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_flickr',
  436. 'description'=>'Place the link you want and flickr icon will appear. To remove it, just leave it blank.'),
  437. __('LASTFM', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_lastfm',
  438. 'description'=>'Place the link you want and lastfm icon will appear. To remove it, just leave it blank.'),
  439. __('LINKEDIN', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_linkedin',
  440. 'description'=>'Place the link you want and linkedin icon will appear. To remove it, just leave it blank.'),
  441. __('PICASA', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_picasa',
  442. 'description'=>'Place the link you want and picasa icon will appear. To remove it, just leave it blank.'),
  443. __('RSS', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_rss',
  444. 'description'=>'Place the link you want and feed icon will appear. To remove it, just leave it blank.'),
  445. __('STUMBLE UPON', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_stumble_upon',
  446. 'description'=>'Place the link you want and stumble upon icon will appear. To remove it, just leave it blank.'),
  447. __('TUMBLR', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_tumblr',
  448. 'description'=>'Place the link you want and tumblr icon will appear. To remove it, just leave it blank.'),
  449. __('TWITTER', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_twitter',
  450. 'description'=>'Place the link you want and twitter icon will appear. To remove it, just leave it blank.'),
  451. __('VIMEO', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_vimeo',
  452. 'description'=>'Place the link you want and vimeo icon will appear. To remove it, just leave it blank.'),
  453. __('YOUTUBE', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_youtube',
  454. 'description'=>'Place the link you want and youtube icon will appear. To remove it, just leave it blank.'),
  455. ),
  456. 'gdl_panel_social_shares' => array(
  457. __('FACEBOOK', 'gdl_back_office')=>array('type'=>'radioenabled','name'=>THEME_SHORT_NAME.'_facebook_share',
  458. 'description'=>'Toggle to enable/disable the facebook shares in blog and portfolio page.'),
  459. __('TWITTER', 'gdl_back_office')=>array('type'=>'radioenabled','name'=>THEME_SHORT_NAME.'_twitter_share',
  460. 'description'=>'Toggle to enable/disable the twitter shares in blog and portfolio page.'),
  461. __('GOOGLE', 'gdl_back_office')=>array('type'=>'radioenabled','name'=>THEME_SHORT_NAME.'_google_share',
  462. 'description'=>'Toggle to enable/disable the google shares in blog and portfolio page.'),
  463. __('STUMBLE UPON', 'gdl_back_office')=>array('type'=>'radioenabled','name'=>THEME_SHORT_NAME.'_stumble_upon_share',
  464. 'description'=>'Toggle to enable/disable the stumble upon shares in blog and portfolio page.'),
  465. __('MY SPACE', 'gdl_back_office')=>array('type'=>'radioenabled','name'=>THEME_SHORT_NAME.'_my_space_share',
  466. 'description'=>'Toggle to enable/disable the my spce shares in blog and portfolio page.'),
  467. __('DELICIOUS', 'gdl_back_office')=>array('type'=>'radioenabled','name'=>THEME_SHORT_NAME.'_delicious_share',
  468. 'description'=>'Toggle to enable/disable the delicious shares in blog and portfolio page.'),
  469. __('DIGG', 'gdl_back_office')=>array('type'=>'radioenabled','name'=>THEME_SHORT_NAME.'_digg_share',
  470. 'description'=>'Toggle to enable/disable the digg shares in blog and portfolio page.'),
  471. __('REDDIT', 'gdl_back_office')=>array('type'=>'radioenabled','name'=>THEME_SHORT_NAME.'_reddit_share',
  472. 'description'=>'Toggle to enable/disable the reddit shares in blog and portfolio page.'),
  473. __('LINKEDIN', 'gdl_back_office')=>array('type'=>'radioenabled','name'=>THEME_SHORT_NAME.'_linkedin_share',
  474. 'description'=>'Toggle to enable/disable the linkedin shares in blog and portfolio page.'),
  475. ),
  476. 'gdl_panel_copyright_area' => array(
  477. __('COPYRIGHT LEFT AREA', 'gdl_back_office')=>array('type'=>'textarea','name'=>THEME_SHORT_NAME.'_copyright_left_area'),
  478. __('COPYRIGHT RIGHT AREA', 'gdl_back_office')=>array('type'=>'textarea','name'=>THEME_SHORT_NAME.'_copyright_right_area')
  479. ),
  480. // 'gdl_panel_dummy_data' => array(
  481. // __('LOAD DUMMY DATA', 'gdl_back_office')=>array('type'=>'dummy')
  482. // ),
  483. // Elements Color
  484. 'gdl_panel_navigation' => array(
  485. __('TOP NAVIGATION BACKGROUND', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_top_navigation_background','default'=>'#494949'),
  486. __('TOP NAVIGATION BOTTOM BAR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_top_navigation_bottom_bar','default'=>'#e77927',
  487. 'description'=>'This is a little bar color below the top navigation, you can change it as you want.'),
  488. __('TOP NAVIGATION TEXT COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_top_navigation_text','default'=>'#e7e7e7',),
  489. __('MAIN NAVIGATION GRADIENT', 'gdl_back_office')=>array('type'=>'radioenabled','name'=>THEME_SHORT_NAME.'_main_navigation_gradient'),
  490. __('MAIN NAVIGATION BACKGROUND', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_main_navigation_background','default'=>'#fdfdfd'),
  491. __('MAIN NAVIGATION BORDER LEFT', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_main_navigation_border_left','default'=>'#ffffff',
  492. 'description'=>'This is 1 pixel verticle divider left side between each main menu. Normally it is darker than the right border.'),
  493. __('MAIN NAVIGATION BORDER RIGHT', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_main_navigation_border_right','default'=>'#dbdbdb',
  494. 'description'=>'This is 1 pixel verticle divider right side between each main menu. Normally it is lighter than the left border.'),
  495. __('MAIN NAVIGATION BORDER TOP/BOTTOM', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_main_navigation_border_top_bottom','default'=>'#ececec',
  496. 'description'=>'This color effects the top border, buttom border and submenu border of the main navigation.'),
  497. __('MAIN NAVIGATION TEXT', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_main_navigation_text','default'=>'#7a7a7a',
  498. 'description'=>'This is the text color of the main navigation in the normal state.'),
  499. __('MAIN NAVIGATION TEXT HOVER', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_main_navigation_text_hover','default'=>'#3d3d3d',
  500. 'description'=>'This is the text color of the main navigation in "hover" state.'),
  501. __('MAIN NAVIGATION TEXT CURRENT', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_main_navigation_text_current','default'=>'#3d3d3d',
  502. 'description'=>'This is the text color of the main navigation in "current page" state.'),
  503. __('MAIN NAVIGATION BOTTOM SHADOW', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_main_navigation_bottom_shadow','default'=>'#f5f5f5',
  504. 'description'=>'This is the bottom shadow color of the main navigation. You can see it if the top slider does not exists.'),
  505. __('SUB NAVIGATION BACKGROUND', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_sub_navigation_background','default'=>'#fdfdfd'),
  506. __('SUB NAVIGATION BORDER', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_sub_navigation_border','default'=>'#ececec'),
  507. __('SUB NAVIGATION TEXT', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_sub_navigation_text','default'=>'#7a7a7a'),
  508. __('SUB NAVIGATION TEXT HOVER', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_sub_navigation_text_hover','default'=>'#3d3d3d'),
  509. __('SUB NAVIGATION TEXT CURRENT', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_sub_navigation_text_current','default'=>'#3d3d3d'),
  510. ),
  511. 'gdl_panel_top_search' => array(
  512. __('SEARCH BOX BACKGROUND COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_search_box_background','default'=>'#efefef'),
  513. __('SEARCH BOX SHADOW COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_search_box_shadow','default'=>'#dddddd',
  514. 'description'=>'This is the inner shadow color of search text box. Change it to match with background color.'),
  515. __('SEARCH BOX TEXT COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_search_box_text','default'=>'#333333'),
  516. ),
  517. 'gdl_panel_body' => array(
  518. __('ICON STYLE','gdl_back_office')=>array(
  519. 'type'=>'combobox',
  520. 'name'=>THEME_SHORT_NAME.'_icon_type',
  521. 'options'=>array('1'=>'dark','2'=>'light'),
  522. 'description'=>'This option will change all of the icon in this theme( except footer ) to use dark/light version.'),
  523. __('TITLE COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_title_color','default'=>'#494949',
  524. 'description'=>'Change this title color wil effects all title in this theme except footer title, sidebar title, blog thumbnail title and portolio thumbnail title color.'),
  525. __('SIDEBAR TITLE COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_sidebar_title_color','default'=>'#494949'),
  526. __('CONTENT COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_content_color','default'=>'#666666'),
  527. __('BODY BACKGROUND', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_body_background','default'=>'#dddddd',
  528. 'description'=>'Body background will NOT take effects when user use the image as background or use the non transparent pattern '),
  529. __('CONTAINER BACKGROUND', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_container_background','default'=>'#ffffff',
  530. 'description'=>'Container background is a background over the body background. You can chage it to any color you want.'),
  531. __('CONTAINER SHADOW', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_container_shadow','default'=>'#bbbbbb'),
  532. __('LINK COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_link_color','default'=>'#ef7f2c',
  533. 'description'=>'This color effects all of the link color in this theme.'),
  534. __('LINK HOVER COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_link_hover_color','default'=>'#ef7f2c',
  535. 'description'=>'This color effects all of the link color on "hover" state in this theme.'),
  536. __('ELEMENTS SHADOW', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_elements_shadow','default'=>'#ececec',
  537. 'description'=>'This color changes the elements shadow color in the container, including button, post and portfolio frame and sidebar shadow.'),
  538. __('TABLE BORDER (TABLE TAG)', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_table_border','default'=>'#e5e5e5'),
  539. __('TABLE TITLE TEXT COLOR (TH TAG)', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_table_text_title','default'=>'#666666'),
  540. __('TABLE TITLE BACKGROUND (TH TAG)', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_table_title_background','default'=>'#f7f7f7'),
  541. ),
  542. 'gdl_panel_footer' => array(
  543. __('FOOTER ICON TYPE', 'gdl_back_office')=>array('type'=>'combobox','name'=>THEME_SHORT_NAME.'_footer_icon_type','options'=>array('0'=>'light','1'=>'dark'),'default'=>'light',
  544. 'description' =>'There are two icon types in this theme, dark and light, you can choose it to display on footer as you want.'),
  545. __('FOOTER LINK COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_footer_link_color','default'=>'#ef7f2c',
  546. 'description'=>'This color changes all of the link color inside footer in normal state.'),
  547. __('FOOTER LINK HOVER COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_footer_link_hover_color','default'=>'#ef7f2c',
  548. 'description'=>'This is the link color of footer frame in "hover" state.'),
  549. __('FOOTER TITLE COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_footer_title_color','default'=>'#ececec'),
  550. __('FOOTER CONTENT COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_footer_content_color','default'=>'#999999'),
  551. __('FOOTER CONTENT INFO COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_footer_content_info_color','default'=>'#b1b1b1',
  552. 'description' =>'The content info is the color of the post date( in post/portfolio widget ) and twitter widget'),
  553. __('FOOTER BACKGROUND', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_footer_background','default'=>'#313131'),
  554. __('FOOTER TOP BAR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_footer_top_bar','default'=>'#cfcfcf',
  555. 'description'=>'This is the little bar color over the footer. Change it to match with the theme style.'),
  556. __('FOOTER DIVIDER COLOR', 'gdl_back_office')=>array('type'=>'colorpicker', 'name'=>THEME_SHORT_NAME.'_footer_divider_color', 'default'=>'#3b3b3b'),
  557. __('FOOTER INPUT BOX TEXT', 'gdl_back_office')=>array('type'=>'colorpicker', 'name'=>THEME_SHORT_NAME.'_footer_input_text', 'default'=>'#888888',
  558. 'description' =>'This footer input box comes from search widget and contact form widget, you can change it to fit theme styles.'),
  559. __('FOOTER INPUT BOX BACKGROUND', 'gdl_back_office')=>array('type'=>'colorpicker', 'name'=>THEME_SHORT_NAME.'_footer_input_background', 'default'=>'#383838'),
  560. __('FOOTER INPUT BOX BORDER', 'gdl_back_office')=>array('type'=>'colorpicker', 'name'=>THEME_SHORT_NAME.'_footer_input_border', 'default'=>'#434343'),
  561. __('FOOTER BUTTON COLOR', 'gdl_back_office')=>array('type'=>'colorpicker', 'name'=>THEME_SHORT_NAME.'_footer_button_color', 'default'=>'#222222',
  562. 'description' =>'This color is for the submit button of contact widget.'),
  563. __('FOOTER BUTTON TEXT COLOR', 'gdl_back_office')=>array('type'=>'colorpicker', 'name'=>THEME_SHORT_NAME.'_footer_button_text', 'default'=>'#7a7a7a'),
  564. __('FOOTER FRAME BACKGROUND', 'gdl_back_office')=>array('type'=>'colorpicker', 'name'=>THEME_SHORT_NAME.'_footer_frame_background', 'default'=>'#292929',
  565. 'description' =>'Frame is the elements that wrap post/portfolio(widget) thumbnail.'),
  566. __('FOOTER FRAME BORDER', 'gdl_back_office')=>array('type'=>'colorpicker', 'name'=>THEME_SHORT_NAME.'_footer_frame_border', 'default'=>'#3b3b3b'),
  567. __('COPYRIGHT TEXT COLOR', 'gdl_back_office')=>array('type'=>'colorpicker', 'name'=>THEME_SHORT_NAME.'_copyright_text', 'default'=>'#808080'),
  568. __('COPYRIGHT BACKGROUND', 'gdl_back_office')=>array('type'=>'colorpicker', 'name'=>THEME_SHORT_NAME.'_copyright_background', 'default'=>'#202020'),
  569. __('COPYRIGHT SHADOW COLOR', 'gdl_back_office')=>array('type'=>'colorpicker', 'name'=>THEME_SHORT_NAME.'_copyright_shadow', 'default'=>'#111111',
  570. 'description' =>'This is the shadow between the footer and copyright.'),
  571. ),
  572. 'gdl_panel_slider' => array(
  573. __('SLIDER TITLE COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_slider_title_color','default'=>'#ef7f2c'),
  574. __('SLIDER CAPTION COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_slider_caption_color','default'=>'#ffffff'),
  575. __('TOP SLIDER BOTTOM LINE', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_full_slider_bottom_line','default'=>'#ebebeb',
  576. 'description'=>'Only top slider will have little bar below the slider. You can change it to any color you prefer.'),
  577. ),
  578. 'gdl_panel_blog_port' => array(
  579. __('PORT TITLE COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_port_title_color','default'=>'#ef7f2c',
  580. 'description'=>'This is the portfolio thumbnail title color.'),
  581. __('PORT TITLE HOVER COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_port_title_hover_color','default'=>'#ef7f2c',
  582. 'description'=>'This is the portfolio thumbnail title color in "hover" state.'),
  583. __('BLOG TITLE COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_post_title_color','default'=>'#646464',
  584. 'description'=>'This is the blog thumbnail title color except the blog in WIDGET style.'),
  585. __('BLOG TITLE HOVER COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_post_title_hover_color','default'=>'#646464',
  586. 'description'=>'This is the blog thumbnail title color in "hover" state.'),
  587. __('BLOG INFO COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_post_info_color','default'=>'#797979',
  588. 'description'=>"This is the blog informateion color. It's include the color of blog date, blog comments number and blog author."),
  589. __('BLOG (WIDGET STYLE) TITLE', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_post_widget_title_color','default'=>'#ef7f2c'),
  590. __('BLOG/PORT FRAME COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_post_port_frame_color','default'=>'#f0f0f0'),
  591. __('BLOG/PORT FRAME BORDER COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_post_port_frame_border','default'=>'#ffffff'),
  592. __('BLOG ABOUT AUTHOR BACKGROUND', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_post_about_author_color','default'=>'#f9f9f9',
  593. 'description'=>'The author item is located in the blog page, you can enable/disable it using the post/portfolio options.'),
  594. __('PAGINATION NORMAL STATE', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_pagination_normal_state','default'=>'#f9f9f9',
  595. 'description'=>'A paginaltion background color in non-hover and not-current page state.'),
  596. ),
  597. 'gdl_panel_contact_form' => array(
  598. __('CONTACT FORM/COMMENT BACKGROUND COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_contact_form_background_color','default'=>'#ffffff',
  599. 'description'=>'This is a background color of textbox and textarea in contact form and comments area.'),
  600. __('CONTACT FORM/COMMENT TEXT COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_contact_form_text_color','default'=>'#888888',
  601. 'description'=>'This is a text color of textbox and textarea in contact form and comments area.'),
  602. __('CONTACT FORM/COMMENT BORDER COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_contact_form_border_color','default'=>'#cfcfcf'),
  603. __('CONTACT FORM/COMMENT FRAME COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_contact_form_frame_color','default'=>'#f8f8f8'),
  604. __('CONTACT FORM/COMMENT INNER SHADOW', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_contact_form_inner_shadow','default'=>'#ececec',
  605. 'description'=>'An inner shadow of the textbox and textarea in contact form and comments area.'),
  606. ),
  607. 'gdl_panel_stunning_text' => array(
  608. __('STUNNING TEXT TITLE COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_stunning_text_title_color','default'=>'#333333'),
  609. __('STUNNING TEXT CAPTION COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_stunning_text_caption_color','default'=>'#666666'),
  610. __('STUNNING TEXT BACKGROUND COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_stunning_text_background_color','default'=>'#ffffff'),
  611. __('STUNNING TEXT BUTTON TEXT COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_stunning_text_button_color','default'=>'#ffffff',
  612. 'description'=>'If the button exists, this will be the text color of the button in stunning text item.'),
  613. __('STUNNING TEXT BUTTON BACKGROUND', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_stunning_text_button_background','default'=>'#ef7f2c',
  614. 'description'=>'If the button exists, this will be the background color of the button in stunning text item.'),
  615. ),
  616. 'gdl_panel_additional_elements' => array(
  617. __('DIVIDER LINE COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_divider_line','default'=>'#ececec',
  618. 'description'=>'This is the color of all divider inside the container( excluding divider of the footer ).'),
  619. __('DIVIDER ITEM BACK TO TOP TEXT', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_back_to_top_text_color','default'=>'#7c7c7c',
  620. 'description'=>'This is the back to top text color of the divider item ( create from page items or shortcode ).'),
  621. __('TAB BACKGROUND', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_tab_background_color','default'=>'#f5f5f5',
  622. 'description'=>'This is the tab header background in "non-active" state.'),
  623. __('TAB TEXT COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_tab_text_color','default'=>'#666666'),
  624. __('TAB ACTIVE BACKGROUND', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_tab_active_background_color','default'=>'#ffffff',
  625. 'description'=>'This is the tab header background in "active" state.'),
  626. __('TAB ACTIVE TEXT COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_tab_active_text_color','default'=>'#111111'),
  627. __('TAB BORDER COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_tab_border_color','default'=>'#dddddd'),
  628. __('COLUMN SERVICE TITLE COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_column_service_title_color','default'=>'#ef7f2c',),
  629. __('TESTIMONIAL TEXT COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_testimonial_text','default'=>'#848484'),
  630. __('TESTIMONIAL TEXT AUTHOR COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_testimonial_author','default'=>'#494949'),
  631. __('TESTIMONIAL TEXT POSITION COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_testimonial_position','default'=>'#8d8d8d'),
  632. __('BUTTON BACKGROUND COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_button_background_color','default'=>'#f1f1f1',
  633. 'description'=>'This color will changes all of the button background color in this theme except the button from shortcode and stunning text.'),
  634. __('BUTTON BORDER COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_button_border_color','default'=>'#dedede',
  635. 'description'=>'This color will changes all of the button border color in this theme except the button from shortcode and stunning text.'),
  636. __('BUTTON TEXT COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_button_text_color','default'=>'#7a7a7a',
  637. 'description'=>'This color will changes all of the button text color in this theme except the button from shortcode and stunning text.'),
  638. __('BUTTON TEXT HOVER COLOR', 'gdl_back_office')=>array('type'=>'colorpicker','name'=>THEME_SHORT_NAME.'_button_text_hover_color','default'=>'#7a7a7a',
  639. 'description'=>'This color will changes all of the button text color of "hover" state in this theme except the button from shortcode and stunning text.'),
  640. ),
  641. 'gdl_panel_price_item' => array(
  642. __('PRICE TEXT COLOR', 'gdl_back_office') => array('type'=>'colorpicker', 'name'=>THEME_SHORT_NAME.'_price_item_price_color', 'default'=>'#3a3a3a',
  643. 'description'=>'This color is the color of price at the top of price item with normal price.'),
  644. __('BEST PRICE TEXT COLOR', 'gdl_back_office') => array('type'=>'colorpicker', 'name'=>THEME_SHORT_NAME.'_price_item_best_price_color', 'default'=>'#ef7f2c',
  645. 'description'=>'This color is the color of price at the top of price item with best price.' . " It's also effect the top border of the best price item."),
  646. __('PRICE TITLE COLOR', 'gdl_back_office') => array('type'=>'colorpicker', 'name'=>THEME_SHORT_NAME.'_price_item_price_title_color', 'default'=>'#3a3a3a',
  647. 'description'=>'Price title is located below the price text. You can change it color as you want.'),
  648. __('BEST PRICE TITLE COLOR', 'gdl_back_office') => array('type'=>'colorpicker', 'name'=>THEME_SHORT_NAME.'_price_item_best_price_title_color', 'default'=>'#ffffff',
  649. 'description'=>'This color has effect to the best price title color( The price title is located below the price text. ).'),
  650. __('PRICE TITLE BACKGROUND', 'gdl_back_office') => array('type'=>'colorpicker', 'name'=>THEME_SHORT_NAME.'_price_item_price_title_background', 'default'=>'#e9e9e9'),
  651. __('BEST PRICE TITLE BACKGROUND', 'gdl_back_office') => array('type'=>'colorpicker', 'name'=>THEME_SHORT_NAME.'_price_item_best_price_title_background', 'default'=>'#5f5f5f'),
  652. __('PRICE ITEM BORDER', 'gdl_back_office') => array('type'=>'colorpicker', 'name'=>THEME_SHORT_NAME.'_price_item_border', 'default'=>'#ececec',
  653. 'description'=>'This color is the price item border color. This color will have no effects with best price item top border.'),
  654. ),
  655. 'gdl_panel_load_default_color' => array(
  656. __('LOAD DEFAULT ELEMENTS COLOR','gdl_back_office')=>array('type'=>'button','text'=>'Load Default','id'=>'gdl_load_default_color_button',
  657. 'description'=>'Click this button to load the default elements color of this theme. Then click save changes to save the default value. <br><br> ' .
  658. 'WARNING : All of settings cannot be undo after you click save changes button.')
  659. ),
  660. // Translator
  661. 'gdl_panel_enable_admin_translator' => array(
  662. __('ENABLE ADMIN TRANSLATOR', 'gdl_back_office')=>array('type'=>'radioenabled', 'name'=>THEME_SHORT_NAME.'_enable_admin_translator')
  663. ),
  664. 'gdl_panel_blog_port_translator' => array(
  665. __('SOCIAL SHARE (BLOG/PORTFOLIO)', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_translator_social_shares','default'=>'Social Share'),
  666. __('LEAVE A REPLY (BLOG)', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_translator_leave_reply','default'=>'Leave a Reply'),
  667. __('ABOUT THE AUTHOR (BLOG)', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_translator_about_author','default'=>'About the Author'),
  668. __('CLIENT (PORTFOLIO)', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_translator_client','default'=>'Client'),
  669. __('READ MORE (PORTFOLIO)', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_translator_read_more','default'=>'Read More'),
  670. __('VISIT WEBSITE (PORTFOLIO)', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_translator_visit_website','default'=>'Visit Website'),
  671. __('VIEW ALL PROJECTS (PORTFOLIO)', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_translator_view_all_project','default'=>'View All Projects ?'),
  672. __('CONTINUE READING (BLOG)', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_translator_continue_reading','default'=>'Continue Reading ?'),
  673. ),
  674. 'gdl_panel_contact_form_translator' => array(
  675. __('NAME (CONTACT FORM)', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_translator_name_contact_form','default'=>'Name'),
  676. __('NAME ERROR (CONTACT FORM)', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_translator_name_error_contact_form','default'=>'Please enter your name'),
  677. __('EMAIL (CONTACT FORM)', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_translator_email_contact_form','default'=>'Email'),
  678. __('EMAIL ERROR (CONTACT FORM)', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_translator_email_error_contact_form','default'=>'Please enter a valid email address'),
  679. __('MESSAGE (CONTACT FORM)', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_translator_message_contact_form','default'=>'Message'),
  680. __('MESSAGE ERROR (CONTACT FORM)', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_translator_message_error_contact_form','default'=>'Please enter message'),
  681. __('SUBMIT BUTTON (CONTACT FORM)', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_translator_submit_contact_form','default'=>'Submit'),
  682. __('SEND ERROR (CONTACT FORM)', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_translator_contact_send_error','default'=>'Message cannot be sent to destination'),
  683. __('SEND COMPLETE (CONTACT FORM)', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_translator_contact_send_complete','default'=>'The e-mail was sent successfully'),
  684. ),
  685. 'gdl_panel_contact_widget_translator' => array(
  686. __('NAME (CONTACT WIDGET)', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_translator_name_contact_widget','default'=>'Name'),
  687. __('EMAIL (CONTACT WIDGET)', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_translator_email_contact_widget','default'=>'Email'),
  688. __('MESSAGE (CONTACT WIDGET)', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_translator_message_contact_widget','default'=>'Message'),
  689. __('REQUIRE (CONTACT WIDGET)', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_translator_require_contact_widget','default'=>'* Require'),
  690. __('PLEASE WAIT (CONTACT WIDGET)', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_translator_please_wait_contact_widget','default'=>'Please Wait...'),
  691. __('SENDING COMPLETE (CONTACT WIDGET)', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_translator_sending_complete_contact_widget','default'=>'Thanks! Your email was sent'),
  692. __('SUBMIT BUTTON (CONTACT WIDGET)', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_translator_submit_contact_widget','default'=>'Submit'),
  693. ),
  694. 'gdl_panel_additional_elements_translator' => array(
  695. __('READ MORE (PRICE ITEM)', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_translator_read_more_price','default'=>'Read More'),
  696. __('404 TITLE (404 PAGE)', 'gdl_back_office')=>array('type'=>'inputtext','name'=>THEME_SHORT_NAME.'_404_title','default'=>'Sorry'),
  697. __('404 CONTENT (404 PAGE)', 'gdl_back_office')=>array('type'=>'textarea','name'=>THEME_SHORT_NAME.'_404_content','default'=>"The page you are finding seem doesn't exist."),
  698. __('SEARCH NOT FOUND (SEARCH PAGE)', 'gdl_back_office')=>array('type'=>'textarea','name'=>THEME_SHORT_NAME.'_search_not_found','default'=>"Sorry, but nothing matched your search criteria. Please try again with some different keywords."),
  699. ),
  700. // Slider Setting
  701. 'gdl_panel_nivo_slider' => array(
  702. __('SLIDER EFFECTS', 'gdl_back_office')=>array(
  703. 'type'=>'combobox',
  704. 'oldname'=>'effect',
  705. 'name'=>THEME_SHORT_NAME.'_nivo_slider_effect',
  706. 'options'=>array(
  707. '0'=>'sliceDown', '1'=>'sliceDownLeft', '2'=>'sliceUp',
  708. '3'=>'sliceUpLeft', '4'=>'sliceUpDown', '5'=>'sliceUpDownLeft',
  709. '6'=>'fold', '7'=>'fade', '8'=>'random',
  710. '9'=>'slideInRight', '10'=>'slideInLeft', '11'=>'boxRandom',
  711. '12'=>'boxRain', '13'=>'boxRainReverse', '14'=>'boxRainGrow',
  712. '15'=>'boxRainGrowReverse')),
  713. __('PAUSE ON HOVER', 'gdl_back_office')=>array('type'=>'radioenabled','oldname'=>'pauseOnHover','name'=>THEME_SHORT_NAME.'_nivo_slider_pause_on_hover',
  714. 'description'=>'Pause the nivo slider when user hover at the slider.'),
  715. __('SHOW BULLETS', 'gdl_back_office')=>array('type'=>'radioenabled','oldname'=>'controlNav','name'=>THEME_SHORT_NAME.'_nivo_slider_show_bullets',
  716. 'description'=>'Enable to show the nivo slider navigation bullets.'),
  717. __('SHOW LEFT/RIGHT NAVIGATION', 'gdl_back_office')=>array('type'=>'radioenabled','oldname'=>'directionNav','name'=>THEME_SHORT_NAME.'_nivo_slider_show_navigation',
  718. 'description'=>'Enable left/right navigation of the nivo slider.'),
  719. __('ONLY SHOW NAVIGATION WHEN HOVER', 'gdl_back_office')=>array('type'=>'radioenabled','oldname'=>'directionNavHide','name'=>THEME_SHORT_NAME.'_nivo_slider_hover_navigation',
  720. 'description'=>'If the left/right navigation is enabled, enable this option will hide the left/right navigation when the mouse cursor is outside the nivo slider frame.'),
  721. __('ANIMATION SPEED', 'gdl_back_office')=>array('type'=>'inputtext','oldname'=>'animSpeed','name'=>THEME_SHORT_NAME.'_nivo_slider_animation_speed','default'=>'500',
  722. 'description'=>'This is the animation speed during the change of each slide.'),
  723. __('PAUSE TIME', 'gdl_back_office')=>array('type'=>'inputtext','oldname'=>'pauseTime','name'=>THEME_SHORT_NAME.'_nivo_slider_pause_time','default'=>'3000',
  724. 'description'=>'This option is the pause time of each slider.'),
  725. __('CAPTION OPACITY', 'gdl_back_office')=>array('type'=>'inputtext','oldname'=>'captionOpacity','name'=>THEME_SHORT_NAME.'_nivo_slider_caption_opacity','default'=>'0.8'),
  726. ),
  727. 'gdl_panel_flex_slider' => array(
  728. __('SLIDER EFFECTS', 'gdl_back_office')=>array('type'=>'combobox','oldname'=>'animation'
  729. ,'name'=>THEME_SHORT_NAME.'_flex_slider_effect', 'options'=>array('0'=>'fade', '1'=>'slide')),
  730. __('PAUSE ON HOVER', 'gdl_back_office')=>array('type'=>'radioenabled','oldname'=>'pauseOnHover','name'=>THEME_SHORT_NAME.'_flex_slider_pause_on_hover','default'=>'disable',
  731. 'description'=>'Pause the flex slider when user hover at the slider.'),
  732. __('SHOW BULLETS', 'gdl_back_office')=>array('type'=>'radioenabled','oldname'=>'controlNav','name'=>THEME_SHORT_NAME.'_flex_slider_show_bullets',
  733. 'description'=>'Enable to show the flex slider navigation bullets.'),
  734. __('SHOW NAVIGATION', 'gdl_back_office')=>array('type'=>'radioenabled','oldname'=>'directionNav','name'=>THEME_SHORT_NAME.'_flex_slider_show_navigation',
  735. 'description'=>'Enable left/right navigation of the flex slider.'),
  736. __('ANIMATION SPEED', 'gdl_back_office')=>array('type'=>'inputtext','oldname'=>'animationDuration','name'=>THEME_SHORT_NAME.'_flex_slider_animation_speed','default'=>'600',
  737. 'description'=>'This is the animation speed during the change of each slide.'),
  738. __('PAUSE TIME', 'gdl_back_office')=>array('type'=>'inputtext','oldname'=>'slideshowSpeed','name'=>THEME_SHORT_NAME.'_flex_slider_pause_time','default'=>'7000',
  739. 'description'=>'This option is the pause time of each slider.'),
  740. __('PAUSE ON ACTION', 'gdl_back_office')=>array('type'=>'radioenabled','oldname'=>'pauseOnAction','name'=>THEME_SHORT_NAME.'_flex_slider_pause_on_action','default'=>'false'),
  741. ),
  742. 'gdl_panel_anything_slider' => array(
  743. __('PAUSE ON HOVER', 'gdl_back_office')=>array('type'=>'radioenabled','oldname'=>'pauseOnHover','name'=>THEME_SHORT_NAME.'_anything_slider_pause_on_hover',
  744. 'description'=>'Pause the anything slider when user hover at the slider.'),
  745. __('SHOW BULLETS', 'gdl_back_office')=>array('type'=>'radioenabled','oldname'=>'buildNavigation','name'=>THEME_SHORT_NAME.'_anything_slider_show_bulltes',
  746. 'description'=>'Enable to show the anything slider navigation bullets.'),
  747. __('ONLY SHOW BULLETS WHEN HOVER', 'gdl_back_office')=>array('type'=>'radioenabled','oldname'=>'toggleControls','name'=>THEME_SHORT_NAME.'_anything_slider_hover_bulltes',
  748. 'description'=>'If the bullets navigation is enabled, enable this option will hide the bullets navigation when the mouse cursor is outside the nivo slider frame.'),
  749. __('SHOW NAVIGATION', 'gdl_back_office')=>array('type'=>'radioenabled','oldname'=>'buildArrows','name'=>THEME_SHORT_NAME.'_anything_slider_show_navigation',
  750. 'description'=>'Enable left/right navigation of the anything slider.'),
  751. __('ONLY SHOW NAVIGATION WHEN HOVER', 'gdl_back_office')=>array('type'=>'radioenabled','oldname'=>'toggleArrows','name'=>THEME_SHORT_NAME.'_anything_slider_hover_navigation',
  752. 'description'=>'If the left/right navigation is enabled, enable this option will hide the left/right navigation when the mouse cursor is outside the nivo slider frame.'),
  753. __('ANIMATION SPEED', 'gdl_back_office')=>array('type'=>'inputtext','oldname'=>'animationTime','name'=>THEME_SHORT_NAME.'_anything_slider_animation_speed','default'=>'600',
  754. 'description'=>'This is the animation speed during the change of each slide.'),
  755. __('PAUSE TIME', 'gdl_back_office')=>array('type'=>'inputtext','oldname'=>'delay','name'=>THEME_SHORT_NAME.'_anything_slider_pause_time','default'=>'3000',
  756. 'description'=>'This option is the pause time of each slider.'),
  757. )
  758. );
  759. // add action to embeded the panel in to dashboard
  760. add_action('admin_menu','add_goodlayers_panel');
  761. function add_goodlayers_panel(){
  762. $page = add_menu_page('K2 Option', THEME_FULL_NAME.' Options', 'administrator', plugin_basename(__FILE__), 'create_goodlayers_panel' /*, GOODLAYERS_PATH.'/include/images/portfolio-icon.png' */);
  763. add_action('admin_print_scripts-' . $page,'register_goodlayers_panel_scripts');
  764. add_action('admin_print_styles-' . $page,'register_goodlayers_panel_styles');
  765. }
  766. // add ajax action to hook the functions when save button is pressed
  767. add_action('wp_ajax_save_goodlayers_panel','save_goodlayers_panel');
  768. function save_goodlayers_panel(){
  769. check_ajax_referer(plugin_basename(__FILE__),'security');
  770. global $goodlayers_element;
  771. foreach($goodlayers_element as $elements){
  772. foreach($elements as $element){
  773. // when save sidebar
  774. if($element['type'] == 'sidebar'){
  775. $sidebar_xml = '<sidebar>';
  776. $sidebar = $_POST[$element['name']];
  777. foreach($sidebar as $sidebar_name){
  778. $sidebar_xml = $sidebar_xml . create_xml_tag('name',$sidebar_name);
  779. }
  780. $sidebar_xml = $sidebar_xml . '</sidebar>';
  781. if(!save_option($element['name'], get_option($element['name']), $sidebar_xml)){
  782. die('-1');
  783. }
  784. // when save uploaded font
  785. }else if($element['type'] == 'uploadfont'){
  786. $uploadfont_xml = '<uploadfont>';
  787. $uploadfont = $_POST[$element['name']];
  788. $uploadfont_file = $_POST[$element['file']];
  789. $num = sizeof($uploadfont);
  790. for($i=0; $i<$num; $i++){
  791. $uploadfont_xml = $uploadfont_xml . '<font>';
  792. $uploadfont_xml = $uploadfont_xml . create_xml_tag('name', $uploadfont[$i]);
  793. $uploadfont_xml = $uploadfont_xml . create_xml_tag('file', $uploadfont_file[$i]);
  794. $uploadfont_xml = $uploadfont_xml . '</font>';
  795. }
  796. $uploadfont_xml = $uploadfont_xml . '</uploadfont>';
  797. if(!save_option($element['name'], get_option($element['name']), $uploadfont_xml)){
  798. die('-1');
  799. }
  800. // do nothing with dummy button
  801. }else if($element['type'] == 'dummy'){
  802. }else {
  803. $new_option_value = str_replace( "\'" , "'", $_POST[$element['name']]);
  804. $new_option_value = str_replace( '\"' , '"', $new_option_value);
  805. $new_option_value = str_replace( '\\\\' , '\\' , $new_option_value);
  806. if(!save_option($element['name'], get_option($element['name']), $new_option_value)){
  807. die('-1');
  808. }
  809. }
  810. }
  811. }
  812. die('0');
  813. }
  814. // update the option if new value is exists and not equal to old one
  815. function save_option($name, $old_value, $new_value){
  816. if(empty($new_value) && !empty($old_value)){
  817. if(!delete_option($name)){
  818. return false;
  819. }
  820. }else if($old_value != $new_value){
  821. if(!update_option($name, $new_value)){
  822. return false;
  823. }
  824. }
  825. return true;
  826. }
  827. // start creating the goodlayers panel ( by calling function to create menu and elements )
  828. function create_goodlayers_panel(){
  829. global $goodlayers_menu;
  830. global $goodlayers_element;
  831. ?>
  832. <form name="goodlayer-panel-form" id="goodlayer-panel-form">
  833. <div class="goodlayers-panel-wrapper">
  834. <?php
  835. echo '<div class="panel-menu">';
  836. echo '<div class="panel-menu-header"><div class="panel-menu-header-strap"></div>';
  837. echo '<img src="' . GOODLAYERS_PATH . '/include/images/admin-panel-logo.png" alt="goodlayers"/>';
  838. echo '</div>';
  839. create_goodlayers_menu($goodlayers_menu);
  840. echo '</div>';
  841. echo '<div class="panel-elements" id="panel-elements">';
  842. echo '<div class="panel-element-head"><div class="panel-element-header-strap"></div>';
  843. echo '<div class="panel-header-left-text">';
  844. echo '<div class="panel-goodlayers-text">K2</div>';
  845. echo '<div class="panel-admin-panel-text">admin panel</div>';
  846. echo '</div>';
  847. echo '<div class="head-save-changes"><div class="loading-save-changes"></div>';
  848. echo '<input type="submit" value="' . __('Save Changes','gdl_back_office') . '">';
  849. echo '</div>';
  850. echo '</div>';
  851. echo '<div class="panel-element" id="panel-element-save-complete">';
  852. echo '<div class="panel-element-save-text">Save Options Complete.</div>';
  853. echo '<div class="panel-element-save-arrow"></div></div>';
  854. create_goodlayers_elements($goodlayers_element);
  855. echo '<div class="panel-element-tail">';
  856. echo '<div class="tail-save-changes"><div class="loading-save-changes"></div>';
  857. echo '<input type="submit" value="' . __('Save Changes','gdl_back_office') . '">';
  858. echo '</div>';
  859. echo '</div>';
  860. echo '<input type="hidden" name="action" value="save_goodlayers_panel">';
  861. echo '<input type="hidden" name="security" value="' . wp_create_nonce(plugin_basename(__FILE__)) . '">';
  862. echo '</div>';
  863. ?>
  864. </div>
  865. </form>
  866. <?php
  867. }
  868. // Create accordion menu
  869. function create_goodlayers_menu($menu){
  870. echo '<div id="panel-nav"><ul>';
  871. foreach($menu as $title=>$sub_menu){
  872. echo '<li>';
  873. echo '<a id="parent" href="#" >';
  874. echo '<div class="top-menu-bar"></div>';
  875. echo '<div class="top-menu-image"><img src="' . GOODLAYERS_PATH . '/include/images/admin-panel/' . str_replace(' ', '', $title) . '.png"/></div>';
  876. echo '<span class="top-menu-text">' . __($title, 'gdl_back_office') . '</span>';
  877. echo '</a>';
  878. echo '<ul>';
  879. foreach($sub_menu as $sub_title=>$name){
  880. echo '<li>';
  881. echo '<a id="children" href="#" rel=' . $name . '>';
  882. echo '<div class="child-menu-image"></div>';
  883. echo '<span class="child-menu-text">' . __($sub_title, 'gdl_back_office') . '</span>';
  884. echo '</a>';
  885. echo '</li>';
  886. }
  887. echo '</ul>';
  888. echo '</li>';
  889. }
  890. echo '</ul></div>';
  891. }
  892. // decide to create each input element base on the receiving key of elements
  893. function create_goodlayers_elements($elements){
  894. foreach($elements as $key => $element){
  895. echo '<div class="panel-element" id=' . $key . '>';
  896. foreach($element as $key => $values){
  897. if( !empty($values['name']) ){
  898. $values['value'] = get_option($values['name']);
  899. $values['default'] = (isset($values['default']))? $values['default']: '';
  900. }
  901. switch($values['type']){
  902. case 'pupload': print_panel_pupload($key, $values); break;
  903. case 'upload': print_panel_upload($key, $values); break;
  904. case 'inputtext': print_panel_input_text($key, $values); break;
  905. case 'textarea': print_panel_input_textarea($key, $values); break;
  906. case 'radioenabled': print_panel_radio_enabled($key, $values); break;
  907. case 'radioimage' : print_panel_radioimage($key, $values); break;
  908. case 'combobox': print_panel_combobox($key, $values); break;
  909. case 'font-combobox': print_panel_font_combobox($key, $values); break;
  910. case 'colorpicker': print_panel_color_picker($key, $values); break;
  911. case 'sliderbar': print_panel_sliderbar($key, $values); break;
  912. case 'sidebar': print_panel_sidebar($key, $values); break;
  913. case 'uploadfont': print_panel_upload_font($key, $values); break;
  914. case 'button': print_panel_button($key, $values); break;
  915. case 'dummy': print_panel_dummy(); break;
  916. }
  917. }
  918. echo '</div>';
  919. }
  920. }
  921. /* ---------------------------------------------------------------------
  922. * The following section is the template of input elements
  923. * ---------------------------------------------------------------------
  924. */
  925. function print_panel_pupload($title, $values){
  926. extract($values);
  927. ?>
  928. <div class="panel-body body-<?php echo $name; ?>">
  929. <div class="panel-body-gimmick"></div>
  930. <div class="panel-title">
  931. <label for="<?php echo $name; ?>" > <?php _e($title, 'gdl_back_office'); ?> </label>
  932. </div>
  933. <div class="panel-input">
  934. <a onclick="return false;" title="Upload image" class="mbtn thickbox" upload_image_button id="add_image" href="<?php echo get_bloginfo("template_directory"); ?>/include/pattern-upload.php?type=image&amp;TB_iframe=true&amp;width=540&amp;height=105">Upload Pattern</a>
  935. </div>
  936. <br class="clear">
  937. </div>
  938. <?php
  939. }
  940. // Upload => name, value, default
  941. function print_panel_upload($title, $values){
  942. extract($values);
  943. ?>
  944. <div class="panel-body body-<?php echo $name; ?>">
  945. <div class="panel-body-gimmick"></div>
  946. <div class="panel-title">
  947. <label for="<?php echo $name; ?>" > <?php _e($title, 'gdl_back_office'); ?> </label>
  948. </div>
  949. <div class="panel-input">
  950. <div class="input-example-image" id="input-example-image">
  951. <?php
  952. $image_src = '';
  953. if(!empty($value)){
  954. $image_src = wp_get_attachment_image_src( $value, 'full' );
  955. $image_src = (empty($image_src))? '': $image_src[0];
  956. $thumb_src_preview = wp_get_attachment_image_src( $value, '150x150');
  957. echo '<img src="' . $thumb_src_preview[0] . '" />';
  958. }
  959. ?>
  960. </div>
  961. <input name="<?php echo $name; ?>" type="hidden" id="upload_image_attachment_id" value="<?php
  962. echo ($value == '')? esc_html($default): esc_html($value);
  963. ?>" />
  964. <input id="upload_image_text" class="upload_image_text" type="text" value="<?php echo $image_src; ?>" />
  965. <input class="upload_image_button" type="button" value="Upload" />
  966. </div>
  967. <br class="clear">
  968. </div>
  969. <?php
  970. }
  971. // text => name, value, default
  972. function print_panel_input_text($title, $values){
  973. extract($values);
  974. ?>
  975. <div class="panel-body">
  976. <div class="panel-body-gimmick"></div>
  977. <div class="panel-title">
  978. <label for="<?php echo $name; ?>" > <?php _e($title, 'gdl_back_office'); ?> </label>
  979. </div>
  980. <div class="panel-input">
  981. <input type="text" name="<?php echo $name; ?>" id="<?php echo $name; ?>" value="<?php
  982. echo ($value == '')? esc_html($default): esc_html($value);
  983. ?>" />
  984. </div>
  985. <?php if(isset($description)){ ?>
  986. <div class="panel-description"><?php _e($description, 'gdl_back_office'); ?></div>
  987. <div class="panel-description-info-img"></div>
  988. <?php } ?>
  989. <br class="clear">
  990. </div>
  991. <?php
  992. }
  993. // textarea => name, value, default
  994. function print_panel_input_textarea($title, $values){
  995. extract($values);
  996. ?>
  997. <div class="panel-body">
  998. <div class="panel-body-gimmick"></div>
  999. <div class="panel-title">
  1000. <label for="<?php echo $name; ?>"><?php _e($title, 'gdl_back_office'); ?></label>
  1001. </div>
  1002. <div class="panel-input">
  1003. <textarea name="<?php echo $name; ?>" id="<?php echo $name; ?>" ><?php
  1004. echo ($value == '')? esc_html($default): esc_html($value);
  1005. ?></textarea>
  1006. </div>
  1007. <?php if(isset($description)){ ?>
  1008. <div class="panel-description"><?php _e($description, 'gdl_back_office'); ?></div>
  1009. <div class="panel-description-info-img"></div>
  1010. <?php } ?>
  1011. <br class="clear">
  1012. </div>
  1013. <?php
  1014. }
  1015. // radioenabled => name, value
  1016. function print_panel_radio_enabled($title, $values){
  1017. extract($values);
  1018. ?>
  1019. <div class="panel-body">
  1020. <div class="panel-body-gimmick"></div>
  1021. <div class="panel-title">
  1022. <label for="<?php echo $name; ?>"><?php _e($title, 'gdl_back_office'); ?></label>
  1023. </div>
  1024. <div class="panel-input">
  1025. <label for="<?php echo $name; ?>"><div class="checkbox-switch <?php
  1026. echo ($value=='enable' || ($value=='' && empty($default)))? 'checkbox-switch-on': 'checkbox-switch-off';
  1027. ?>"></div></label>
  1028. <input type="checkbox" name="<?php echo $name; ?>" class="checkbox-switch" value="disable" checked>
  1029. <input type="checkbox" name="<?php echo $name; ?>" id="<?php echo $name; ?>" class="checkbox-switch" value="enable" <?php
  1030. echo ($value=='enable' || ($value=='' && empty($default)))? 'checked': '';
  1031. ?>>
  1032. </div>
  1033. <?php if(isset($description)){ ?>
  1034. <div class="panel-description"><?php _e($description, 'gdl_back_office'); ?></div>
  1035. <div class="panel-description-info-img"></div>
  1036. <?php } ?>
  1037. <br class="clear">
  1038. </div>
  1039. <?php
  1040. }
  1041. function get_patterns($folder, $i = 1){
  1042. $directory = dirname(__FILE__)."/../patterns/".$folder."/"; $images = glob($directory.'*.*'); $arr = array();
  1043. if(count($images)>0){
  1044. foreach($images as $image)
  1045. {
  1046. $img = str_replace(dirname(__FILE__)."/..", "", $image);
  1047. $arr[] = array('value'=> $i,'image'=> $img); $i++;
  1048. }
  1049. }
  1050. return array($arr, $i);
  1051. }
  1052. function print_panel_radioimage($title, $values){
  1053. extract($values);
  1054. ?>
  1055. <div class="panel-body body-<?php echo $name; echo " ".$class; ?>">
  1056. <div class="panel-body-gimmick"></div>
  1057. <div class="panel-title">
  1058. <label for="<?php echo $name; ?>"><?php _e($title, 'gdl_back_office'); ?></label>
  1059. </div>
  1060. <div class="panel-radioimage">
  1061. <?php foreach( $options as $option ){ ?>
  1062. <div class='radio-image-wrapper'>
  1063. <label for="<?php echo $option['value']; ?>">
  1064. <img src=<?php echo GOODLAYERS_PATH.$option['image']?> <?php if($name==THEME_SHORT_NAME.'_background_pattern') echo 'width="80" height="80"'; ?> alt=<?php echo $name;?>>
  1065. <div id="check-list"></div>
  1066. </label>
  1067. <?php if($name==THEME_SHORT_NAME.'_background_pattern') $vv = GOODLAYERS_PATH.$option['image']; else $vv = $option['value']; ?>
  1068. <input type="radio" name="<?php echo $name; ?>" value="<?php echo $vv; ?>" <?php
  1069. if($value == $vv){
  1070. echo 'checked';
  1071. }else if($value == '' && $default == $option['value']){
  1072. echo 'checked';
  1073. }
  1074. ?> id="<?php echo $option['value']; ?>" class="<?php echo $name; ?>" >
  1075. </div>
  1076. <?php } ?>
  1077. <br class="clear">
  1078. </div>
  1079. </div>
  1080. <?php
  1081. }
  1082. // combobox => name, value, options[]
  1083. function print_panel_combobox($title, $values){
  1084. extract($values);
  1085. if( empty($body) ) $body = "";
  1086. ?>
  1087. <div class="panel-body <?php echo $body; ?>">
  1088. <div class="panel-body-gimmick"></div>
  1089. <div class="panel-title">
  1090. <label for="<?php echo $name; ?>"><?php _e($title, 'gdl_back_office'); ?></label>
  1091. </div>
  1092. <div class="panel-input">
  1093. <div class="combobox">
  1094. <select name="<?php echo $name; ?>" id="<?php echo $name; ?>">
  1095. <?php foreach($options as $option){ ?>
  1096. <option <?php if( $option == esc_html($value) ){ echo 'selected'; }?>><?php echo $option; ?></option>
  1097. <?php } ?>
  1098. </select>
  1099. </div>
  1100. </div>
  1101. <?php if(isset($description)){ ?>
  1102. <div class="panel-description"><?php _e($description, 'gdl_back_office'); ?></div>
  1103. <div class="panel-description-info-img"></div>
  1104. <?php } ?>
  1105. <br class="clear">
  1106. </div>
  1107. <?php
  1108. }
  1109. // font-combobox => name, value, options[]
  1110. function print_panel_font_combobox($title, $values){
  1111. extract($values);
  1112. if(empty($value)){ $value = $default; }
  1113. $elements = get_font_array();
  1114. ?>
  1115. <div class="panel-body">
  1116. <div class="panel-body-gimmick"></div>
  1117. <div class="panel-title">
  1118. <label for="<?php echo $name; ?>"><?php _e($title, 'gdl_back_office'); ?></label>
  1119. </div>
  1120. <div class="panel-input">
  1121. <div class="panel-font-sample" id="panel-font-sample"><?php echo FONT_SAMPLE_TEXT; ?></div>
  1122. <div class="combobox" id="combobox-font-sample">
  1123. <select name="<?php echo $name; ?>" id="<?php echo $name; ?>" class="gdl-panel-select-font-family">
  1124. <?php foreach($elements as $option_name => $status){ ?>
  1125. <option <?php if( $option_name==substr(esc_html($value),2) ){ echo 'selected'; }?> <?php echo $status; ?>><?php
  1126. echo ($status=='enabled')? '- ':'';
  1127. echo $option_name;
  1128. ?></option>
  1129. <?php } ?>
  1130. </select>
  1131. </div>
  1132. </div>
  1133. <?php if(isset($description)){ ?>
  1134. <div class="panel-description"><?php _e($description, 'gdl_back_office'); ?></div>
  1135. <div class="panel-description-info-img"></div>
  1136. <?php } ?>
  1137. <br class="clear">
  1138. </div>
  1139. <?php
  1140. }
  1141. // colorpicker => name, value, default
  1142. function print_panel_color_picker($title, $values){
  1143. extract($values);
  1144. ?>
  1145. <div class="panel-body">
  1146. <div class="panel-body-gimmick"></div>
  1147. <div class="panel-title">
  1148. <label for="<?php echo $name; ?>" > <?php _e($title, 'gdl_back_office'); ?> </label>
  1149. </div>
  1150. <div class="panel-input">
  1151. <input type="text" name="<?php echo $name; ?>" class="color-picker" value="<?php
  1152. echo ($value == '')? esc_html($default): esc_html($value);
  1153. ?>" default="<?php echo $default; ?>" />
  1154. </div>
  1155. <?php if(isset($description)){ ?>
  1156. <div class="panel-description"><?php _e($description, 'gdl_back_office'); ?></div>
  1157. <div class="panel-description-info-img"></div>
  1158. <?php } ?>
  1159. <br class="clear">
  1160. </div>
  1161. <?php
  1162. }
  1163. // sliderbar => name, value, default
  1164. function print_panel_sliderbar($title, $values){
  1165. extract($values);
  1166. ?>
  1167. <div class="panel-body">
  1168. <div class="panel-body-gimmick"></div>
  1169. <div class="panel-title">
  1170. <label for="<?php echo $name; ?>" > <?php _e($title, 'gdl_back_office'); ?> </label>
  1171. </div>
  1172. <div class="panel-input">
  1173. <div id="<?php echo $name; ?>" class="sliderbar" rel="sliderbar"></div>
  1174. <input type="hidden" name="<?php echo $name; ?>" value="<?php echo ($value == '')? esc_html($default): esc_html($value); ?>" >
  1175. <div id="slidertext"><?php echo ($value == '')? esc_html($default): esc_html($value); ?> px</div>
  1176. </div>
  1177. <?php if(isset($description)){ ?>
  1178. <div class="panel-description"><?php _e($description, 'gdl_back_office'); ?></div>
  1179. <div class="panel-description-info-img"></div>
  1180. <?php } ?>
  1181. <br class="clear">
  1182. </div>
  1183. <?php
  1184. }
  1185. // sidebar => name, value
  1186. function print_panel_sidebar($title, $values){
  1187. extract($values);
  1188. ?>
  1189. <div class="panel-body" id="panel-body">
  1190. <div class="panel-body-gimmick"></div>
  1191. <div class="panel-title">
  1192. <label> <?php _e($title, 'gdl_back_office'); ?> </label>
  1193. </div>
  1194. <div class="panel-input">
  1195. <input type="text" id="add-more-sidebar" value="type title here" rel="type title here">
  1196. <div id="add-more-sidebar" class="add-more-sidebar"></div>
  1197. </div>
  1198. <?php if(isset($description)){ ?>
  1199. <div class="panel-description"><?php _e($description, 'gdl_back_office'); ?></div>
  1200. <?php } ?>
  1201. <br class="clear">
  1202. <div id="selected-sidebar" class="selected-sidebar">
  1203. <div class="default-sidebar-item" id="sidebar-item">
  1204. <div class="panel-delete-sidebar"></div>
  1205. <div class="slider-item-text"></div>
  1206. <input type="hidden" id="<?php echo $name; ?>">
  1207. </div>
  1208. <?php
  1209. if(!empty($value)){
  1210. $xml = new DOMDocument();
  1211. $xml->loadXML($value);
  1212. foreach( $xml->documentElement->childNodes as $sidebar_name ){
  1213. ?>
  1214. <div class="sidebar-item" id="sidebar-item">
  1215. <div class="panel-delete-sidebar"></div>
  1216. <div class="slider-item-text"><?php echo $sidebar_name->nodeValue; ?></div>
  1217. <input type="hidden" name="<?php echo $name; ?>[]" id="<?php echo $name; ?>" value="<?php echo $sidebar_name->nodeValue; ?>">
  1218. </div>
  1219. <?php
  1220. }
  1221. }
  1222. ?>
  1223. </div>
  1224. </div>
  1225. <?php
  1226. }
  1227. // uploadfont => name, value
  1228. function print_panel_upload_font($title, $values){
  1229. extract($values);
  1230. ?>
  1231. <div class="panel-body" id="panel-body">
  1232. <div class="panel-body-gimmick"></div>
  1233. <div class="panel-title panel-add-more-title">
  1234. <?php _e($title, 'gdl_back_office'); ?>
  1235. </div>
  1236. <div id="add-more-font" class="add-more-font"></div>
  1237. <br class="clear">
  1238. <div id="added-font" class="added-font">
  1239. <div class="default-font-item" id="font-item">
  1240. <div class="inner-font-item">
  1241. <div class="panel-font-title"><?php _e('Font Name','gdl_back_office'); ?></div>
  1242. <input type="text" id="<?php echo $name; ?>" readonly>
  1243. </div>
  1244. <div class="inner-font-item">
  1245. <div class="panel-font-title"><?php _e('Font File','gdl_back_office'); ?></div>
  1246. <input type="hidden" id="<?php echo $file; ?>" class="font-attachment-id">
  1247. <input type="text" class="upload-font-text" readonly>
  1248. <input class="upload-font-button" type="button" value="Upload" />
  1249. </div>
  1250. <div class="panel-delete-font"></div>
  1251. </div>
  1252. <?php
  1253. if(!empty($value)){
  1254. $xml = new DOMDocument();
  1255. $xml->loadXML($value);
  1256. foreach( $xml->documentElement->childNodes as $each_font ){
  1257. ?>
  1258. <div class="font-item" id="font-item">
  1259. <div class="inner-font-item">
  1260. <div class="panel-font-title"><?php _e('Font Name','gdl_back_office'); ?></div>
  1261. <input type="text" name="<?php echo $name; ?>[]" id="<?php echo $name; ?>" value="<?php echo find_xml_value($each_font, 'name'); ?>" readonly>
  1262. </div>
  1263. <div class="inner-font-item">
  1264. <div class="panel-font-title"><?php _e('Font File','gdl_back_office'); ?></div>
  1265. <input type="hidden" name="<?php echo $file; ?>[]" id="<?php echo $file; ?>" class="font-attachment-id" value="<?php
  1266. $attachment_id = find_xml_value($each_font, 'file');
  1267. echo $attachment_id;
  1268. ?>" >
  1269. <input type="text" class="upload-font-text" value="<?php echo (empty($attachment_id))? '': wp_get_attachment_url( $attachment_id ); ?>" readonly>
  1270. <input class="upload-font-button" type="button" value="Upload" />
  1271. </div>
  1272. <div class="panel-delete-font"></div>
  1273. </div>
  1274. <?php
  1275. }
  1276. }
  1277. ?>
  1278. </div>
  1279. </div>
  1280. <?php
  1281. }
  1282. // print normal button
  1283. function print_panel_button($title, $values){
  1284. extract($values);
  1285. ?>
  1286. <div class="panel-body">
  1287. <div class="panel-body-gimmick"></div>
  1288. <div class="panel-title">
  1289. <label> <?php _e($title, 'gdl_back_office'); ?> </label>
  1290. </div>
  1291. <div class="panel-input">
  1292. <input type="button" value="<?php echo $text; ?>" id="<?php echo $id; ?>" />
  1293. </div>
  1294. <?php if(isset($description)){ ?>
  1295. <div class="panel-description"><?php _e($description, 'gdl_back_office'); ?></div>
  1296. <div class="panel-description-info-img"></div>
  1297. <?php } ?>
  1298. <br class="clear">
  1299. </div>
  1300. <?php
  1301. }
  1302. // upload dummy data (from xml file)
  1303. function print_panel_dummy(){
  1304. ?>
  1305. <div class="panel-body">
  1306. <div class="panel-body-gimmick"></div>
  1307. <div class="panel-title">
  1308. <label> DUMMIES DATA </label>
  1309. </div>
  1310. <div class="panel-input">
  1311. <input type="button" value="Import Dummies Data" id="import-dummies-data" />
  1312. <div id="import-now-loading" class="now-loading"></div>
  1313. </div>
  1314. <div class="panel-description">
  1315. By clicking this button, you can import the dummy post and page to help
  1316. you create a site that look like theme preview to help you understand the
  1317. function of this theme better. <br><br>
  1318. *** It may takes a while during importing process, make sure not to reload
  1319. the page or make any changes to the database.
  1320. </div>
  1321. <div class="panel-description-info-img"></div>
  1322. <br class="clear">
  1323. </div>
  1324. <?php
  1325. }
  1326. ?>