advantage_theme_options_display_page

The Advantage advantage theme options display page function.

Description

advantage_theme_options_display_page(); 

Usage

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

Defined (1)

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

/inc/theme-options.php  
  1. function advantage_theme_options_display_page() { 
  2. if ( ! isset( $_REQUEST['settings-updated'] ) ) 
  3. $_REQUEST['settings-updated'] = false; 
  4. ?> 
  5. <div class="wrap"> 
  6. <?php screen_icon(); 
  7. echo "<h2>" . __('Advantage Theme Options', 'advantage') . "</h2>"; 
  8. if ( false !== $_REQUEST['settings-updated'] ) { ?> 
  9. <div class="updated fade"><p><strong><?php _e('Options Saved', 'advantage'); ?></strong></p></div> 
  10. <?php } ?> 
  11. <p><a class="btn btn-primary" href="<?php _e('http://xinthemes.com/docs/', 'advantage'); ?>" target="_blank"><strong><?php _e('Documentation', 'advantage'); ?></strong></a>   
  12. <a class="btn btn-warning" href="<?php _e('http://xinthemes.com/advantage-change-log/', 'advantage'); ?>" target="_blank"><strong><?php _e('Change Log', 'advantage'); ?></strong></a>   
  13. <a class="btn btn-success" href="<?php _e('http://xinthemes.com/support/', 'advantage'); ?>" target="_blank"><strong><?php _e('Support Forum', 'advantage'); ?></strong></a>   
  14. <a class="btn btn-info" href="<?php _e('http://xinthemes.com/donate/', 'advantage'); ?>" target="_blank"><strong><?php _e('Donate', 'advantage'); ?></strong></a></p> 
  15. <form method="post" action="options.php"> 
  16. <?php  
  17. global $advantage_theme_options, $advantage_options; 
  18. $advantage_theme_options = advantage_theme_options_array(); 
  19. $advantage_options = advantage_get_options(); 
  20. settings_fields( 'advantage_options' ); 
  21. ?> 
  22. <div id="advantage-wrapper" class="container_12"> 
  23. <input id="save-button" type="submit" class="button-primary" value="<?php _e('Save Options', 'advantage'); ?>" /> 
  24. <div id="advantage-tabs"> 
  25. <a><?php _e('Layout', 'advantage'); ?></a> 
  26. <a><?php _e('Scheme', 'advantage'); ?></a> 
  27. <a><?php _e('Fonts', 'advantage'); ?></a> 
  28. <a><?php _e('Custom CSS', 'advantage'); ?></a> 
  29. <?php //Allow child them to add options. 
  30. do_action( 'advantage_options_tab_link' ); ?> 
  31. </div> 
  32. <?php 
  33. /****************************************************************** 
  34. * Theme Options related to site layout 
  35. ******************************************************************/ 
  36. ?> 
  37. <div class="advantage-pane clearfix"><div class="grid_12"><!-- Layout --> 
  38. <h3><?php _e('Site Layout (12 Columns)', 'advantage'); ?></h3>  
  39. <?php xinwp_option_display( 'gridwidth' ); ?> 
  40. <div class="grid_3 alpha"> 
  41. <p><b><?php _e('Content and Sidebar Width', 'advantage'); ?></b></p> 
  42. </div> 
  43. <div class="grid_9"> 
  44. <?php 
  45. xinwp_option_display( 'content' ); 
  46. xinwp_option_display( 'sidebar1' ); 
  47. xinwp_option_display( 'sidebar2' ); 
  48. ?> 
  49. </div><div class="clear"></div> 
  50. <?php 
  51. xinwp_option_display( 'sidebarpos' ); 
  52. xinwp_option_display( 'sidebarresp' ); 
  53. xinwp_option_display( 'respbp' ); 
  54. ?> 
  55. <div class="grid_3 alpha"> 
  56. <p><b><?php _e('Home Widget Area Width', 'advantage'); ?></b></p> 
  57. </div> 
  58. <div class="grid_9"> 
  59. <?php 
  60. xinwp_option_display( 'column_home1' ); 
  61. xinwp_option_display( 'column_home2' ); 
  62. xinwp_option_display( 'column_home3' ); 
  63. xinwp_option_display( 'column_home4' ); 
  64. xinwp_option_display( 'column_home5' ); 
  65. ?> 
  66. </div><div class="clear"></div> 
  67. <div class="grid_3 alpha"> 
  68. <p><b><?php _e('Footer Widget Area Width', 'advantage'); ?></b></p> 
  69. </div> 
  70. <div class="grid_9"> 
  71. <?php 
  72. xinwp_option_display( 'column_footer1' ); 
  73. xinwp_option_display( 'column_footer2' ); 
  74. xinwp_option_display( 'column_footer3' ); 
  75. xinwp_option_display( 'column_footer4' ); 
  76. ?> 
  77. </div><div class="clear"></div> 
  78. <h3><?php _e('Home Page', 'advantage'); ?></h3> 
  79. <?php xinwp_option_display( 'homepage' ); 
  80. xinwp_option_display( 'fp_option' ); 
  81. xinwp_option_display( 'fp_category' ); 
  82. xinwp_option_display( 'fp_effect' ); 
  83. xinwp_option_display( 'headline' ); 
  84. xinwp_option_display( 'tagline' );  
  85. do_action( 'advantage_options_tab_layout' ); ?>  
  86. </div></div> 
  87. <?php 
  88. /****************************************************************** 
  89. * Theme Options: Scheme 
  90. ******************************************************************/ 
  91. ?> 
  92. <div class="advantage-pane clearfix"><div class="grid_12"> 
  93. <?php xinwp_option_display( 'colorscheme' ); ?> 
  94. <p><?php _e('Change Background Image or Color : ', 'advantage'); printf( __('<a href="%s">Click here</a>.', 'advantage'), admin_url('themes.php?page=custom-background')); ?></p> 
  95. <?php xinwp_option_display( 'headerbg' ); 
  96. xinwp_option_display( 'titlebarbg' ); 
  97. xinwp_option_display( 'contentbg' ); 
  98. xinwp_option_display( 'footerbg' ); 
  99. ?> 
  100. </div></div>  
  101. <?php 
  102. /************************************** 
  103. * Theme Options - Fonts * 
  104. **************************************/ 
  105. ?> 
  106. <div class="advantage-pane clearfix"><div class="grid_12"> 
  107. <p><?php _e( 'You do not need to select font for each element. For example. Body, paragraph and heading define the general fonts used. <span style="color:blue;font-weight:bold;">Please note that blue indicates webfonts (e.g Google Fonts) which may require additional load time.</span>', 'advantage' ); ?></p> 
  108. <?php  
  109. xinwp_option_display( 'bodyfont' ); 
  110. xinwp_option_display( 'headingfont' ); 
  111. ?> 
  112. <hr> 
  113. <?php 
  114. xinwp_option_display( 'sitetitlefont' ); 
  115. xinwp_option_display( 'sitedescfont' ); 
  116. ?> 
  117. <hr> 
  118. <?php 
  119. xinwp_option_display( 'entrytitlefont' ); 
  120. xinwp_option_display( 'widgettitlefont' ); 
  121. xinwp_option_display( 'sidebarfont' ); 
  122. xinwp_option_display( 'mainmenufont' ); 
  123. xinwp_option_display( 'footerfont' ); 
  124. ?> 
  125. <h3><?php _e( 'Additional Google Fonts', 'advantage' ); ?></h3> 
  126. <?php 
  127. xinwp_option_display( 'otherfont1' ); 
  128. xinwp_option_display( 'otherfont2' ); 
  129. xinwp_option_display( 'otherfont3' ); 
  130. xinwp_option_display( 'otherfont4' ); 
  131. ?> 
  132. </div></div> 
  133. <?php 
  134. /****************************************************************** 
  135. * Custom CSS 
  136. ******************************************************************/ 
  137. ?> 
  138. <div class="advantage-pane clearfix"><div class="grid_12"> 
  139. <?php 
  140. xinwp_option_display( 'advantage_inline_css' );  
  141. ?> 
  142. </div></div> 
  143. <?php 
  144. /****************************************************************** 
  145. * Child Theme Options 
  146. ******************************************************************/ 
  147.  
  148. xinwp_option_display( 'currenttab' ); 
  149. xinwp_option_display( 'schemecss' ); 
  150. ?> 
  151. <p><input id="save-button-bottom" type="submit" class="button-primary" value="<?php _e( 'Save Options', 'advantage' ); ?>" /></p> 
  152. </div><!-- advantage-wrapper --> 
  153. </form> 
  154. </div><!-- wrap --> 
  155. <?php