Advertisement
Guest User

Untitled

a guest
Nov 26th, 2018
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 190.78 KB | None | 0 0
  1. <?php
  2. global $avia_config;
  3.  
  4. //avia pages holds the data necessary for backend page creation
  5. $avia_pages = array(
  6.  
  7. array( 'slug' => 'avia', 'parent'=>'avia', 'icon'=>"new/spanner-screwdriver-7@3x.png" , 'title' => __('Theme Options', 'avia_framework')),
  8. array( 'slug' => 'layout', 'parent'=>'avia', 'icon'=>"new/window-within-7@3x.png", 'title' => __('General Layout', 'avia_framework')),
  9. array( 'slug' => 'styling', 'parent'=>'avia', 'icon'=>"new/color-palette-7@3x.png", 'title' => __('General Styling', 'avia_framework')),
  10. array( 'slug' => 'customizer', 'parent'=>'avia', 'icon'=>"new/magic-wand-7@3x.png", 'title' => __('Advanced Styling', 'avia_framework')),
  11. array( 'slug' => 'menu', 'parent'=>'avia', 'icon'=>"new/custom-menu@3x.png", 'title' => __('Main Menu', 'avia_framework')),
  12. array( 'slug' => 'header', 'parent'=>'avia', 'icon'=>"new/layout-arrange-02-7@3x.png", 'title' => __('Header', 'avia_framework')),
  13. array( 'slug' => 'sidebars', 'parent'=>'avia', 'icon'=>"new/layout-arrange-13-7@3x.png", 'title' => __('Sidebar Settings', 'avia_framework')),
  14. array( 'slug' => 'footer', 'parent'=>'avia', 'icon'=>"new/layout-reverse@3x.png", 'title' => __('Footer', 'avia_framework')),
  15. array( 'slug' => 'builder', 'parent'=>'avia', 'icon'=>"new/window-three-7@3x.png", 'title' => __('Layout Builder', 'avia_framework')),
  16. array( 'slug' => 'blog', 'parent'=>'avia', 'icon'=>"new/note-write-7@3x.png", 'title' => __('Blog Layout', 'avia_framework')),
  17. array( 'slug' => 'social', 'parent'=>'avia', 'icon'=>"new/circle-user-7@3x.png", 'title' => __('Social Profiles', 'avia_framework')),
  18. array( 'slug' => 'performance', 'parent'=>'avia', 'icon'=>"new/performance-7@3x.png", 'title' => __('Performance', 'avia_framework')),
  19. array( 'slug' => 'cookie', 'parent'=>'avia', 'icon'=>"new/cookie-7@3x.png", 'title' => __('Privacy and Cookies', 'avia_framework')),
  20. array( 'slug' => 'newsletter', 'parent'=>'avia', 'icon'=>"new/newspaper-7@3x.png", 'title' => __('Newsletter', 'avia_framework')),
  21. array( 'slug' => 'google', 'parent'=>'avia', 'icon'=>"new/paper-map-7@3x.png", 'title' => __('Google Services', 'avia_framework')),
  22. );
  23.  
  24. if(class_exists( 'woocommerce' ))
  25. {
  26. $avia_pages[] = array( 'slug' => 'shop', 'parent'=>'avia', 'icon'=>"new/shopping-cart-7@3x.png", 'title' => __('Shop Options','avia_framework') );
  27. }
  28.  
  29.  
  30. if(!current_theme_supports('avia_disable_import_export')){
  31. $avia_pages[] = array( 'slug' => 'demo', 'parent'=>'avia', 'icon'=>"new/window-up-7@3x.png", 'title' => __('Demo Import', 'avia_framework'));
  32. $avia_pages[] = array( 'slug' => 'upload', 'parent'=>'avia', 'icon'=>"new/connect-arrow-up-down-7@3x.png", 'title' => __('Import/Export', 'avia_framework'));
  33. }
  34.  
  35.  
  36. /**
  37. * Allow to include a user defined file to add or alter backend styles
  38. *
  39. * @since 4.2.1
  40. * @return string full path to the include file ( not a relative path !!! )
  41. */
  42. $custom_path = apply_filters( 'avf_register_custom_backend_styles', '' );
  43. if( ! empty( $custom_path ) && file_exists( $custom_path ) )
  44. {
  45. include_once $custom_path;
  46. }
  47.  
  48.  
  49.  
  50.  
  51. //required for the general styling color schemes
  52. include('register-backend-styles.php');
  53.  
  54. //required for the advanced styling wizard
  55. include('register-backend-advanced-styles.php');
  56.  
  57.  
  58.  
  59. /*Performance*/
  60. $avia_elements[] = array( "name" => __("Website performance and optimization",'avia_framework'),
  61. "desc" =>
  62. __("The options here allow you to fine tune and speed up your theme depending on your needs.", 'avia_framework')."<br>",
  63.  
  64. "id" => "performance_header",
  65. "std" => "",
  66. "slug" => "performance",
  67. "type" => "heading",
  68. "nodescription"=>true);
  69.  
  70.  
  71. $avia_elements[] = array( "slug" => "performance", "type" => "visual_group_start", "id" => "avia_performance_compression_start", "nodescription" => true);
  72.  
  73.  
  74. $avia_elements[] = array( "name" => __("File Compression",'avia_framework'),
  75. "desc" =>
  76. __("In order to increase the speed of your website you can activate file merging and compression for your CSS and Javascript files. This will reduce and optimize the amount of code loaded.", 'avia_framework')."<br><br>"."<strong>".__("Please note:", 'avia_framework')." </strong>".
  77. __("By default compression is enabled. It is recommended to only disable the feature when you encounter errors (some server environments might cause trouble with active compression) or while you are actively developing your website and are adding new CSS rules or Javascript functions.", 'avia_framework'),
  78. "id" => "performance_header",
  79. "std" => "",
  80. "slug" => "performance",
  81. "type" => "heading",
  82. "nodescription"=>true);
  83.  
  84.  
  85. $avia_elements[] = array(
  86. "slug" => "performance",
  87. "name" => __("CSS file merging and compression", 'avia_framework'),
  88. "desc" =>
  89. __("Select which level of file merging and compression you want to apply to your CSS files", 'avia_framework'),
  90. "id" => "merge_css",
  91. "type" => "select",
  92. "std" => "avia",
  93. "no_first"=>true,
  94. "subtype" => array( __('Disable - no CSS file merging and compression', 'avia_framework') => 'none',
  95. /*__('Compress advanced template builder CSS files (level 1)', 'avia_framework') =>'avia-module',*/
  96. __('Enable - merge and compress all theme CSS files', 'avia_framework') => 'avia',
  97. /*__('Compress all theme and plugin CSS files (level 3)', 'avia_framework') => "all",*/
  98. ));
  99.  
  100.  
  101. $avia_elements[] = array(
  102. "slug" => "performance",
  103. "name" => __("Javascript file merging and compression", 'avia_framework'),
  104. "desc" =>
  105. __("Select which level of file merging and compression you want to apply to your Javascript files.", 'avia_framework'),
  106.  
  107. "id" => "merge_js",
  108. "type" => "select",
  109. "std" => "avia",
  110. "no_first"=>true,
  111. "subtype" => array( __('Disable - no Javascript file merging and compression', 'avia_framework') => 'none',
  112. /*__('Compress advanced template builder javascript files (level 1)', 'avia_framework') =>'avia-module',*/
  113. __('Enable - merge and compress all theme javascript files', 'avia_framework') => 'avia',
  114. /* __('Compress all theme and plugin files (level 3)', 'avia_framework') => "all", */
  115. ));
  116.  
  117.  
  118.  
  119. $avia_elements[] = array( "slug" => "performance", "type" => "visual_group_end", "id" => "avia_compression_close", "nodescription" => true);
  120.  
  121. $avia_elements[] = array( "slug" => "performance", "type" => "visual_group_start", "id" => "avia_performance_compression_start4", "nodescription" => true);
  122.  
  123.  
  124. $avia_elements[] = array( "name" => __("Disable Template Builder Elements",'avia_framework'),
  125. "desc" =>
  126. __("The theme allows you to disable template builder elements that you do not need. This reduces the amount of Javascript and CSS loaded in your frontend", 'avia_framework')."<br>",
  127.  
  128. "id" => "performance_header_3",
  129. "std" => "",
  130. "slug" => "performance",
  131. "type" => "heading",
  132. "nodescription"=>true);
  133.  
  134.  
  135.  
  136. $avia_elements[] = array(
  137. "slug" => "performance",
  138. "name" => __("Disabling of template builder elements", 'avia_framework'),
  139. "desc" => __("By default the theme will only load elements that are used on your posts and pages. You can disable the feature or manually manage loaded elements if you run into trouble", 'avia_framework'),
  140. "id" => "disable_alb_elements",
  141. "type" => "select",
  142. "std" => "auto",
  143. "no_first"=>true,
  144. "subtype" => array( __('Always load all elements', 'avia_framework') =>'load_all',
  145. __('Load only used elements (recommended)', 'avia_framework') =>'auto',
  146. __('Manually manage loaded elements', 'avia_framework') =>'manually',
  147. ));
  148.  
  149.  
  150. $avia_elements[] = array(
  151. "id" => "alb_disabled",
  152. "type" => "template_builder_element_loader",
  153. "std" => "",
  154. "required" => array('disable_alb_elements','manually'),
  155. "nodescription"=>true,
  156. "slug" => "performance");
  157.  
  158.  
  159.  
  160.  
  161. $avia_elements[] = array( "slug" => "performance", "type" => "visual_group_end", "id" => "avia_compression_close4", "nodescription" => true);
  162.  
  163. $avia_elements[] = array( "slug" => "performance", "type" => "visual_group_start", "id" => "avia_performance_compression_start2", "nodescription" => true);
  164.  
  165.  
  166.  
  167. $avia_elements[] = array( "name" => __("Disable Features",'avia_framework'),
  168. "desc" =>
  169. __("Here you can disable theme features that are not used by every website", 'avia_framework')."<br>",
  170.  
  171. "id" => "performance_header_2",
  172. "std" => "",
  173. "slug" => "performance",
  174. "type" => "heading",
  175. "nodescription"=>true);
  176.  
  177.  
  178. $avia_elements[] = array(
  179. 'slug' => 'performance',
  180. 'name' => __( 'Self hosted videos and audio features (WP-Mediaelement scripts)', 'avia_framework' ),
  181. 'desc' => __( 'By default the theme will load wp-mediaelement scripts only if needed on your posts and pages. You can disable the feature or force loading these elements if you run into troubles - some plugins require these elements and rely on the WP default behaviour loading these scripts.', 'avia_framework' ),
  182. 'id' => 'disable_mediaelement',
  183. 'type' => 'select',
  184. 'std' => '',
  185. 'no_first' => true,
  186. 'subtype' => array(
  187. __( 'Default - only load when needed (recommended)', 'avia_framework' ) => '',
  188. __( 'Disable self hosted video and audio features', 'avia_framework' ) => 'disable_mediaelement',
  189. __( 'Always load media features (= WP default behaviour)', 'avia_framework' ) => 'force_mediaelement',
  190. )
  191. );
  192.  
  193. $avia_elements[] = array(
  194. "name" => __("Disable external video features", 'avia_framework'),
  195. "desc" => __("Check if you do not use Youtube or Vimeo video features.", 'avia_framework'),
  196. "id" => "disable_video",
  197. "type" => "checkbox",
  198. "std" => "",
  199. "slug" => "performance");
  200.  
  201.  
  202. $avia_elements[] = array(
  203. "name" => __("Disable the blog", 'avia_framework'),
  204. "desc" => __("Check if you do not use the blog. This will disable the blog page as well as the blog template builder element, the comments template builder element and category pages that are based on the default categories (if any plugin post types use these overview styles please keep this feature enabled)", 'avia_framework'),
  205. "id" => "disable_blog",
  206. "type" => "checkbox",
  207. "std" => "",
  208. "slug" => "performance");
  209.  
  210.  
  211. $avia_elements[] = array( "slug" => "performance", "type" => "visual_group_end", "id" => "avia_compression_close2", "nodescription" => true);
  212.  
  213.  
  214.  
  215.  
  216.  
  217. $avia_elements[] = array( "slug" => "performance", "type" => "visual_group_start", "id" => "avia_performance_compression_start3", "nodescription" => true);
  218.  
  219.  
  220. $avia_elements[] = array( "name" => __("Change WordPress defaults",'avia_framework'),
  221. "desc" =>
  222. __("Here you can disable WordPress default scripts and styles that are not necessary for most websites", 'avia_framework')."<br>",
  223.  
  224. "id" => "performance_header_2",
  225. "std" => "",
  226. "slug" => "performance",
  227. "type" => "heading",
  228. "nodescription"=>true);
  229.  
  230.  
  231.  
  232. $avia_elements[] = array(
  233. "name" => __("Disable Emoji/Smiley Support", 'avia_framework'),
  234. "desc" => __("Check to disable Emoji/Smiley Support. (Emojis are used by WordPress by default but most websites do not use them)", 'avia_framework'),
  235. "id" => "disable_emoji",
  236. "type" => "checkbox",
  237. "std" => "",
  238. "slug" => "performance");
  239.  
  240. if(avia_count_active_plugins() > 0)
  241. {
  242.  
  243. $avia_elements[] = array(
  244. "name" => __("Disable jQuery Migrate", 'avia_framework'),
  245. "desc" => __("Check to disable 'jQuery Migrate'. It is an old backward compatibility library for jQuery that is required by some plugins. Make sure that none of your active plugins require it before disabling it!", 'avia_framework'),
  246. "id" => "disable_jq_migrate",
  247. "type" => "checkbox",
  248. "std" => "",
  249. "slug" => "performance");
  250.  
  251. $avia_elements[] = array(
  252. "name" => __("Load jQuery in your footer", 'avia_framework'),
  253. "desc" => __("Loading jQuery in your footer will speed up site rendering but may cause problems with plugins. Only use if you know what you are doing ;)", 'avia_framework'),
  254. "id" => "jquery_in_footer",
  255. "type" => "checkbox",
  256. "std" => "",
  257. "slug" => "performance");
  258. }
  259.  
  260.  
  261. $avia_elements[] = array(
  262. "name" => __("Load google fonts in footer", 'avia_framework'),
  263. "desc" => __("Loading the fonts in your footer will speed up the site rendering, but also cause a small flicker of text on page load", 'avia_framework'),
  264. "id" => "gfonts_in_footer",
  265. "type" => "checkbox",
  266. "std" => "",
  267. "slug" => "performance");
  268.  
  269.  
  270.  
  271. $avia_elements[] = array( "slug" => "performance", "type" => "visual_group_end", "id" => "avia_compression_close2", "nodescription" => true);
  272.  
  273.  
  274. $avia_elements[] = array(
  275. "name" => __("Image Optimization", 'avia_framework'),
  276. "desc" => __("Enfold checks if it can detect an image optimization plugin and if it can't find a familiar one recommends a few that are known to work great with the theme", 'avia_framework')."<br>".
  277. __("(If you are running an image optimization plugin that is not detected just ignore this message)", 'avia_framework'),
  278. "id" => "image_optimisation_check",
  279. "type" => "plugin_check",
  280. "slug" => "performance",
  281. "nodescription"=>true,
  282. "no_found" =>__("We were not able to detect an active image optimization plugin. It is recommended to use one to speed up your site. Here are a few suggestions:",'avia_framework'),
  283. "found" =>__("We were able to detect an image optimization plugin. Great! Nothing left to do here ;)",'avia_framework'),
  284. "too_many" =>__("We were able to detect multiple active image optimization plugins. It is recommended to use only one!",'avia_framework'),
  285.  
  286. "plugins"=> array(
  287. 'Optimus - WordPress Image Optimizer' => array('download'=>'optimus', 'file'=>'optimus/optimus.php', 'desc' =>
  288. "<ul>
  289. <li>Simple to use with only a few options</li>
  290. <li>Good size reduction while keeping images pretty</li>
  291. <li>Very good google pagespeed scores</li>
  292. <li>Free version works already good, premium version is even better and also rather cheap</li>
  293. </ul>"
  294. ),
  295.  
  296.  
  297. 'ShortPixel Image Optimizer' => array('download'=>'shortpixel-image-optimiser', 'file'=>'shortpixel-image-optimiser/wp-shortpixel.php', 'desc' =>
  298. "<ul>
  299. <li>Fine tuning possible due to more options</li>
  300. <li>Allows you to heavily reduce file size if image quality is not a concern</li>
  301. <li>Good google pagespeed scores</li>
  302. <li>Free version will be sufficient for most smaller sites.</li>
  303. </ul>"
  304. ),
  305.  
  306. 'WP Smush - Image Optimization' => array('download'=>'resmushit-image-optimizer', 'file'=>'wp-smushit/wp-smush.php'),
  307. 'Imagify Image Optimizer' => array('download'=>'imagify', 'file'=>'imagify/imagify.php'),
  308. 'Compress JPEG & PNG images (TinyPNG)' => array('download'=>'tiny-compress-images', 'file'=>'tiny-compress-images/tiny-compress-images.php'),
  309. 'Kraken.io Image Optimizer' => array('download'=>'kraken-image-optimizer', 'file'=>'kraken-image-optimizer/kraken.php'),
  310. 'EWWW Image Optimizer' => array('download'=>'ewww-image-optimizer', 'file'=>'ewww-image-optimizer/ewww-image-optimizer.php'),
  311. 'EWWW Image Optimizer Cloud' => array('download'=>'ewww-image-optimizer-cloud', 'file'=>'ewww-image-optimizer-cloud/ewww-image-optimizer-cloud.php'),
  312. 'CheetahO Image Optimizer' => array('download'=>'cheetaho-image-optimizer', 'file'=>'cheetaho-image-optimizer/cheetaho.php'),
  313. 'Zara 4 Image Compression' => array('download'=>'zara-4', 'file'=>'zara-4/zara-4.php'),
  314. 'ImageRecycle pdf & image compression' => array('download'=>'imagerecycle-pdf-image-compression', 'file'=>'imagerecycle-pdf-image-compression/wp-image-recycle.php'),
  315. 'Prizm Image' => array('download'=> false, 'file'=>'prizm-image/wp-prizmimage.php'),
  316. 'CW Image Optimizer' => array('download'=> false, 'file'=>'cw-image-optimizer/cw-image-optimizer.php'),
  317. 'Imsanity' => array('download'=> 'imsanity', 'file'=>'imsanity/imsanity.php'),
  318. 'Way2enjoy Image Optimizer and Resize Image – WordPress Image Compression' =>
  319. array('download'=> 'way2enjoy-compress-images', 'file'=>'way2enjoy-compress-images/way2enjoy.php'),
  320. 'JPG, PNG Compression and Optimization' => array('download'=> 'wp-image-compression', 'file'=>'wp-image-compression/wp-image-compression.php'),
  321. 'Highcompress Image Compressor' => array('download'=> 'high-compress', 'file'=>'high-compress/highcompress.php'),
  322. 'Image Optimizer by 10web – Image Optimizer and Compression plugin'
  323. => array('download'=> 'image-optimizer-wd', 'file'=>'image-optimizer-wd/io-wd.php'),
  324. 'Ultimate Image Optimization Helpers' => array('download'=> 'ultimate-image-optimization-helpers', 'file'=>'ultimate-image-optimization-helpers/ultimate-image-optimization-helpers.php'),
  325. 'Pixpie – Intelligent Image Compression'=> array('download'=> 'wp-pixpie', 'file'=>'wp-pixpie/wp-pixpie-plugin.php'),
  326. 'Resize Image After Upload' => array('download'=> 'resize-image-after-upload', 'file'=>'resize-image-after-upload/resize-image-after-upload.php'),
  327. 'TP Image Optimizer' => array('download'=> 'tp-image-optimizer', 'file'=>'tp-image-optimizer/tp-image-optimizer.php'),
  328. )
  329.  
  330. );
  331.  
  332.  
  333.  
  334. $avia_elements[] = array(
  335. "name" => __("Caching Plugins", 'avia_framework'),
  336. "desc" => __("Enfold checks if it can detect a website caching plugin and if it can't find a familiar one recommends a few that are known to work great with the theme", 'avia_framework')."<br>"
  337. .__("(If you are running a caching plugin that is not detected or your webhost has built in caching ignore this message)", 'avia_framework'),
  338. "id" => "image_optimisation_check",
  339. "type" => "plugin_check",
  340. "slug" => "performance",
  341. "nodescription"=>true,
  342. "no_found" =>__("We were not able to detect an active caching plugin. It is recommended to use one to speed up your site. Here are a few suggestions:",'avia_framework'),
  343. "found" =>__("We were able to detect a caching plugin. Great! Nothing left to do here ;)",'avia_framework'),
  344. "too_many" =>__("We were able to detect multiple active caching plugins. It is recommended to use only one!",'avia_framework'),
  345.  
  346.  
  347. "plugins"=> array(
  348.  
  349. 'WP Super Cache' => array('download'=>'wp-super-cache', 'file'=>'wp-super-cache/wp-cache.php', 'desc' =>
  350. "<ul>
  351. <li>Great all around caching plugin</li>
  352. <li>Easy setup (usually no need to change the default settings)</li>
  353. </ul>"
  354. ),
  355.  
  356.  
  357. 'Comet Cache' => array('download'=>'comet-cache', 'file'=>'comet-cache/comet-cache.php', 'desc' =>
  358. "<ul>
  359. <li>Plug and Play, no setup necessary</li>
  360. <li>Premium version available</li>
  361. </ul>"
  362. ),
  363.  
  364. 'W3 Total Cache' => array('download'=>'w3-total-cache', 'file'=>'w3-total-cache/w3-total-cache.php', 'desc' =>
  365. "<ul>
  366. <li>Fast</li>
  367. <li>Easy to use</li>
  368. </ul>"
  369. ),
  370.  
  371.  
  372. 'Comet Cache Pro' => array('download'=>'comet-cache', 'file'=>'comet-cache-pro/comet-cache-pro.php'),
  373. 'Wot Cache' => array('download'=>false, 'file'=>'wot-cache/wot-cache.php'),
  374. 'WP Rocket' => array('download'=>false, 'file'=>'wp-rocket/wp-rocket.php'),
  375. 'WP Fastest Cache' => array('download'=>'wp-fastest-cache', 'file'=>'wp-fastest-cache/wpFastestCache.php'),
  376. 'Simple Cache' => array('download'=>'simple-cache', 'file'=>'simple-cache/simple-cache.php'),
  377. 'Cachify' => array('download'=>'cachify', 'file'=>'cachify/cachify.php'),
  378. 'Hyper Cache' => array('download'=>'hyper-cache', 'file'=>'hyper-cache/plugin.php'),
  379. 'Cache Enabler' => array('download'=>'cache-enabler', 'file'=>'cache-enabler/cache-enabler.php'),
  380. 'Autoptimize' => array('download'=>'autoptimize', 'file'=>'autoptimize/autoptimize.php'),
  381. 'Cache Control' => array('download'=>'cache-control', 'file'=>'cache-control/cache-control.php'),
  382. 'Fast Velocity Minify'=> array('download'=>'fast-velocity-minify', 'file'=>'fast-velocity-minify/fvm.php'),
  383. 'Gator Cache' => array('download'=>'gator-cache', 'file'=>'gator-cache/gator-cache.php'),
  384. 'Breeze' => array('download'=>'breeze', 'file'=>'breeze/breeze.php'),
  385. 'Super Static Cache'=> array('download'=>'super-static-cache', 'file'=>'super-static-cache/super-static-cache.php'),
  386. 'YASAKANI Cache' => array('download'=>'yasakani-cache', 'file'=>'yasakani-cache/yasakani-cache.php.php'),
  387. 'Lite Speed Cache' => array('download'=>'litespeed-cache', 'file'=>'litespeed-cache/litespeed-cache.php'),
  388. 'Hummingbird Page Speed Optimization' => array('download'=>'hummingbird-performance', 'file'=>'hummingbird-performance/wp-hummingbird.php'),
  389. 'Powered Cache' => array('download'=>'powered-cache', 'file'=>'powered-cache/powered-cache.php'),
  390. 'Page Speed Optimization' => array('download'=>'above-the-fold-optimization', 'file'=>'above-the-fold-optimization/abovethefold.php'),
  391. 'Varnish Caching' => array('download'=>'vcaching', 'file'=>'vcaching/vcaching.php'),
  392. 'Borlabs Cache' => array('download'=>false, 'file'=>'borlabs-cache/borlabs-cache.php'),
  393. )
  394.  
  395. );
  396. $avia_elements[] = array(
  397. "name" => __("Delete old CSS and JS files?", 'avia_framework'),
  398. "desc" => __("Check if you want to delete expired CSS and JS files generated by the theme. Only recommended if you are NOT using a caching plugin (since a cached page might still use those files)", 'avia_framework'),
  399. "id" => "delete_assets_after_save",
  400. "type" => "checkbox",
  401. "std" => "",
  402. "slug" => "performance");
  403.  
  404.  
  405. /*builder*/
  406.  
  407.  
  408. $avia_elements[] = array(
  409. "name" => __("Disable advance layout builder preview in backend", 'avia_framework'),
  410. "desc" => __("Check to disable the live preview of your advanced layout builder elements", 'avia_framework'),
  411. "id" => "preview_disable",
  412. "type" => "checkbox",
  413. "std" => "",
  414. "slug" => "builder");
  415.  
  416.  
  417. $avia_elements[] = array(
  418. "name" => __("Show element options for developers", 'avia_framework'),
  419. "desc" => __("If checked this will display developer options like custom CSS classes or IDs", 'avia_framework'),
  420. "id" => "developer_options",
  421. "type" => "checkbox",
  422. "std" => "",
  423. "slug" => "builder");
  424.  
  425.  
  426.  
  427. $loack_alb = "checkbox";
  428.  
  429. if(!current_user_can('switch_themes'))
  430. {
  431. $loack_alb = "hidden";
  432. }
  433.  
  434. $avia_elements[] = array( "slug" => "builder", "type" => "visual_group_start", "id" => "avia_lock_alb", "nodescription" => true);
  435.  
  436. $avia_elements[] = array(
  437. "name" => __("Lock advanced layout builder", 'avia_framework'),
  438. "desc" => __("This removes the ability to move or delete existing template builder elements, or add new ones, for everyone who is not an administrator. The content of an existing element can still be changed by everyone who can edit that entry.", 'avia_framework'),
  439. "id" => "lock_alb",
  440. "type" => $loack_alb,
  441. "std" => "",
  442. "slug" => "builder");
  443.  
  444.  
  445. $avia_elements[] = array(
  446. "name" => __("Lock advanced layout builder for admins as well?", 'avia_framework'),
  447. "desc" => __("This will lock the elements for all administrators including you, to prevent accidental changing of a page layout. In order to change a page layout later, you will need to uncheck this option first", 'avia_framework'),
  448. "id" => "lock_alb_for_admins",
  449. "type" => $loack_alb,
  450. "std" => "",
  451. "required" => array('lock_alb','{true}'),
  452. "slug" => "builder");
  453.  
  454. $avia_elements[] = array( "slug" => "builder", "type" => "visual_group_end", "id" => "avia_lock_alb_close", "nodescription" => true);
  455.  
  456.  
  457. $avia_elements[] = array( "slug" => "builder", "type" => "visual_group_start", "id" => "avia_markup", "nodescription" => true);
  458.  
  459. $avia_elements[] = array(
  460. "slug" => "builder",
  461. "name" => __("Automated Schema.org HTML Markup", 'avia_framework'),
  462. "desc" => __("The theme adds generic HTML schema markup to your template builder elements to provide additional context for search engines. If you want to add your own specific markup via plugins or custom HTML code, you can deactivate this setting", 'avia_framework'),
  463. "id" => "markup",
  464. "type" => "select",
  465. "std" => "",
  466. "no_first"=>true,
  467. "subtype" => array( __('Not activated', 'avia_framework') =>'inactive',
  468. __('Activated', 'avia_framework') =>'',
  469. ));
  470.  
  471.  
  472. $avia_elements[] = array( "slug" => "builder", "type" => "visual_group_end", "id" => "avia_markup_close", "nodescription" => true);
  473.  
  474.  
  475.  
  476. /*menu*/
  477. $iconSpan = "<span class='pr-icons'>
  478. <img src='".AVIA_IMG_URL."icons/social_facebook.png' alt='' />
  479. <img src='".AVIA_IMG_URL."icons/social_twitter.png' alt='' />
  480. <img src='".AVIA_IMG_URL."icons/social_flickr.png' alt='' />
  481. </span>";
  482.  
  483. $frontendheader_label = __("A rough layout preview of the main menu", 'avia_framework');
  484.  
  485. $avia_elements[] = array(
  486. "slug" => "menu",
  487. "id" => "main_menu_preview",
  488. "type" => "target",
  489. "std" => "
  490. <style type='text/css'>
  491.  
  492. #avia_options_page #avia_main_menu_preview{background: #f8f8f8; padding: 30px;border-bottom: 1px solid #e5e5e5; margin-bottom: 25px;}
  493. #av-main-menu-preview-container{color:#999; border:1px solid #e1e1e1; padding:0px 45px; overflow:hidden; background-color:#fff; position: relative;}
  494.  
  495. #avia_options_page #pr-main-area{line-height:69px; overflow:hidden;}
  496.  
  497. .main-menu-wrap{float:right; height:70px; line-height:70px;}
  498.  
  499.  
  500. [data-av_set_global_tab_active='av_display_burger'] .av-header-area-preview-menu-only #av-menu-overlay{display:block;}
  501. [data-av_set_global_tab_active='av_display_burger'] .av-header-area-preview-menu-only #pr-burger-menu{display:block;}
  502. [data-av_set_global_tab_active='av_display_burger'] #pr-menu #pr-menu-inner{display:none;}
  503.  
  504.  
  505. #av-menu-overlay{position: absolute; left:31px; display:none; bottom: 31px; top: 54px; right: 31px; background: rgba(0,0,0,0.2); z-index: 1;}
  506. #av-menu-overlay .av-overlay-menu-item{display:block; padding:8px 20px; border-bottom: 1px solid #e1e1e1;}
  507. #av-menu-overlay .av-overlay-menu-item-sub{display:block; color:#999;}
  508. #av-menu-overlay-scroll{position:absolute; top:0; right:0; bottom:0; width:280px; background:#fff; padding-top:70px; color:#666;}
  509. [data-submenu_visibility*='av-submenu-hidden'] #av-menu-overlay .av-overlay-menu-item-sub{display:none;}
  510. [data-burger_size*='av-small-burger-icon'] #pr-burger-menu{ -ms-transform: scale(0.6); transform: scale(0.6);}
  511.  
  512.  
  513. [data-overlay_style='av-overlay-full'] #av-menu-overlay-scroll{background:transparent; color:#fff; width:100%; text-align: center;}
  514. [data-overlay_style='av-overlay-full'] #av-menu-overlay .av-overlay-menu-item{border:none; font-size:16px;}
  515. [data-overlay_style='av-overlay-full'] #av-menu-overlay{ background: rgba(0,0,0,0.8);}
  516. [data-av_set_global_tab_active='av_display_burger'] [data-overlay_style='av-overlay-full'] #pr-burger-menu span{border-color:#fff;}
  517.  
  518.  
  519. [data-overlay_style*='av-overlay-side-minimal'] #av-menu-overlay-scroll{display:table; height:100%;padding:0;}
  520. [data-overlay_style*='av-overlay-side-minimal'] #av-menu-overlay-scroll > *{display:table-cell; height:100%; vertical-align:middle;}
  521. [data-overlay_style*='av-overlay-side-minimal'] #av-menu-overlay .av-overlay-menu-item{border:none;}
  522.  
  523. </style>
  524. <div class='av-header-area-preview av-header-area-preview-menu-only' >
  525.  
  526. <div id='av-menu-overlay'>
  527. <div id='av-menu-overlay-scroll'>
  528. <div id='av-menu-overlay-scroll-inner'>
  529. <span class='av-overlay-menu-item'>Home</span>
  530. <span class='av-overlay-menu-item'>About</span>
  531. <span class='av-overlay-menu-item av-overlay-menu-item-sub'>- Team</span>
  532. <span class='av-overlay-menu-item av-overlay-menu-item-sub'>- History</span>
  533. <span class='av-overlay-menu-item'>Contact</span>
  534. </div>
  535. </div>
  536. </div>
  537.  
  538. <div id='pr-stretch-wrap' >
  539. <small class='live_bg_small'>{$frontendheader_label}</small>
  540. <div id='pr-header-style-wrap' >
  541. <div id='pr-phone-wrap' >
  542. <div id='pr-social-wrap' >
  543. <div id='pr-seconary-menu-wrap' >
  544. <div id='pr-menu-2nd'>{$iconSpan}<span class='pr-secondary-items'>Login | Signup | etc</span><span class='pr-phone-items'>Phone: 555-4432</span></div>
  545. <div id='avia_header_preview' >
  546. <div id='pr-main-area' >
  547. <img id='pr-logo' src='".AVIA_BASE_URL."images/layout/logo_modern.png' alt=''/>
  548. <div id='pr-main-icon'>{$iconSpan}</div>
  549. <div id='pr-menu'>
  550.  
  551.  
  552. <span id='pr-menu-inner'><span class='pr-menu-single pr-menu-single-first'>Home</span><span class='pr-menu-single'>About</span><span class='pr-menu-single'>Contact</span></span> <img id='search_icon' src='".AVIA_BASE_URL."images/layout/search.png' alt='' />
  553. <div id='pr-burger-menu'>
  554. <span class='burger-top'></span>
  555. <span class='burger-mid'></span>
  556. <span class='burger-low'></span>
  557. </div>
  558.  
  559. </div>
  560. </div>
  561. </div>
  562. </div>
  563. </div>
  564. </div>
  565. </div>
  566. <div id='pr-content-area'> Content / Slideshows / etc
  567. <div class='inner-content'><p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. </p>
  568.  
  569. <p>Donec quam felis, ultricies nec, pellentesque eu, pretium sem.Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium sem.</p>
  570.  
  571. <p>Donec quam felis, ultricies nec, pellentesque eu, pretium sem.Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium sem.</p>
  572.  
  573. </div>
  574. </div>
  575. </div>
  576. </div>
  577. ",
  578. "nodescription" => true
  579. );
  580.  
  581. //START TAB CONTAINER
  582. $avia_elements[] = array( "slug" => "menu", "type" => "visual_group_start", "id" => "avia_tab1", "nodescription" => true, 'class'=>'avia_tab_container avia_set');
  583.  
  584. // Start TAB
  585. $avia_elements[] = array( "slug" => "menu", "type" => "visual_group_start", "id" => "avia_tab5", "nodescription" => true, 'class'=>'avia_tab avia_tab2','name'=>__('General', 'avia_framework'));
  586.  
  587.  
  588. $avia_elements[] = array(
  589. "slug" => "menu",
  590. "name" => __("Menu Items for Desktop", 'avia_framework'),
  591. "desc" => __("Choose how you want to display the menu items on desktop computers. If you choose to display the 'burger' icon on desktop computers it will also be used on tablets and mobile devices ", 'avia_framework'),
  592. "id" => "menu_display",
  593. "type" => "select",
  594. "std" => "",
  595. //"required" => array('header_layout','{contains}main_nav_header'),
  596. "target" => array(".av-header-area-preview::#pr-menu::set_class"),
  597. "no_first"=>true,
  598. "subtype" => array( __('Display as text', 'avia_framework') =>'',
  599. __('Display as icon', 'avia_framework') =>'burger_menu',
  600. ));
  601.  
  602. $avia_elements[] = array(
  603. "slug" => "menu",
  604. "name" => __( "Alternate Menu for Mobile", 'avia_framework' ),
  605. "desc" => __( "Choose if you want to display the alternate menu on mobile devices.", 'avia_framework' ),
  606. "id" => "alternate_menu",
  607. "type" => "select_menu",
  608. "std" => "",
  609. "required" => array( 'menu_display', '' ),
  610. "no_first" => true,
  611. "subtype" => array(
  612. __( 'Do not use an alternate menu for mobile', 'avia_framework' ) => ''
  613. )
  614. );
  615.  
  616. $avia_elements[] = array(
  617. "slug" => "menu",
  618. "name" => __("Menu Items for mobile", 'avia_framework'),
  619. "desc" => __("The mobile menu is usually displayed on smarthphone screensize only. If you have a lot of main menu items you might want to activate it for tablet screen size as well so it doesn't overlap the logo on tablets or small screens", 'avia_framework'),
  620. "id" => "header_mobile_activation",
  621. "type" => "select",
  622. "std" => "mobile_menu_phone",
  623. "required" => array('menu_display',''),
  624. "no_first"=>true,
  625. "subtype" => array( __('Activate only for Smartphones (browser width below 768px)', 'avia_framework') =>'mobile_menu_phone',
  626. __('Activate for Smartphones and Tablets (browser width below 990px)', 'avia_framework') =>'mobile_menu_tablet',
  627. ));
  628.  
  629. $avia_elements[] = array(
  630. "slug" => "menu",
  631. "name" => __("Separator between menu items", 'avia_framework'),
  632. "desc" => __("Choose if you want to display a border between menu items", 'avia_framework'),
  633. "id" => "header_menu_border",
  634. "type" => "select",
  635. "std" => "",
  636. "target" => array(".av-header-area-preview::#pr-menu-inner::set_class"),
  637. "no_first"=>true,
  638. "required" => array('menu_display',''),
  639. "subtype" => array( __('No separator', 'avia_framework') =>'',
  640. __('Small separator', 'avia_framework') =>'seperator_small_border',
  641. __('Large separator', 'avia_framework') =>'seperator_big_border',
  642. ));
  643.  
  644. $avia_elements[] = array(
  645. "name" => __("Append search icon to main menu", 'avia_framework'),
  646. "desc" => __("If enabled a search Icon will be appended to the main menu that allows the users to perform an 'AJAX' Search", 'avia_framework'),
  647. "id" => "header_searchicon",
  648. "type" => "checkbox",
  649. "std" => "true",
  650. "target" => array(".av-header-area-preview::#search_icon::set_class"),
  651. "slug" => "menu");
  652.  
  653. // END TAB
  654. $avia_elements[] = array( "slug" => "menu", "type" => "visual_group_end", "id" => "avia_tab5_end", "nodescription" => true);
  655.  
  656.  
  657.  
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.  
  665. // Start TAB
  666. $avia_elements[] = array( "slug" => "menu", "type" => "visual_group_start", "id" => "avia_tab5", "nodescription" => true, 'class'=>'avia_tab avia_tab2','name'=>__('Burger/Mobile Menu', 'avia_framework'), "global_class" => 'av_display_burger');
  667.  
  668.  
  669. $avia_elements[] = array(
  670. "slug" => "menu",
  671. "name" => __("Menu Icon Submenu items", 'avia_framework'),
  672. "desc" => __("Choose how to display the submenu items of the icon menu", 'avia_framework'),
  673. "id" => "submenu_visibility",
  674. "type" => "select",
  675. "std" => "",
  676. "target" => array("#avia_main_menu_preview::.avia_control_container::set_data"),
  677. "no_first"=>true,
  678. "subtype" => array( __('Always display submenu items', 'avia_framework') =>'',
  679. __('Display submenu items on click', 'avia_framework') =>'av-submenu-hidden av-submenu-display-click',
  680. __('Display submenu items on hover', 'avia_framework') =>'av-submenu-hidden av-submenu-display-hover',
  681. ));
  682.  
  683.  
  684. $avia_elements[] = array(
  685. "slug" => "menu",
  686. "name" => __("Clone title menu items to submenu", 'avia_framework'),
  687. "desc" => __("Since you selected to display submenu items on click or on hover, the parent menu item does no longer navigate to the URL it contains, but toggles the visibility of its submenu items. If you want users to be able to open the parent menu URL the theme can create a clone of that item in the submenu", 'avia_framework'),
  688. "id" => "submenu_clone",
  689. "type" => "select",
  690. "std" => "",
  691. "no_first"=>true,
  692. "required" => array('submenu_visibility','{contains_array}av-submenu-display-click;av-submenu-display-hover'),
  693. "subtype" => array( __('Do not create a clone', 'avia_framework') =>'av-submenu-noclone',
  694. __('Create a clone for the title menu item', 'avia_framework') =>'av-submenu-clone',
  695. ));
  696.  
  697.  
  698. $avia_elements[] = array(
  699. "slug" => "menu",
  700. "name" => __("Menu Icon Style", 'avia_framework'),
  701. "desc" => __("Set the style of the 'Burger' Icon", 'avia_framework'),
  702. "id" => "burger_size",
  703. "type" => "select",
  704. "std" => "",
  705. "target" => array(".av-header-area-preview::#pr-stretch-wrap::set_data"),
  706. "no_first"=>true,
  707. "subtype" => array( __('Default', 'avia_framework') =>'',
  708. __('Small', 'avia_framework') =>'av-small-burger-icon',
  709. ));
  710.  
  711.  
  712. $avia_elements[] = array(
  713. "slug" => "menu",
  714. "name" => __("Menu Overlay Style", 'avia_framework'),
  715. "desc" => __("Set the style of the page overlay that appears when the burger menu is clicked", 'avia_framework'),
  716. "id" => "overlay_style",
  717. "type" => "select",
  718. "std" => "av-overlay-side av-overlay-side-classic",
  719. "target" => array("#avia_main_menu_preview::.avia_control_container::set_data"),
  720. "no_first"=>true,
  721. "subtype" => array( __('Full Page Overlay Menu', 'avia_framework') =>'av-overlay-full',
  722. __('Sidebar Flyout Menu (Classic)', 'avia_framework') =>'av-overlay-side av-overlay-side-classic',
  723. __('Sidebar Flyout Menu (Minimal)', 'avia_framework') =>'av-overlay-side av-overlay-side-minimal',
  724. ));
  725.  
  726.  
  727. // END TAB
  728. $avia_elements[] = array( "slug" => "menu", "type" => "visual_group_end", "id" => "avia_tab5_end", "nodescription" => true);
  729.  
  730.  
  731.  
  732.  
  733.  
  734.  
  735.  
  736.  
  737.  
  738.  
  739.  
  740.  
  741.  
  742. // Start TAB
  743. $avia_elements[] = array( "slug" => "menu", "type" => "visual_group_start", "id" => "avia_tab5", "nodescription" => true, 'class'=>'avia_tab avia_tab2','name'=>__('Burger/Mobile Menu styling', 'avia_framework'), "global_class" => 'av_display_burger');
  744.  
  745.  
  746. $avia_elements[] = array(
  747. "slug" => "menu",
  748. "name" => __("Menu Icon Color", 'avia_framework'),
  749. "desc" => __("Set a custom color of the 'Burger' Icon. Leave empty to use the default menu color", 'avia_framework'),
  750. "id" => "burger_color",
  751. "type" => "colorpicker",
  752. "class" => "",
  753. "std" => ""
  754. );
  755.  
  756.  
  757. $avia_elements[] = array(
  758. "slug" => "menu",
  759. "name" => __("Flyout width", 'avia_framework'),
  760. "desc" => __("Set a custom width for the Flyout. Pixel and % values are allowed. Eg: 350px or 70%", 'avia_framework'),
  761. "id" => "burger_flyout_width",
  762. "type" => "text",
  763. "class" => "",
  764. "std" => "350px"
  765. );
  766.  
  767.  
  768.  
  769. $avia_elements[] = array( "name" => __("Advanced color and styling options",'avia_framework'),
  770. "desc" => __("You can edit more and advanced color and styling options for the overlay/slideout menu items in").
  771. " <a href='#goto_customizer'>".
  772. __("Advanced Styling",'avia_framework').
  773. "</a>",
  774. "id" => "overlay_description",
  775. "std" => "",
  776. "slug" => "menu",
  777. "type" => "heading",
  778. "nodescription"=>true);
  779.  
  780.  
  781.  
  782.  
  783.  
  784.  
  785.  
  786.  
  787.  
  788.  
  789.  
  790.  
  791.  
  792. // END TAB
  793. $avia_elements[] = array( "slug" => "menu", "type" => "visual_group_end", "id" => "avia_tab5_end", "nodescription" => true);
  794.  
  795.  
  796.  
  797.  
  798.  
  799.  
  800.  
  801.  
  802.  
  803. //END TAB CONTAINER
  804. $avia_elements[] = array( "slug" => "menu", "type" => "visual_group_end", "id" => "avia_tab_container_end", "nodescription" => true);
  805.  
  806.  
  807.  
  808.  
  809.  
  810.  
  811.  
  812.  
  813.  
  814.  
  815.  
  816.  
  817.  
  818.  
  819.  
  820.  
  821.  
  822.  
  823. /*google*/
  824.  
  825.  
  826.  
  827. $avia_elements[] = array(
  828. "slug" => "google",
  829. "name" => __("Google Analytics Tracking Code", 'avia_framework'),
  830. "desc" => __("Either enter your Google tracking id (UA-XXXXX-X) or your full Google Analytics tracking Code here.", 'avia_framework')."<br><br>".__("If you want to offer your visitors the option to stop being tracked you can place the shortcode [av_privacy_google_tracking] somewhere on your site", 'avia_framework'),
  831. "class" => "av_small_textarea",
  832. "id" => "analytics",
  833. "type" => "textarea"
  834. );
  835.  
  836. $avia_elements[] = array("slug" => "google", "type" => "visual_group_start", "id" => "avia_google_maps_group", "nodescription" => true);
  837.  
  838.  
  839. $google_link = "https://console.developers.google.com/flows/enableapi?apiid=maps_backend,geocoding_backend,directions_backend,distance_matrix_backend,elevation_backend,places_backend&keyType=CLIENT_SIDE&reusekey=true";
  840. $tutorial_link = "https://kriesi.at/documentation/enfold/how-to-register-a-google-maps-api-key/";
  841.  
  842.  
  843. $avia_elements[] = array( "name" => __("Google Maps", 'avia_framework'),
  844. "desc" => __("Google recently changed the way their map service works. New pages which want to use Google Maps need to register an API key for their website. Older pages should work fine without this API key. If the google map elements of this theme do not work properly you need to register a new API key.", 'avia_framework')."<br><a href='{$google_link}' target='_blank'>".__("Register an API Key", 'avia_framework')."</a> | <a target='_blank' href='{$tutorial_link}'>".__("Tutorial: How to create an API key", 'avia_framework')."</a>",
  845. "std" => "",
  846. "slug" => "google",
  847. "type" => "heading",
  848. "nodescription"=>true);
  849.  
  850.  
  851. $avia_elements[] = array(
  852. "slug" => "google",
  853. "name" => __("Enter a valid Google Maps API Key to use all map related theme functions", 'avia_framework'),
  854. "desc" => "",
  855. "id" => "gmap_api",
  856. "type" => "verification_field",
  857. "ajax" => "av_maps_api_check",
  858. "js_callback" => "av_maps_js_api_check",
  859. "class" => "av_full_description",
  860. "button-label" => __('Check API Key', 'avia_framework'),
  861. "button-relabel" => __('Check API Key', 'avia_framework'),
  862. "std" => ""
  863. );
  864.  
  865.  
  866. $avia_elements[] = array("slug" => "google", "type" => "visual_group_end", "id" => "avia_google_maps_group_end", "nodescription" => true);
  867.  
  868.  
  869. /**
  870. * Privacy section
  871. *
  872. * @author kriesi
  873. * @since 4.4
  874. */
  875. $avia_elements[] = array("slug" => "cookie", "type" => "visual_group_start", "id" => "avia_privacy_group_start", "nodescription" => true);
  876.  
  877. $eu_msg = __( "In case you deal with any EU customers/visitors these options allow you to make your site GDPR compliant.", 'avia_framework' ) . '<br />';
  878. $eu_msg .= __( "The following default text will be applied if you leave the textfields empty:", 'avia_framework' ) . '<br />';
  879. $eu_msg .= '<p><strong>' . av_privacy_class::get_default_privacy_message() . '</strong></p>';
  880.  
  881. $avia_elements[] = array(
  882. "name" => __("Privacy Policy",'avia_framework'),
  883. "desc" => $eu_msg,
  884. "id" => "gdpr_overveiw",
  885. "std" => "",
  886. "slug" => "cookie",
  887. "type" => "heading",
  888. "nodescription"=>true);
  889.  
  890.  
  891. $policy_page_wp = get_option('wp_page_for_privacy_policy');
  892. if(empty( $policy_page_wp ))
  893. {
  894. global $wp_version;
  895.  
  896. //remove any beta tags from version string
  897. $clean_version = explode('-', $wp_version);
  898. $clean_version = $clean_version[0];
  899.  
  900. $notice_class = ' av-text-notice';
  901. $notice_msg = __("Attention: You need to set a Privacy Policy page here to activate these features:", 'avia_framework') .' <a target="_blank" href="'.admin_url('privacy.php').'">'.__("Set Privacy Policy", 'avia_framework').'</a>';
  902.  
  903.  
  904. if(version_compare($clean_version, '4.9.6', '<' ))
  905. {
  906. $notice_class = ' av-text-notice av-notice-error';
  907. $notice_msg = __("Attention: You need WordPress version 4.9.6 or higher to use these features", 'avia_framework');
  908. }
  909.  
  910. $avia_elements[] = array(
  911. "desc" => "<br><strong class='{$notice_class} av-prev-el-notice'>".$notice_msg.'</strong>',
  912. "id" => "privacy_activate",
  913. "std" => "",
  914. "slug" => "cookie",
  915. "type" => "heading",
  916. "nodescription"=>true);
  917. }
  918.  
  919. else /******************************** PRIVACY PAGE ACTIVE *****************************************/
  920. {
  921.  
  922. $desc = __( "A short message that can be displayed below forms, along with a checkbox, that lets the user know that he has to agree to your privacy policy in order to send the form. See default text above if you leave empty.", 'avia_framework');
  923.  
  924. $avia_elements[] = array(
  925. "slug" => "cookie",
  926. "name" => __("Append a privacy policy message to your comment form?", 'avia_framework'),
  927. "desc" => __("Check to append a message to the comment form for unregistered users. Commenting without consent is no longer possible", 'avia_framework'),
  928. "id" => "privacy_message_commentform_active",
  929. "type" => "checkbox",
  930. "std" => false,
  931. );
  932.  
  933. $avia_elements[] = array(
  934. "slug" => "cookie",
  935. "name" => __("Message below comment form", 'avia_framework'),
  936. "desc" => $desc,
  937. "id" => "privacy_message",
  938. "type" => "textarea",
  939. "class" => "av_small_textarea",
  940. "std" => '',
  941. "required" => array("privacy_message_commentform_active",'privacy_message_commentform_active'),
  942. );
  943.  
  944. $avia_elements[] = array(
  945. "slug" => "cookie",
  946. "name" => __("Append a privacy policy message to template builder contact forms?", 'avia_framework'),
  947. "desc" => __("Check to append a message to all of your contact forms.", 'avia_framework'),
  948. "id" => "privacy_message_contactform_active",
  949. "type" => "checkbox",
  950. "std" => false,
  951. );
  952.  
  953. $avia_elements[] = array(
  954. "slug" => "cookie",
  955. "name" => __("Message below template builder contact forms", 'avia_framework'),
  956. "desc" => $desc,
  957. "id" => "privacy_message_contact",
  958. "type" => "textarea",
  959. "class" => "av_small_textarea",
  960. "std" => '',
  961. "required" => array("privacy_message_contactform_active",'privacy_message_contactform_active'),
  962. );
  963.  
  964. $avia_elements[] = array(
  965. "slug" => "cookie",
  966. "name" => __("Append a privacy policy message to mailchimp contact forms?", 'avia_framework'),
  967. "desc" => __("Check to append a message to all of your mailchimp forms.", 'avia_framework'),
  968. "id" => "privacy_message_mailchimp_active",
  969. "type" => "checkbox",
  970. "std" => false,
  971. );
  972.  
  973. $avia_elements[] = array(
  974. "slug" => "cookie",
  975. "name" => __("Message below mailchimp subscription forms", 'avia_framework'),
  976. "desc" => $desc,
  977. "id" => "privacy_message_mailchimp",
  978. "type" => "textarea",
  979. "class" => "av_small_textarea",
  980. "std" => '',
  981. "required" => array("privacy_message_mailchimp_active",'privacy_message_mailchimp_active'),
  982. );
  983.  
  984.  
  985. $avia_elements[] = array(
  986. "slug" => "cookie",
  987. "name" => __("Append a privacy policy message to your login forms?", 'avia_framework'),
  988. "desc" => __("Check to append a message to the default login forms.", 'avia_framework'),
  989. "id" => "privacy_message_login_active",
  990. "type" => "checkbox",
  991. "std" => false,
  992. );
  993.  
  994. $avia_elements[] = array(
  995. "slug" => "cookie",
  996. "name" => __("Message below login forms", 'avia_framework'),
  997. "desc" => $desc,
  998. "id" => "privacy_message_login",
  999. "type" => "textarea",
  1000. "class" => "av_small_textarea",
  1001. "std" => '',
  1002. "required" => array("privacy_message_login_active",'privacy_message_login_active'),
  1003. );
  1004.  
  1005. $avia_elements[] = array(
  1006. "slug" => "cookie",
  1007. "name" => __("Append a privacy policy message to your registration forms?", 'avia_framework'),
  1008. "desc" => __("Check to append a message to the default registrations forms.", 'avia_framework'),
  1009. "id" => "privacy_message_registration_active",
  1010. "type" => "checkbox",
  1011. "std" => false,
  1012. );
  1013.  
  1014. $avia_elements[] = array(
  1015. "slug" => "cookie",
  1016. "name" => __("Message below registration forms", 'avia_framework'),
  1017. "desc" => $desc,
  1018. "id" => "privacy_message_registration",
  1019. "type" => "textarea",
  1020. "class" => "av_small_textarea",
  1021. "std" => '',
  1022. "required" => array("privacy_message_registration_active",'privacy_message_registration_active'),
  1023. );
  1024.  
  1025. $avia_elements[] = array(
  1026. "slug" => "cookie",
  1027. "id" => "privacy_hr1",
  1028. "type" => "hr",
  1029. "std" => false,
  1030. "class" => "small-hr",
  1031. "nodescription"=>true
  1032. );
  1033.  
  1034. $pp_id = get_option('wp_page_for_privacy_policy');
  1035. $pp_url = admin_url("post.php?post={$pp_id}&action=edit");
  1036. $pp_title = get_the_title($pp_id);
  1037.  
  1038. $avia_elements[] = array(
  1039. "name" => __("Shortcodes you can use in your Privacy Policy",'avia_framework')." - <a target='_blank' href='{$pp_url}'>({$pp_title})</a>",
  1040. "desc" => __("In order to offer your users a better experience you can use the shortcodes listed here in your privacy policy. These shortcodes allow your users to change certain behavior of your website.",'avia_framework').
  1041. "<ul>".
  1042. "<li><strong>[av_privacy_google_tracking]</strong> - " .__("allows a user to disable google tracking in his or her browser",'avia_framework')."</li>".
  1043. "<li><strong>[av_privacy_google_webfonts]</strong> - " .__(" allows a user to disable the use of google webfonts in his or her browser",'avia_framework')."</li>".
  1044. "<li><strong>[av_privacy_google_maps]</strong> - " .__(" allows a user to disable the use of google maps in his or her browser",'avia_framework')."</li>".
  1045. "<li><strong>[av_privacy_video_embeds]</strong> - " .__(" allows a user to disable video embeds in his or her browser",'avia_framework')."</li>".
  1046. "<li><strong>[av_privacy_link]</strong> - " .__(" displays a link to the privacy policy page set in your WordPress admin panel or to a custom page",'avia_framework')."</li>".
  1047. //"<li><strong>[av_privacy_google_webfonts]</strong> - ".__(" allows a user to disable the use of google webfonts",'avia_framework')."</li>".
  1048. "</ul><br>".
  1049. __("Please note: if you do not like the default text that is displayed by those shortcodes you can change it by using [shortcode]Your text here[/shortcode]",'avia_framework'),
  1050. "id" => "gdpr_shortcodes",
  1051. "std" => "",
  1052. "slug" => "cookie",
  1053. "type" => "heading",
  1054. "nodescription"=>true);
  1055.  
  1056.  
  1057.  
  1058. }
  1059. /***************************************************************************************************/
  1060.  
  1061.  
  1062.  
  1063.  
  1064. $avia_elements[] = array("slug" => "cookie", "type" => "visual_group_end", "id" => "avia_privacy_group_end", "nodescription" => true);
  1065.  
  1066. /**
  1067. * Cookie Consent section
  1068. *
  1069. * @author tinabillinger
  1070. * @since 4.3
  1071. */
  1072. $avia_elements[] = array(
  1073. "name" => __("Cookie Consent Message",'avia_framework'),
  1074. "desc" => __("Make your site comply with the <a target='_blank' href='http://ec.europa.eu/ipg/basics/legal/cookies/index_en.htm'>EU cookie law</a> by informing users that your site uses cookies. <br><br> You can also use the field to display a one time message not related to cookies if you are using a plugin for this purpose or do not need to inform your customers about the use of cookies.",'avia_framework')." ".__("Colors and styling for the message can be edited in").
  1075. " <a href='#goto_customizer'>".
  1076. __("Advanced Styling",'avia_framework').
  1077. "</a>",
  1078. "id" => "overlay_description",
  1079. "std" => "",
  1080. "slug" => "cookie",
  1081. "type" => "heading",
  1082. "nodescription"=>true);
  1083.  
  1084. $avia_elements[] = array(
  1085. "slug" => "cookie",
  1086. "desc" => __("Enable cookie consent message bar", 'avia_framework'),
  1087. "id" => "cookie_consent",
  1088. "type" => "checkbox",
  1089. "std" => false,
  1090. );
  1091.  
  1092. $avia_elements[] = array(
  1093. "slug" => "cookie",
  1094. "name" => __("Message", 'avia_framework'),
  1095. "desc" => __("Provide a message which indicates that your site uses cookies.", 'avia_framework'),
  1096. "id" => "cookie_content",
  1097. "required" => array("cookie_consent",'cookie_consent'),
  1098. "type" => "textarea",
  1099. "std" => "This site uses cookies. By continuing to browse the site, you are agreeing to our use of cookies."
  1100. );
  1101.  
  1102.  
  1103. $avia_elements[] = array(
  1104. "slug" => "cookie",
  1105. "name" => __("Message Bar Position", 'avia_framework'),
  1106. "desc" => __("Where on the page should the message bar appear?", 'avia_framework'),
  1107. "id" => "cookie_position",
  1108. "type" => "select",
  1109. "required" => array("cookie_consent",'cookie_consent'),
  1110. "std" => "bottom",
  1111. "no_first"=>true,
  1112. "subtype" => array(
  1113. __('Top', 'avia_framework') =>'top',
  1114. __('Bottom', 'avia_framework') =>'bottom',
  1115. __('Top Left Corner', 'avia_framework') =>'top-left',
  1116. __('Top Right Corner', 'avia_framework') =>'top-right',
  1117. __('Bottom Left Corner', 'avia_framework') =>'bottom-left',
  1118. __('Bottom Right Corner', 'avia_framework') =>'bottom-right',
  1119. ));
  1120.  
  1121.  
  1122. $avia_elements[] = array("slug" => "cookie", "type" => "visual_group_start", "id" => "avia_cookielink_group_start", "nodescription" => true, "required" => array("cookie_consent",'cookie_consent'));
  1123.  
  1124. $avia_elements[] = array( "name" => __("Buttons", 'avia_framework'),
  1125. "desc" => __("You can create any number of buttons/links for your message bar here:", 'avia_framework'),
  1126. "std" => "",
  1127. "slug" => "cookie",
  1128. "type" => "heading",
  1129. "nodescription"=>true);
  1130.  
  1131. $avia_elements[] = array(
  1132. "type" => "group",
  1133. "id" => "msg_bar_buttons",
  1134. "slug" => "cookie",
  1135. "linktext" => "+",
  1136. "deletetext" => "×",
  1137. "blank" => true,
  1138. "nodescription" => true,
  1139. "std" => array(
  1140. array('msg_bar_button_label'=>'OK', 'msg_bar_button_action'=>''),
  1141. array('msg_bar_button_label'=>'Learn more', 'msg_bar_button_action'=>'info_modal'),
  1142. ),
  1143. 'subelements' => array(
  1144.  
  1145. array(
  1146. "name" => __("Button Label", 'avia_framework'),
  1147. "desc" => "",
  1148. "id" => "msg_bar_button_label",
  1149. "type" => "text",
  1150. "slug" => "cookie",
  1151. "class" => "av_3columns av_col_1"),
  1152.  
  1153.  
  1154. array(
  1155. "name" => __("Button Action", 'avia_framework'),
  1156. "desc" => "",
  1157. "id" => "msg_bar_button_action",
  1158. "type" => "select",
  1159. "slug" => "cookie",
  1160. "class" => "av_3columns av_col_2",
  1161. "no_first"=>true,
  1162. "subtype" => array(
  1163.  
  1164. __('Dismiss the notification', 'avia_framework') => '',
  1165. __('Link to another page', 'avia_framework') => 'link',
  1166. __('Open info modal on privacy and cookies', 'avia_framework') => 'info_modal',
  1167.  
  1168. )),
  1169.  
  1170. array(
  1171. "name" => __("Button Link", 'avia_framework'),
  1172. "desc" => "",
  1173. "id" => "msg_bar_button_link",
  1174. "type" => "text",
  1175. "slug" => "cookie",
  1176. "class" => "av_3columns av_col_3",
  1177. "required" => array('msg_bar_button_action','{contains}link')
  1178. ))
  1179. );
  1180.  
  1181.  
  1182. $avia_elements[] = array(
  1183. "slug" => "cookie",
  1184. "name" => __("Modal Window with Privacy and Cookie Info", 'avia_framework'),
  1185. "desc" => __("Instead of displaying the default content set custom content yourself.", 'avia_framework'),
  1186. "id" => "cookie_info_custom_content",
  1187. "type" => "checkbox",
  1188. "std" => false,
  1189. );
  1190.  
  1191.  
  1192. $avia_elements[] = array("slug" => "cookie", "type" => "visual_group_end", "id" => "avia_cookielink_group_end", "nodescription" => true, "required" => array("cookie_consent",'cookie_consent'));
  1193.  
  1194. $avia_elements[] = array("slug" => "cookie", "type" => "visual_group_start", "id" => "avia_cookielink_group_start2", "nodescription" => true, "required" => array("cookie_info_custom_content",'cookie_info_custom_content'));
  1195.  
  1196. $avia_elements[] = array(
  1197. "name" => __("Main Heading", 'avia_framework'),
  1198. "desc" => "",
  1199. "id" => "cookie_info_content_heading",
  1200. "type" => "text",
  1201. "slug" => "cookie",
  1202. "std" => "Cookie and Privacy Settings",
  1203. );
  1204.  
  1205.  
  1206. $contents = array(
  1207.  
  1208. array( 'label' => __( 'How we use cookies', 'avia_framework' ) ,
  1209. 'content' => __( 'We may request cookies to be set on your device. We use cookies to let us know when you visit our websites, how you interact with us, to enrich your user experience, and to customize your relationship with our website. <br><br>Click on the different category headings to find out more. You can also change some of your preferences. Note that blocking some types of cookies may impact your experience on our websites and the services we are able to offer.', 'avia_framework' )),
  1210.  
  1211. array( 'label' => __( 'Essential Website Cookies', 'avia_framework' ),
  1212. 'content' => __( 'These cookies are strictly necessary to provide you with services available through our website and to use some of its features. <br><br>Because these cookies are strictly necessary to deliver the website, you cannot refuse them without impacting how our site functions. You can block or delete them by changing your browser settings and force blocking all cookies on this website.', 'avia_framework' )),
  1213.  
  1214. );
  1215.  
  1216. $contents[] = array( 'label' => __( 'Google Analytics Cookies', 'avia_framework' ),
  1217. 'content' => __( 'These cookies collect information that is used either in aggregate form to help us understand how our website is being used or how effective our marketing campaigns are, or to help us customize our website and application for you in order to enhance your experience. <br><br>If you do not want that we track your visist to our site you can disable tracking in your browser here: [av_privacy_google_tracking]', 'avia_framework' ));
  1218.  
  1219.  
  1220. $contents[] = array( 'label' => __( 'Other external services', 'avia_framework' ),
  1221. 'content' => __( 'We also use different external services like Google Webfonts, Google Maps and external Video providers. Since these providers may collect personal data like your IP address we allow you to block them here. Please be aware that this might heavily reduce the functionality and appearance of our site. Changes will take effect once you reload the page.<br><br>
  1222.  
  1223. Google Webfont Settings:
  1224. [av_privacy_google_webfonts]
  1225.  
  1226. Google Map Settings:
  1227. [av_privacy_google_maps]
  1228.  
  1229. Vimeo and Youtube video embeds:
  1230. [av_privacy_video_embeds]', 'avia_framework' ));
  1231.  
  1232.  
  1233. $contents[] = array( 'label' => __( 'Privacy Policy', 'avia_framework' ),
  1234. 'content' => __( 'You can read about our cookies and privacy settings in detail on our Privacy Policy Page. <br><br> [av_privacy_link]', 'avia_framework' ));
  1235.  
  1236.  
  1237.  
  1238.  
  1239. $avia_elements[] = array(
  1240. "type" => "group",
  1241. "id" => "cookie_info_content",
  1242. "slug" => "cookie",
  1243. "linktext" => "+",
  1244. "deletetext" => "×",
  1245. "blank" => true,
  1246. "nodescription" => true,
  1247. "std" => $contents,
  1248. 'subelements' => array(
  1249.  
  1250. array(
  1251. "name" => __("Tab Label", 'avia_framework'),
  1252. "desc" => "",
  1253. "id" => "label",
  1254. "type" => "text",
  1255. "slug" => "cookie",
  1256. "class" => "av_2columns av_col_1"),
  1257.  
  1258. array(
  1259. "name" => __("Tab Content", 'avia_framework'),
  1260. "desc" => "",
  1261. "id" => "content",
  1262. "type" => "textarea",
  1263. "slug" => "cookie",
  1264. "class" => "av_2columns av_col_2",
  1265. ))
  1266. );
  1267.  
  1268.  
  1269. $avia_elements[] = array("slug" => "cookie", "type" => "visual_group_end", "id" => "avia_cookielink_group_end2", "nodescription" => true, "required" => array("cookie_info_custom_content",'cookie_info_custom_content'));
  1270.  
  1271.  
  1272. /*newsletter*/
  1273.  
  1274. $avia_elements[] = array( "name" => __("Newsletter via Mailchimp", 'avia_framework'),
  1275. "desc" => __("Mailchimp allows you to easily use newsletter functionality with this theme. In order to use the Newsletter features you need to create a Mailchimp account and enter your API key into the field below.", 'avia_framework')."<br/><br/><a href='https://admin.mailchimp.com/account/api' target='_blank'>".__("You can find your API key here", 'avia_framework')."</a>",
  1276. "std" => "",
  1277. "slug" => "newsletter",
  1278. "type" => "heading",
  1279. "nodescription"=>true);
  1280.  
  1281. $avia_elements[] = array(
  1282. "slug" => "newsletter",
  1283. "std" => "",
  1284. "name" => __("Enter a valid Mailchimp API Key to use all newsletter related theme functions", 'avia_framework'),
  1285. "help" => "",
  1286. "desc" => false,
  1287. "id" => "mailchimp_api",
  1288. "type" => "verification_field",
  1289. "ajax" => "av_mailchimp_check_ajax",
  1290. "button-label" => __('Check API Key', 'avia_framework'),
  1291. "button-relabel" => __('Check Key again & renew Lists', 'avia_framework')
  1292. );
  1293.  
  1294.  
  1295.  
  1296.  
  1297.  
  1298. /*shop*/
  1299.  
  1300. $avia_elements[] = array(
  1301. "slug" => "shop",
  1302. "name" => __("Header Shopping Cart Icon", 'avia_framework'),
  1303. "desc" => __("You can choose the appearance of the cart icon here", 'avia_framework'),
  1304. "id" => "cart_icon",
  1305. "type" => "select",
  1306. "std" => "",
  1307. "no_first"=>true,
  1308. "subtype" => array( __('Display Floating on the side, but only once product was added to the cart', 'avia_framework') =>'',
  1309. __('Always Display floating on the side', 'avia_framework') =>'always_display',
  1310. __('Always Display attached to the main menu', 'avia_framework') =>'always_display_menu',
  1311. ));
  1312.  
  1313.  
  1314. $avia_elements[] = array(
  1315. "slug" => "shop",
  1316. "name" => __("Product layout on overview pages", 'avia_framework'),
  1317. "desc" => __("You can choose the appearance of your products here", 'avia_framework'),
  1318. "id" => "product_layout",
  1319. "type" => "select",
  1320. "std" => "",
  1321. "no_first"=>true,
  1322. "subtype" => array( __('Default', 'avia_framework') =>'',
  1323. __('Default without buttons', 'avia_framework') =>'no_button',
  1324. __('Minimal (no borders or buttons)', 'avia_framework') =>'minimal',
  1325. __('Minimal Overlay with centered text', 'avia_framework') =>'minimal-overlay',
  1326. ));
  1327.  
  1328. $avia_elements[] = array(
  1329. "slug" => "shop",
  1330. "name" => __("Product gallery", 'avia_framework'),
  1331. "desc" => __("You can choose the appearance of your product gallery here", 'avia_framework'),
  1332. "id" => "product_gallery",
  1333. "type" => "select",
  1334. "std" => "",
  1335. "no_first"=>true,
  1336. "subtype" => array( __('Default enfold product gallery', 'avia_framework') =>'',
  1337. __('WooCommerce 3.0 product gallery', 'avia_framework') =>'wc_30_gallery',
  1338. ));
  1339.  
  1340. $avia_elements[] = array(
  1341. "slug" => "shop",
  1342. "name" => __("Main Shop Page Banner", 'avia_framework'),
  1343. "desc" => __("You can choose to display a parallax banner with description on the shop page", 'avia_framework'),
  1344. "id" => "shop_banner",
  1345. "type" => "select",
  1346. "std" => "",
  1347. "no_first"=>true,
  1348. "subtype" => array( __('No, display no banner', 'avia_framework') =>'',
  1349. __('Yes, display a banner image', 'avia_framework') =>'av-active-shop-banner',
  1350. ));
  1351.  
  1352. $avia_elements[] = array(
  1353. "slug" => "shop",
  1354. "name" => __("Shop Banner Image", 'avia_framework'),
  1355. "desc" => __("Upload a large banner image which will be displayed as a background to the shop description", 'avia_framework'),
  1356. "id" => "shop_banner_image",
  1357. "type" => "upload",
  1358. "required" => array('shop_banner','{contains}av-active-shop-banner'),
  1359. "label" => __("Use Image as banner", 'avia_framework'));
  1360.  
  1361. $avia_elements[] = array(
  1362. "slug" => "shop",
  1363. "name" => __("Shop Banner Image Color Overlay", 'avia_framework'),
  1364. "desc" => __("Set a color to display a overlay above the banner image.", 'avia_framework'),
  1365. "id" => "shop_banner_overlay_color",
  1366. "type" => "colorpicker",
  1367. "required" => array('shop_banner','{contains}av-active-shop-banner'),
  1368. "class" => "av_2columns av_col_1",
  1369. "std" => "#000000"
  1370. );
  1371.  
  1372. $avia_elements[] = array(
  1373. "slug" => "shop",
  1374. "required" => array('shop_banner','{contains}av-active-shop-banner'),
  1375. "class" => "av_2columns av_col_2",
  1376. "name" => __("Overlay Opacity", 'avia_framework'),
  1377. "desc" => __("Select the opacity of your colored banner overlay", 'avia_framework'),
  1378. "id" => "shop_banner_overlay_opacity",
  1379. "type" => "select",
  1380. "std" => "0.5",
  1381. "no_first"=>true,
  1382. "subtype" => array(
  1383. '0.1' =>'0.1',
  1384. '0.2' =>'0.2',
  1385. '0.3' =>'0.3',
  1386. '0.4' =>'0.4',
  1387. '0.5' =>'0.5',
  1388. '0.6' =>'0.6',
  1389. '0.7' =>'0.7',
  1390. '0.8' =>'0.8',
  1391. '0.9' =>'0.9',
  1392. '1' =>'1',
  1393.  
  1394. ));
  1395.  
  1396.  
  1397. $avia_elements[] = array(
  1398. "slug" => "shop",
  1399. "name" => __("Shop Description", 'avia_framework'),
  1400. "desc" => __("Enter a short description or welcome note for your default Shop Page", 'avia_framework'),
  1401. "id" => "shop_banner_message",
  1402. "type" => "textarea",
  1403. "required" => array('shop_banner','{contains}av-active-shop-banner'),
  1404. "class" => "av_2columns av_col_1",
  1405. );
  1406.  
  1407. $avia_elements[] = array(
  1408. "slug" => "shop",
  1409. "name" => __("Shop Description Color", 'avia_framework'),
  1410. "desc" => __("Select the color of your shop description", 'avia_framework'),
  1411. "id" => "shop_banner_message_color",
  1412. "type" => "colorpicker",
  1413. "required" => array('shop_banner','{contains}av-active-shop-banner'),
  1414. "class" => "av_2columns av_col_2",
  1415. "std" => "#ffffff"
  1416. );
  1417.  
  1418. $avia_elements[] = array(
  1419. "slug" => "shop",
  1420. "name" => __("Enable Banner for product category pages", 'avia_framework'),
  1421. "desc" => __("You can enable the shop banner for all categories as well. You can also set individual banners by editing the category", 'avia_framework'),
  1422. "id" => "shop_banner_global",
  1423. "type" => "checkbox",
  1424. "required" => array('shop_banner','{contains}av-active-shop-banner'),
  1425. "std" => false,
  1426. );
  1427.  
  1428.  
  1429.  
  1430.  
  1431. /*layout*/
  1432.  
  1433.  
  1434.  
  1435. $frontend_label = __("A rough preview of the frontend.", 'avia_framework');
  1436.  
  1437. $avia_elements[] = array(
  1438. "slug" => "layout",
  1439. "id" => "default_layout_target",
  1440. "type" => "target",
  1441. "std" => "
  1442. <style type='text/css'>
  1443. .avprev-layout-container, .avprev-layout-container *{
  1444. -moz-box-sizing: border-box;
  1445. -webkit-box-sizing: border-box;
  1446. box-sizing: border-box;
  1447. }
  1448. #boxed .avprev-layout-container{ padding:0 23px; border:1px solid #e1e1e1; background-color: #555;}
  1449. #av-framed-box .avprev-layout-container{ padding:23px; border:1px solid #e1e1e1; background-color: #555;}
  1450. .avprev-layout-container-inner{border:none; overflow: hidden;}
  1451. .avprev-layout-container-inner{border: 1px solid #e1e1e1; background:#fff;}
  1452. .avprev-layout-content-container{overflow:hidden; margin:0 auto; position:relative;}
  1453. .avprev-layout-container-sizer{margin:0 auto; position:relative; z-index:5;}
  1454. .avprev-layout-content-container .avprev-layout-container-sizer{display:table;}
  1455. .avprev-layout-content-container .avprev-layout-container-sizer .av-cell{display:table-cell; padding: 20px;}
  1456. .avprev-layout-content-container .avprev-layout-container-sizer:after{ background: #F8F8F8; position: absolute; top: 0; left: 99%; width: 100%; height: 100%; content: ''; z-index:1;}
  1457. .avprev-layout-header{border-bottom:1px solid #e1e1e1; padding:20px; overflow: hidden;}
  1458. .avprev-layout-slider{border-bottom:1px solid #e1e1e1; padding:30px 20px; background:#3B740F url('".AVIA_IMG_URL."layout/diagonal-bold-light.png') top left repeat; color:#fff;}
  1459. .avprev-layout-content{border-right:1px solid #e1e1e1; width:73%; }
  1460. .avprev-layout-sidebar{border-left:1px solid #e1e1e1; background:#f8f8f8; left:-1px; position:relative; min-height:141px;}
  1461. .avprev-layout-menu-description{float:left;}
  1462. .avprev-layout-menu{float:right; color:#999;}
  1463.  
  1464.  
  1465. #header_right .avprev-layout-header{border-left:1px solid #e1e1e1; width:130px; float:right; border-bottom:none;}
  1466. #header_left .avprev-layout-header{border-right:1px solid #e1e1e1; width:130px; float:left; border-bottom:none;}
  1467.  
  1468. #header_right .avprev-layout-content-container{border-right:1px solid #e1e1e1; right:-1px;}
  1469. #header_left .avprev-layout-content-container{border-left:1px solid #e1e1e1; left:-1px;}
  1470.  
  1471. #header_left .avprev-layout-menu, #header_right .avprev-layout-menu{float:none; padding-top:23px; clear:both; }
  1472. #header_left .avprev-layout-divider, #header_right .avprev-layout-divider{display:none;}
  1473. #header_left .avprev-layout-menuitem, #header_right .avprev-layout-menuitem{display:block; border-bottom:1px dashed #e1e1e1; padding:3px;}
  1474. #header_left .avprev-layout-menuitem-first, #header_right .avprev-layout-menuitem-first{border-top:1px dashed #e1e1e1;}
  1475. #header_left .avprev-layout-header .avprev-layout-container-sizer, #header_right .avprev-layout-header .avprev-layout-container-sizer{width:100%!important;}
  1476.  
  1477.  
  1478. .avprev-layout-container-widget{display:none; border:1px solid #e1e1e1; padding:7px; font-size:12px; margin-top:5px; text-align:center;}
  1479. .avprev-layout-container-social{margin-top:5px; text-align:center;}
  1480. .av-active .pr-icons{display:block; }
  1481.  
  1482. #header_left .avprev-layout-container-widget.av-active, #header_right .avprev-layout-container-widget.av-active{display:block;}
  1483. #header_left .avprev-layout-container-social.av-active, #header_right .avprev-layout-container-widget.av-social{display:block;}
  1484.  
  1485. #av-framed-box .avprev-layout-container-inner{border:none;}
  1486. #boxed .avprev-layout-container-inner{border:none;}
  1487.  
  1488. </style>
  1489.  
  1490. <small class='live_bg_small'>{$frontend_label}</small>
  1491. <div class='avprev-layout-container'>
  1492. <div class='avprev-layout-container-inner'>
  1493. <div class='avprev-layout-header'>
  1494. <div class='avprev-layout-container-sizer'>
  1495. <strong class='avprev-layout-menu-description'>Logo + Main Menu Area</strong>
  1496. <div class='avprev-layout-menu'>
  1497. <span class='avprev-layout-menuitem avprev-layout-menuitem-first'>Home</span>
  1498. <span class='avprev-layout-divider'>|</span>
  1499. <span class='avprev-layout-menuitem'>About</span>
  1500. <span class='avprev-layout-divider'>|</span>
  1501. <span class='avprev-layout-menuitem'>Contact</span>
  1502. </div>
  1503. </div>
  1504.  
  1505. <div class='avprev-layout-container-social'>
  1506. {$iconSpan}
  1507. </div>
  1508.  
  1509. <div class='avprev-layout-container-widget'>
  1510. <strong>Widgets</strong>
  1511. </div>
  1512.  
  1513. </div>
  1514.  
  1515. <div class='avprev-layout-content-container'>
  1516. <div class='avprev-layout-slider'>
  1517. <strong>Fullwidth Area (eg: Fullwidth Slideshow)</strong>
  1518. </div>
  1519.  
  1520. <div class='avprev-layout-container-sizer'>
  1521. <div class='avprev-layout-content av-cell'><strong>Content Area</strong><p>This is the content area. The content area holds all your blog entries, pages, products etc</p></div>
  1522. <div class='avprev-layout-sidebar av-cell'><strong>Sidebar</strong><p>This area holds all your sidebar widgets</p>
  1523. </div>
  1524. </div>
  1525. </div>
  1526.  
  1527. </div>
  1528. </div>
  1529.  
  1530.  
  1531. ",
  1532. "nodescription" => true
  1533. );
  1534.  
  1535. //START TAB CONTAINER
  1536. $avia_elements[] = array( "slug" => "layout", "type" => "visual_group_start", "id" => "avia_tab_layout1", "nodescription" => true, 'class'=>'avia_tab_container avia_set');
  1537.  
  1538. $avia_elements[] = array( "slug" => "layout", "type" => "visual_group_start", "id" => "avia_tab_layout5", "nodescription" => true, 'class'=>'avia_tab avia_tab2','name'=>__('Layout', 'avia_framework'));
  1539.  
  1540. $avia_elements[] = array(
  1541. "slug" => "layout",
  1542. "name" => __("Use stretched or boxed layout?", 'avia_framework'),
  1543. "desc" => __("The stretched layout expands from the left side of the viewport to the right.", 'avia_framework'),
  1544. "id" => "color-body_style",
  1545. "type" => "select",
  1546. "std" => "stretched",
  1547. "class" => "av_2columns av_col_1",
  1548. "no_first"=>true,
  1549. "target" => array("default_slideshow_target, #avia_default_layout_target::.avia_control_container::set_id"),
  1550. "subtype" => array( __('Stretched layout' , 'avia_framework') => 'stretched',
  1551. __('Boxed Layout' , 'avia_framework') => 'boxed',
  1552. __('Fixed Frame' , 'avia_framework') => 'av-framed-box'
  1553. )
  1554. );
  1555.  
  1556. $numbers = array();
  1557. for($i = 1; $i <= 75; $i++)
  1558. {
  1559. $numbers[$i."px"] = $i;
  1560. }
  1561.  
  1562. $avia_elements[] = array(
  1563. "slug" => "layout",
  1564. "name" => __("Frame Width", 'avia_framework'),
  1565. "desc" => __("Modify the frame color by changing the Body Background in",'avia_framework').
  1566. " <a href='#goto_styling'>".
  1567. __("General Styling",'avia_framework').
  1568. "</a>",
  1569. "id" => "color-frame_width",
  1570. "type" => "select",
  1571. "std" => "20",
  1572. "class" => "av_2columns av_col_2",
  1573. "required" => array('color-body_style','{contains}framed'),
  1574. "no_first"=>true,
  1575. "subtype" => $numbers
  1576. );
  1577.  
  1578.  
  1579.  
  1580.  
  1581. $avia_elements[] = array(
  1582. "slug" => "layout",
  1583. "name" => __("Logo and Main Menu", 'avia_framework'),
  1584. "desc" => __("You can place your logo and main menu at the top of your site or within a sidebar", 'avia_framework'),
  1585. "id" => "header_position",
  1586. "type" => "select",
  1587. "std" => "header_top",
  1588. "class" => "av_2columns av_col_2",
  1589. "target" => array("default_layout_target, #avia_default_slideshow_target::.avprev-layout-container, .avprev-design-container::set_id_single"),
  1590. "no_first"=>true,
  1591. "subtype" => array( __('Top Header', 'avia_framework') =>'header_top',
  1592. __('Left Sidebar', 'avia_framework') =>'header_left header_sidebar',
  1593. __('Right Sidebar', 'avia_framework') =>'header_right header_sidebar',
  1594. ));
  1595.  
  1596.  
  1597. $avia_elements[] = array(
  1598. "slug" => "layout",
  1599. "name" => __("Content Alignment", 'avia_framework'),
  1600. "desc" => __("If the window width exceeds the maximum content width, where do you want to place your content", 'avia_framework'),
  1601. "id" => "layout_align_content",
  1602. "type" => "select",
  1603. "std" => "content_align_center",
  1604. "class" => "av_2columns av_col_1",
  1605. "required" => array('header_position','{contains}header_sidebar'),
  1606. "no_first"=>true,
  1607. "subtype" => array( __('Center Content', 'avia_framework') =>'content_align_center',
  1608. __('Position at the Left', 'avia_framework') =>'content_align_left',
  1609. __('Position at the Right', 'avia_framework') =>'content_align_right',
  1610. ));
  1611.  
  1612.  
  1613.  
  1614. $avia_elements[] = array(
  1615. "slug" => "layout",
  1616. "name" => __("Sticky Sidebar menu", 'avia_framework'),
  1617. "desc" => __("You can choose if you want a sticky sidebar that does not scroll with the content", 'avia_framework'),
  1618. "id" => "sidebarmenu_sticky",
  1619. "type" => "select",
  1620. "std" => "conditional_sticky",
  1621. "class" => "av_2columns av_col_2",
  1622. "required" => array('header_position','{contains}header_left'),
  1623. "no_first"=>true,
  1624. "subtype" => array( __('Sticky if Sidebar is smaller than the screen height, scroll otherwise', 'avia_framework') =>'conditional_sticky',
  1625. __('Always Sticky', 'avia_framework') =>'always_sticky',
  1626. __('Never Sticky', 'avia_framework') =>'never_sticky',
  1627. ));
  1628.  
  1629.  
  1630.  
  1631.  
  1632.  
  1633. $avia_elements[] = array(
  1634. "slug" => "layout",
  1635. "name" => __("Main Menu Sidebar", 'avia_framework'),
  1636. "desc" => __("You can choose to use the main menu area to also display widget areas", 'avia_framework'),
  1637. "id" => "sidebarmenu_widgets",
  1638. "type" => "select_sidebar",
  1639. "std" => "",
  1640. "no_first"=>true,
  1641. "required" => array('header_position','{contains}header_sidebar'),
  1642. "target" => array("default_layout_target::.avprev-layout-container-widget::set_active"),
  1643. "exclude" => array(), /*eg: 'Displayed Everywhere'*/
  1644. "additions" => array('No widgets' => "", /* 'Display Widgets by page logic' => "av-auto-widget-logic", */ 'Display a specific Widget Area'=> '%result%'),
  1645. );
  1646.  
  1647.  
  1648.  
  1649. $avia_elements[] = array(
  1650. "name" =>
  1651. __("Display social icons below main menu? (You can set your social icons at", 'avia_framework').
  1652. " <a href='#goto_social'>".
  1653. __("Social Profiles", 'avia_framework').
  1654. "</a>)"
  1655. ,
  1656. "desc" => __("Check to display", 'avia_framework'),
  1657. "id" => "sidebarmenu_social",
  1658. "type" => "checkbox",
  1659. "std" => "",
  1660. "slug" => "layout",
  1661. "target" => array("default_layout_target::.avprev-layout-container-social::set_active"),
  1662. "required" => array('header_position','{contains}header_sidebar'),
  1663. );
  1664.  
  1665.  
  1666.  
  1667. // END TAB
  1668. $avia_elements[] = array( "slug" => "layout", "type" => "visual_group_end", "id" => "avia_tab5ewwe_end", "nodescription" => true);
  1669. $avia_elements[] = array( "slug" => "layout", "type" => "visual_group_start", "id" => "avia_tab5wewe", "nodescription" => true, 'class'=>'avia_tab avia_tab2','name'=>__('Dimensions', 'avia_framework'));
  1670. // START TAB
  1671.  
  1672.  
  1673. $avia_elements[] = array(
  1674. "name" => __("Responsive Site", 'avia_framework'),
  1675. "desc" => __("If enabled the size of your website will adapt and change the layout to fit smaller screens, like tablets or mobile phones", 'avia_framework'),
  1676. "id" => "responsive_active",
  1677. "type" => "checkbox",
  1678. "std" => "enabled",
  1679. "slug" => "layout",
  1680. );
  1681.  
  1682. $avia_elements[] = array(
  1683. "slug" => "layout",
  1684. "name" => __("Maximum Container width", 'avia_framework'),
  1685. "desc" => __("Enter the maximum content width for your site. Pixel and % are allowed eg: 1130px, 1310px, 100% ", 'avia_framework'),
  1686. "id" => "responsive_size",
  1687. "type" => "text",
  1688. "std" => "1310px",
  1689. "required" => array('responsive_active','{contains}enabled'),
  1690. );
  1691.  
  1692.  
  1693.  
  1694. $avia_elements[] = array(
  1695. "slug" => "layout",
  1696. "name" => __("Content | Sidebar Ratio", 'avia_framework'),
  1697. "desc" => __("Here you can choose the width of your content and sidebar. First Number indicates the content width, second number indicates sidebar width.", 'avia_framework') ."<br/><strong>".__("Note:", 'avia_framework') ."</strong> ".
  1698. __( "If you want to disable sidebars you can do so in the", 'avia_framework').
  1699. " <a href='#goto_sidebars'>".
  1700. __( "Sidebar Settings", 'avia_framework').
  1701. "</a>",
  1702. "id" => "content_width",
  1703. "target" => array("default_layout_target::.avprev-layout-content::width"),
  1704. "type" => "select",
  1705. "std" => "73",
  1706. "no_first"=>true,
  1707. "subtype" => array(
  1708. '80% | 20%' =>'80',
  1709. '79% | 21%' =>'79',
  1710. '78% | 22%' =>'78',
  1711. '77% | 23%' =>'77',
  1712. '76% | 24%' =>'76',
  1713. '75% | 25%' =>'75',
  1714. '74% | 26%' =>'74',
  1715. '73% | 27%' =>'73',
  1716. '72% | 28%' =>'72',
  1717. '71% | 29%' =>'71',
  1718.  
  1719. '70% | 30%' =>'70',
  1720. '69% | 31%' =>'69',
  1721. '68% | 32%' =>'68',
  1722. '67% | 33%' =>'67',
  1723. '66% | 34%' =>'66',
  1724. '65% | 35%' =>'65',
  1725. '64% | 36%' =>'64',
  1726. '63% | 37%' =>'63',
  1727. '62% | 38%' =>'62',
  1728. '61% | 39%' =>'61',
  1729.  
  1730. '60% | 40%' =>'60',
  1731. '59% | 41%' =>'59',
  1732. '58% | 42%' =>'58',
  1733. '57% | 43%' =>'57',
  1734. '56% | 44%' =>'56',
  1735. '55% | 45%' =>'55',
  1736. '54% | 46%' =>'54',
  1737. '53% | 47%' =>'53',
  1738. '52% | 48%' =>'52',
  1739. '51% | 49%' =>'51',
  1740. '50% | 50%' =>'50',
  1741.  
  1742. ));
  1743.  
  1744. $numbers = array();
  1745. for($i = 100; $i >= 50; $i--)
  1746. {
  1747. $numbers[$i."%"] = $i;
  1748. }
  1749.  
  1750. $avia_elements[] = array(
  1751. "slug" => "layout",
  1752. "name" => __("Content + Sidebar width", 'avia_framework'),
  1753. "desc" => __("Here you can enter the combined width of content and sidebar", 'avia_framework'),
  1754. "id" => "combined_width",
  1755. "target" => array("default_layout_target::.avprev-layout-container-sizer::width"),
  1756. "type" => "select",
  1757. "std" => "100",
  1758. "no_first"=>true,
  1759. "subtype" => $numbers
  1760. );
  1761.  
  1762.  
  1763. // END TAB
  1764. $avia_elements[] = array( "slug" => "layout", "type" => "visual_group_end", "id" => "avia_tab4543_end", "nodescription" => true);
  1765.  
  1766.  
  1767. //END TAB CONTAINER
  1768. $avia_elements[] = array( "slug" => "layout", "type" => "visual_group_end", "id" => "avia_tab_container_end2", "nodescription" => true);
  1769.  
  1770.  
  1771. /*Frontpage Settings*/
  1772.  
  1773.  
  1774. if(is_child_theme()){
  1775. $avia_elements[] = array(
  1776. "slug" => "upload",
  1777. "name" => __("Import Settings from your Parent Theme", 'avia_framework'),
  1778. "desc" => __("We have detected that you are using a Child Theme. That's Great!. If you want to, we can import the settings of your Parent theme to your Child theme. Please be aware that this will overwrite your current child theme settings.", 'avia_framework'),
  1779. "id" => "parent_setting_import",
  1780. "type" => "parent_setting_import");
  1781. }
  1782.  
  1783.  
  1784. $avia_elements[] = array(
  1785. "slug" => "upload",
  1786. "name" => __("Export Theme Settings File", 'avia_framework'),
  1787. "desc" => __("Click the button to generate and download a config file which contains the theme settings. You can use the config file to import the theme settings on another sever.", 'avia_framework'),
  1788. "id" => "theme_settings_export",
  1789. "type" => "theme_settings_export");
  1790.  
  1791. $avia_elements[] = array(
  1792. "slug" => "upload",
  1793. "name" => __("Import Theme Settings File", 'avia_framework'),
  1794. "desc" => __("Upload a theme configuration file here. Note that the configuration file settings will overwrite your current configuration and you can't restore the current configuration afterwards.", 'avia_framework'),
  1795. "id" => "config_file_upload",
  1796. "title" => __("Upload Theme Settings File", 'avia_framework'),
  1797. "button" => __("Insert Settings File", 'avia_framework'),
  1798. "trigger" => "av_config_file_insert",
  1799. // "fopen_check" => "true",
  1800. "std" => "",
  1801. "file_extension" => "txt",
  1802. "file_type" => "text/plain",
  1803. "type" => "file_upload");
  1804.  
  1805.  
  1806. $avia_elements[] = array(
  1807. "slug" => "upload",
  1808. "name" => __("Iconfont Manager", 'avia_framework'),
  1809. "desc" => __("You can upload additional Iconfont Packages generated with", 'avia_framework') . " <a href='http://fontello.com/' target='_blank'>Fontello</a> ".
  1810. __("or use monocolored icon sets from", 'avia_framework') . " <a href='http://www.flaticon.com/' target='_blank'>Flaticon</a>. ".
  1811. __("Those icons can then be used in your Layout Builder.", 'avia_framework') ."<br/><br/>".
  1812. __("The 'Default Font' can't be deleted.", 'avia_framework') ."<br/><br/>".
  1813. __("Make sure to delete any fonts that you are not using, to keep the loading time for your visitors low", 'avia_framework'),
  1814. "id" => "iconfont_upload",
  1815. "title" => __("Upload/Select Fontello Font Zip", 'avia_framework'),
  1816. "button" => __("Insert Zip File", 'avia_framework'),
  1817. "trigger" => "av_fontello_zip_insert",
  1818. // "fopen_check" => "true",
  1819. "std" => "",
  1820. "type" => "file_upload",
  1821. "file_extension" => "zip", //used to check if user can upload this file type
  1822. "file_type" => "application/octet-stream, application/zip", //used for javascript gallery to display file types
  1823. );
  1824.  
  1825.  
  1826. $avia_elements[] = array(
  1827. "slug" => "upload",
  1828. "name" => __("Custom Font Manager", 'avia_framework'),
  1829. "desc" => __("You can upload your custom Font zip files. Intended for <a href='https://fonts.google.com/' target='_blank'>Google Webkit Fonts</a>.", 'avia_framework') .
  1830. "<br/><br/>" .
  1831. __("Make sure to delete any fonts that you are not using, to keep the loading time for your visitors low", 'avia_framework'),
  1832. "id" => "typefont_upload",
  1833. "title" => __("Upload/Select Font Zip File", 'avia_framework'),
  1834. "button" => __("Insert Zip File", 'avia_framework'),
  1835. "trigger" => "av_typefont_zip_insert",
  1836. // "fopen_check" => "true",
  1837. "std" => "",
  1838. "type" => "file_upload",
  1839. "file_extension" => "zip", //used to check if user can upload this file type
  1840. "file_type" => "application/octet-stream, application/zip", //used for javascript gallery to display file types
  1841. );
  1842.  
  1843.  
  1844.  
  1845.  
  1846. $avia_elements[] = array(
  1847. "slug" => "avia",
  1848. "name" => __("Frontpage Settings", 'avia_framework'),
  1849. "desc" => __("Select which page to display on your Frontpage. If left blank the Blog will be displayed", 'avia_framework'),
  1850. "id" => "frontpage",
  1851. "type" => "select",
  1852. "subtype" => 'page'
  1853. );
  1854.  
  1855.  
  1856.  
  1857.  
  1858.  
  1859. $avia_elements[] = array(
  1860. "slug" => "avia",
  1861. "name" => __("And where do you want to display the Blog?", 'avia_framework'),
  1862. "desc" => __("Select which page to display as your Blog Page. If left blank no blog will be displayed", 'avia_framework'),
  1863. "id" => "blogpage",
  1864. "type" => "select",
  1865. "subtype" => 'page',
  1866. "required" => array('frontpage','{true}')
  1867. );
  1868.  
  1869. $avia_elements[] = array(
  1870. "desc" => "<strong class='av-text-notice av-prev-el-notice'>".__("Notice: Your blog is currently disabled. You can enable it", 'avia_framework').' <a target="_blank" href="'.admin_url('admin.php?page=avia#goto_performance').'">'.__("here", 'avia_framework').'</a></strong>',
  1871. "id" => "widgetdescription",
  1872. "std" => "",
  1873. "slug" => "avia",
  1874. "type" => "heading",
  1875. "required" => array('disable_blog','{true}'),
  1876. "nodescription"=>true);
  1877.  
  1878.  
  1879.  
  1880. $avia_elements[] = array(
  1881. "slug" => "avia",
  1882. "name" => __("Logo", 'avia_framework'),
  1883. "desc" => __("Upload a logo image, or enter the URL or ID of an image if its already uploaded. The themes default logo gets applied if the input field is left blank", 'avia_framework')."<br/><br/>".__("Logo Dimension: 340px * 156px (if your logo is larger you might need to change the Header size in your", 'avia_framework').
  1884. " <a href='#goto_header'>".
  1885. __( "Header Settings", 'avia_framework').
  1886. "</a>",
  1887. "id" => "logo",
  1888. "type" => "upload",
  1889. "label" => __("Use Image as logo", 'avia_framework'));
  1890.  
  1891. $avia_elements[] = array(
  1892. "slug" => "avia",
  1893. "name" => __("Favicon", 'avia_framework'),
  1894. "desc" => __("Specify a favicon for your site.", 'avia_framework')." <br/>".__("Accepted formats: .ico, .png, .gif", 'avia_framework')." <br/><br/>".
  1895. __("What is a", 'avia_framework').
  1896. " <a target='_blank' href='http://en.wikipedia.org/wiki/Favicon'>".
  1897. __( "favicon", 'avia_framework').
  1898. "?</a>",
  1899. "id" => "favicon",
  1900. "type" => "upload",
  1901. "label" => __("Use Image as Favicon", 'avia_framework'));
  1902.  
  1903.  
  1904. $avia_elements[] = array( "slug" => "avia", "type" => "visual_group_start", "id" => "avia_preload", "nodescription" => true);
  1905.  
  1906. $avia_elements[] = array(
  1907. "slug" => "avia",
  1908. "name" => __("Page Preloading", 'avia_framework'),
  1909. "desc" => __("Show a preloader when opening a page on your site.", 'avia_framework'),
  1910. "id" => "preloader",
  1911. "type" => "checkbox",
  1912. "std" => false,
  1913. );
  1914.  
  1915. $avia_elements[] = array(
  1916. "slug" => "avia",
  1917. "name" => __("Page Transitions", 'avia_framework'),
  1918. "desc" => __("Smooth page transition when navigating from one page to the next. Please disable if this causes problems with plugins when navigating ajax or otherwise dynamical created content", 'avia_framework'),
  1919. "id" => "preloader_transitions",
  1920. "type" => "checkbox",
  1921. "std" => 'preloader_transitions',
  1922. "required" => array("preloader",'preloader'),
  1923. );
  1924.  
  1925. $avia_elements[] = array(
  1926. "slug" => "avia",
  1927. "name" => __("Custom Logo for preloader", 'avia_framework'),
  1928. "desc" => __("Upload an optional logo image for your preloader page", 'avia_framework'),
  1929. "id" => "preloader_logo",
  1930. "type" => "upload",
  1931. "required" => array("preloader",'preloader'),
  1932. "label" => __("Use Image as logo", 'avia_framework'));
  1933.  
  1934. $avia_elements[] = array( "slug" => "avia", "type" => "visual_group_end", "id" => "avia_preload_end", "nodescription" => true);
  1935.  
  1936.  
  1937.  
  1938. $avia_elements[] = array( "slug" => "avia", "type" => "visual_group_start", "id" => "avia_lightbox", "nodescription" => true);
  1939.  
  1940.  
  1941.  
  1942.  
  1943. $avia_elements[] = array(
  1944. "name" => __("Lightbox Modal Window", 'avia_framework'),
  1945. "desc" => __("Check to enable the default lightbox that opens once you click a link to an image. Uncheck only if you want to use your own modal window plugin", 'avia_framework'),
  1946. "id" => "lightbox_active",
  1947. "type" => "checkbox",
  1948. "std" => "true",
  1949. "slug" => "avia");
  1950.  
  1951. $avia_elements[] = array( "slug" => "avia", "type" => "visual_group_end", "id" => "avia_lightbox_end", "nodescription" => true);
  1952.  
  1953.  
  1954. $avia_elements[] = array( "slug" => "avia", "type" => "visual_group_start", "id" => "avia_404_start", "nodescription" => true);
  1955.  
  1956. /**
  1957. * Error 404 page section
  1958. *
  1959. * @author tinabillinger
  1960. * @since 4.3
  1961. */
  1962.  
  1963. $avia_elements[] = array(
  1964. "slug" => "avia",
  1965. "name" => __("Error 404 Page",'avia_framework'),
  1966. "desc" => __("Click to use any page as your custom Error 404 Page", 'avia_framework'),
  1967. "id" => "error404_custom",
  1968. "type" => "checkbox",
  1969. "std" => false,
  1970. );
  1971.  
  1972. $avia_elements[] = array(
  1973. "slug" => "avia",
  1974. "name" => __("Custom Error 404 Page", 'avia_framework'),
  1975. "desc" => __("If you are using a caching plugin, make sure to exclude this page from caching.", 'avia_framework'),
  1976. "required" => array("error404_custom",'error404_custom'),
  1977. "id" => "error404_page",
  1978. "type" => "select",
  1979. "subtype" => 'page'
  1980. );
  1981.  
  1982. $avia_elements[] = array( "slug" => "avia", "type" => "visual_group_end", "id" => "avia_404_end", "nodescription" => true);
  1983.  
  1984.  
  1985. /**
  1986. * Maintenance mode section
  1987. *
  1988. * @author tinabillinger
  1989. * @since 4.3
  1990. */
  1991.  
  1992. $avia_elements[] = array( "slug" => "avia", "type" => "visual_group_start", "id" => "avia_maintain_start", "nodescription" => true);
  1993.  
  1994. $avia_elements[] = array(
  1995. "name" => __("Maintenance Mode",'avia_framework'),
  1996. "slug" => "avia",
  1997. "desc" => __("Check to enable maintenance mode and redirect all page requests to a maintenance page of your choice", 'avia_framework'),
  1998. "id" => "maintenance_mode",
  1999. "type" => "checkbox",
  2000. "std" => false,
  2001. );
  2002. $avia_elements[] = array(
  2003. "slug" => "avia",
  2004. "name" => __("Redirect all users to this page", 'avia_framework'),
  2005. "desc" => __("Please note that logged in Administrators, Editors and Authors will still be able to access the site", 'avia_framework'),
  2006. "required" => array("maintenance_mode",'maintenance_mode'),
  2007. "id" => "maintenance_page",
  2008. "type" => "select",
  2009. "subtype" => 'page'
  2010. );
  2011.  
  2012. $avia_elements[] = array( "slug" => "avia", "type" => "visual_group_end", "id" => "avia_maintain_end", "nodescription" => true);
  2013.  
  2014.  
  2015.  
  2016. $avia_elements[] = array(
  2017. "slug" => "styling",
  2018. "name" => __("Select a predefined color scheme", 'avia_framework'),
  2019. "desc" => __("Choose a predefined color scheme here. You can edit the settings of the scheme below then.", 'avia_framework'),
  2020. "id" => "color_scheme",
  2021. "type" => "link_controller",
  2022. "std" => "Blue",
  2023. "class" => "link_controller_list",
  2024. "subtype" => $styles);
  2025.  
  2026.  
  2027.  
  2028.  
  2029. $avia_elements[] = array(
  2030. "slug" => "customizer",
  2031. "name" => __("Here you can select a number of different elements and change their default styling", 'avia_framework'),
  2032. "desc" => __("If a value is left empty or set to default then it will not be changed from the value defined in your CSS files", 'avia_framework')."<br/><br/><strong>".
  2033. __("Attention", 'avia_framework').": </strong>".
  2034. __("This feature is in active BETA! We will constantly add new elements to customize and need your help: If you got any suggestions on what to add please post them here:", 'avia_framework').
  2035. " <a target='_blank' href='https://kriesi.at/support/enfold-feature-requests/'>".
  2036. __("Enfold Feature Requests", 'avia_framework').
  2037. "</a><br/><br/>"
  2038. ,
  2039. "id" => "advanced_styling",
  2040. "type" => "styling_wizard",
  2041. "order" => array(
  2042. __("HTML Tags",'avia_framework'),
  2043. __("Headings",'avia_framework'),
  2044. __("Main Menu",'avia_framework'),
  2045. __("Main Menu (Icon)",'avia_framework'),
  2046. __("Misc",'avia_framework')),
  2047. "std" => "",
  2048. "class" => "",
  2049. "elements" => $advanced);
  2050.  
  2051.  
  2052.  
  2053.  
  2054. /*Styling Settings*/
  2055. $avia_elements[] = array(
  2056. "slug" => "styling",
  2057. "id" => "default_slideshow_target",
  2058. "type" => "target",
  2059. "std" => "
  2060. <style type='text/css'>
  2061.  
  2062. #boxed .live_bg_wrap{ padding:0 23px; border:1px solid #e1e1e1; background-position: top center;}
  2063. #av-framed-box .live_bg_wrap{ padding:23px; border:1px solid #e1e1e1; background-position: top center;}
  2064. .live_bg_small{font-size:10px; color:#999; height: 23px; display: block;}
  2065. .live_bg_wrap{ padding: 0; background:#f8f8f8; overflow:hidden; background-position: top center;}
  2066. .live_bg_wrap div{overflow:hidden; position:relative;}
  2067. #avia_options_page .live_bg_wrap h3{margin: 0 0 5px 0 ; color:inherit; font-size:25px;}
  2068. #avia_options_page .live_bg_wrap .main_h3{font-weight:bold; font-size:25px; }
  2069. .border{border:1px solid; border-bottom-style:none; border-bottom-width:0; padding:13px; width:100%;}
  2070. #av-framed-box .border{}
  2071.  
  2072. .live_header_color {position: relative;width: 100%;left: }
  2073. .bg2{border:1px solid; margin:4px; display:block; float:right; padding:15px; }
  2074. .content_p{display:block; float:left; width: 100%;}
  2075. .live-socket_color{font-size:11px;}
  2076. .live-footer_color a{text-decoration:none;}
  2077. .live-socket_color a{text-decoration:none; position:absolute; top:28%; right:13px;}
  2078.  
  2079. #avia_preview .webfont_google_webfont{ font-weight:normal; }
  2080. .webfont_default_font{ font-weight:normal; font-size:13px; line-height:1.7em;}
  2081.  
  2082. div .link_controller_list a{ width:113px; font-size:13px;}
  2083. .avia_half{width: 50%; float:left; min-height:210px;}
  2084. .avia_half .bg2{float:none; margin-left:0;}
  2085. .avia_half_2{border-left:none; padding-left:14px;}
  2086. #av-framed-box #header_left .avia_half { width: 179px; height:250px;}
  2087. .live-slideshow_color{text-align:center;}
  2088. .text_small_outside{position:relative; top:-15px; display:block; left: 10px;}
  2089.  
  2090. #header_left .live-header_color{ float:left; width:30%; min-height: 424px; border-bottom:1px solid; border-right: none;}
  2091. #header_right .live-header_color{float:right; width:30%; min-height: 424px; border-bottom:1px solid; border-left: none;}
  2092. #header_left .live-header_color .bg2,
  2093. #header_right .live-header_color .bg2,
  2094. #header_right .av_header_block_1,
  2095. #header_left .av_header_block_1{
  2096. float:none;
  2097. width:100%;
  2098. }
  2099. .av-sub-logo-area{overflow:hidden;}
  2100.  
  2101. #boxed #header_left .live-header_color, #boxed #header_right .live-header_color{min-height: 424px; }
  2102. #header_right .avia_half, #header_left .avia_half{min-height: 250px;}
  2103. #boxed .live-socket_color{border-bottom:1px solid;}
  2104. .av_header_block_1{width:70%; float:left;}
  2105. .live-header_color .bg2{width:30%; margin: 15px 0 0 0;}
  2106. #av-framed-box .live-socket_color.border{border-bottom-style:solid; border-bottom-width:1px;}
  2107. </style>
  2108.  
  2109.  
  2110.  
  2111.  
  2112.  
  2113. <small class='live_bg_small'>{$frontend_label}</small>
  2114.  
  2115. <div id='avia_preview' class='live_bg_wrap webfont_default_font'>
  2116. <div class='avprev-design-container'>
  2117. <!--<small class='text_small_outside'>Next Event: in 10 hours 5 minutes.</small>-->
  2118.  
  2119.  
  2120. <div class='live-header_color border'>
  2121. <div class='av_header_block_1'>
  2122. <h3 class='heading webfont_google_webfont'>Logo Area Heading</h3>
  2123. <span class='text'>Active Menu item | </span>
  2124. <span class='meta'>Inactive Menu item</span><br/>
  2125. <a class='a_link' href='#'>custom text link</a>
  2126. <a class='an_activelink' href='#'>hovered link</a>
  2127. </div>
  2128. <div class='bg2'>Highlight Background + Border Color</div>
  2129. </div>
  2130.  
  2131. <div class='av-sub-logo-area'>
  2132.  
  2133.  
  2134.  
  2135. <div class='live-main_color border avia_half'>
  2136. <h3 class='webfont_google_webfont main_h3 heading'>Main Content heading</h3>
  2137. <p class='content_p'>This is default content with a default heading. Font color, headings and link colors can be choosen below. <br/>
  2138. <a class='a_link' href='#'>A link</a>
  2139. <a class='an_activelink' href='#'>A hovered link</a>
  2140. <span class='meta'>Secondary Font</span>
  2141.  
  2142. </p>
  2143.  
  2144. <div class='bg2'>Highlight Background + Border Color</div>
  2145. </div>
  2146.  
  2147.  
  2148.  
  2149. <div class='live-alternate_color border avia_half avia_half_2'>
  2150. <h3 class='webfont_google_webfont main_h3 heading'>Alternate Content Area</h3>
  2151. <p class='content_p'>This is content of an alternate content area. Choose font color, headings and link colors below. <br/>
  2152. <a class='a_link' href='#'>A link</a>
  2153. <a class='an_activelink' href='#'>A hovered link</a>
  2154. <span class='meta'>Secondary Font</span>
  2155.  
  2156. </p>
  2157.  
  2158. <div class='bg2'>Highlight Background + Border Color</div>
  2159. </div>
  2160.  
  2161. <div class='live-footer_color border'>
  2162. <h3 class='webfont_google_webfont heading'>Demo heading (Footer)</h3>
  2163. <p>This is text on the footer background</p>
  2164. <a class='a_link' href='#'>Link | Link 2</a>
  2165. <span class='meta'> | Secondary Font</span>
  2166.  
  2167. </div>
  2168.  
  2169. <div class='live-socket_color border'>Socket Text <a class='a_link' href='#'>Link | Link 2</a>
  2170. <span class='meta'> | Secondary Font</span>
  2171.  
  2172. </div>
  2173. </div>
  2174. </div>
  2175. </div>
  2176.  
  2177. ",
  2178. "nodescription" => true
  2179. );
  2180.  
  2181.  
  2182.  
  2183.  
  2184.  
  2185. $avia_elements[] = array( "slug" => "styling", "type" => "visual_group_start", "id" => "avia_tab1", "nodescription" => true, 'class'=>'avia_tab_container avia_set');
  2186.  
  2187.  
  2188.  
  2189.  
  2190.  
  2191. //create color sets for #header, Main Content, Secondary Content, Footer, Socket, Slideshow
  2192.  
  2193. $colorsets = $avia_config['color_sets'];
  2194. $iterator = 1;
  2195.  
  2196. foreach($colorsets as $set_key => $set_value)
  2197. {
  2198. $iterator ++;
  2199.  
  2200. $avia_elements[] = array( "slug" => "styling", "type" => "visual_group_start", "id" => "avia_tab".$iterator, "nodescription" => true, 'class'=>'avia_tab avia_tab'.$iterator,'name'=>$set_value);
  2201.  
  2202. $avia_elements[] = array(
  2203. "slug" => "styling",
  2204. "name" => $set_value ." ". __("background color", 'avia_framework'),
  2205. "id" => "colorset-$set_key-bg",
  2206. "type" => "colorpicker",
  2207. "class" => "av_2columns av_col_1",
  2208. "std" => "#ffffff",
  2209. "desc" => __("Default Background color", 'avia_framework'),
  2210. "target" => array("default_slideshow_target::.live-$set_key::background-color"),
  2211. );
  2212.  
  2213. $avia_elements[] = array(
  2214. "slug" => "styling",
  2215. "name" => __("Alternate Background color", 'avia_framework'),
  2216. "desc" => __("Alternate Background for menu hover, tables etc", 'avia_framework'),
  2217. "id" => "colorset-$set_key-bg2",
  2218. "type" => "colorpicker",
  2219. "class" => "av_2columns av_col_2",
  2220. "std" => "#f8f8f8",
  2221. "target" => array("default_slideshow_target::.live-$set_key .bg2::background-color"),
  2222. );
  2223.  
  2224. $avia_elements[] = array(
  2225. "slug" => "styling",
  2226. "name" => __("Primary color", 'avia_framework'),
  2227. "desc" => __("Font color for links, dropcaps and other elements", 'avia_framework'),
  2228. "id" => "colorset-$set_key-primary",
  2229. "type" => "colorpicker",
  2230. "class" => "av_2columns av_col_1",
  2231. "std" => "#719430",
  2232. "target" => array("default_slideshow_target::.live-$set_key .a_link, .live-$set_key-wrap-top::color,border-color"),
  2233. );
  2234.  
  2235.  
  2236. $avia_elements[] = array(
  2237. "slug" => "styling",
  2238. "name" => __("Highlight color", 'avia_framework'),
  2239. "desc" => __("Secondary color for link and button hover, etc", 'avia_framework')."<br/>",
  2240. "id" => "colorset-$set_key-secondary",
  2241. "type" => "colorpicker",
  2242. "class" => "av_2columns av_col_2",
  2243. "std" => "#8bba34",
  2244. "target" => "default_slideshow_target::.live-$set_key .an_activelink::color",
  2245. );
  2246.  
  2247.  
  2248. $avia_elements[] = array(
  2249. "slug" => "styling",
  2250. "name" => $set_value." ". __("font color", 'avia_framework'),
  2251. "id" => "colorset-$set_key-color",
  2252. "type" => "colorpicker",
  2253. "class" => "av_2columns av_col_1",
  2254. "std" => "#000000",
  2255. "target" => array("default_slideshow_target::.live-$set_key::color"),
  2256. );
  2257.  
  2258. $avia_elements[] = array(
  2259. "slug" => "styling",
  2260. "name" => $set_value." ". __("secondary font color", 'avia_framework'),
  2261. "id" => "colorset-$set_key-meta",
  2262. "type" => "colorpicker",
  2263. "class" => "av_2columns av_col_2",
  2264. "std" => "#969696",
  2265. "target" => array("default_slideshow_target::.live-$set_key .meta::color"),
  2266. );
  2267.  
  2268. $avia_elements[] = array(
  2269. "slug" => "styling",
  2270. "name" => $set_value." ". __("Heading color", 'avia_framework'),
  2271. "id" => "colorset-$set_key-heading",
  2272. "type" => "colorpicker",
  2273. "class" => "av_2columns av_col_1",
  2274. "std" => "#000000",
  2275. "target" => array("default_slideshow_target::.live-$set_key .heading::color"),
  2276. );
  2277.  
  2278.  
  2279. $avia_elements[] = array(
  2280. "slug" => "styling",
  2281. "name" => __("Border colors", 'avia_framework'),
  2282. "id" => "colorset-$set_key-border",
  2283. "type" => "colorpicker",
  2284. "class" => "av_2columns av_col_2",
  2285. "std" => "#ebebeb",
  2286. "target" => array("default_slideshow_target::.live-$set_key.border, .live-$set_key .bg2::border-color"),
  2287. );
  2288.  
  2289.  
  2290.  
  2291.  
  2292.  
  2293.  
  2294. $avia_elements[] = array( "slug" => "styling", "type" => "hr", "id" => "hr".$set_key, "nodescription" => true);
  2295.  
  2296. $avia_elements[] = array(
  2297. "slug" => "styling",
  2298. "id" => "colorset-$set_key-img",
  2299. "name" => __("Background Image", 'avia_framework'),
  2300. "desc" => __("The background image of your", 'avia_framework')." ".$set_value."<br/>",
  2301. "type" => "select",
  2302. "subtype" => array(__('No Background Image', 'avia_framework')=>'',__('Upload custom image', 'avia_framework')=>'custom'),
  2303. "std" => "",
  2304. "no_first"=>true,
  2305. "class" => "av_2columns av_col_1",
  2306. "target" => array("default_slideshow_target::.live-$set_key::background-image"),
  2307. "folder" => "images/background-images/",
  2308. "folderlabel" => "",
  2309. "group" => "Select predefined pattern",
  2310. );
  2311.  
  2312.  
  2313. $avia_elements[] = array(
  2314. "slug" => "styling",
  2315. "name" => __("Custom Background Image", 'avia_framework'),
  2316. "desc" => __("Upload a BG image for your", 'avia_framework')." ".$set_value."<br/>",
  2317. "id" => "colorset-$set_key-customimage",
  2318. "type" => "upload",
  2319. "std" => "",
  2320. "class" => "set_blank_on_hide av_2columns av_col_2",
  2321. "label" => __("Use Image", 'avia_framework'),
  2322. "required" => array("colorset-$set_key-img",'custom'),
  2323. "target" => array("default_slideshow_target::.live-$set_key::background-image"),
  2324. );
  2325.  
  2326.  
  2327. $avia_elements[] = array(
  2328. "slug" => "styling",
  2329. "name" => __("Position of the image", 'avia_framework'),
  2330. "desc" => "",
  2331. "id" => "colorset-$set_key-pos",
  2332. "type" => "select",
  2333. "std" => "top left",
  2334. "no_first"=>true,
  2335. "class" => "av_2columns av_col_1",
  2336. "required" => array("colorset-$set_key-img",'{true}'),
  2337. "target" => array("default_slideshow_target::.live-$set_key::background-position"),
  2338. "subtype" => array(
  2339. __('Top Left', 'avia_framework') =>'top left',
  2340. __('Top Center', 'avia_framework') =>'top center',
  2341. __( 'Top Right', 'avia_framework') =>'top right',
  2342. __('Bottom Left', 'avia_framework') =>'bottom left',
  2343. __('Bottom Center', 'avia_framework') =>'bottom center',
  2344. __( 'Bottom Right', 'avia_framework') =>'bottom right',
  2345. __( 'Center Left ', 'avia_framework') =>'center left',
  2346. __('Center Center', 'avia_framework') =>'center center',
  2347. __( 'Center Right', 'avia_framework') =>'center right'));
  2348.  
  2349. $avia_elements[] = array(
  2350. "slug" => "styling",
  2351. "name" => __("Repeat", 'avia_framework'),
  2352. "desc" => "",
  2353. "id" => "colorset-$set_key-repeat",
  2354. "type" => "select",
  2355. "std" => "no-repeat",
  2356. "class" => "av_2columns av_col_2",
  2357. "no_first"=>true,
  2358. "required" => array("colorset-$set_key-img",'{true}'),
  2359. "target" => array("default_slideshow_target::.live-$set_key::background-repeat"),
  2360. "subtype" => array(
  2361. __('no repeat', 'avia_framework') =>'no-repeat',
  2362. __('Repeat', 'avia_framework') =>'repeat',
  2363. __('Tile Horizontally', 'avia_framework') =>'repeat-x',
  2364. __('Tile Vertically', 'avia_framework') =>'repeat-y',
  2365. /* __('Stretch Fullscreen', 'avia_framework')=>'fullscreen' */
  2366. ));
  2367. $avia_elements[] = array(
  2368. "slug" => "styling",
  2369. "name" => __("Attachment", 'avia_framework'),
  2370. "desc" => "",
  2371. "id" => "colorset-$set_key-attach",
  2372. "type" => "select",
  2373. "std" => "scroll",
  2374. "class" => "av_2columns av_col_1",
  2375. "no_first"=>true,
  2376. "required" => array("colorset-$set_key-img",'{true}'),
  2377. "target" => array("default_slideshow_target::.live-$set_key::background-attachment"),
  2378. "subtype" => array(__('Scroll', 'avia_framework') =>'scroll',__('Fixed', 'avia_framework') =>'fixed'));
  2379.  
  2380.  
  2381.  
  2382.  
  2383.  
  2384.  
  2385.  
  2386. $avia_elements[] = array( "slug" => "styling", "type" => "visual_group_end", "id" => "avia_tab_end".$iterator, "nodescription" => true);
  2387. }
  2388.  
  2389.  
  2390.  
  2391.  
  2392. $avia_elements[] = array( "slug" => "styling", "type" => "visual_group_start", "id" => "avia_tab54", "nodescription" => true, 'class'=>'avia_tab avia_tab2','name'=>__('Body background', 'avia_framework'),
  2393. "required" => array("color-body_style",'{contains}box'),
  2394. "inactive" => __("These options are only available if you select the 'boxed' or 'framed' layout. Your currently have a different layout selected", 'avia_framework'). "<br/><br/>".
  2395. __("You can change that setting",'avia_framework').
  2396. " <a href='#goto_layout'>".
  2397. __("at General Layout",'avia_framework').
  2398. "</a>");
  2399.  
  2400. $avia_elements[] = array(
  2401. "slug" => "styling",
  2402. "name" => __("Body Background color", 'avia_framework'),
  2403. "desc" => __("Background color for your site", 'avia_framework').
  2404. "<br/>".
  2405. __("This is the color that is displayed behind your boxed content area", 'avia_framework'),
  2406. "id" => "color-body_color",
  2407. "type" => "colorpicker",
  2408. "std" => "#eeeeee",
  2409. /* "class" => "av_2columns av_col_2", */
  2410. "target" => array("default_slideshow_target::.live_bg_wrap::background-color"),
  2411. );
  2412.  
  2413.  
  2414.  
  2415. $avia_elements[] = array(
  2416. "slug" => "styling",
  2417. "id" => "color-body_img",
  2418. "name" => __("Background Image", 'avia_framework'),
  2419. "desc" => __("The background image of your Body", 'avia_framework')."<br/><br/>",
  2420. "type" => "select",
  2421. "subtype" => array(__('No Background Image', 'avia_framework')=>'',__('Upload custom image', 'avia_framework')=>'custom'),
  2422. "std" => "",
  2423. "no_first"=>true,
  2424. "class" => "av_2columns av_col_1 set_blank_on_hide",
  2425. "target" => array("default_slideshow_target::.live_bg_wrap::background-image"),
  2426. "folder" => "images/background-images/",
  2427. "folderlabel" => "",
  2428. "required" => array("color-body_style",'boxed'),
  2429. "group" => "Select predefined pattern",
  2430.  
  2431. );
  2432.  
  2433.  
  2434. $avia_elements[] = array(
  2435. "slug" => "styling",
  2436. "name" => __("Custom Background Image", 'avia_framework'),
  2437. "desc" => __("Upload a BG image for your Body", 'avia_framework')."<br/><br/>",
  2438. "id" => "color-body_customimage",
  2439. "type" => "upload",
  2440. "std" => "",
  2441. "class" => "set_blank_on_hide av_2columns av_col_2",
  2442. "label" => __("Use Image", 'avia_framework'),
  2443. "required" => array("color-body_img",'custom'),
  2444. "target" => array("default_slideshow_target::.live_bg_wrap::background-image"),
  2445. );
  2446.  
  2447.  
  2448. $avia_elements[] = array(
  2449. "slug" => "styling",
  2450. "name" => __("Position of the image", 'avia_framework'),
  2451. "desc" => "",
  2452. "id" => "color-body_pos",
  2453. "type" => "select",
  2454. "std" => "top left",
  2455. "no_first"=>true,
  2456. "class" => "av_2columns av_col_1",
  2457. "required" => array("color-body_img",'{true}'),
  2458. "target" => array("default_slideshow_target::.live_bg_wrap::background-position"),
  2459. "subtype" => array(
  2460. __('Top Left', 'avia_framework') =>'top left',
  2461. __('Top Center', 'avia_framework') =>'top center',
  2462. __( 'Top Right', 'avia_framework') =>'top right',
  2463. __('Bottom Left', 'avia_framework') =>'bottom left',
  2464. __('Bottom Center', 'avia_framework') =>'bottom center',
  2465. __( 'Bottom Right', 'avia_framework') =>'bottom right',
  2466. __( 'Center Left ', 'avia_framework') =>'center left',
  2467. __('Center Center', 'avia_framework') =>'center center',
  2468. __( 'Center Right', 'avia_framework') =>'center right'));
  2469.  
  2470. $avia_elements[] = array(
  2471. "slug" => "styling",
  2472. "name" => __("Repeat", 'avia_framework'),
  2473. "desc" => "",
  2474. "id" => "color-body_repeat",
  2475. "type" => "select",
  2476. "std" => "no-repeat",
  2477. "class" => "av_2columns av_col_2",
  2478. "no_first"=>true,
  2479. "required" => array("color-body_img",'{true}'),
  2480. "target" => array("default_slideshow_target::.live_bg_wrap::background-repeat"),
  2481. "subtype" => array(
  2482. __('no repeat', 'avia_framework')=>'no-repeat',
  2483. __('Repeat', 'avia_framework')=>'repeat',
  2484. __('Tile Horizontally', 'avia_framework')=>'repeat-x',
  2485. __('Tile Vertically', 'avia_framework')=>'repeat-y',
  2486. __('Stretch Fullscreen', 'avia_framework')=>'fullscreen'));
  2487.  
  2488. $avia_elements[] = array(
  2489. "slug" => "styling",
  2490. "name" => __("Attachment", 'avia_framework'),
  2491. "desc" => "",
  2492. "id" => "color-body_attach",
  2493. "type" => "select",
  2494. "std" => "scroll",
  2495. "class" => "av_2columns av_col_1",
  2496. "no_first"=>true,
  2497. "required" => array("color-body_img",'{true}'),
  2498. "target" => array("default_slideshow_target::.live_bg_wrap::background-attachment"),
  2499. "subtype" => array(__('Scroll', 'avia_framework')=>'scroll',__('Fixed', 'avia_framework')=>'fixed'));
  2500.  
  2501.  
  2502. $avia_elements[] = array( "slug" => "styling", "type" => "visual_group_end", "id" => "avia_tab5_end", "nodescription" => true);
  2503.  
  2504.  
  2505.  
  2506.  
  2507.  
  2508.  
  2509.  
  2510.  
  2511.  
  2512.  
  2513. $avia_elements[] = array( "slug" => "styling", "type" => "visual_group_start", "id" => "avia_tab6", "nodescription" => true, 'class'=>'avia_tab avia_tab2','name'=>__('Fonts', 'avia_framework'));
  2514.  
  2515.  
  2516. $avia_elements[] = array( "name" => __("Heading Font", 'avia_framework'),
  2517. "slug" => "styling",
  2518. "desc" => __("The Font heading allows you to use a wide range of fonts for your headings. Uplooad your own fonts, use websave fonts (faster rendering) or Google webkit fonts (more unique).", 'avia_framework'),
  2519. "id" => "google_webfont",
  2520. "type" => "select",
  2521. "no_first" => true,
  2522. "class" => "av_2columns av_col_1",
  2523. "onchange" => "avia_add_google_font",
  2524. "std" => "Open Sans",
  2525. "subtype" => apply_filters( 'avf_heading_font_select_options_list', AviaSuperobject()->type_fonts()->get_font_select_options_list() )
  2526. );
  2527.  
  2528. $avia_elements[] = array( "name" => __("Font for your body text", 'avia_framework'),
  2529. "slug" => "styling",
  2530. "desc" => __("Choose between your own uploaded fonts, web safe fonts (faster rendering) and Google webkit fonts (more unique).", 'avia_framework')."<br/>",
  2531. "id" => "default_font",
  2532. "type" => "select",
  2533. "no_first" => true,
  2534. "class" => "av_2columns av_col_2",
  2535. "onchange" => "avia_add_google_font",
  2536. "std" => "Helvetica-Neue,Helvetica-websave",
  2537. "subtype" => apply_filters( 'avf_content_font_select_options_list', AviaSuperobject()->type_fonts()->get_font_select_options_list() )
  2538. );
  2539.  
  2540.  
  2541. $avia_elements[] = array(
  2542. "slug" => "styling",
  2543. "name" => __("Default content font size", 'avia_framework'),
  2544. "desc" => __("The default font size for your content (eg: blog post content)", 'avia_framework'),
  2545. "id" => "color-default_font_size",
  2546. "type" => "select",
  2547. "std" => "",
  2548. "no_first"=>true,
  2549. "subtype" => array(
  2550. __('Theme Default (13px)', 'avia_framework')=>'',
  2551. '11px' =>'11px',
  2552. '12px' =>'12px',
  2553. '13px' =>'13px',
  2554. '14px' =>'14px',
  2555. '15px' =>'15px',
  2556. '16px' =>'16px',
  2557. '17px' =>'17px',
  2558. '18px' =>'18px',
  2559. '19px' =>'19px',
  2560. '20px' =>'20px',
  2561. '21px' =>'21px',
  2562. '22px' =>'22px',
  2563. '23px' =>'23px',
  2564. '24px' =>'24px',
  2565. '25px' =>'25px',
  2566. ));
  2567.  
  2568.  
  2569. $avia_elements[] = array( "slug" => "styling", "type" => "visual_group_end", "id" => "avia_tabwe6_end", "nodescription" => true);
  2570.  
  2571.  
  2572. $avia_elements[] = array( "slug" => "styling", "type" => "visual_group_end", "id" => "avia_tab_container_end", "nodescription" => true);
  2573.  
  2574.  
  2575. $avia_elements[] = array(
  2576. "slug" => "styling",
  2577. "name" => __("Quick CSS", 'avia_framework'),
  2578. "desc" => __("Just want to do some quick CSS changes? Enter them here, they will be applied to the theme. If you need to change major portions of the theme please use the custom.css file", 'avia_framework').
  2579. " <a target='_blank' href='https://kriesi.at/documentation/enfold/using-a-child-theme/'>".
  2580. __("or the Enfold Child theme.","avia_framework").
  2581. "</a>"
  2582. ,
  2583. "id" => "quick_css",
  2584. "type" => "textarea"
  2585. );
  2586.  
  2587.  
  2588.  
  2589.  
  2590. /*Sidebar*/
  2591.  
  2592.  
  2593.  
  2594.  
  2595. $avia_elements[] = array(
  2596. "slug" => "sidebars",
  2597. "name" => __("Sidebar on Archive Pages", 'avia_framework'),
  2598. "desc" => __("Choose the archive sidebar position here. This setting will be applied to all archive pages", 'avia_framework'),
  2599. "id" => "archive_layout",
  2600. "type" => "select",
  2601. "std" => "sidebar_right",
  2602. "no_first"=>true,
  2603. "subtype" => array( __('left sidebar', 'avia_framework') =>'sidebar_left',
  2604. __('right sidebar', 'avia_framework') =>'sidebar_right',
  2605. __('no sidebar', 'avia_framework') =>'fullsize'
  2606. ));
  2607.  
  2608.  
  2609.  
  2610.  
  2611. $avia_elements[] = array(
  2612. "slug" => "sidebars",
  2613. "name" => __("Sidebar on Blog Page", 'avia_framework'),
  2614. "desc" => __("Choose the blog sidebar position here. This setting will be applied to the blog page", 'avia_framework'),
  2615. "id" => "blog_layout",
  2616. "type" => "select",
  2617. "std" => "sidebar_right",
  2618. "no_first"=>true,
  2619. "subtype" => array( __('left sidebar', 'avia_framework') =>'sidebar_left',
  2620. __('right sidebar', 'avia_framework') =>'sidebar_right',
  2621. __('no sidebar', 'avia_framework') =>'fullsize'
  2622. ));
  2623.  
  2624.  
  2625.  
  2626.  
  2627. $avia_elements[] = array(
  2628. "slug" => "sidebars",
  2629. "name" => __("Sidebar on Single Post Entries", 'avia_framework'),
  2630. "desc" => __("Choose the blog post sidebar position here. This setting will be applied to single blog posts", 'avia_framework'),
  2631. "id" => "single_layout",
  2632. "type" => "select",
  2633. "std" => "sidebar_right",
  2634. "no_first"=>true,
  2635. "subtype" => array( __('left sidebar', 'avia_framework') =>'sidebar_left',
  2636. __('right sidebar', 'avia_framework') =>'sidebar_right',
  2637. __('no sidebar', 'avia_framework') =>'fullsize'
  2638. ));
  2639.  
  2640.  
  2641.  
  2642.  
  2643.  
  2644.  
  2645.  
  2646. $avia_elements[] = array(
  2647. "slug" => "sidebars",
  2648. "name" => __("Sidebar on Pages", 'avia_framework'),
  2649. "desc" => __("Choose the default page layout here. You can change the setting of each individual page when editing that page", 'avia_framework'),
  2650. "id" => "page_layout",
  2651. "type" => "select",
  2652. "std" => "sidebar_right",
  2653. "no_first"=>true,
  2654. "subtype" => array( __('left sidebar', 'avia_framework') =>'sidebar_left',
  2655. __('right sidebar', 'avia_framework') =>'sidebar_right',
  2656. __('no sidebar', 'avia_framework') =>'fullsize'
  2657. ));
  2658.  
  2659. $avia_elements[] = array(
  2660. "slug" => "sidebars",
  2661. "name" => __("Separate Sidebars for Blog and Archive Pages", 'avia_framework'),
  2662. "desc" => __("Show separate 'Archive Sidebar' on Archive Pages", 'avia_framework'),
  2663. "id" => "archive_sidebar",
  2664. "type" => "select",
  2665. "std" => "",
  2666. "no_first"=>true,
  2667. "subtype" => array( __('Show Blog Sidebar on Archiv Pages', 'avia_framework') =>'',
  2668. __('Show separate Archive Sidebar on Archive Pages', 'avia_framework') =>'archive_sidebar_separate'
  2669. ));
  2670.  
  2671.  
  2672. $avia_elements[] = array(
  2673. "slug" => "sidebars",
  2674. "name" => __("Sidebar on Smartphones", 'avia_framework'),
  2675. "desc" => __("Show sidebar on smartphones (Sidebar is displayed then below the actual content)", 'avia_framework'),
  2676. "id" => "smartphones_sidebar",
  2677. "type" => "checkbox",
  2678. "std" => "",
  2679. "no_first"=>true,
  2680. "subtype" => array( __('Hide sidebar on smartphones', 'avia_framework') =>'',
  2681. __('Show sidebar on smartphones', 'avia_framework') =>'smartphones_sidebar_visible'
  2682. ));
  2683.  
  2684.  
  2685. $avia_elements[] = array(
  2686. "slug" => "sidebars",
  2687. "name" => __("Page Sidebar navigation", 'avia_framework'),
  2688. "desc" => __("Display a sidebar navigation for all nested subpages of a page automatically?", 'avia_framework'),
  2689. "id" => "page_nesting_nav",
  2690. "type" => "checkbox",
  2691. "std" => "true",
  2692. "no_first"=>true,
  2693. "subtype" => array( __('Display sidebar navigation', 'avia_framework') =>'true',
  2694. __("Don't display Sidebar navigation", 'avia_framework') => ""
  2695. ));
  2696. $avia_elements[] = array(
  2697. "slug" => "sidebars",
  2698. "name" => __("Sidebar Separator Styling", 'avia_framework'),
  2699. "desc" => __("Do you want to separate the sidebar from your main content with a border?", 'avia_framework'),
  2700. "id" => "sidebar_styling",
  2701. "type" => "select",
  2702. "std" => "",
  2703. "no_first"=>true,
  2704. "subtype" => array(
  2705. __('With Border', 'avia_framework') =>'',
  2706. __('No Border', 'avia_framework') =>'no_sidebar_border',
  2707. __('Shadow', 'avia_framework') =>'sidebar_shadow',
  2708. ));
  2709.  
  2710. $avia_elements[] = array(
  2711. "slug" => "sidebars",
  2712. "name" => __("Left Sidebar Text Alignment", 'avia_framework'),
  2713. "desc" => __("Define text alignment for the left sidebar", 'avia_framework'),
  2714. "id" => "sidebar_left_textalign",
  2715. "type" => "select",
  2716. "std" => "",
  2717. "no_first"=>true,
  2718. "subtype" => array(
  2719. __('Right', 'avia_framework') =>'',
  2720. __('Left', 'avia_framework') =>'align_left',
  2721. ));
  2722.  
  2723.  
  2724. $avia_elements[] = array( "name" => __("Create new Sidebar Widget Areas", 'avia_framework'),
  2725. "desc" => __("The theme supports the creation of custom widget areas. Simply open your", 'avia_framework') . " <a target='_blank' href='".admin_url('widgets.php')."'>".__('Widgets Page', 'avia_framework')."</a> ".
  2726. __("and add a new Sidebar Area. Afterwards you can choose to display this Widget Area in the Edit Page Screen.", 'avia_framework'),
  2727. "id" => "widgetdescription",
  2728. "std" => "",
  2729. "slug" => "sidebars",
  2730. "type" => "heading",
  2731. "nodescription"=>true);
  2732.  
  2733.  
  2734.  
  2735. /*Header Layout Settings*/
  2736.  
  2737.  
  2738. $avia_elements[] = array( "slug" => "header",
  2739. "type" => "visual_group_start",
  2740. "id" => "header_conditional",
  2741. "nodescription" => true,
  2742. "required" => array('header_position','{contains}header_top'),
  2743. "inactive" => __("These options are only available if you select a layout that has a main menu positioned at the top. You currently have your main menu placed in a sidebar",'avia_framework') ."<br/><br/>".
  2744. __("You can change that setting",'avia_framework').
  2745. " <a href='#goto_layout'>".
  2746. __("at General Layout",'avia_framework').
  2747. "</a>");
  2748.  
  2749.  
  2750.  
  2751.  
  2752. $frontendheader_label = __("A rough layout preview of the header area", 'avia_framework');
  2753.  
  2754. $avia_elements[] = array(
  2755. "slug" => "header",
  2756. "id" => "default_header_target",
  2757. "type" => "target",
  2758. "std" => "
  2759. <style type='text/css'>
  2760.  
  2761. #avia_options_page #avia_default_header_target{background: #f8f8f8;border: none;padding: 30px;border-bottom: 1px solid #e5e5e5; margin-bottom: 25px;}
  2762. #avia_header_preview{color:#999; border:1px solid #e1e1e1; padding:0px 45px; overflow:hidden; background-color:#fff; position: relative;}
  2763.  
  2764. #avia_options_page #pr-main-area{line-height:69px; overflow:hidden;}
  2765. #pr-menu{float:right; font-size:12px; line-height: inherit;}
  2766.  
  2767. #pr-menu .pr-menu-single{display:inline-block; padding:0px 7px; position:relative; }
  2768. #pr-menu .main_nav_header .pr-menu-single{padding:20px 7px;}
  2769.  
  2770. #pr-menu-inner.seperator_small_border .pr-menu-single{display:inline; border-right: 1px solid #e1e1e1; padding:0px 7px;}
  2771. #pr-menu-inner.seperator_big_border .pr-menu-single{ border-right: 1px solid #e1e1e1; width: 80px; text-align: center; padding: 25px 7px;}
  2772. #pr-menu-inner.seperator_big_border .pr-menu-single-first{border-left:1px solid #e1e1e1;}
  2773.  
  2774.  
  2775. .bottom_nav_header #pr-menu-inner.seperator_big_border .pr-menu-single{padding: 9px 7px;}
  2776.  
  2777. #pr-logo{ max-width: 150px; max-height: 70px; float:left;}
  2778. #avia_header_preview.large #pr-logo{ max-width: 215px; max-height: 115px; padding-top:0px;}
  2779. #avia_header_preview.large .main_nav_header #pr-menu-inner.seperator_big_border .pr-menu-single{padding: 48px 7px;}
  2780. #avia_options_page #avia_header_preview.large #pr-main-area{line-height:15px;}
  2781.  
  2782. #search_icon{opacity:0.3; margin-left: 10px; top:26px; position:relative; display:none; z-index:10; height:16px;}
  2783. #search_icon.header_searchicon{display:inline; top:4px;}
  2784. #pr-content-area{display:block; clear:both; padding:15px 45px; overflow:hidden; background-color:#fcfcfc; text-align:center; border:1px solid #e1e1e1; border-top:none;}
  2785. .logo_right #pr-logo{float:right}
  2786. .logo_center{text-align:center;}
  2787. .logo_center #pr-logo{float:none}
  2788. .menu_left #pr-menu{float:left}
  2789. #avia_options_page .bottom_nav_header#pr-main-area{line-height: 1em;}
  2790. .bottom_nav_header #pr-menu{float:none; clear:both; line-height:36px; }
  2791. .top_nav_header div#pr-menu { position: absolute; top: -1px; width: 100%; left: 0; }
  2792. .top_nav_header#pr-main-area{margin-top:40px;}
  2793. .bottom_nav_header #pr-menu:before { content: ''; border-top: 1px solid #e1e1e1; width: 150%; position:absolute; height: 1px; left: -50px;}
  2794. .top_nav_header #pr-menu:before{ top: 36px; }
  2795. .minimal_header .top_nav_header #pr-menu:before{opacity:0;}
  2796. .minimal_header_shadow .top_nav_header #pr-menu:before{opacity:1; box-shadow: 0 1px 3px 0px rgba(0,0,0,0.1); }
  2797.  
  2798.  
  2799. #pr-menu-2nd{height: 28px; color:#aaa; border:1px solid #e1e1e1; padding:5px 45px; overflow:hidden; background-color:#f8f8f8; border-bottom:none; display:none; font-size:11px;}
  2800. .extra_header_active #pr-menu-2nd{display:block;}
  2801. .pr-secondary-items{display:none;}
  2802. .secondary_left .pr-secondary-items, .secondary_right .pr-secondary-items{display:block; float:left; margin:0 10px 0 0;}
  2803. .secondary_right .pr-secondary-items{float:right; margin:0 0 0 10px;}
  2804.  
  2805. .pr-icons{opacity:0.3; display:none; position:relative; top:1px;}
  2806. .icon_active_left.extra_header_active #pr-menu-2nd .pr-icons{display:block; float:left; margin:0 10px 0 0;}
  2807. .icon_active_right.extra_header_active #pr-menu-2nd .pr-icons{display:block; float:right; margin:0 0 0 10px ;}
  2808.  
  2809. .icon_active_main #pr-main-icon{float:right; position:relative; line-height:inherit;}
  2810. .icon_active_main #pr-main-icon .pr-icons{display:block; top: 3px; margin: 0 0 0 17px; line-height:inherit; width:66px;}
  2811. .icon_active_main .logo_right #pr-main-icon {left: 211px; float: left; width: 0px;}
  2812. .icon_active_main .logo_right #pr-main-icon {left: 211px; float: left; width: 0px;}
  2813. .icon_active_main .large .logo_right #pr-main-icon {left:-55px;}
  2814.  
  2815. .icon_active_main .bottom_nav_header #pr-main-icon{top:23px;}
  2816. .icon_active_main .large #pr-main-icon{top:46px;}
  2817.  
  2818. .icon_active_main .logo_right.bottom_nav_header #pr-main-icon{float:left; left:-17px;}
  2819. .icon_active_main .logo_center.bottom_nav_header #pr-main-icon{float: right; top: 0px; position: absolute; right: 24px;}
  2820. .icon_active_main .large .logo_center.bottom_nav_header #pr-main-icon{top: 29px;}
  2821. .icon_active_main .logo_center.bottom_nav_header #pr-main-icon .pr-icons{margin:0; top:35px;}
  2822. .icon_active_main .large .logo_center.bottom_nav_header #pr-main-icon .pr-icons { top: 23px; }
  2823.  
  2824. .pr-phone-items{display:none;}
  2825. .phone_active_left .pr-phone-items{display:block; float:left;}
  2826. .phone_active_right .pr-phone-items{display:block; float:right;}
  2827.  
  2828. .header_stretch #avia_header_preview, .header_stretch #pr-menu-2nd{ padding-left: 15px; padding-right: 15px; }
  2829. .header_stretch .icon_active_main .logo_right.menu_left #pr-main-icon {left:-193px;}
  2830.  
  2831. .inner-content{color:#999; text-align: justify; }
  2832.  
  2833. #pr-breadcrumb{line-height:23px; color:#aaa; border:1px solid #e1e1e1; padding:5px 45px; overflow:hidden; background-color:#f8f8f8; border-top:none; font-size:16px;}
  2834. #pr-breadcrumb .some-breadcrumb{float:right; font-size:11px; line-height:23px;}
  2835. #pr-breadcrumb.title_bar .some-breadcrumb, #pr-breadcrumb.hidden_title_bar{ display:none; }
  2836.  
  2837. .pr-menu-single.pr-menu-single-first:after {
  2838. content: '';
  2839. width: 90%;
  2840. height: 1px;
  2841. border-bottom: 2px solid #9cc2df;
  2842. display: block;
  2843. top: 85%;
  2844. left: 7%;
  2845. position: absolute;
  2846. }
  2847.  
  2848. .burger_menu #pr-menu-inner{
  2849. display:none;
  2850. }
  2851.  
  2852. #pr-burger-menu{
  2853. display: none;
  2854. height: 40px;
  2855. width: 30px;
  2856. margin-top: 17px;
  2857. margin-left:20px;
  2858. float: right;
  2859. position: relative;
  2860. z-index:10;
  2861. }
  2862.  
  2863. #avia_header_preview.large #pr-burger-menu{margin-top: 39px;}
  2864.  
  2865. #pr-burger-menu span{
  2866. display:block;
  2867. border-top:4px solid #aaa;
  2868. margin-top: 6px;
  2869. }
  2870.  
  2871. .main_nav_header .burger_menu #pr-burger-menu{
  2872. display:block;
  2873. }
  2874.  
  2875. .seperator_small_border .pr-menu-single.pr-menu-single-first:after { top: 145%; }
  2876. .seperator_big_border .pr-menu-single.pr-menu-single-first:after { top: 98%; left: 0; width: 100%;}
  2877. .bottom_nav_header .pr-menu-single.pr-menu-single-first:after { top: 92%; left: 0%; width:100%; }
  2878.  
  2879. .minimal_header .pr-menu-single.pr-menu-single-first:after{display:none;}
  2880. .minimal_header #avia_header_preview{border-bottom:none;}
  2881. .minimal_header_shadow #avia_header_preview { box-shadow: 0 2px 8px 0px rgba(0,0,0,0.1); }
  2882.  
  2883. .bottom_nav_header #search_icon.header_searchicon{float:right; top: 10px;}
  2884. .burger_menu #pr-burger-menu{display:block;}
  2885. #avia_header_preview .bottom_nav_header #pr-burger-menu{ margin:0; float:left; }
  2886. .top_nav_header #search_icon, .top_nav_header #pr-burger-menu{margin:0px 10px;}
  2887.  
  2888. </style>
  2889. <div class='av-header-area-preview' >
  2890. <div id='pr-stretch-wrap' >
  2891. <small class='live_bg_small'>{$frontendheader_label}</small>
  2892. <div id='pr-header-style-wrap' >
  2893. <div id='pr-phone-wrap' >
  2894. <div id='pr-social-wrap' >
  2895. <div id='pr-seconary-menu-wrap' >
  2896. <div id='pr-menu-2nd'>{$iconSpan}<span class='pr-secondary-items'>Login | Signup | etc</span><span class='pr-phone-items'>Phone: 555-4432</span></div>
  2897. <div id='avia_header_preview' >
  2898. <div id='pr-main-area' >
  2899. <img id='pr-logo' src='".AVIA_BASE_URL."images/layout/logo_modern.png' alt=''/>
  2900. <div id='pr-main-icon'>{$iconSpan}</div>
  2901. <div id='pr-menu'>
  2902.  
  2903.  
  2904. <span id='pr-menu-inner'><span class='pr-menu-single pr-menu-single-first'>Home</span><span class='pr-menu-single'>About</span><span class='pr-menu-single'>Contact</span></span> <img id='search_icon' src='".AVIA_BASE_URL."images/layout/search.png' alt='' />
  2905. <div id='pr-burger-menu'>
  2906. <span class='burger-top'></span>
  2907. <span class='burger-mid'></span>
  2908. <span class='burger-low'></span>
  2909. </div>
  2910.  
  2911. </div>
  2912. </div>
  2913. </div>
  2914. </div>
  2915. </div>
  2916. </div>
  2917. </div>
  2918. <div id='pr-breadcrumb'>Some Title <span class='some-breadcrumb'>Home &#187; Admin &#187; Header </span></div>
  2919. <div id='pr-content-area'> Content / Slideshows / etc
  2920. <div class='inner-content'>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium sem.</div>
  2921. </div>
  2922. </div>
  2923. </div>
  2924. ",
  2925. "nodescription" => true
  2926. );
  2927.  
  2928. //START TAB CONTAINER
  2929. $avia_elements[] = array( "slug" => "header", "type" => "visual_group_start", "id" => "avia_tab1", "nodescription" => true, 'class'=>'avia_tab_container avia_set');
  2930. $avia_elements[] = array( "slug" => "header", "type" => "visual_group_start", "id" => "avia_tab5", "nodescription" => true, 'class'=>'avia_tab avia_tab2','name'=>__('Header layout', 'avia_framework'));
  2931. // START TAB
  2932.  
  2933. $avia_elements[] = array(
  2934. "slug" => "header",
  2935. "name" => __("Menu and Logo Position", 'avia_framework'),
  2936. "desc" => __("You can choose various different logo and main menu positions here", 'avia_framework'),
  2937. "id" => "header_layout",
  2938. "type" => "select",
  2939. "std" => "",
  2940. "class" => "av_2columns av_col_1",
  2941. "no_first"=>true,
  2942. "target" => array(".av-header-area-preview::#pr-main-area::set_class"),
  2943. "subtype" => array( __('Logo left, Menu right', 'avia_framework') =>'logo_left main_nav_header menu_right',
  2944. __('Logo right, Menu Left', 'avia_framework') =>'logo_right main_nav_header menu_left',
  2945. __('Logo left, Menu below', 'avia_framework') =>'logo_left bottom_nav_header menu_left',
  2946. __('Logo right, Menu below', 'avia_framework') =>'logo_right bottom_nav_header menu_center',
  2947. __('Logo center, Menu below', 'avia_framework') =>'logo_center bottom_nav_header menu_right',
  2948. __('Logo center, Menu above', 'avia_framework') =>'logo_center bottom_nav_header top_nav_header menu_center',
  2949. ));
  2950.  
  2951. $avia_elements[] = array(
  2952. "slug" => "header",
  2953. "name" => __("Header Size", 'avia_framework'),
  2954. "desc" => __("Choose a predefined header size. You can also apply a custom height to the header", 'avia_framework'),
  2955. "id" => "header_size",
  2956. "type" => "select",
  2957. "std" => "",
  2958. "class" => "av_2columns av_col_2",
  2959. "target" => array(".av-header-area-preview::#avia_header_preview::set_class"),
  2960. "no_first"=>true,
  2961. "subtype" => array( __('slim', 'avia_framework') =>'slim',
  2962. __('large', 'avia_framework') =>'large',
  2963. __('custom pixel value', 'avia_framework') =>'custom',
  2964. ));
  2965.  
  2966.  
  2967. $customsize = array();
  2968. for ($x=45; $x<=300; $x++){ $customsize[$x.'px'] = $x; }
  2969.  
  2970. $avia_elements[] = array(
  2971. "slug" => "header",
  2972. "name" => __("Header Custom Height", 'avia_framework'),
  2973. "desc" => __("Choose a custom height in pixels (wont be reflected in the preview above, only on your actual page)", 'avia_framework'),
  2974. "id" => "header_custom_size",
  2975. "type" => "select",
  2976. "std" => "150",
  2977. "required" => array('header_size','custom'),
  2978. "no_first"=>true,
  2979. "subtype" => $customsize);
  2980.  
  2981.  
  2982. $avia_elements[] = array(
  2983. "slug" => "header",
  2984. "name" => __("Header Style", 'avia_framework'),
  2985. "desc" => __("Choose which header style you want to use", 'avia_framework'),
  2986. "id" => "header_style",
  2987. "type" => "select",
  2988. "std" => "",
  2989. "target" => array(".av-header-area-preview::#pr-header-style-wrap::set_class"),
  2990. "no_first"=>true,
  2991. "subtype" => array( __('Default (with borders, active menu indicator and slightly transparent)', 'avia_framework') =>'',
  2992. __('Minimal (no borders, indicators or transparency)', 'avia_framework') =>'minimal_header',
  2993. __('Minimal with drop shadow (no borders, indicators or transparency)', 'avia_framework') =>'minimal_header minimal_header_shadow',
  2994. ));
  2995.  
  2996.  
  2997.  
  2998.  
  2999. $avia_elements[] = array(
  3000. "slug" => "header",
  3001. "name" => __("Header Title and Breadcrumbs", 'avia_framework'),
  3002. "desc" => __("Choose if and how you want to display the Title and Breadcrumb of your page. This option can be overwritten when writing/editing a page", 'avia_framework'),
  3003. "id" => "header_title_bar",
  3004. "type" => "select",
  3005. "std" => "title_bar_breadcrumb",
  3006. "target" => array(".av-header-area-preview::#pr-breadcrumb::set_class"),
  3007. "no_first"=>true,
  3008. "subtype" => array( __('Display title and breadcrumbs', 'avia_framework') =>'title_bar_breadcrumb',
  3009. __('Display only title', 'avia_framework') =>'title_bar',
  3010. __('Display only breadcrumbs', 'avia_framework') =>'breadcrumbs_only',
  3011. __('Hide both', 'avia_framework') =>'hidden_title_bar',
  3012. ));
  3013.  
  3014.  
  3015.  
  3016. // END TAB
  3017. $avia_elements[] = array( "slug" => "header", "type" => "visual_group_end", "id" => "avia_tab5_end", "nodescription" => true);
  3018. $avia_elements[] = array( "slug" => "header", "type" => "visual_group_start", "id" => "avia_tab5", "nodescription" => true, 'class'=>'avia_tab avia_tab2','name'=>__('Header behavior', 'avia_framework'));
  3019. // START TAB
  3020.  
  3021. $avia_elements[] = array(
  3022. "name" => __("Sticky Header", 'avia_framework'),
  3023. "desc" => __("If checked the header will stick to the top of your site if user scrolls down (ignored on smartphones)", 'avia_framework'),
  3024. "id" => "header_sticky",
  3025. "type" => "checkbox",
  3026. "std" => "true",
  3027. "slug" => "header");
  3028.  
  3029. $avia_elements[] = array(
  3030. "name" => __("Shrinking Header", 'avia_framework'),
  3031. "desc" => __("If checked the sticky header will shrink once the user scrolls down (ignored on smartphones + tablets)", 'avia_framework'),
  3032. "id" => "header_shrinking",
  3033. "type" => "checkbox",
  3034. "std" => "true",
  3035. "required" => array('header_sticky','header_sticky'),
  3036. "slug" => "header");
  3037.  
  3038. $avia_elements[] = array(
  3039. "name" => __("Unstick topbar", 'avia_framework'),
  3040. "desc" => __("If checked the small top bar above the header with social icons, secondary menu and extra information will no longer stick to the top", 'avia_framework'),
  3041. "id" => "header_unstick_top",
  3042. "type" => "checkbox",
  3043. "std" => "",
  3044. "required" => array('header_sticky','header_sticky'),
  3045. "slug" => "header");
  3046.  
  3047.  
  3048. $avia_elements[] = array(
  3049. "name" => __("Let logo and menu position adapt to browser window", 'avia_framework'),
  3050. "desc" => __("If checked the elements in your header will always be placed at the browser window edge, instead of matching the content width", 'avia_framework'),
  3051. "id" => "header_stretch",
  3052. "type" => "checkbox",
  3053. "std" => "",
  3054. "target" => array(".av-header-area-preview::#pr-stretch-wrap::set_class"),
  3055. "slug" => "header");
  3056.  
  3057. // END TAB
  3058. $avia_elements[] = array( "slug" => "header", "type" => "visual_group_end", "id" => "avia_tab5_end", "nodescription" => true);
  3059.  
  3060.  
  3061. $avia_elements[] = array( "slug" => "header", "type" => "visual_group_start", "id" => "avia_tab5", "nodescription" => true, 'class'=>'avia_tab avia_tab2','name'=>__('Extra Elements', 'avia_framework'));
  3062. // START TAB
  3063.  
  3064.  
  3065. $avia_elements[] = array(
  3066. "slug" => "header",
  3067. "name" => __("Header Social Icons", 'avia_framework'),
  3068. "desc" => __("Choose if and where to display social icons. You can define the icons at", 'avia_framework').
  3069. " <a href='#goto_social'>".
  3070. __("Social Profiles","avia_framework").
  3071. "</a>"
  3072. ,
  3073. "id" => "header_social",
  3074. "type" => "select",
  3075. "std" => "",
  3076. "class" => "av_2columns av_col_1",
  3077. "target" => array(".av-header-area-preview::#pr-social-wrap::set_class"),
  3078. "no_first"=>true,
  3079. "subtype" => array( __('No social Icons', 'avia_framework') =>'',
  3080. __('Display in top bar at the left', 'avia_framework') =>'icon_active_left extra_header_active',
  3081. __('Display in top bar at the right', 'avia_framework') =>'icon_active_right extra_header_active',
  3082. __('Display in main header area', 'avia_framework') =>'icon_active_main',
  3083. ));
  3084.  
  3085. $avia_elements[] = array(
  3086. "slug" => "header",
  3087. "name" => __("Header Secondary Menu", 'avia_framework'),
  3088. "desc" => __("Choose if you want to display a secondary menu and where to display it", 'avia_framework'),
  3089. "id" => "header_secondary_menu",
  3090. "type" => "select",
  3091. "std" => "",
  3092. "class" => "av_2columns av_col_2",
  3093. "target" => array(".av-header-area-preview::#pr-seconary-menu-wrap::set_class"),
  3094. "no_first"=>true,
  3095. "subtype" => array( __('No Secondary Menu', 'avia_framework') =>'',
  3096. __('Secondary Menu in top bar at the left', 'avia_framework') =>'secondary_left extra_header_active',
  3097. __('Secondary Menu in top bar at the right', 'avia_framework') =>'secondary_right extra_header_active',
  3098. ));
  3099.  
  3100. $avia_elements[] = array(
  3101. "slug" => "header",
  3102. "name" => __("Header Phone Number/Extra Info", 'avia_framework'),
  3103. "desc" => __("Choose if you want to display an additional phone number or some extra info in your header", 'avia_framework'),
  3104. "id" => "header_phone_active",
  3105. "type" => "select",
  3106. "std" => "",
  3107. "class" => "av_2columns av_col_1",
  3108. "target" => array(".av-header-area-preview::#pr-phone-wrap::set_class"),
  3109. "no_first"=>true,
  3110. "subtype" => array( __('No Phone Number/Extra Info', 'avia_framework') =>'',
  3111. __('Display in top bar at the left', 'avia_framework') =>'phone_active_left extra_header_active',
  3112. __('Display in top bar at the right', 'avia_framework') =>'phone_active_right extra_header_active',
  3113. ));
  3114.  
  3115. $avia_elements[] = array(
  3116. "name" => __("Phone Number or small info text", 'avia_framework'),
  3117. "desc" => __("Add the text that should be displayed in your header here", 'avia_framework'),
  3118. "id" => "phone",
  3119. "type" => "text",
  3120. "std" => "",
  3121. "class" => "av_2columns av_col_2",
  3122. "required" => array('header_phone_active','{contains}phone_active'),
  3123. "slug" => "header");
  3124.  
  3125.  
  3126.  
  3127.  
  3128.  
  3129. // END TAB
  3130. $avia_elements[] = array( "slug" => "header", "type" => "visual_group_end", "id" => "avia_tab5_end", "nodescription" => true);
  3131. $avia_elements[] = array( "slug" => "header", "type" => "visual_group_start", "id" => "avia_tab5", "nodescription" => true, 'class'=>'avia_tab avia_tab2','name'=>__('Transparency Options', 'avia_framework'));
  3132. // START TAB
  3133. $avia_elements[] = array( "name" => __("What is header transparency",'avia_framework'),
  3134. "desc" => __("When creating/editing a page you can select to have the header be transparent and display the content (usually a fullwidth slideshow or a fullwidth image) beneath. In those cases you will usually need a different Logo and Main Menu color which can be set here.",'avia_framework')."<br/><a class='av-modal-image' href='".get_template_directory_uri()."/images/framework-helper/header_transparency.jpg'>".__('(Show example Screenshot)','avia_framework')."</a>",
  3135. "id" => "transparency_description",
  3136. "std" => "",
  3137. "slug" => "header",
  3138. "type" => "heading",
  3139. "nodescription"=>true);
  3140.  
  3141.  
  3142. $avia_elements[] = array(
  3143. "slug" => "header",
  3144. "name" => __("Transparency Logo", 'avia_framework'),
  3145. "desc" => __("Upload a logo image, or enter the URL or ID of an image if its already uploaded. (Leave empty to use the default logo)", 'avia_framework'),
  3146. "id" => "header_replacement_logo",
  3147. "type" => "upload",
  3148. "label" => __("Use Image as logo", 'avia_framework'));
  3149.  
  3150.  
  3151. $avia_elements[] = array(
  3152. "slug" => "header",
  3153. "name" => __("Transparency menu color", 'avia_framework'),
  3154. "desc" => __("Menu color for transparent header (Leave empty to use the default color)", 'avia_framework'),
  3155. "id" => "header_replacement_menu",
  3156. "type" => "colorpicker",
  3157. "std" => ""
  3158. );
  3159.  
  3160. // END TAB
  3161. $avia_elements[] = array( "slug" => "header", "type" => "visual_group_end", "id" => "avia_tab5_end", "nodescription" => true);
  3162.  
  3163.  
  3164.  
  3165. //END TAB CONTAINER
  3166. $avia_elements[] = array( "slug" => "header", "type" => "visual_group_end", "id" => "avia_tab_container_end", "nodescription" => true);
  3167.  
  3168.  
  3169. // close conditional
  3170. $avia_elements[] = array( "slug" => "header", "type" => "visual_group_end", "id" => "header_conditional_close", "nodescription" => true);
  3171.  
  3172.  
  3173. /*social settings*/
  3174.  
  3175. $avia_elements[] = array( "name" => __("Your social profiles", 'avia_framework'),
  3176. "desc" => __("You can enter links to your social profiles here. Afterwards you can choose where to display them by activating them in the respective area", 'avia_framework') ." (". __("e.g:", 'avia_framework') . " <a href='#goto_layout'>". __("General Layout", 'avia_framework') . "</a>, <a href='#goto_header'>". __("Header", 'avia_framework') . "</a>, <a href='#goto_footer'>". __("Footer", 'avia_framework') . "</a> )",
  3177. "id" => "socialdescription",
  3178. "std" => "",
  3179. "slug" => "social",
  3180. "type" => "heading",
  3181. "nodescription"=>true);
  3182.  
  3183.  
  3184.  
  3185. $avia_elements[] = array(
  3186. "type" => "group",
  3187. "id" => "social_icons",
  3188. "slug" => "social",
  3189. "linktext" => "+",
  3190. "deletetext" => "×",
  3191. "blank" => true,
  3192. "nodescription" => true,
  3193. "std" => array(
  3194. array('social_icon'=>'twitter', 'social_icon_link'=>'http://twitter.com/kriesi'),
  3195. array('social_icon'=>'dribbble', 'social_icon_link'=>'http://dribbble.com/kriesi'),
  3196. ),
  3197. 'subelements' => array(
  3198.  
  3199. array(
  3200. "name" => __("Social Icon", 'avia_framework'),
  3201. "desc" => "",
  3202. "id" => "social_icon",
  3203. "type" => "select",
  3204. "slug" => "sidebar",
  3205. "class" => "av_2columns av_col_1",
  3206. "subtype" => apply_filters('avf_social_icons_options', array(
  3207.  
  3208. '500px' => 'five_100_px',
  3209. 'Behance' => 'behance',
  3210. 'Dribbble' => 'dribbble',
  3211. 'Facebook' => 'facebook',
  3212. 'Flickr' => 'flickr',
  3213. 'Google Plus' => 'gplus',
  3214. 'Instagram' => 'instagram',
  3215. 'LinkedIn' => 'linkedin',
  3216. 'Pinterest' => 'pinterest',
  3217. 'Reddit' => 'reddit',
  3218. 'Skype' => 'skype',
  3219. 'Soundcloud'=> 'soundcloud',
  3220. 'Tumblr' => 'tumblr',
  3221. 'Twitter' => 'twitter',
  3222. 'Vimeo' => 'vimeo',
  3223. 'Vk' => 'vk',
  3224. 'Xing' => 'xing',
  3225. 'YouTube' => 'youtube',
  3226. __('Special: RSS (add RSS URL, leave blank if you want to use default WordPress RSS feed)', 'avia_framework') => 'rss',
  3227. __('Special: Email Icon (add your own URL to link to a contact form)', 'avia_framework') => 'mail',
  3228.  
  3229. ))),
  3230.  
  3231. array(
  3232. "name" => __("Social Icon URL:", 'avia_framework'),
  3233. "desc" => "",
  3234. "id" => "social_icon_link",
  3235. "type" => "text",
  3236. "slug" => "sidebar",
  3237. "class" => "av_2columns av_col_2"),
  3238. )
  3239. );
  3240.  
  3241.  
  3242.  
  3243.  
  3244. /*footer settings*/
  3245.  
  3246.  
  3247. $avia_elements[] = array(
  3248. "slug" => "footer",
  3249. "name" => __("Default Footer &amp; Socket Settings", 'avia_framework'),
  3250. "desc" => __("Do you want to display the footer widgets &amp; footer socket or a page content as footer? This default setting can be changed individually for each page.", 'avia_framework'),
  3251. "id" => "display_widgets_socket",
  3252. "type" => "select",
  3253. "std" => "all",
  3254. "no_first" => true,
  3255. "subtype" => array(
  3256. __('Widget based footer options', 'avia_framework') => array(
  3257. __('Display the footer widgets & socket', 'avia_framework') => 'all',
  3258. __('Display only the footer widgets (no socket)', 'avia_framework') => 'nosocket',
  3259. __('Display only the socket (no footer widgets)', 'avia_framework') => 'nofooterwidgets',
  3260. __("Don't display the socket & footer widgets", 'avia_framework') => 'nofooterarea',
  3261. ),
  3262.  
  3263. __('Page based Footer options', 'avia_framework') => array(
  3264. __('Select a page to display as footer and socket','avia_framework') => 'page_in_footer_socket',
  3265. __('Select a page to display as footer (no socket)','avia_framework') => 'page_in_footer',
  3266. )
  3267. )
  3268. );
  3269.  
  3270. $avia_elements[] = array(
  3271. "slug" => "footer",
  3272. "name" => __( "Select page", 'avia_framework' ),
  3273. "desc" => __( "Select a page to display the content of this page in the footer area. You may also use pages created with the advanced layout builder.", 'avia_framework' ),
  3274. "id" => "footer_page",
  3275. "type" => "select",
  3276. "subtype" => 'page',
  3277. "with_first" => true,
  3278. "required" => array( 'display_widgets_socket', '{contains_array}page_in_footer_socket;page_in_footer' ),
  3279. "std" => "",
  3280. "class" => "avia-style",
  3281. );
  3282.  
  3283.  
  3284. $avia_elements[] = array(
  3285. "slug" => "footer",
  3286. "name" => __("Footer Columns", 'avia_framework'),
  3287. "desc" => __("How many columns should be displayed in your footer", 'avia_framework'),
  3288. "id" => "footer_columns",
  3289. "required" => array( 'display_widgets_socket', '{contains_array}all;nosocket' ),
  3290. "type" => "select",
  3291. "std" => "4",
  3292. "subtype" => array(
  3293. __('1', 'avia_framework') =>'1',
  3294. __('2', 'avia_framework') =>'2',
  3295. __('3', 'avia_framework') =>'3',
  3296. __('4', 'avia_framework') =>'4',
  3297. __('5', 'avia_framework') =>'5'));
  3298.  
  3299. $avia_elements[] = array(
  3300. "slug" => "footer",
  3301. "name" => __("Copyright", 'avia_framework'),
  3302. "desc" => __("Add a custom copyright text at the bottom of your site. eg:", 'avia_framework')."<br/><strong>&copy; ".__('Copyright','avia_framework')." - ".get_bloginfo('name')."</strong>",
  3303. "id" => "copyright",
  3304. "required" => array( 'display_widgets_socket', '{contains_array}all;nofooterwidgets;page_in_footer_socket' ),
  3305. "type" => "text",
  3306. "std" => ""
  3307.  
  3308. );
  3309.  
  3310.  
  3311. $avia_elements[] = array(
  3312. "name" => __("Social Icons", 'avia_framework'),
  3313. "desc" => __("Check to display the social icons defined in", 'avia_framework').
  3314. " <a href='#goto_social'>".
  3315. __("Social Profiles", 'avia_framework').
  3316. "</a> ".
  3317. __("in your socket", 'avia_framework'),
  3318. "id" => "footer_social",
  3319. "required" => array( 'display_widgets_socket', '{contains_array}all;nofooterwidgets;page_in_footer_socket' ),
  3320. "type" => "checkbox",
  3321. "std" => "",
  3322. "slug" => "footer"
  3323. );
  3324.  
  3325.  
  3326.  
  3327. /*blog settings*/
  3328.  
  3329. $avia_elements[] = array(
  3330. "slug" => "blog",
  3331. "name" => __("Blog Styling", 'avia_framework' ),
  3332. "desc" => __("Choose the blog styling here.", 'avia_framework' ),
  3333. "id" => "blog_global_style",
  3334. "type" => "select",
  3335. "std" => "",
  3336. "no_first"=>true,
  3337. "subtype" => array(
  3338. __( 'Default (Business)', 'avia_framework' ) =>'',
  3339. __( 'Elegant', 'avia_framework' ) =>'elegant-blog',
  3340. __( 'Modern Business', 'avia_framework' ) =>'elegant-blog modern-blog',
  3341. ));
  3342.  
  3343.  
  3344.  
  3345.  
  3346. $avia_elements[] = array(
  3347. "slug" => "blog",
  3348. "name" => __("Blog Layout", 'avia_framework' ),
  3349. "desc" => __("Choose the default blog layout here.", 'avia_framework' )."<br/><br/>".__("You can either choose a predefined layout or build your own blog layout with the advanced layout editor", 'avia_framework' ),
  3350. "id" => "blog_style",
  3351. "type" => "select",
  3352. "std" => "single-small",
  3353. "no_first"=>true,
  3354. "subtype" => array(
  3355. __( 'Multi Author Blog (displays Gravatar of the article author beside the entry and feature images above)', 'avia_framework' ) =>'multi-big',
  3356. __( 'Single Author, small preview Pic (no author picture is displayed, feature image is small)', 'avia_framework' ) =>'single-small',
  3357. __( 'Single Author, big preview Pic (no author picture is displayed, feature image is big)', 'avia_framework' ) =>'single-big',
  3358. __( 'Grid Layout', 'avia_framework' ) =>'blog-grid',
  3359. __( 'List Layout - Simple (Title and meta information only)', 'avia_framework' ) =>'bloglist-simple',
  3360. __( 'List Layout - Compact (Title and icon only)', 'avia_framework' ) =>'bloglist-compact',
  3361. __( 'List Layout - Excerpt (Title, meta information and excerpt only)', 'avia_framework' ) =>'bloglist-excerpt',
  3362. __( 'Use the advance layout editor to build your own blog layout (simply edit the page you have chosen in Enfold->Theme Options as a blog page)', 'avia_framework') =>'custom',
  3363. ));
  3364.  
  3365.  
  3366.  
  3367. $avia_elements[] = array("slug" => "blog", "type" => "visual_group_start", "id" => "avia_share_links_start", "nodescription" => true);
  3368.  
  3369. $avia_elements[] = array( "name" => __("Single Post Options", 'avia_framework'),
  3370. "desc" => __("Here you can set options that affect your single blog post layout", 'avia_framework'),
  3371. "id" => "widgetdescription",
  3372. "std" => "",
  3373. "slug" => "blog",
  3374. "type" => "heading",
  3375. "nodescription"=>true);
  3376.  
  3377. $avia_elements[] = array(
  3378. "name" => __("Disable the post navigation", 'avia_framework'),
  3379. "desc" => __("Check to disable the post navigation that links to the next/previous post on single entries ", 'avia_framework'),
  3380. "id" => "disable_post_nav",
  3381. "type" => "checkbox",
  3382. "std" => "",
  3383. "slug" => "blog");
  3384.  
  3385. $avia_elements[] = array(
  3386. "slug" => "blog",
  3387. "name" => __("Single Post Style", 'avia_framework'),
  3388. "desc" => __("Choose the single post style here.", 'avia_framework'),
  3389. "id" => "single_post_style",
  3390. "type" => "select",
  3391. "std" => "single-big",
  3392. "no_first"=>true,
  3393. "subtype" => array( __('Single post with small preview image (featured image)', 'avia_framework') =>'single-small',
  3394. __('Single post with big preview image (featured image)', 'avia_framework') =>'single-big',
  3395. __('Multi Author Blog (displays Gravatar of the article author beside the entry and feature images above)', 'avia_framework') =>'multi-big'
  3396. ));
  3397.  
  3398.  
  3399.  
  3400. $avia_elements[] = array(
  3401. "slug" => "blog",
  3402. "name" => __("Related Entries", 'avia_framework'),
  3403. "desc" => __("Choose if and how you want to display your related entries. (Related entries are based on tags. If a post does not have any tags then no related entries will be shown)", 'avia_framework'),
  3404. "id" => "single_post_related_entries",
  3405. "type" => "select",
  3406. "std" => "av-related-style-tooltip",
  3407. "no_first"=>true,
  3408. "subtype" => array( __('Show Thumnails and display post title by tooltip', 'avia_framework') =>'av-related-style-tooltip',
  3409. __('Show Thumbnail and post title by default', 'avia_framework') =>'av-related-style-full',
  3410. __('Disable related entries', 'avia_framework') =>'disabled'
  3411. ));
  3412.  
  3413.  
  3414.  
  3415.  
  3416.  
  3417. $avia_elements[] = array( "name" => __("Blog meta elements", 'avia_framework'),
  3418. "desc" => __("You can choose to hide some of the default Blog elements here:", 'avia_framework'),
  3419. "id" => "widgetdescription",
  3420. "std" => "",
  3421. "slug" => "blog",
  3422. "type" => "heading",
  3423. "nodescription"=>true);
  3424.  
  3425.  
  3426. $avia_elements[] = array(
  3427. "name" => __("Blog Post Author", 'avia_framework'),
  3428. "desc" => __("Check to display", 'avia_framework'),
  3429. "id" => "blog-meta-author",
  3430. "type" => "checkbox",
  3431. "std" => "true",
  3432. "class" => "av_3col av_col_1",
  3433. "slug" => "blog");
  3434.  
  3435.  
  3436. $avia_elements[] = array(
  3437. "name" => __("Blog Post Comment Count", 'avia_framework'),
  3438. "desc" => __("Check to display", 'avia_framework'),
  3439. "id" => "blog-meta-comments",
  3440. "type" => "checkbox",
  3441. "std" => "true",
  3442. "class" => "av_3col av_col_2",
  3443. "slug" => "blog");
  3444.  
  3445. $avia_elements[] = array(
  3446. "name" => __("Blog Post Category", 'avia_framework'),
  3447. "desc" => __("Check to display", 'avia_framework'),
  3448. "id" => "blog-meta-category",
  3449. "type" => "checkbox",
  3450. "std" => "true",
  3451. "class" => "av_3col av_col_2",
  3452. "slug" => "blog");
  3453.  
  3454.  
  3455.  
  3456. $avia_elements[] = array(
  3457. "name" => __("Blog Post Date", 'avia_framework'),
  3458. "desc" => __("Check to display", 'avia_framework'),
  3459. "id" => "blog-meta-date",
  3460. "type" => "checkbox",
  3461. "std" => "true",
  3462. "class" => "av_3col av_col_1",
  3463. "slug" => "blog");
  3464.  
  3465.  
  3466. $avia_elements[] = array(
  3467. "name" => __("Blog Post Allowed HTML Tags", 'avia_framework'),
  3468. "desc" => __("Check to display", 'avia_framework'),
  3469. "id" => "blog-meta-html-info",
  3470. "type" => "checkbox",
  3471. "std" => "true",
  3472. "class" => "av_3col av_col_2",
  3473. "slug" => "blog");
  3474.  
  3475. $avia_elements[] = array(
  3476. "name" => __("Blog Post Tags", 'avia_framework'),
  3477. "desc" => __("Check to display", 'avia_framework'),
  3478. "id" => "blog-meta-tag",
  3479. "type" => "checkbox",
  3480. "std" => "true",
  3481. "class" => "av_3col av_col_3",
  3482. "slug" => "blog");
  3483.  
  3484.  
  3485.  
  3486.  
  3487. $avia_elements[] = array("slug" => "blog", "type" => "visual_group_end", "id" => "avia_share_links_start", "nodescription" => true);
  3488.  
  3489. $avia_elements[] = array("slug" => "blog", "type" => "visual_group_start", "id" => "avia_share_links_start", "nodescription" => true);
  3490.  
  3491. $avia_elements[] = array( "name" => __("Share links at the bottom of your blog post", 'avia_framework'),
  3492. "desc" => __("The theme allows you to display share links to various social networks at the bottom of your blog posts. Check which links you want to display:", 'avia_framework'),
  3493. "id" => "widgetdescription",
  3494. "std" => "",
  3495. "slug" => "blog",
  3496. "type" => "heading",
  3497. "nodescription"=>true);
  3498.  
  3499.  
  3500. $avia_elements[] = array(
  3501. "name" => __("Facebook link", 'avia_framework'),
  3502. "desc" => __("Check to display", 'avia_framework'),
  3503. "id" => "share_facebook",
  3504. "type" => "checkbox",
  3505. "std" => "true",
  3506. "class" => "av_3col av_col_1",
  3507. "slug" => "blog");
  3508.  
  3509.  
  3510. $avia_elements[] = array(
  3511. "name" => __("Twitter link", 'avia_framework'),
  3512. "desc" => __("Check to display", 'avia_framework'),
  3513. "id" => "share_twitter",
  3514. "type" => "checkbox",
  3515. "std" => "true",
  3516. "class" => "av_3col av_col_2",
  3517. "slug" => "blog");
  3518.  
  3519. $avia_elements[] = array(
  3520. "name" => __("Pinterest link ", 'avia_framework'),
  3521. "desc" => __("Check to display", 'avia_framework'),
  3522. "id" => "share_pinterest",
  3523. "type" => "checkbox",
  3524. "std" => "true",
  3525. "class" => "av_3col av_col_2",
  3526. "slug" => "blog");
  3527.  
  3528.  
  3529.  
  3530.  
  3531. $avia_elements[] = array(
  3532. "name" => __("Google Plus link", 'avia_framework'),
  3533. "desc" => __("Check to display", 'avia_framework'),
  3534. "id" => "share_gplus",
  3535. "type" => "checkbox",
  3536. "std" => "true",
  3537. "class" => "av_3col av_col_1",
  3538. "slug" => "blog");
  3539.  
  3540.  
  3541. $avia_elements[] = array(
  3542. "name" => __("Reddit link", 'avia_framework'),
  3543. "desc" => __("Check to display", 'avia_framework'),
  3544. "id" => "share_reddit",
  3545. "type" => "checkbox",
  3546. "std" => "true",
  3547. "class" => "av_3col av_col_2",
  3548. "slug" => "blog");
  3549.  
  3550. $avia_elements[] = array(
  3551. "name" => __("Linkedin link ", 'avia_framework'),
  3552. "desc" => __("Check to display", 'avia_framework'),
  3553. "id" => "share_linkedin",
  3554. "type" => "checkbox",
  3555. "std" => "true",
  3556. "class" => "av_3col av_col_2",
  3557. "slug" => "blog");
  3558.  
  3559.  
  3560. $avia_elements[] = array(
  3561. "name" => __("Tumblr link", 'avia_framework'),
  3562. "desc" => __("Check to display", 'avia_framework'),
  3563. "id" => "share_tumblr",
  3564. "type" => "checkbox",
  3565. "std" => "true",
  3566. "class" => "av_3col av_col_1",
  3567. "slug" => "blog");
  3568.  
  3569. $avia_elements[] = array(
  3570. "name" => __("VK link", 'avia_framework'),
  3571. "desc" => __("Check to display", 'avia_framework'),
  3572. "id" => "share_vk",
  3573. "type" => "checkbox",
  3574. "std" => "true",
  3575. "class" => "av_3col av_col_2",
  3576. "slug" => "blog");
  3577.  
  3578.  
  3579. $avia_elements[] = array(
  3580. "name" => __("Email link", 'avia_framework'),
  3581. "desc" => __("Check to display", 'avia_framework'),
  3582. "id" => "share_mail",
  3583. "type" => "checkbox",
  3584. "std" => "true",
  3585. "class" => "av_3col av_col_2",
  3586. "slug" => "blog");
  3587.  
  3588.  
  3589.  
  3590.  
  3591.  
  3592.  
  3593.  
  3594. $avia_elements[] = array("slug" => "blog", "type" => "visual_group_end", "id" => "avia_share_links_end", "nodescription" => true);
  3595.  
  3596.  
  3597.  
  3598.  
  3599. $avia_elements[] = array( "name" => __("Import demo files", 'avia_framework'),
  3600. "desc" => __("If you are new to wordpress or have problems creating posts or pages that look like the Theme Demo you can import dummy posts and pages here that will definitely help to understand how those tasks are done.", 'avia_framework')."<br/><br/><strong class='av-text-notice'>".
  3601. __("Notice: If you want to completely remove a demo installation after importing it, you can use a plugin like", 'avia_framework')." <a target='_blank' href='https://wordpress.org/plugins/wordpress-reset/'>WordPress Reset</a></strong>"
  3602. ,
  3603. "id" => "widgetdescription",
  3604. "std" => "",
  3605. "slug" => "demo",
  3606. "type" => "heading",
  3607. "nodescription"=>true);
  3608.  
  3609.  
  3610. if(!current_theme_supports('avia_disable_dummy_import')){
  3611.  
  3612.  
  3613. $what_get = __("What you get:", 'avia_framework');
  3614. $online_demo = __("Online Demo", 'avia_framework');
  3615.  
  3616. $avia_elements[] = array(
  3617. "slug" => "demo",
  3618. "name" => __("Import: Default Demo", 'avia_framework'),
  3619. "desc" => "<p><strong>{$what_get} <a href='https://kriesi.at/themes/enfold/' target='_blank'>{$online_demo}</a></strong></p>"
  3620. ."<h4 class='av-before-plugins'>".__("Recommended Plugins:", 'avia_framework')."</h4><ul>"
  3621. ."<li><a href='http://woocommerce.com/?ref=84' target='_blank'>WooCommerce</a> ".__("(for shop functionality)", 'avia_framework')."</li>"
  3622. ."<li><a href='https://wordpress.org/plugins/bbpress/' target='_blank'>BBPress</a> ".__("(for forum functionality)", 'avia_framework')."</li>"
  3623. ."</ul>"
  3624. ."<h4 class='av-before-plugins'>".__("Demo Images included:", 'avia_framework')."</h4><ul>"
  3625. ."<li>".__("A few", 'avia_framework')."</li>"
  3626. ."</ul>",
  3627. "id" => "import",
  3628. "type" => "import",
  3629. "image" => "includes/admin/demo_files/demo_images/default.jpg"
  3630. );
  3631.  
  3632.  
  3633. $avia_elements[] = array(
  3634. "slug" => "demo",
  3635. "name" => __("Import: Enfold 2017", 'avia_framework'),
  3636. "desc" => "<p><strong>{$what_get} <a href='https://kriesi.at/themes/enfold-2017/' target='_blank'>{$online_demo}</a></strong></p>"
  3637. ."<h4 class='av-before-plugins'>".__("Recommended Plugins:", 'avia_framework')."</h4><ul>"
  3638. ."<li><a href='http://woocommerce.com/?ref=84' target='_blank'>WooCommerce</a> ".__("(for shop functionality)", 'avia_framework')."</li>"
  3639. ."<li><a href='https://wordpress.org/plugins/bbpress/' target='_blank'>BBPress</a> ".__("(for forum functionality)", 'avia_framework')."</li>"
  3640. ."</ul>"
  3641. ."<h4 class='av-before-plugins'>".__("Demo Images included:", 'avia_framework')."</h4><ul>"
  3642. ."<li>".__("All", 'avia_framework')."</li>"
  3643. ."</ul>",
  3644. 'files' => "/includes/admin/demo_files/enfold-2017",
  3645. "id" => "import",
  3646. "type" => "import",
  3647. "image" => "includes/admin/demo_files/demo_images/enfold-2017.jpg"
  3648. );
  3649.  
  3650.  
  3651. $avia_elements[] = array(
  3652. "slug" => "demo",
  3653. "name" => __("Import: Small Business - Flat Demo", 'avia_framework'),
  3654. "desc" => "<p><strong>{$what_get} <a href='https://kriesi.at/themes/enfold-business-flat/' target='_blank'>{$online_demo}</a></strong></p>"
  3655. ."<h4 class='av-before-plugins'>".__("Recommended Plugins:", 'avia_framework')."</h4><ul>"
  3656. ."<li>".__("None", 'avia_framework')."</li>"
  3657. ."</ul>"
  3658. ."<h4 class='av-before-plugins'>".__("Demo Images included:", 'avia_framework')."</h4><ul>"
  3659. ."<li>".__("All", 'avia_framework')."</li>"
  3660. ."</ul>",
  3661. 'files' => "/includes/admin/demo_files/business-flat",
  3662. "id" => "import",
  3663. "type" => "import",
  3664. "image" => "includes/admin/demo_files/demo_images/business-flat.jpg"
  3665. );
  3666.  
  3667. $avia_elements[] = array(
  3668. "slug" => "demo",
  3669. "name" => __("Import: Startup Business Demo", 'avia_framework'),
  3670. "desc" => "<p><strong>{$what_get} <a href='https://kriesi.at/themes/enfold-startup/' target='_blank'>{$online_demo}</a></strong></p>"
  3671. ."<h4 class='av-before-plugins'>".__("Recommended Plugins:", 'avia_framework')."</h4><ul>"
  3672. ."<li>".__("None", 'avia_framework')."</li>"
  3673. ."</ul>"
  3674. ."<h4 class='av-before-plugins'>".__("Demo Images included:", 'avia_framework')."</h4><ul>"
  3675. ."<li>".__("All", 'avia_framework')."</li>"
  3676. ."</ul>",
  3677. 'files' => "/includes/admin/demo_files/startup",
  3678. "id" => "import",
  3679. "type" => "import",
  3680. "image" => "includes/admin/demo_files/demo_images/startup.jpg"
  3681. );
  3682.  
  3683.  
  3684. $avia_elements[] = array(
  3685. "slug" => "demo",
  3686. "name" => __("Import: One Page Portfolio Demo", 'avia_framework'),
  3687. "desc" => "<p><strong>{$what_get} <a href='https://kriesi.at/themes/enfold-one-page-portfolio/' target='_blank'>{$online_demo}</a></strong></p>"
  3688. ."<h4 class='av-before-plugins'>".__("Recommended Plugins:", 'avia_framework')."</h4><ul>"
  3689. ."<li>".__("None", 'avia_framework')."</li>"
  3690. ."</ul>"
  3691. ."<h4 class='av-before-plugins'>".__("Demo Images included:", 'avia_framework')."</h4><ul>"
  3692. ."<li>".__("All", 'avia_framework')."</li>"
  3693. ."</ul>",
  3694. 'files' => "/includes/admin/demo_files/portfolio-one-page",
  3695. "id" => "import",
  3696. "type" => "import",
  3697. "image" => "includes/admin/demo_files/demo_images/one-page-portfolio.jpg"
  3698. );
  3699.  
  3700.  
  3701. $avia_elements[] = array(
  3702. "slug" => "demo",
  3703. "name" => __("Import: Minimal Portfolio Demo", 'avia_framework'),
  3704. "desc" => "<p><strong>{$what_get} <a href='https://kriesi.at/themes/enfold-minimal-portfolio/' target='_blank'>{$online_demo}</a></strong></p>"
  3705. ."<h4 class='av-before-plugins'>".__("Recommended Plugins:", 'avia_framework')."</h4><ul>"
  3706. ."<li>".__("None", 'avia_framework')."</li>"
  3707. ."</ul>"
  3708. ."<h4 class='av-before-plugins'>".__("Demo Images included:", 'avia_framework')."</h4><ul>"
  3709. ."<li>".__("All", 'avia_framework')."</li>"
  3710. ."</ul>",
  3711. 'files' => "/includes/admin/demo_files/portfolio-minimal",
  3712. "id" => "import",
  3713. "type" => "import",
  3714. "image" => "includes/admin/demo_files/demo_images/portfolio-minimal.jpg"
  3715. );
  3716.  
  3717. $avia_elements[] = array(
  3718. "slug" => "demo",
  3719. "name" => __("Import: Elegant Portfolio Demo", 'avia_framework'),
  3720. "desc" => "<p><strong>{$what_get} <a href='https://kriesi.at/themes/enfold-elegant-portfolio/' target='_blank'>{$online_demo}</a></strong></p>"
  3721. ."<h4 class='av-before-plugins'>".__("Recommended Plugins:", 'avia_framework')."</h4><ul>"
  3722. ."<li>".__("None", 'avia_framework')."</li>"
  3723. ."</ul>"
  3724. ."<h4 class='av-before-plugins'>".__("Demo Images included:", 'avia_framework')."</h4><ul>"
  3725. ."<li>".__("All", 'avia_framework')."</li>"
  3726. ."</ul>",
  3727. 'files' => "/includes/admin/demo_files/elegant-portfolio",
  3728. "id" => "import",
  3729. "type" => "import",
  3730. "image" => "includes/admin/demo_files/demo_images/elegant-portfolio.jpg"
  3731. );
  3732.  
  3733.  
  3734.  
  3735.  
  3736.  
  3737. $avia_elements[] = array(
  3738. "slug" => "demo",
  3739. "name" => __("Import: Photography Portfolio Demo", 'avia_framework'),
  3740. "desc" => "<p><strong>{$what_get} <a href='https://kriesi.at/themes/enfold-photography/' target='_blank'>{$online_demo}</a></strong></p>"
  3741. ."<h4 class='av-before-plugins'>".__("Recommended Plugins:", 'avia_framework')."</h4><ul>"
  3742. ."<li><a href='http://woocommerce.com/?ref=84' target='_blank'>WooCommerce</a> ".__("(if you want to sell photos online)", 'avia_framework')."</li>"
  3743. ."</ul>"
  3744. ."<h4 class='av-before-plugins'>".__("Demo Images included:", 'avia_framework')."</h4><ul>"
  3745. ."<li>".__("All", 'avia_framework')."</li>"
  3746. ."</ul>",
  3747. 'files' => "/includes/admin/demo_files/photography",
  3748. "id" => "import",
  3749. "type" => "import",
  3750. "image" => "includes/admin/demo_files/demo_images/photography.jpg"
  3751. );
  3752.  
  3753. $avia_elements[] = array(
  3754. "slug" => "demo",
  3755. "name" => __("Import: Minimal Photography Demo", 'avia_framework'),
  3756. "desc" => "<p><strong>{$what_get} <a href='https://kriesi.at/themes/enfold-minimal-photography/' target='_blank'>{$online_demo}</a></strong></p>"
  3757. ."<h4 class='av-before-plugins'>".__("Recommended Plugins:", 'avia_framework')."</h4><ul>"
  3758. ."<li>".__("None", 'avia_framework')."</li>"
  3759. ."</ul>"
  3760. ."<h4 class='av-before-plugins'>".__("Demo Images included:", 'avia_framework')."</h4><ul>"
  3761. ."<li>".__("All", 'avia_framework')."</li>"
  3762. ."</ul>",
  3763. 'files' => "/includes/admin/demo_files/minimal-photography",
  3764. "id" => "import",
  3765. "type" => "import",
  3766. "image" => "includes/admin/demo_files/demo_images/minimal-photography.jpg"
  3767. );
  3768.  
  3769.  
  3770. $avia_elements[] = array(
  3771. "slug" => "demo",
  3772. "name" => __("Import: Dark Photography Demo", 'avia_framework'),
  3773. "desc" => "<p><strong>{$what_get} <a href='https://kriesi.at/themes/enfold-dark-photography/' target='_blank'>{$online_demo}</a></strong></p>"
  3774. ."<h4 class='av-before-plugins'>".__("Recommended Plugins:", 'avia_framework')."</h4><ul>"
  3775. ."<li>".__("None", 'avia_framework')."</li>"
  3776. ."</ul>"
  3777. ."<h4 class='av-before-plugins'>".__("Demo Images included:", 'avia_framework')."</h4><ul>"
  3778. ."<li>".__("All", 'avia_framework')."</li>"
  3779. ."</ul>",
  3780. 'files' => "/includes/admin/demo_files/dark-photography",
  3781. "id" => "import",
  3782. "type" => "import",
  3783. "image" => "includes/admin/demo_files/demo_images/dark-photography.jpg"
  3784. );
  3785.  
  3786.  
  3787.  
  3788.  
  3789.  
  3790. $avia_elements[] = array(
  3791. "slug" => "demo",
  3792. "name" => __("Import: Creative Studio Demo", 'avia_framework'),
  3793. "desc" => "<p><strong>{$what_get} <a href='https://kriesi.at/themes/enfold-creative-studio/' target='_blank'>{$online_demo}</a></strong></p>"
  3794. ."<h4 class='av-before-plugins'>".__("Recommended Plugins:", 'avia_framework')."</h4><ul>"
  3795. ."<li>".__("None", 'avia_framework')."</li>"
  3796. ."</ul>"
  3797. ."<h4 class='av-before-plugins'>".__("Demo Images included:", 'avia_framework')."</h4><ul>"
  3798. ."<li>".__("All", 'avia_framework')."</li>"
  3799. ."</ul>",
  3800. 'files' => "/includes/admin/demo_files/creative-studio",
  3801. "id" => "import",
  3802. "type" => "import",
  3803. "image" => "includes/admin/demo_files/demo_images/creative-studio.jpg"
  3804. );
  3805.  
  3806.  
  3807. $avia_elements[] = array(
  3808. "slug" => "demo",
  3809. "name" => __("Import: One Page Agency Demo", 'avia_framework'),
  3810. "desc" => "<p><strong>{$what_get} <a href='https://kriesi.at/themes/enfold-one-page-agency/' target='_blank'>{$online_demo}</a></strong></p>"
  3811. ."<h4 class='av-before-plugins'>".__("Recommended Plugins:", 'avia_framework')."</h4><ul>"
  3812. ."<li>".__("None", 'avia_framework')."</li>"
  3813. ."</ul>"
  3814. ."<h4 class='av-before-plugins'>".__("Demo Images included:", 'avia_framework')."</h4><ul>"
  3815. ."<li>".__("All", 'avia_framework')."</li>"
  3816. ."</ul>",
  3817. 'files' => "/includes/admin/demo_files/agency-onepage",
  3818. "id" => "import",
  3819. "type" => "import",
  3820. "image" => "includes/admin/demo_files/demo_images/agency-onepage.jpg"
  3821. );
  3822.  
  3823.  
  3824.  
  3825. $avia_elements[] = array(
  3826. "slug" => "demo",
  3827. "name" => __("Import: Medical Demo", 'avia_framework'),
  3828. "desc" => "<p><strong>{$what_get} <a href='https://kriesi.at/themes/enfold-medical/' target='_blank'>{$online_demo}</a></strong></p>"
  3829. ."<h4 class='av-before-plugins'>".__("Recommended Plugins:", 'avia_framework')."</h4><ul>"
  3830. ."<li>".__("None", 'avia_framework')."</li>"
  3831. ."</ul>"
  3832. ."<h4 class='av-before-plugins'>".__("Demo Images included:", 'avia_framework')."</h4><ul>"
  3833. ."<li>".__("All", 'avia_framework')."</li>"
  3834. ."</ul>",
  3835. 'files' => "/includes/admin/demo_files/medical",
  3836. "id" => "import",
  3837. "type" => "import",
  3838. "image" => "includes/admin/demo_files/demo_images/medical.jpg"
  3839. );
  3840.  
  3841.  
  3842.  
  3843. $avia_elements[] = array(
  3844. "slug" => "demo",
  3845. "name" => __("Import: Shop Demo", 'avia_framework'),
  3846. "desc" => "<p><strong>{$what_get} <a href='https://kriesi.at/themes/enfold-shop/' target='_blank'>{$online_demo}</a></strong></p>"
  3847. ."<h4 class='av-before-plugins'>".__("Required Plugins:", 'avia_framework')."</h4><ul>"
  3848. ."<li><a href='http://woocommerce.com/?ref=84' target='_blank'>WooCommerce</a> ".__("(needs to be active to install the demo)", 'avia_framework')."</li>"
  3849. ."</ul>"
  3850. ."<h4 class='av-before-plugins'>".__("Demo Images included:", 'avia_framework')."</h4><ul>"
  3851. ."<li>".__("All", 'avia_framework')."</li>"
  3852. ."</ul>",
  3853. 'files' => "/includes/admin/demo_files/shop",
  3854. "id" => "import",
  3855. "type" => "import",
  3856. "exists" => array("WooCommerce",__("The WooCommerce Plugin is currently not active. Please install and activate it, then reload this page in order to be able to import this demo", 'avia_framework')),
  3857. "image" => "includes/admin/demo_files/demo_images/shop.jpg"
  3858. );
  3859.  
  3860.  
  3861.  
  3862.  
  3863.  
  3864.  
  3865. $avia_elements[] = array(
  3866. "slug" => "demo",
  3867. "name" => __("Import: Restaurant Demo", 'avia_framework'),
  3868. "desc" => "<p><strong>{$what_get} <a href='https://kriesi.at/themes/enfold-restaurant/' target='_blank'>{$online_demo}</a></strong></p>"
  3869. ."<h4 class='av-before-plugins'>".__("Recommended Plugins:", 'avia_framework')."</h4><ul>"
  3870. ."<li><a href='http://woocommerce.com/?ref=84' target='_blank'>WooCommerce</a> ".__("(if you want to provide online ordering and delivery)", 'avia_framework')."</li>"
  3871. ."</ul>"
  3872. ."<h4 class='av-before-plugins'>".__("Demo Images included:", 'avia_framework')."</h4><ul>"
  3873. ."<li>".__("All", 'avia_framework')."</li>"
  3874. ."</ul>",
  3875. 'files' => "/includes/admin/demo_files/restaurant",
  3876. "id" => "import",
  3877. "type" => "import",
  3878. "image" => "includes/admin/demo_files/demo_images/restaurant.jpg"
  3879. );
  3880.  
  3881. $avia_elements[] = array(
  3882. "slug" => "demo",
  3883. "name" => __("Import: Restaurant One Page Demo", 'avia_framework'),
  3884. "desc" => "<p><strong>{$what_get} <a href='https://kriesi.at/themes/enfold-restaurant-one-page/' target='_blank'>{$online_demo}</a></strong></p>"
  3885. ."<h4 class='av-before-plugins'>".__("Recommended Plugins:", 'avia_framework')."</h4><ul>"
  3886. ."<li><a href='http://woocommerce.com/?ref=84' target='_blank'>WooCommerce</a> ".__("(if you want to provide online ordering and delivery)", 'avia_framework')."</li>"
  3887. ."</ul>"
  3888. ."<h4 class='av-before-plugins'>".__("Demo Images included:", 'avia_framework')."</h4><ul>"
  3889. ."<li>".__("All", 'avia_framework')."</li>"
  3890. ."</ul>",
  3891. 'files' => "/includes/admin/demo_files/restaurant-one-page",
  3892. "id" => "import",
  3893. "type" => "import",
  3894. "image" => "includes/admin/demo_files/demo_images/restaurant-onepage.jpg"
  3895. );
  3896.  
  3897. $avia_elements[] = array(
  3898. "slug" => "demo",
  3899. "name" => __("Import: One Page Wedding Demo", 'avia_framework'),
  3900. "desc" => "<p><strong>{$what_get} <a href='https://kriesi.at/themes/enfold-wedding/' target='_blank'>{$online_demo}</a></strong></p>"
  3901. ."<h4 class='av-before-plugins'>".__("Recommended Plugins:", 'avia_framework')."</h4><ul>"
  3902. ."<li>".__("None", 'avia_framework')."</li>"
  3903. ."</ul>"
  3904. ."<h4 class='av-before-plugins'>".__("Demo Images included:", 'avia_framework')."</h4><ul>"
  3905. ."<li>".__("All", 'avia_framework')."</li>"
  3906. ."</ul>",
  3907. 'files' => "/includes/admin/demo_files/wedding",
  3908. "id" => "import",
  3909. "type" => "import",
  3910. "image" => "includes/admin/demo_files/demo_images/wedding.jpg"
  3911. );
  3912.  
  3913. $avia_elements[] = array(
  3914. "slug" => "demo",
  3915. "name" => __("Import: Construction Demo", 'avia_framework'),
  3916. "desc" => "<p><strong>{$what_get} <a href='https://kriesi.at/themes/enfold-construction/' target='_blank'>{$online_demo}</a></strong></p>"
  3917. ."<h4 class='av-before-plugins'>".__("Recommended Plugins:", 'avia_framework')."</h4><ul>"
  3918. ."<li>".__("None", 'avia_framework')."</li>"
  3919. ."</ul>"
  3920. ."<h4 class='av-before-plugins'>".__("Demo Images included:", 'avia_framework')."</h4><ul>"
  3921. ."<li>".__("All", 'avia_framework')."</li>"
  3922. ."</ul>",
  3923. 'files' => "/includes/admin/demo_files/construction",
  3924. "id" => "import",
  3925. "type" => "import",
  3926. "image" => "includes/admin/demo_files/demo_images/construction.jpg"
  3927. );
  3928.  
  3929.  
  3930.  
  3931. $avia_elements[] = array(
  3932. "slug" => "demo",
  3933. "name" => __("Import: Church Demo", 'avia_framework'),
  3934. "desc" => "<p><strong>{$what_get} <a href='https://kriesi.at/themes/enfold-church/' target='_blank'>{$online_demo}</a></strong></p>"
  3935. ."<h4 class='av-before-plugins'>".__("Required Plugins:", 'avia_framework')."</h4><ul>"
  3936. ."<li><a href='https://wordpress.org/plugins/the-events-calendar/' target='_blank'>The Events Calendar</a> "
  3937. .__("(needs to be active to install the demo)", 'avia_framework')."</li>"
  3938. ."<li>or <a href='http://mbsy.co/6cr37' target='_blank'>The Events Calendar PRO</a></li>"
  3939. ."</ul>"
  3940. ."<h4 class='av-before-plugins'>".__("Demo Images included:", 'avia_framework')."</h4><ul>"
  3941. ."<li>".__("All", 'avia_framework')."</li>"
  3942. ."</ul>",
  3943.  
  3944. 'files' => "/includes/admin/demo_files/church",
  3945. "id" => "import",
  3946. "type" => "import",
  3947. "exists" => array("Tribe__Events__Main",__("The Events Calendar Plugin is currently not active. Please install and activate it, then reload this page in order to be able to import this demo", 'avia_framework')),
  3948. "image" => "includes/admin/demo_files/demo_images/church.jpg"
  3949. );
  3950.  
  3951.  
  3952. $avia_elements[] = array(
  3953. "slug" => "demo",
  3954. "name" => __("Import: Simple Blog Demo", 'avia_framework'),
  3955. "desc" => "<p><strong>{$what_get} <a href='https://kriesi.at/themes/enfold-blog/' target='_blank'>{$online_demo}</a></strong></p>"
  3956. ."<h4 class='av-before-plugins'>".__("Recommended Plugins:", 'avia_framework')."</h4><ul>"
  3957. ."<li>".__("None", 'avia_framework')."</li>"
  3958. ."</ul>"
  3959. ."<h4 class='av-before-plugins'>".__("Demo Images included:", 'avia_framework')."</h4><ul>"
  3960. ."<li>".__("All", 'avia_framework')."</li>"
  3961. ."</ul>",
  3962. 'files' => "/includes/admin/demo_files/blog",
  3963. "id" => "import",
  3964. "type" => "import",
  3965. "image" => "includes/admin/demo_files/demo_images/blog.jpg"
  3966. );
  3967.  
  3968.  
  3969.  
  3970. $avia_elements[] = array(
  3971. "slug" => "demo",
  3972. "name" => __("Import: Lifestyle Blog Demo", 'avia_framework'),
  3973. "desc" => "<p><strong>{$what_get} <a href='https://kriesi.at/themes/enfold-lifestyle-blog/' target='_blank'>{$online_demo}</a></strong></p>"
  3974. ."<h4 class='av-before-plugins'>".__("Recommended Plugins:", 'avia_framework')."</h4><ul>"
  3975. ."<li>".__("None", 'avia_framework')."</li>"
  3976. ."</ul>"
  3977. ."<h4 class='av-before-plugins'>".__("Demo Images included:", 'avia_framework')."</h4><ul>"
  3978. ."<li>".__("All", 'avia_framework')."</li>"
  3979. ."</ul>",
  3980. 'files' => "/includes/admin/demo_files/blog-lifestyle",
  3981. "id" => "import",
  3982. "type" => "import",
  3983. "image" => "includes/admin/demo_files/demo_images/blog-lifestyle.jpg"
  3984. );
  3985.  
  3986.  
  3987. $avia_elements[] = array(
  3988. "slug" => "demo",
  3989. "name" => __("Import: 'Coming Soon' Demo", 'avia_framework'),
  3990. "desc" => "<p><strong>{$what_get} <a href='https://kriesi.at/themes/enfold-coming-soon/' target='_blank'>{$online_demo}</a></strong></p>"
  3991. ."<h4 class='av-before-plugins'>".__("Recommended Plugins:", 'avia_framework')."</h4><ul>"
  3992. ."<li>".__("None", 'avia_framework')."</li>"
  3993. ."</ul>"
  3994. ."<h4 class='av-before-plugins'>".__("Demo Images included:", 'avia_framework')."</h4><ul>"
  3995. ."<li>".__("All", 'avia_framework')."</li>"
  3996. ."</ul>",
  3997. 'files' => "/includes/admin/demo_files/coming_soon",
  3998. "id" => "import",
  3999. "type" => "import",
  4000. "image" => "includes/admin/demo_files/demo_images/coming-soon.jpg"
  4001. );
  4002.  
  4003.  
  4004. $avia_elements[] = array(
  4005. "slug" => "demo",
  4006. "name" => __("Import: 'Landing Page' Demo", 'avia_framework'),
  4007. "desc" => "<p><strong>{$what_get} <a href='https://kriesi.at/themes/enfold-landing-page/' target='_blank'>{$online_demo}</a></strong></p>"
  4008. ."<h4 class='av-before-plugins'>".__("Recommended Plugins:", 'avia_framework')."</h4><ul>"
  4009. ."<li>".__("None", 'avia_framework')."</li>"
  4010. ."</ul>"
  4011. ."<h4 class='av-before-plugins'>".__("Demo Images included:", 'avia_framework')."</h4><ul>"
  4012. ."<li>".__("All", 'avia_framework')."</li>"
  4013. ."</ul>",
  4014. 'files' => "/includes/admin/demo_files/landing",
  4015. "id" => "import",
  4016. "type" => "import",
  4017. "image" => "includes/admin/demo_files/demo_images/landing.jpg"
  4018. );
  4019.  
  4020.  
  4021. $avia_elements[] = array(
  4022. "slug" => "demo",
  4023. "name" => __("Import: Travel Demo", 'avia_framework'),
  4024. "desc" => "<p><strong>{$what_get} <a href='https://kriesi.at/themes/enfold-travel/' target='_blank'>{$online_demo}</a></strong></p>"
  4025. ."<h4 class='av-before-plugins'>".__("Required Plugins:", 'avia_framework')."</h4><ul>"
  4026. ."<li><a href='http://woocommerce.com/?ref=84' target='_blank'>WooCommerce</a> ".__("(needs to be active to install the demo)", 'avia_framework')."</li>"
  4027. ."</ul>"
  4028. ."<h4 class='av-before-plugins'>".__("Recommended Plugins:", 'avia_framework')."</h4><ul>"
  4029. ."<li><a href='https://woocommerce.com/products/woocommerce-bookings/?ref=84' target='_blank'>WooCommerce Bookings</a> ".__("(needs to be active to allow date based bookings)", 'avia_framework')."</li>"
  4030. ."</ul>"
  4031. ."<h4 class='av-before-plugins'>".__("Demo Images included:", 'avia_framework')."</h4><ul>"
  4032. ."<li>".__("All", 'avia_framework')."</li>"
  4033. ."</ul>",
  4034. 'files' => "/includes/admin/demo_files/travel",
  4035. "id" => "import",
  4036. "type" => "import",
  4037. "exists" => array("WooCommerce",__("The WooCommerce Plugin is currently not active. Please install and activate it, then reload this page in order to be able to import this demo", 'avia_framework')),
  4038. "image" => "includes/admin/demo_files/demo_images/travel.jpg"
  4039. );
  4040.  
  4041.  
  4042. $avia_elements[] = array(
  4043. "slug" => "demo",
  4044. "name" => __("Import: Hotel Demo", 'avia_framework'),
  4045. "desc" => "<p><strong>{$what_get} <a href='https://kriesi.at/themes/enfold-hotel/' target='_blank'>{$online_demo}</a></strong></p>"
  4046. ."<h4 class='av-before-plugins'>".__("Required Plugins:", 'avia_framework')."</h4><ul>"
  4047. ."<li><a href='http://woocommerce.com/?ref=84' target='_blank'>WooCommerce</a> ".__("(needs to be active to install the demo)", 'avia_framework')."</li>"
  4048. ."</ul>"
  4049. ."<h4 class='av-before-plugins'>".__("Recommended Plugins:", 'avia_framework')."</h4><ul>"
  4050. ."<li><a href='https://woocommerce.com/products/woocommerce-bookings/?ref=84' target='_blank'>WooCommerce Bookings</a> ".__("(needs to be active to allow date based bookings)", 'avia_framework')."</li>"
  4051. ."</ul>"
  4052. ."<h4 class='av-before-plugins'>".__("Demo Images included:", 'avia_framework')."</h4><ul>"
  4053. ."<li>".__("All", 'avia_framework')."</li>"
  4054. ."</ul>",
  4055. 'files' => "/includes/admin/demo_files/hotel",
  4056. "id" => "import",
  4057. "type" => "import",
  4058. "exists" => array("WooCommerce",__("The WooCommerce Plugin is currently not active. Please install and activate it, then reload this page in order to be able to import this demo", 'avia_framework')),
  4059. "image" => "includes/admin/demo_files/demo_images/hotel.jpg"
  4060. );
  4061.  
  4062.  
  4063. $avia_elements[] = array(
  4064. "slug" => "demo",
  4065. "name" => __("Import: Spa Demo", 'avia_framework'),
  4066. "desc" => "<p><strong>{$what_get} <a href='https://kriesi.at/themes/enfold-spa/' target='_blank'>{$online_demo}</a></strong></p>"
  4067. ."<h4 class='av-before-plugins'>".__("Recommended Plugins:", 'avia_framework')."</h4><ul>"
  4068. ."<li><a href='http://woocommerce.com/?ref=84' target='_blank'>WooCommerce</a></li>"
  4069. ."<li><a href='https://woocommerce.com/products/woocommerce-bookings/?ref=84' target='_blank'>WooCommerce Bookings</a> ".__("(needs to be active to allow date based bookings)", 'avia_framework')."</li>"
  4070. ."</ul>"
  4071. ."<h4 class='av-before-plugins'>".__("Demo Images included:", 'avia_framework')."</h4><ul>"
  4072. ."<li>".__("All", 'avia_framework')."</li>"
  4073. ."</ul>",
  4074. 'files' => "/includes/admin/demo_files/spa",
  4075. "id" => "import",
  4076. "type" => "import",
  4077. "image" => "includes/admin/demo_files/demo_images/spa.jpg"
  4078. );
  4079.  
  4080. $avia_elements[] = array(
  4081. "slug" => "demo",
  4082. "name" => __("Import: Law Demo", 'avia_framework'),
  4083. "desc" => "<p><strong>{$what_get} <a href='https://kriesi.at/themes/enfold-law/' target='_blank'>{$online_demo}</a></strong></p>"
  4084. ."<h4 class='av-before-plugins'>".__("Recommended Plugins:", 'avia_framework')."</h4><ul>"
  4085. ."<li>".__("None", 'avia_framework')."</li>"
  4086. ."</ul>"
  4087. ."<h4 class='av-before-plugins'>".__("Demo Images included:", 'avia_framework')."</h4><ul>"
  4088. ."<li>".__("All", 'avia_framework')."</li>"
  4089. ."</ul>",
  4090. 'files' => "/includes/admin/demo_files/law",
  4091. "id" => "import",
  4092. "type" => "import",
  4093. "image" => "includes/admin/demo_files/demo_images/law.jpg"
  4094. );
  4095.  
  4096. $avia_elements[] = array(
  4097. "slug" => "demo",
  4098. "name" => __("Import: Consulting Demo", 'avia_framework'),
  4099. "desc" => "<p><strong>{$what_get} <a href='https://kriesi.at/themes/enfold-consulting/' target='_blank'>{$online_demo}</a></strong></p>"
  4100. ."<h4 class='av-before-plugins'>".__("Recommended Plugins:", 'avia_framework')."</h4><ul>"
  4101. ."<li>".__("None", 'avia_framework')."</li>"
  4102. ."</ul>"
  4103. ."<h4 class='av-before-plugins'>".__("Demo Images included:", 'avia_framework')."</h4><ul>"
  4104. ."<li>".__("All", 'avia_framework')."</li>"
  4105. ."</ul>",
  4106. 'files' => "/includes/admin/demo_files/consulting",
  4107. "id" => "import",
  4108. "type" => "import",
  4109. "image" => "includes/admin/demo_files/demo_images/consulting.jpg"
  4110. );
  4111.  
  4112.  
  4113. $avia_elements[] = array(
  4114. "slug" => "demo",
  4115. "name" => __("Import: Résumé Demo", 'avia_framework'),
  4116. "desc" => "<p><strong>{$what_get} <a href='https://kriesi.at/themes/enfold-resume/' target='_blank'>{$online_demo}</a></strong></p>"
  4117. ."<h4 class='av-before-plugins'>".__("Recommended Plugins:", 'avia_framework')."</h4><ul>"
  4118. ."<li>".__("None", 'avia_framework')."</li>"
  4119. ."</ul>"
  4120. ."<h4 class='av-before-plugins'>".__("Demo Images included:", 'avia_framework')."</h4><ul>"
  4121. ."<li>".__("All", 'avia_framework')."</li>"
  4122. ."</ul>",
  4123. 'files' => "/includes/admin/demo_files/resume",
  4124. "id" => "import",
  4125. "type" => "import",
  4126. "image" => "includes/admin/demo_files/demo_images/resume.jpg"
  4127. );
  4128.  
  4129.  
  4130. $avia_elements[] = array(
  4131. "slug" => "demo",
  4132. "name" => __("Import: GYM Demo", 'avia_framework'),
  4133. "desc" => "<p><strong>{$what_get} <a href='https://kriesi.at/themes/enfold-gym/' target='_blank'>{$online_demo}</a></strong></p>"
  4134. ."<h4 class='av-before-plugins'>".__("Recommended Plugins:", 'avia_framework')."</h4><ul>"
  4135. ."<li>".__("None", 'avia_framework')."</li>"
  4136. ."</ul>"
  4137. ."<h4 class='av-before-plugins'>".__("Demo Images included:", 'avia_framework')."</h4><ul>"
  4138. ."<li>".__("All", 'avia_framework')."</li>"
  4139. ."</ul>",
  4140. 'files' => "/includes/admin/demo_files/gym",
  4141. "id" => "import",
  4142. "type" => "import",
  4143. "image" => "includes/admin/demo_files/demo_images/gym.jpg"
  4144. );
  4145.  
  4146.  
  4147. $avia_elements[] = array(
  4148. "slug" => "demo",
  4149. "name" => __("Import: Health Demo", 'avia_framework'),
  4150. "desc" => "<p><strong>{$what_get} <a href='https://kriesi.at/themes/enfold-health-coach/' target='_blank'>{$online_demo}</a></strong></p>"
  4151. ."<h4 class='av-before-plugins'>".__("Recommended Plugins:", 'avia_framework')."</h4><ul>"
  4152. ."<li>".__("None", 'avia_framework')."</li>"
  4153. ."</ul>"
  4154. ."<h4 class='av-before-plugins'>".__("Demo Images included:", 'avia_framework')."</h4><ul>"
  4155. ."<li>".__("All", 'avia_framework')."</li>"
  4156. ."</ul>",
  4157. 'files' => "/includes/admin/demo_files/health",
  4158. "id" => "import",
  4159. "type" => "import",
  4160. "image" => "includes/admin/demo_files/demo_images/health.jpg"
  4161. );
  4162.  
  4163. $avia_elements[] = array(
  4164. "slug" => "demo",
  4165. "name" => __("Import: App Demo", 'avia_framework'),
  4166. "desc" => "<p><strong>{$what_get} <a href='https://kriesi.at/themes/enfold-app/' target='_blank'>{$online_demo}</a></strong></p>"
  4167. ."<h4 class='av-before-plugins'>".__("Recommended Plugins:", 'avia_framework')."</h4><ul>"
  4168. ."<li>".__("None", 'avia_framework')."</li>"
  4169. ."</ul>"
  4170. ."<h4 class='av-before-plugins'>".__("Demo Images included:", 'avia_framework')."</h4><ul>"
  4171. ."<li>".__("All", 'avia_framework')."</li>"
  4172. ."</ul>",
  4173. 'files' => "/includes/admin/demo_files/app",
  4174. "id" => "import",
  4175. "type" => "import",
  4176. "image" => "includes/admin/demo_files/demo_images/app.jpg"
  4177. );
  4178.  
  4179. $avia_elements[] = array(
  4180. "slug" => "demo",
  4181. "name" => __("Import: Gaming Demo", 'avia_framework'),
  4182. "desc" => "<p><strong>{$what_get} <a href='https://kriesi.at/themes/enfold-gaming/' target='_blank'>{$online_demo}</a></strong></p>"
  4183. ."<h4 class='av-before-plugins'>".__("Recommended Plugins:", 'avia_framework')."</h4><ul>"
  4184. ."<li>".__("None", 'avia_framework')."</li>"
  4185. ."</ul>"
  4186. ."<h4 class='av-before-plugins'>".__("Demo Images included:", 'avia_framework')."</h4><ul>"
  4187. ."<li>".__("All", 'avia_framework')."</li>"
  4188. ."</ul>",
  4189. 'files' => "/includes/admin/demo_files/gaming",
  4190. "id" => "import",
  4191. "type" => "import",
  4192. "image" => "includes/admin/demo_files/demo_images/gaming.jpg"
  4193. );
  4194.  
  4195. $avia_elements[] = array(
  4196. "slug" => "demo",
  4197. "name" => __("Import: DJ Demo", 'avia_framework'),
  4198. "desc" => "<p><strong>{$what_get} <a href='https://kriesi.at/themes/enfold-dj/' target='_blank'>{$online_demo}</a></strong></p>"
  4199. ."<h4 class='av-before-plugins'>".__("Recommended Plugins:", 'avia_framework')."</h4><ul>"
  4200. ."<li>".__("None", 'avia_framework')."</li>"
  4201. ."</ul>"
  4202. ."<h4 class='av-before-plugins'>".__("Demo Images included:", 'avia_framework')."</h4><ul>"
  4203. ."<li>".__("All", 'avia_framework')."</li>"
  4204. ."</ul>",
  4205. 'files' => "/includes/admin/demo_files/dj",
  4206. "id" => "import",
  4207. "type" => "import",
  4208. "image" => "includes/admin/demo_files/demo_images/dj.jpg"
  4209. );
  4210.  
  4211. $avia_elements[] = array(
  4212. "slug" => "demo",
  4213. "name" => __("Import: Band Demo", 'avia_framework'),
  4214. "desc" => "<p><strong>{$what_get} <a href='https://kriesi.at/themes/enfold-band/' target='_blank'>{$online_demo}</a></strong></p>"
  4215. ."<h4 class='av-before-plugins'>".__("Recommended Plugins:", 'avia_framework')."</h4><ul>"
  4216. ."<li><a href='http://woocommerce.com/?ref=84' target='_blank'>WooCommerce</a></li>"
  4217. ."</ul>"
  4218. ."<h4 class='av-before-plugins'>".__("Demo Images included:", 'avia_framework')."</h4><ul>"
  4219. ."<li>".__("All", 'avia_framework')."</li>"
  4220. ."</ul>",
  4221. 'files' => "/includes/admin/demo_files/band",
  4222. "id" => "import",
  4223. "type" => "import",
  4224. "image" => "includes/admin/demo_files/demo_images/band.jpg"
  4225. );
  4226.  
  4227.  
  4228. $avia_elements[] = array(
  4229. "slug" => "demo",
  4230. "name" => __("Import: Freelancer Demo", 'avia_framework'),
  4231. "desc" => "<p><strong>{$what_get} <a href='https://kriesi.at/themes/enfold-freelancer/' target='_blank'>{$online_demo}</a></strong></p>"
  4232. ."<h4 class='av-before-plugins'>".__("Recommended Plugins:", 'avia_framework')."</h4><ul>"
  4233. ."<li>".__("None", 'avia_framework')."</li>"
  4234. ."</ul>"
  4235. ."<h4 class='av-before-plugins'>".__("Demo Images included:", 'avia_framework')."</h4><ul>"
  4236. ."<li>".__("All", 'avia_framework')."</li>"
  4237. ."</ul>",
  4238. 'files' => "/includes/admin/demo_files/freelancer",
  4239. "id" => "import",
  4240. "type" => "import",
  4241. "image" => "includes/admin/demo_files/demo_images/freelancer.jpg"
  4242. );
  4243.  
  4244.  
  4245. $avia_elements[] = array(
  4246. "slug" => "demo",
  4247. "name" => __("Import: Visual Artist Demo", 'avia_framework'),
  4248. "desc" => "<p><strong>{$what_get} <a href='https://kriesi.at/themes/enfold-visual-artist/' target='_blank'>{$online_demo}</a></strong></p>"
  4249. ."<h4 class='av-before-plugins'>".__("Recommended Plugins:", 'avia_framework')."</h4><ul>"
  4250. ."<li>".__("None", 'avia_framework')."</li>"
  4251. ."</ul>"
  4252. ."<h4 class='av-before-plugins'>".__("Demo Images included:", 'avia_framework')."</h4><ul>"
  4253. ."<li>".__("All", 'avia_framework')."</li>"
  4254. ."</ul>",
  4255. 'files' => "/includes/admin/demo_files/visual-artist",
  4256. "id" => "import",
  4257. "type" => "import",
  4258. "image" => "includes/admin/demo_files/demo_images/visual-artist.jpg"
  4259. );
  4260.  
  4261. $avia_elements[] = array(
  4262. "slug" => "demo",
  4263. "name" => __("Import: Knowledgebase Demo", 'avia_framework'),
  4264. "desc" => "<p><strong>{$what_get} <a href='https://kriesi.at/themes/enfold-knowledgebase-demo/' target='_blank'>{$online_demo}</a></strong></p>"
  4265. ."<h4 class='av-before-plugins'>".__("Recommended Plugins:", 'avia_framework')."</h4><ul>"
  4266. ."<li><a href='https://wordpress.org/plugins/bbpress/' target='_blank'>BBPress</a> ".__("(for forum functionality)", 'avia_framework')."</li>"
  4267. ."</ul>"
  4268. ."<h4 class='av-before-plugins'>".__("Demo Images included:", 'avia_framework')."</h4><ul>"
  4269. ."<li>".__("All", 'avia_framework')."</li>"
  4270. ."</ul>",
  4271. 'files' => "/includes/admin/demo_files/knowledgebase",
  4272. "id" => "import",
  4273. "type" => "import",
  4274. "image" => "includes/admin/demo_files/demo_images/knowledgebase.jpg"
  4275. );
  4276.  
  4277. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement