Advertisement
Guest User

Untitled

a guest
Oct 24th, 2013
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.00 KB | None | 0 0
  1. <?php
  2. /**
  3. * A unique identifier is defined to store the options in the database and reference them from the theme.
  4. * By default it uses the theme name, in lowercase and without spaces, but this can be changed if needed.
  5. * If the identifier changes, it'll appear as if the options have been reset.
  6. *
  7. */
  8.  
  9. function evolve_option_name() {
  10.  
  11. // This gets the theme name from the stylesheet (lowercase and without spaces)
  12. $themename = wp_get_theme();
  13. $themename = $themename['Name'];
  14. $themename = preg_replace("/\W/", "", strtolower($themename) );
  15.  
  16. $evolve_settings = get_option('evolve');
  17. $evolve_settings['id'] = 'evolve-theme';
  18. update_option('evolve', $evolve_settings);
  19.  
  20. }
  21.  
  22. /**
  23. * Defines an array of options that will be used to generate the settings page and be saved in the database.
  24. * When creating the "id" fields, make sure to use all lowercase and no spaces.
  25. *
  26. */
  27.  
  28. function evolve_options() {
  29.  
  30.  
  31. // Pull all the categories into an array
  32. $options_categories = array();
  33. $options_categories_obj = get_categories();
  34. foreach ($options_categories_obj as $category) {
  35. $options_categories[$category->cat_ID] = $category->cat_name;
  36. }
  37.  
  38. // Pull all the pages into an array
  39. $options_pages = array();
  40. $options_pages_obj = get_pages('sort_column=post_parent,menu_order');
  41. $options_pages[''] = 'Select a page:';
  42. foreach ($options_pages_obj as $page) {
  43. $options_pages[$page->ID] = $page->post_title;
  44. }
  45.  
  46. // If using image radio buttons, define a directory path
  47. $imagepath = get_template_directory_uri() . '/library/functions/images/';
  48. $imagepathfolder = get_template_directory_uri() . '/library/media/images/';
  49. $evlshortname = "evl";
  50. $template_url = get_template_directory_uri();
  51.  
  52. $options = array();
  53.  
  54.  
  55. // Layout
  56.  
  57. $options[] = array( "name" => $evlshortname."-tab-1", "id" => $evlshortname."-tab-1",
  58. "type" => "open-tab");
  59.  
  60.  
  61.  
  62. $options[] = array(
  63. "name" => __( 'Select a layout', 'evolve' ),
  64. "desc" => __( 'Select main content and sidebar alignment.', 'evolve' ),
  65. "id" => $evlshortname."_layout",
  66. "std" => "2cl",
  67. "type" => "images",
  68. "options" => array(
  69. '1c' => $imagepath . '1c.png',
  70. '2cl' => $imagepath . '2cl.png',
  71. '2cr' => $imagepath . '2cr.png',
  72. '3cm' => $imagepath . '3cm.png',
  73. '3cr' => $imagepath . '3cr.png',
  74. '3cl' => $imagepath . '3cl.png'
  75. )
  76. );
  77.  
  78. $options[] = array(
  79. "name" => __( 'Width', 'evolve' ),
  80. "desc" => __( '<strong>Fixed</strong> = 960px / <strong>Fluid</strong> = 99% width of browser window', 'evolve' ),
  81. "id" => $evlshortname."_width_layout",
  82. "std" => "fixed",
  83. "type" => "select",
  84. "options" => array(
  85. 'fixed' => __( 'Fixed &nbsp;&nbsp;&nbsp;(default)', 'evolve' ),
  86. 'fluid' => __( 'Fluid', 'evolve' )
  87. )
  88. );
  89.  
  90.  
  91. $options[] = array( "name" => __( 'Number of widget cols in header', 'evolve' ),
  92. "desc" => __( 'Select how many header widget areas you want to display.', 'evolve' ),
  93. "id" => $evlshortname."_widgets_header",
  94. "type" => "images",
  95. "std" => "one",
  96. "options" => array(
  97. 'disable' => $imagepath . '1c.png',
  98. 'one' => $imagepath . 'header-widgets-1.png',
  99. 'two' => $imagepath . 'header-widgets-2.png',
  100. 'three' => $imagepath . 'header-widgets-3.png',
  101. 'four' => $imagepath . 'header-widgets-4.png',
  102. ));
  103.  
  104. $options[] = array(
  105. "name" => __( 'Header widgets placement', 'evolve' ),
  106. "desc" => __( 'Choose where to display header widgets', 'evolve' ),
  107. "id" => $evlshortname."_header_widgets_placement",
  108. "std" => "home",
  109. "type" => "select",
  110. "options" => array(
  111. 'home' => __( 'Home page &nbsp;&nbsp;&nbsp;(default)', 'evolve' ),
  112. 'single' => __( 'Single Post', 'evolve' ),
  113. 'page' => __( 'Pages', 'evolve' ),
  114. 'all' => __( 'All pages', 'evolve' )
  115. )
  116. );
  117.  
  118.  
  119.  
  120. $options[] = array( "name" => __( 'Number of widget cols in footer', 'evolve' ),
  121. "desc" => __( 'Select how many footer widget areas you want to display.', 'evolve' ),
  122. "id" => $evlshortname."_widgets_num",
  123. "type" => "images",
  124. "std" => "disable",
  125. "options" => array(
  126. 'disable' => $imagepath . '1c.png',
  127. 'one' => $imagepath . 'footer-widgets-1.png',
  128. 'two' => $imagepath . 'footer-widgets-2.png',
  129. 'three' => $imagepath . 'footer-widgets-3.png',
  130. 'four' => $imagepath . 'footer-widgets-4.png',
  131. ));
  132.  
  133. $options[] = array( "name" => $evlshortname."-tab-1", "id" => $evlshortname."-tab-1",
  134. "type" => "close-tab" );
  135.  
  136.  
  137.  
  138. // Posts
  139.  
  140. $options[] = array( "name" => $evlshortname."-tab-2", "id" => $evlshortname."-tab-2",
  141. "type" => "open-tab");
  142.  
  143.  
  144.  
  145. $options[] = array( "name" => __( 'Number of articles per row on home and archive pages - \'post boxes\'', 'evolve' ),
  146. "desc" => __( 'Option <strong>2</strong> or <strong>3</strong> is recommended to use with disabled <strong>Sidebar(s)</strong> or enabled <strong>Fluid</strong> width', 'evolve' ),
  147. "id" => $evlshortname."_post_layout",
  148. "type" => "images",
  149. "std" => "two",
  150. "options" => array(
  151. 'one' => $imagepath . 'one-post.png',
  152. 'two' => $imagepath . 'two-posts.png',
  153. 'three' => $imagepath . 'three-posts.png',
  154. ));
  155.  
  156. $options[] = array( "name" => __( 'Enable post excerpts with thumbnails', 'evolve' ),
  157. "desc" => __( 'Check this box if you want to display post excerpts with post thumbnails on one column posts', 'evolve' ),
  158. "id" => $evlshortname."_excerpt_thumbnail",
  159. "type" => "checkbox",
  160. "std" => "0");
  161.  
  162. $options[] = array( "name" => __( 'Enable post author avatar', 'evolve' ),
  163. "desc" => __( 'Check this box if you want to display post author avatar', 'evolve' ),
  164. "id" => $evlshortname."_author_avatar",
  165. "type" => "checkbox",
  166. "std" => "0");
  167.  
  168. $options[] = array( "name" => __( 'Post meta header placement', 'evolve' ),
  169. "desc" => __( 'Choose placement of the post meta header - Date, Author, Comments', 'evolve' ),
  170. "id" => $evlshortname."_header_meta",
  171. "type" => "select",
  172. "std" => "disable",
  173. "options" => array(
  174. 'single_archive' => __( 'Single posts + Archive pages', 'evolve' ),
  175. 'single' => __( 'Single posts', 'evolve' ),
  176. 'disable' => __( 'Disable &nbsp;&nbsp;&nbsp;(default)', 'evolve' )
  177. ));
  178.  
  179. $options[] = array( "name" => __( '\'Share This\' buttons placement', 'evolve' ),
  180. "desc" => __( 'Choose placement of the \'Share This\' buttons', 'evolve' ),
  181. "id" => $evlshortname."_share_this",
  182. "type" => "select",
  183. "std" => "single",
  184. "options" => array(
  185. 'single' => __( 'Single posts &nbsp;&nbsp;&nbsp;(default)', 'evolve' ),
  186. 'single_archive' => __( 'Single posts + Archive pages', 'evolve' ),
  187. 'all' => __( 'All pages', 'evolve' ),
  188. 'disable' => __( 'Disable', 'evolve' )
  189. ));
  190.  
  191. $options[] = array( "name" => __( 'Position of previous/next posts links', 'evolve' ),
  192. "desc" => __( 'Choose the position of the <strong>Previous/Next Post</strong> links', 'evolve' ),
  193. "id" => $evlshortname."_post_links",
  194. "type" => "select",
  195. "std" => "after",
  196. "options" => array(
  197. 'after' => __( 'After posts &nbsp;&nbsp;&nbsp;(default)', 'evolve' ),
  198. 'before' => __( 'Before posts', 'evolve' ),
  199. 'both' => __( 'Both', 'evolve' )
  200. ));
  201.  
  202. $options[] = array( "name" => __( 'Display Similar posts', 'evolve' ),
  203. "desc" => __( 'Choose if you want to display <strong>Similar posts</strong> in articles', 'evolve' ),
  204. "id" => $evlshortname."_similar_posts",
  205. "type" => "select",
  206. "std" => "disable",
  207. "options" => array(
  208. 'disable' => __( 'Disable &nbsp;&nbsp;&nbsp;(default)', 'evolve' ),
  209. 'category' => __( 'Match by categories', 'evolve' ),
  210. 'tag' => __( 'Match by tags', 'evolve' )
  211. ));
  212.  
  213. $options[] = array( "name" => $evlshortname."-tab-2", "id" => $evlshortname."-tab-2",
  214. "type" => "close-tab" );
  215.  
  216.  
  217. // Subscribe buttons
  218.  
  219. $options[] = array( "name" => $evlshortname."-tab-3", "id" => $evlshortname."-tab-3",
  220. "type" => "open-tab");
  221.  
  222.  
  223. $options[] = array( "name" => __( 'Subscribe/Social buttons style', 'evolve' ),
  224. "desc" => __( 'Choose the color scheme of subscribe/social buttons', 'evolve' ),
  225. "id" => $evlshortname."_social_color",
  226. "type" => "select",
  227. "std" => "blackwhite",
  228. "options" => array(
  229. 'blackwhite' => __( 'Black & White &nbsp;&nbsp;&nbsp;(default)', 'evolve' ),
  230. 'color' => __( 'Colored ', 'evolve' )
  231. ));
  232.  
  233.  
  234. // RSS Feed
  235.  
  236. $options[] = array( "name" => __( 'RSS Feed', 'evolve' ),
  237. "desc" => __( 'Insert custom RSS Feed URL, e.g. <strong>http://feeds.feedburner.com/Example</strong>', 'evolve' ),
  238. "id" => $evlshortname."_rss_feed",
  239. "type" => "text",
  240. "std" => "");
  241.  
  242. // Newsletter
  243.  
  244. $options[] = array( "name" => __( 'Newsletter', 'evolve' ),
  245. "desc" => __( 'Insert custom newsletter URL, e.g. <strong>http://feedburner.google.com/fb/a/mailverify?uri=Example&amp;loc=en_US</strong>', 'evolve' ),
  246. "id" => $evlshortname."_newsletter",
  247. "type" => "text",
  248. "std" => "");
  249.  
  250. // Facebook
  251.  
  252. $options[] = array( "name" => __( 'Facebook', 'evolve' ),
  253. "desc" => __( 'Insert your Facebook ID. If your Facebook page is <strong>http://facebook.com/Example</strong>, insert only <strong>Example</strong>', 'evolve' ),
  254. "id" => $evlshortname."_facebook",
  255. "type" => "text",
  256. "std" => "pages/Theme4Press/100642700004832");
  257.  
  258. // Twitter
  259.  
  260. $options[] = array( "name" => __( 'Twitter', 'evolve' ),
  261. "desc" => __( 'Insert your Twitter ID. If your Twitter page is <strong>http://twitter.com/username</strong>, insert only <strong>username</strong>', 'evolve' ),
  262. "id" => $evlshortname."_twitter_id",
  263. "type" => "text",
  264. "std" => "theme4press");
  265.  
  266.  
  267. // MySpace
  268.  
  269. $options[] = array( "name" => __( 'MySpace', 'evolve' ),
  270. "desc" => __( 'Insert your MySpace ID. If your MySpace page is <strong>http://myspace.com/username</strong>, insert only <strong>username</strong>', 'evolve' ),
  271. "id" => $evlshortname."_myspace",
  272. "type" => "text",
  273. "std" => "");
  274.  
  275. // Skype
  276.  
  277. $options[] = array( "name" => __( 'Skype', 'evolve' ),
  278. "desc" => __( 'Insert your Skype ID, e.g. <strong>username</strong>', 'evolve' ),
  279. "id" => $evlshortname."_skype",
  280. "type" => "text",
  281. "std" => "");
  282.  
  283. // YouTube
  284.  
  285. $options[] = array( "name" => __( 'YouTube', 'evolve' ),
  286. "desc" => __( 'Insert your YouTube ID. If your YouTube page is <strong><strong>http://youtube.com/user/Username</strong></strong>, insert only <strong>Username</strong>', 'evolve' ),
  287. "id" => $evlshortname."_youtube",
  288. "type" => "text",
  289. "std" => "");
  290.  
  291. // Flickr
  292.  
  293. $options[] = array( "name" => __( 'Flickr', 'evolve' ),
  294. "desc" => __( 'Insert your Flickr ID. If your Flickr page is <strong>http://flickr.com/photos/example</strong>, insert only <strong>example</strong>', 'evolve' ),
  295. "id" => $evlshortname."_flickr",
  296. "type" => "text",
  297. "std" => "");
  298.  
  299. // LinkedIn
  300.  
  301. $options[] = array( "name" => __( 'LinkedIn', 'evolve' ),
  302. "desc" => __( 'Insert your LinkedIn profile URI, e.g. <strong>http://ca.linkedin.com/pub/your-name/3/859/23b</strong>', 'evolve' ),
  303. "id" => $evlshortname."_linkedin",
  304. "type" => "text",
  305. "std" => "");
  306.  
  307. // Google Plus
  308.  
  309. $options[] = array( "name" => __( 'Google Plus', 'evolve' ),
  310. "desc" => __( 'Insert your Google Plus profile ID, e.g. <strong>114573636521805298702</strong>', 'evolve' ),
  311. "id" => $evlshortname."_googleplus",
  312. "type" => "text",
  313. "std" => "");
  314.  
  315. $options[] = array( "name" => $evlshortname."-tab-3", "id" => $evlshortname."-tab-3",
  316. "type" => "close-tab" );
  317.  
  318.  
  319. // Header content
  320.  
  321. $options[] = array( "name" => $evlshortname."-tab-4", "id" => $evlshortname."-tab-4",
  322. "type" => "open-tab");
  323.  
  324.  
  325. $options[] = array( "name" => __( 'Custom logo', 'evolve' ),
  326. "desc" => __( 'Upload a logo for your theme, or specify an image URL directly.', 'evolve' ),
  327. "id" => $evlshortname."_header_logo",
  328. "type" => "upload",
  329. "std" => "");
  330.  
  331. $options[] = array( "name" => __( 'Logo position', 'evolve' ),
  332. "desc" => __( 'Choose the position of your custom logo', 'evolve' ),
  333. "id" => $evlshortname."_pos_logo",
  334. "type" => "select",
  335. "std" => "left",
  336. "options" => array(
  337. 'left' => __( 'Left &nbsp;&nbsp;&nbsp;(default)', 'evolve' ),
  338. 'right' => __( 'Right', 'evolve' ),
  339. 'disable' => __( 'Disable', 'evolve' )
  340. ));
  341.  
  342. $options[] = array( "name" => __( 'Disable Blog Title', 'evolve' ),
  343. "desc" => __( 'Check this box if you don\'t want to display title of your blog', 'evolve' ),
  344. "id" => $evlshortname."_blog_title",
  345. "type" => "checkbox",
  346. "std" => "0");
  347.  
  348. $options[] = array( "name" => __( 'Blog Tagline position', 'evolve' ),
  349. "desc" => __( 'Choose the position of blog tagline', 'evolve' ),
  350. "id" => $evlshortname."_tagline_pos",
  351. "type" => "select",
  352. "std" => "next",
  353. "options" => array(
  354. 'next' => __( 'Next to blog title &nbsp;&nbsp;&nbsp;(default)', 'evolve' ),
  355. 'above' => __( 'Above blog title', 'evolve' ),
  356. 'under' => __( 'Under blog title', 'evolve' ),
  357. 'disable' => __( 'Disable', 'evolve' )
  358. ));
  359.  
  360. $options[] = array( "name" => __( 'Home page header content', 'evolve' ),
  361. "desc" => "",
  362. "id" => $evlshortname."_home_header_content",
  363. "type" => "select",
  364. "std" => "search_social",
  365. "options" => array(
  366. 'search_social' => __( 'Search Field + Subscribe Buttons &nbsp;&nbsp;&nbsp;(default)', 'evolve' ),
  367. 'post_search_social' => __( 'Recent Posts + Search Field + Subscribe Buttons', 'evolve' ),
  368. 'disable' =>__( 'Disable', 'evolve' )
  369. ));
  370.  
  371. $options[] = array( "name" => __( 'Single post header content', 'evolve' ),
  372. "desc" => "",
  373. "id" => $evlshortname."_single_header_content",
  374. "type" => "select",
  375. "std" => "search_social",
  376. "options" => array(
  377. 'search_social' => __( 'Search Field + Subscribe Buttons &nbsp;&nbsp;&nbsp;(default)', 'evolve' ),
  378. 'post_search_social' => __( 'Recent Posts + Search Field + Subscribe Buttons', 'evolve' ),
  379. 'disable' =>__( 'Disable', 'evolve' )
  380. ));
  381.  
  382. $options[] = array( "name" => __( 'Archives and other pages header content', 'evolve' ),
  383. "desc" => "",
  384. "id" => $evlshortname."_archives_header_content",
  385. "type" => "select",
  386. "std" => "search_social",
  387. "options" => array(
  388. 'search_social' => __( 'Search Field + Subscribe Buttons &nbsp;&nbsp;&nbsp;(default)', 'evolve' ),
  389. 'post_search_social' => __( 'Recent Posts + Search Field + Subscribe Buttons', 'evolve' ),
  390. 'disable' =>__( 'Disable', 'evolve' )
  391. ));
  392.  
  393. $options[] = array( "name" => __( 'Carousel', 'evolve' ),
  394. "desc" => __( 'To enable a carousel the <strong>Recent Posts + Search Field + Subscribe Buttons</strong> option must be enabled', 'evolve' ),
  395. "id" => $evlshortname."_header_slider",
  396. "type" => "select",
  397. "std" => "disable",
  398. "options" => array(
  399. 'disable' => __( 'Disable &nbsp;&nbsp;&nbsp;(default)', 'evolve' ),
  400. 'normal' => __( 'Normal', 'evolve' ),
  401. 'slow' => __( 'Slow', 'evolve' ),
  402. 'fast' => __( 'Fast', 'evolve' )
  403. ));
  404.  
  405. $options[] = array( "name" => $evlshortname."-tab-4", "id" => $evlshortname."-tab-4",
  406. "type" => "close-tab" );
  407.  
  408.  
  409. // Footer content
  410.  
  411. $options[] = array( "name" => $evlshortname."-tab-5", "id" => $evlshortname."-tab-5",
  412. "type" => "open-tab");
  413.  
  414.  
  415. $options[] = array( "name" => __( 'Custom footer', 'evolve' ),
  416. "desc" => __( 'Available <strong>HTML</strong> tags and attributes:<br /><br /> <code> &lt;b&gt; &lt;i&gt; &lt;a href="" title=""&gt; &lt;blockquote&gt; &lt;del datetime=""&gt; <br /> &lt;ins datetime=""&gt; &lt;img src="" alt="" /&gt; &lt;ul&gt; &lt;ol&gt; &lt;li&gt; <br /> &lt;code&gt; &lt;em&gt; &lt;strong&gt; &lt;div&gt; &lt;span&gt; &lt;h1&gt; &lt;h2&gt; &lt;h3&gt; &lt;h4&gt; &lt;h5&gt; &lt;h6&gt; <br /> &lt;table&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt; &lt;br /&gt; &lt;hr /&gt;</code>', 'evolve' ),
  417. "id" => $evlshortname."_footer_content",
  418. "type" => "textarea",
  419. "std" => "");
  420.  
  421. $options[] = array( "name" => $evlshortname."-tab-5", "id" => $evlshortname."-tab-5",
  422. "type" => "close-tab" );
  423.  
  424.  
  425. // Typography
  426.  
  427. $options[] = array( "id" => $evlshortname."-tab-6",
  428. "type" => "open-tab");
  429.  
  430. $options[] = array( "name" => __( 'Blog Title font', 'evolve' ),
  431. "desc" => __( 'Select the typography you want for your blog title. * non web-safe font.', 'evolve' ),
  432. "id" => $evlshortname."_title_font",
  433. "type" => "typography",
  434. "std" => array('size' => '55px', 'face' => 'Raleway','style' => 'normal','color' => '')
  435. );
  436.  
  437. $options[] = array( "name" => __( 'Blog tagline font', 'evolve' ),
  438. "desc" => __( 'Select the typography you want for your blog tagline. * non web-safe font.', 'evolve' ),
  439. "id" => $evlshortname."_tagline_font",
  440. "type" => "typography",
  441. "std" => array('size' => '13px', 'face' => 'Raleway','style' => 'normal','color' => '')
  442. );
  443.  
  444. $options[] = array( "name" => __( 'Post title font', 'evolve' ),
  445. "desc" => __( 'Select the typography you want for your post titles. * non web-safe font.', 'evolve' ),
  446. "id" => $evlshortname."_post_font",
  447. "type" => "typography",
  448. "std" => array('size' => '28px', 'face' => 'Raleway','style' => 'bold','color' => '')
  449. );
  450.  
  451. $options[] = array( "name" => __( 'Content font', 'evolve' ),
  452. "desc" => __( 'Select the typography you want for your blog content. * non web-safe font.', 'evolve' ),
  453. "id" => $evlshortname."_content_font",
  454. "type" => "typography",
  455. "std" => array('size' => '16px', 'face' => 'Raleway','style' => 'normal','color' => '')
  456. );
  457.  
  458. $options[] = array( "name" => __( 'Headings font', 'evolve' ),
  459. "desc" => __( 'Select the typography you want for your blog headings (H1, H2, H3, H4, H5, H6). * non web-safe font.', 'evolve' ),
  460. "id" => $evlshortname."_heading_font",
  461. "type" => "typography",
  462. "std" => array('size' => 'none', 'face' => 'Raleway','style' => 'normal','color' => '')
  463. );
  464.  
  465. $options[] = array( "name" => $evlshortname."-tab-6", "id" => $evlshortname."-tab-6",
  466. "type" => "close-tab" );
  467.  
  468.  
  469. // Navigation
  470.  
  471. $options[] = array( "id" => $evlshortname."-tab-7",
  472. "type" => "open-tab");
  473.  
  474. $options[] = array( "name" => __( 'Disable main menu', 'evolve' ),
  475. "desc" => __( 'Check this box if you don\'t want to display main menu', 'evolve' ),
  476. "id" => $evlshortname."_main_menu",
  477. "type" => "checkbox",
  478. "std" => "0");
  479.  
  480. $options[] = array( "name" => __( 'Position of navigation links', 'evolve' ),
  481. "desc" => __( 'Choose the position of the <strong>Older/Newer Posts</strong> links', 'evolve' ),
  482. "id" => $evlshortname."_nav_links",
  483. "type" => "select",
  484. "std" => "after",
  485. "options" => array(
  486. 'after' => __( 'After posts &nbsp;&nbsp;&nbsp;(default)', 'evolve' ),
  487. 'before' => __( 'Before posts', 'evolve' ),
  488. 'both' => __( 'Both', 'evolve' )
  489. ));
  490.  
  491. $options[] = array( "name" => __( 'Position of \'Back to Top\' button', 'evolve' ),
  492. "desc" => "",
  493. "id" => $evlshortname."_pos_button",
  494. "type" => "select",
  495. "std" => "disable",
  496. "options" => array(
  497. 'disable' => __( 'Disable &nbsp;&nbsp;&nbsp;(default)', 'evolve' ),
  498. 'left' => __( 'Left', 'evolve' ),
  499. 'right' => __( 'Right', 'evolve' ),
  500. 'middle' => __( 'Middle', 'evolve' )
  501. ));
  502.  
  503. $options[] = array( "name" => $evlshortname."-tab-7", "id" => $evlshortname."-tab-7",
  504. "type" => "close-tab" );
  505.  
  506.  
  507. // Ads Spaces
  508.  
  509. $options[] = array( "name" => $evlshortname."-tab-8", "id" => $evlshortname."-tab-8",
  510. "type" => "open-tab");
  511.  
  512. $options[] = array( "name" => __( 'Theme4Press Affiliate ID', 'evolve' ),
  513. "desc" => __( 'Insert your Theme4Press Affiliate ID. Get one <a href=\'http://theme4press.com/affiliates\' target=\'_blank\'><strong>here</strong></a>.', 'evolve' ),
  514. "id" => $evlshortname."_affiliate_id",
  515. "type" => "text",
  516. "std" => "");
  517.  
  518. $options[] = array( "name" => __( 'Please note', 'evolve' ), "id" => $evlshortname."info_ads",
  519. "desc" => __( 'Ad spaces are not supposed to work for <strong>&lt;javascript&gt;</strong> ads units. Here you may insert only <strong>&lt;html&gt;</strong> based ads banners. In order to use <strong>Google AdSense</strong> units, please have a look at <strong>EvoLve Pro</strong> version available <a target="_blank" href="http://theme4press.com/evolve-pro/">here</a>.', 'evolve' ),
  520. "type" => "info");
  521.  
  522. $options[] = array( "name" => __( 'Ad Space 1 - Header Top', 'evolve' ),
  523. "desc" => __( 'Insert an ads code here to display in the <strong>Header Top</strong>
  524. recommended max. ads width 468px', 'evolve' ),
  525. "id" => $evlshortname."_space_1",
  526. "type" => "textarea",
  527. "std" => "");
  528.  
  529. $options[] = array( "name" => __( 'Ad Space 2 - Header Bottom', 'evolve' ),
  530. "desc" => __( 'Insert an ads code here to display in the <strong>Header Bottom</strong>
  531. recommended max. ads width 960px', 'evolve' ),
  532. "id" => $evlshortname."_space_2",
  533. "type" => "textarea",
  534. "std" => "");
  535.  
  536. $options[] = array( "name" => __( 'Ad Space 3 - Sidebar 1 Top', 'evolve' ),
  537. "desc" => __( 'Insert an ads code here to display in the <strong>Sidebar 1 Top</strong>
  538. recommended max. ads width 300px', 'evolve' ),
  539. "id" => $evlshortname."_space_3",
  540. "type" => "textarea",
  541. "std" => "");
  542.  
  543. $options[] = array( "name" => __( 'Ad Space 4 - Sidebar 1 Bottom', 'evolve' ),
  544. "desc" => __( 'Insert an ads code here to display in the <strong>Sidebar 1 Bottom</strong>
  545. recommended max. ads width 300px', 'evolve' ),
  546. "id" => $evlshortname."_space_4",
  547. "type" => "textarea",
  548. "std" => "");
  549.  
  550. $options[] = array( "name" => __( 'Ad Space 5 - Sidebar 2 Top', 'evolve' ),
  551. "desc" => __( 'Insert an ads code here to display in the <strong>Sidebar 2 Top</strong>
  552. recommended max. ads width 300px', 'evolve' ),
  553. "id" => $evlshortname."_space_5",
  554. "type" => "textarea",
  555. "std" => "");
  556.  
  557. $options[] = array( "name" => __( 'Ad Space 6 - Sidebar 2 Bottom', 'evolve' ),
  558. "desc" => __( 'Insert an ads code here to display in the <strong>Sidebar 2 Bottom</strong>
  559. recommended max. ads width 300px', 'evolve' ),
  560. "id" => $evlshortname."_space_6",
  561. "type" => "textarea",
  562. "std" => "");
  563.  
  564. $options[] = array( "name" => __( 'Ad Space 7 - Post Top', 'evolve' ),
  565. "desc" => __( 'Insert an ads code here to display in the <strong>Post Top</strong>
  566. recommended max. ads width 600px', 'evolve' ),
  567. "id" => $evlshortname."_space_7",
  568. "type" => "textarea",
  569. "std" => "");
  570.  
  571. $options[] = array( "name" => __( 'Ad Space 8 - Post Bottom', 'evolve' ),
  572. "desc" => __( 'Insert an ads code here to display in the <strong>Post Bottom</strong>
  573. recommended max. ads width 600px', 'evolve' ),
  574. "id" => $evlshortname."_space_8",
  575. "type" => "textarea",
  576. "std" => "");
  577.  
  578. $options[] = array( "name" => __( 'Ad Space 9 - Footer', 'evolve' ),
  579. "desc" => __( 'Insert an ads code here to display in the <strong>Footer</strong>
  580. recommended max. ads width 960px', 'evolve' ),
  581. "id" => $evlshortname."_space_9",
  582. "type" => "textarea",
  583. "std" => "");
  584.  
  585. $options[] = array( "name" => $evlshortname."-tab-8", "id" => $evlshortname."-tab-8",
  586. "type" => "close-tab" );
  587.  
  588.  
  589.  
  590.  
  591. // General Styling
  592.  
  593.  
  594. $options[] = array( "name" => $evlshortname."-tab-10", "id" => $evlshortname."-tab-10",
  595. "type" => "open-tab");
  596.  
  597.  
  598. $options[] = array( "name" => "Main color",
  599. "desc" => "Custom background color of header and footer",
  600. "id" => $evlshortname."_header_footer_back_color",
  601. "type" => "color",
  602. "std" => ""
  603. );
  604.  
  605. $options[] = array( "name" => __( 'Main pattern', 'evolve' ),
  606. "desc" => __( 'Choose the pattern for header and background', 'evolve' ),
  607. "id" => $evlshortname."_pattern",
  608. "type" => "images",
  609. "std" => "pattern_8.png",
  610. "options" => array(
  611. 'none' => $imagepathfolder . '/header-two/none.jpg',
  612. 'pattern_1.png' => $imagepathfolder . '/pattern/pattern_1_thumb.png',
  613. 'pattern_2.png' => $imagepathfolder . '/pattern/pattern_2_thumb.png',
  614. 'pattern_3.png' => $imagepathfolder . '/pattern/pattern_3_thumb.png',
  615. 'pattern_4.png' => $imagepathfolder . '/pattern/pattern_4_thumb.png',
  616. 'pattern_5.png' => $imagepathfolder . '/pattern/pattern_5_thumb.png',
  617. 'pattern_6.png' => $imagepathfolder . '/pattern/pattern_6_thumb.png',
  618. 'pattern_7.png' => $imagepathfolder . '/pattern/pattern_7_thumb.png',
  619. 'pattern_8.png' => $imagepathfolder . '/pattern/pattern_8_thumb.png'
  620. ));
  621.  
  622.  
  623. $options[] = array( "name" => __( 'Color scheme of the header widgets area', 'evolve' ),
  624. "desc" => __( 'Choose the color scheme for the area below header', 'evolve' ),
  625. "id" => $evlshortname."_scheme_widgets",
  626. "type" => "color",
  627. "std" => "#95ccca"
  628. );
  629.  
  630.  
  631. $options[] = array( "name" => "Button Color 1",
  632. "desc" => "Custom color for buttons: Read more, Reply, Back to Top",
  633. "id" => $evlshortname."_button_1",
  634. "type" => "color",
  635. "std" => ""
  636. );
  637.  
  638.  
  639. $options[] = array( "name" => "Button Color 2",
  640. "desc" => "Custom color for buttons: Post Comment, Submit, Navigation Links",
  641. "id" => $evlshortname."_button_2",
  642. "type" => "color",
  643. "std" => ""
  644. );
  645.  
  646.  
  647. $options[] = array( "name" => "Enable Bootstrap Elements support",
  648. "desc" => "Check this box if you want to enable <a href='http://twitter.github.com/bootstrap/'>Bootstrap Elements</a> on your theme",
  649. "id" => $evlshortname."_bootstrap",
  650. "type" => "checkbox",
  651. "std" => "1");
  652.  
  653. $options[] = array( "name" => "Enable Boxed Layout & Custom Background",
  654. "desc" => "Check this box if you want to enable boxed layout with a custom background",
  655. "id" => $evlshortname."_custom_background",
  656. "type" => "checkbox",
  657. "std" => "1");
  658.  
  659.  
  660. $options[] = array( "name" => "Disable background images",
  661. "desc" => "Check this box if you don't want to display background images - 'nacked mode'",
  662. "id" => $evlshortname."_back_images",
  663. "type" => "checkbox",
  664. "std" => "0");
  665.  
  666. $options[] = array( "name" => "Enable Widget Title Black Background",
  667. "desc" => "Check this box if you want to enable black background for widget titles",
  668. "id" => $evlshortname."_widget_background",
  669. "type" => "checkbox",
  670. "std" => "0");
  671.  
  672. $options[] = array( "name" => "Disable Widget Background",
  673. "desc" => "Check this box if you want to disable widget background",
  674. "id" => $evlshortname."_widget_background_image",
  675. "type" => "checkbox",
  676. "std" => "1");
  677.  
  678.  
  679. $options[] = array( "name" => "Disable Menu Background",
  680. "desc" => "Check this box if you want to disable menu background",
  681. "id" => $evlshortname."_disable_menu_back",
  682. "type" => "checkbox",
  683. "std" => "1");
  684.  
  685.  
  686. $options[] = array( "name" => "Menu color",
  687. "desc" => "Background color of main menu",
  688. "id" => $evlshortname."_menu_back",
  689. "type" => "images",
  690. "std" => "light",
  691. "options" => array(
  692. 'light' => $imagepathfolder . 'light.jpg',
  693. 'dark' => $imagepathfolder . 'dark.jpg'
  694. ));
  695.  
  696.  
  697. $options[] = array( "name" => "Or custom menu color",
  698. "desc" => "Custom background color of main menu",
  699. "id" => $evlshortname."_menu_back_color",
  700. "type" => "color",
  701. "std" => ""
  702. );
  703.  
  704. $options[] = array( "name" => "Content color",
  705. "desc" => "Background color of content",
  706. "id" => $evlshortname."_content_back",
  707. "type" => "images",
  708. "std" => "light",
  709. "options" => array(
  710. 'light' => $imagepathfolder . 'light.jpg',
  711. 'dark' => $imagepathfolder . 'dark.jpg'
  712. ));
  713.  
  714. $options[] = array( "name" => "Custom CSS",
  715. "desc" => '<strong>For advanced users only</strong>: insert custom CSS, default <a href="'.$template_url.'/style.css" target="_blank">style.css</a> file',
  716. "id" => $evlshortname."_css_content",
  717. "type" => "textarea",
  718. "std" => "");
  719.  
  720.  
  721. $options[] = array( "name" => $evlshortname."-tab-10", "id" => $evlshortname."-tab-10",
  722. "type" => "close-tab" );
  723.  
  724.  
  725.  
  726. return $options;
  727. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement