web_dor_theme_control_pages

The Business Responsive web dor theme control pages function.

Description

web_dor_theme_control_pages(); 

Usage

  1. if ( !function_exists( 'web_dor_theme_control_pages' ) ) { 
  2. require_once '/admin/main_admin_controler.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = web_dor_theme_control_pages(); 
  7.  

Defined (1)

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

/admin/main_admin_controler.php  
  1. function web_dor_theme_control_pages() { 
  2.  
  3. global $dor_layout_page, $dor_general_settings_page, $dor_home_page, $dor_integration_page, $dor_color_control_page, $dor_typography_page, $dor_slider_page, $sample_date, $licensing_page, $featured_plugins_page; 
  4. ?> 
  5. <style> 
  6. .nav-tab-wrapper a{ 
  7. font-size:14px; 
  8. .nav-tab{ 
  9. border-color: #919191 #919191 #fff !important; 
  10. .nav-tab-active{ 
  11. border-color: #727272 #727272 #fff !important; 
  12. h2.nav-tab-wrapper{ 
  13. border-bottom-color:#727272 !important; 
  14. </style> 
  15.  
  16. <script> 
  17. jQuery(document).ready(function($) { 
  18. if (typeof(localStorage) != 'undefined' ) { 
  19. active_tab = localStorage.getItem("active_tab"); 
  20. if (active_tab != '' && $(active_tab).length ) { 
  21. $(active_tab).fadeIn(); 
  22. } else { 
  23. $('.group:first').fadeIn(); 
  24. $('.group .collapsed').each(function() { 
  25. $(this).find('input:checked').parent().parent().parent().nextAll().each(  
  26. function() { 
  27. if ($(this).hasClass('last')) { 
  28. $(this).removeClass('hidden'); 
  29. return false; 
  30. $(this).filter('.hidden').removeClass('hidden'); 
  31. }); 
  32. }); 
  33. if (active_tab != '' && $(active_tab + '-tab').length ) { 
  34. $(active_tab + '-tab').addClass('nav-tab-active'); 
  35. else { 
  36. $('.nav-tab-wrapper a:first').addClass('nav-tab-active'); 
  37.  
  38. $('.nav-tab-wrapper a').click(function(evt) { 
  39. $('.nav-tab-wrapper a').removeClass('nav-tab-active'); 
  40. $(this).addClass('nav-tab-active').blur(); 
  41. var clicked_group = $(this).attr('href'); 
  42. if (typeof(localStorage) != 'undefined' ) { 
  43. localStorage.setItem("active_tab", $(this).attr('href')); 
  44. $('.group').hide(); 
  45. $(clicked_group).fadeIn(); 
  46. evt.preventDefault(); 
  47.  
  48. // Editor Height (needs improvement) 
  49. $('.wp-editor-wrap').each(function() { 
  50. var editor_iframe = $(this).find('iframe'); 
  51. if ( editor_iframe.height() < 30 ) { 
  52. editor_iframe.css({'height':'auto'}); 
  53. }); 
  54.  
  55. }); 
  56.  
  57. $('.group .collapsed input:checkbox').click(unhideHidden); 
  58.  
  59. function unhideHidden() { 
  60. if ($(this).attr('checked')) { 
  61. $(this).parent().parent().parent().nextAll().removeClass('hidden'); 
  62. else { 
  63. $(this).parent().parent().parent().nextAll().each(  
  64. function() { 
  65. if ($(this).filter('.last').length) { 
  66. $(this).addClass('hidden'); 
  67. return false;  
  68. $(this).addClass('hidden'); 
  69. }); 
  70.  
  71.  
  72. // Image Options 
  73. $('.of-radio-img-img').click(function() { 
  74. $(this).parent().parent().find('.of-radio-img-img').removeClass('of-radio-img-selected'); 
  75. $(this).addClass('of-radio-img-selected');  
  76. }); 
  77.  
  78. $('.of-radio-img-label').hide(); 
  79. $('.of-radio-img-img').show(); 
  80. $('.of-radio-img-radio').hide(); 
  81. }); 
  82. </script> 
  83. <div style="background-image:url(<?php echo get_template_directory_uri(); ?>/images/adminheader.png);background-repeat: no-repeat; width: 90%;margin-left: 59px; height: 90px;"></div> 
  84. <div id="icon-themes" class="icon32"><br></div> 
  85. <h2 class="nav-tab-wrapper"> 
  86. <a id="options-group-1-tab" class="nav-tab" title="Layout Editor" href="#options-group-1">Layout Editor</a> 
  87. <a id="options-group-2-tab" class="nav-tab" title="General" href="#options-group-2">General</a> 
  88. <a id="options-group-3-tab" class="nav-tab" title="Homepage" href="#options-group-3">Homepage</a> 
  89. <a id="options-group-4-tab" class="nav-tab" title="Integration" href="#options-group-4">Integration</a> 
  90. <a id="options-group-5-tab" class="nav-tab" title="Color Control" href="#options-group-5">Color Control</a> 
  91. <a id="options-group-6-tab" class="nav-tab" title="Typography" href="#options-group-6">Typography</a> 
  92. <a id="options-group-7-tab" class="nav-tab" title="Slider" href="#options-group-7">Slider</a> 
  93. <a id="options-group-8-tab" class="nav-tab" title="Install Sample Data" href="#options-group-8">Install Sample Data</a>  
  94. <a id="options-group-9-tab" class="nav-tab" title="Featured Plugins" href="#options-group-9">Licensing</a>  
  95. <a id="options-group-10-tab" class="nav-tab" title="Featured Plugins" href="#options-group-10">Featured Plugins</a> 
  96. </h2> 
  97. <div id="optionsframework-metabox" class="metabox-holder"> 
  98. <div id="optionsframework" class="postbox"> 
  99.  
  100. <div id="options-group-1" class="group Layout" style="display: none;"><h3>Layout Editor</h3><?php echo $dor_layout_page->dorado_theme_admin_layout(); ?></div> 
  101. <div id="options-group-2" class="group General" style="display: none;"><h3>General</h3><?php echo $dor_general_settings_page->dorado_theme_admin_general_settings(); ?></div> 
  102. <div id="options-group-3" class="group Homepage" style="display: none;"><h3>Homepage</h3><?php echo $dor_home_page->dorado_theme_admin_home(); ?></div> 
  103. <div id="options-group-4" class="group Integration" style="display: none;"><h3>Integration</h3><?php echo $dor_integration_page->dorado_theme_admin_integration(); ?></div> 
  104. <div id="options-group-5" class="group Color" style="display: none;"><h3>Color Control</h3><?php echo $dor_color_control_page->dorado_theme_admin_color_control(); ?></div> 
  105. <div id="options-group-6" class="group Typography" style="display: none;"><h3>Typography</h3><?php echo $dor_typography_page->dorado_theme_admin_typography(); ?></div> 
  106. <div id="options-group-7" class="group Install" style="display: none;"><h3>Slider</h3><?php echo $dor_slider_page->dorado_theme_admin_slider(); ?></div> 
  107. <div id="options-group-8" class="group general" style="display: none;"><h3>Install Sample Data</h3><?php echo $sample_date->web_buisnes_install_posts(); ?></div> 
  108. <div id="options-group-9" class="group Licensing" style="display: none;"><h3>Licensing</h3><?php echo $licensing_page->dorado_theme_admin_licensing(); ?></div> 
  109. <div id="options-group-10" class="group Featured" style="display: none;"><h3>Featured Plugins</h3><?php echo $featured_plugins_page->dorado_theme_featured_plugins(); ?></div> 
  110.  
  111. </div> 
  112. </div> 
  113.  
  114.  
  115.  
  116.  
  117. <?php 
  118.  
  119.