advantage_theme_options_array

The Advantage advantage theme options array function.

Description

advantage_theme_options_array(); 

Usage

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

Defined (1)

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

/inc/theme-options.php  
  1. function advantage_theme_options_array() {  
  2. global $advantage_fonts; 
  3.  
  4. $theme_options = array( 
  5. 'currenttab' => array( 
  6. 'name' => 'currenttab',  
  7. 'type' => 'hidden',  
  8. ),  
  9. // Layout 
  10. 'gridwidth' => array( 
  11. 'name' => 'gridwidth',  
  12. 'label' => __( 'Grid Width', 'advantage' ),  
  13. 'type' => 'number',  
  14. 'desc' => __( 'Pixels', 'advantage' ),  
  15. ),  
  16. 'content' => array( 
  17. 'name' => 'content',  
  18. 'label' => __( 'Content', 'advantage' ),  
  19. 'type' => 'number',  
  20. 'fieldonly' => '1',  
  21. ),  
  22. 'sidebar1' => array( 
  23. 'name' => 'sidebar1',  
  24. 'label' => __( 'Sidebar 1', 'advantage' ),  
  25. 'type' => 'number',  
  26. 'fieldonly' => '1',  
  27. ),  
  28. 'sidebar2' => array( 
  29. 'name' => 'sidebar2',  
  30. 'label' => __( 'Sidebar 2', 'advantage' ),  
  31. 'type' => 'number',  
  32. 'desc' => __( 'Columns', 'advantage' ),  
  33. 'fieldonly' => '1',  
  34. ),  
  35. 'sidebarpos' => array( 
  36. 'name' => 'sidebarpos',  
  37. 'label' => __( 'Sidebar Position', 'advantage' ),  
  38. 'type' => 'radio',  
  39. 'values' => array( 
  40. array( 'key' => 1, 'label' => __( 'Right ', 'advantage' ) ),  
  41. array( 'key' => 2, 'label' => __( 'Left ', 'advantage' ) ),  
  42. array( 'key' => 3, 'label' => __( 'Left & Right ', 'advantage' ) ),  
  43. ),  
  44. 'helptext' => __( 'Note: For Left & Right layout, Blog Widget Area (Full) will not be used. The total columns must be 12.', 'advantage' ),  
  45. ),  
  46. 'sidebarresp' => array( 
  47. 'name' => 'sidebarresp',  
  48. 'label' => __( 'Responsive Sidebar', 'advantage' ),  
  49. 'type' => 'checkbox',  
  50. 'desc' => __( 'Check to activate responsive sidebars when screen width below breakpoints', 'advantage' ),  
  51. ),  
  52. 'respbp' => array( 
  53. 'name' => 'respbp',  
  54. 'label' => __( 'Responsive Sidebar Breakpoint', 'advantage' ),  
  55. 'type' => 'number',  
  56. 'desc' => __( 'minimum 960 pixels', 'advantage' ),  
  57. ),  
  58. 'column_footer1' => array( 
  59. 'name' => 'column_footer1',  
  60. 'type' => 'number',  
  61. 'fieldonly' => '1',  
  62. ),  
  63. 'column_footer2' => array( 
  64. 'name' => 'column_footer2',  
  65. 'type' => 'number',  
  66. 'fieldonly' => '1',  
  67. ),  
  68. 'column_footer3' => array( 
  69. 'name' => 'column_footer3',  
  70. 'type' => 'number',  
  71. 'fieldonly' => '1',  
  72. ),  
  73. 'column_footer4' => array( 
  74. 'name' => 'column_footer4',  
  75. 'type' => 'number',  
  76. 'desc' => __( 'Columns', 'advantage' ),  
  77. 'fieldonly' => '1',  
  78. ),  
  79. 'column_home1' => array( 
  80. 'name' => 'column_home1',  
  81. 'type' => 'number',  
  82. 'fieldonly' => '1',  
  83. ),  
  84. 'column_home2' => array( 
  85. 'name' => 'column_home2',  
  86. 'type' => 'number',  
  87. 'fieldonly' => '1',  
  88. ),  
  89. 'column_home3' => array( 
  90. 'name' => 'column_home3',  
  91. 'type' => 'number',  
  92. 'fieldonly' => '1',  
  93. ),  
  94. 'column_home4' => array( 
  95. 'name' => 'column_home4',  
  96. 'type' => 'number',  
  97. 'fieldonly' => '1',  
  98. ),  
  99. 'column_home5' => array( 
  100. 'name' => 'column_home5',  
  101. 'type' => 'number',  
  102. 'desc' => __( 'Columns', 'advantage' ),  
  103. 'fieldonly' => '1',  
  104. ),  
  105. //Home Page 
  106. 'homepage' => array( 
  107. 'name' => 'homepage',  
  108. 'label' => __( 'Home Page Style', 'advantage' ),  
  109. 'type' => 'radio',  
  110. 'values' => array( 
  111. array( 'key' => 1,  
  112. 'label' => __( 'Featured Home', 'advantage' ) ),  
  113. array( 'key' => 2,  
  114. 'label' => __( 'Blog', 'advantage' ) ),  
  115. ),  
  116. ),  
  117. 'fp_option' => array( 
  118. 'name' => 'fp_option',  
  119. 'label' => __( 'Posts for Carousel', 'advantage' ),  
  120. 'type' => 'radio',  
  121. 'values' => array( 
  122. array( 'key' => 1,  
  123. 'label' => __( 'Featured Category', 'advantage' ) ),  
  124. array( 'key' => 2,  
  125. 'label' => __( 'Featured Posts', 'advantage' ) ),  
  126. ),  
  127. ),  
  128. 'fp_effect' => array( 
  129. 'name' => 'fp_effect',  
  130. 'label' => __( 'Animation', 'advantage' ),  
  131. 'type' => 'radio',  
  132. 'values' => array( 
  133. array( 'key' => 'slide',  
  134. 'label' => __( 'Slide', 'advantage' ) ),  
  135. array( 'key' => 'fade',  
  136. 'label' => __( 'Fade', 'advantage' ) ),  
  137. ),  
  138. ),  
  139. 'fp_category' => array( 
  140. 'name' => 'fp_category',  
  141. 'label' => __( 'Featured Category', 'advantage' ),  
  142. 'type' => 'category',  
  143. ),  
  144. 'headline' => array( 
  145. 'name' => 'headline',  
  146. 'label' => __( 'H1 Headline', 'advantage' ),  
  147. 'type' => 'text',  
  148. ),  
  149. 'tagline' => array( 
  150. 'name' => 'tagline',  
  151. 'label' => __( 'Tag lines', 'advantage' ),  
  152. 'type' => 'textarea',  
  153. 'row' => 3,  
  154. ),  
  155. // Skins 
  156. 'colorscheme' => array( 
  157. 'name' => 'colorscheme',  
  158. 'label' => __( 'Color Scheme', 'advantage' ),  
  159. 'type' => 'select',  
  160. 'values' => advantage_scheme_options(),  
  161. ),  
  162. 'schemecss' => array( 
  163. 'name' => 'schemecss',  
  164. 'type' => 'hidden',  
  165. ),  
  166. 'headerbg' => array( 
  167. 'name' => 'headerbg',  
  168. 'label' => __( 'Header Background', 'advantage' ),  
  169. 'type' => 'color',  
  170. ),  
  171. 'titlebarbg' => array( 
  172. 'name' => 'titlebarbg',  
  173. 'label' => __( 'Title Bar Background', 'advantage' ),  
  174. 'type' => 'color',  
  175. ),  
  176. 'contentbg' => array( 
  177. 'name' => 'contentbg',  
  178. 'label' => __( 'Content Background', 'advantage' ),  
  179. 'type' => 'color',  
  180. ),  
  181. 'footerbg' => array( 
  182. 'name' => 'footerbg',  
  183. 'label' => __( 'Footer Background', 'advantage' ),  
  184. 'type' => 'color',  
  185. ),  
  186. //Fonts 
  187. 'bodyfont' => array( 
  188. 'name' => 'bodyfont',  
  189. 'label' => __( 'Body / Paragraph', 'advantage' ),  
  190. 'type' => 'font',  
  191. 'values' => $advantage_fonts,  
  192. ),  
  193. 'sitetitlefont' => array( 
  194. 'name' => 'sitetitlefont',  
  195. 'label' => __( 'Site Title', 'advantage' ),  
  196. 'type' => 'font',  
  197. 'values' => $advantage_fonts,  
  198. ),  
  199. 'sitedescfont' => array( 
  200. 'name' => 'sitedescfont',  
  201. 'label' => __( 'Site Description', 'advantage' ),  
  202. 'type' => 'font',  
  203. 'values' => $advantage_fonts,  
  204. ),  
  205. 'entrytitlefont' => array( 
  206. 'name' => 'entrytitlefont',  
  207. 'label' => __( 'Post/Page Title', 'advantage' ),  
  208. 'type' => 'font',  
  209. 'values' => $advantage_fonts,  
  210. ),  
  211. 'headingfont' => array( 
  212. 'name' => 'headingfont',  
  213. 'label' => __( 'Heading (H1 - H6)', 'advantage' ),  
  214. 'type' => 'font',  
  215. 'values' => $advantage_fonts,  
  216. ),  
  217. 'sidebarfont' => array( 
  218. 'name' => 'sidebarfont',  
  219. 'label' => __( 'Sidebar', 'advantage' ),  
  220. 'type' => 'font',  
  221. 'values' => $advantage_fonts,  
  222. ),  
  223. 'widgettitlefont' => array( 
  224. 'name' => 'widgettitlefont',  
  225. 'label' => __( 'Widget Title', 'advantage' ),  
  226. 'type' => 'font',  
  227. 'values' => $advantage_fonts,  
  228. ),  
  229. 'footerfont' => array( 
  230. 'name' => 'footerfont',  
  231. 'label' => __( 'Footer', 'advantage' ),  
  232. 'type' => 'font',  
  233. 'values' => $advantage_fonts,  
  234. ),  
  235. 'mainmenufont' => array( 
  236. 'name' => 'mainmenufont',  
  237. 'label' => __( 'Main Menu', 'advantage' ),  
  238. 'type' => 'font',  
  239. 'values' => $advantage_fonts,  
  240. ),  
  241.  
  242. 'otherfont1' => array( 
  243. 'name' => 'otherfont1',  
  244. 'label' => __( 'Google Font 1', 'advantage' ),  
  245. 'type' => 'text',  
  246. ),  
  247. 'otherfont2' => array( 
  248. 'name' => 'otherfont2',  
  249. 'label' => __( 'Google Font 2', 'advantage' ),  
  250. 'type' => 'text',  
  251. ),  
  252. 'otherfont3' => array( 
  253. 'name' => 'otherfont3',  
  254. 'label' => __( 'Google Font 3', 'advantage' ),  
  255. 'type' => 'text',  
  256. ),  
  257. 'otherfont4' => array( 
  258. 'name' => 'otherfont4',  
  259. 'label' => __( 'Google Font 4', 'advantage' ),  
  260. 'type' => 'text',  
  261. 'helptext' => 'Enter Font Name only, e.g. Open Sans',  
  262. ),  
  263. // Custom CSS 
  264. 'advantage_inline_css' => array( 
  265. 'name' => 'advantage_inline_css',  
  266. 'label' => __( 'Custom CSS Style', 'advantage' ),  
  267. 'type' => 'textarea',  
  268. 'row' => 40,  
  269. ),  
  270. 'advantage_scheme_css' => array( 
  271. 'name' => 'advantage_scheme_css',  
  272. 'type' => 'hidden',  
  273. ),  
  274. ); 
  275. return apply_filters( 'advantage_theme_options_array', $theme_options );