Advertisement
merlin867

Untitled

Feb 12th, 2014
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.11 KB | None | 0 0
  1.  public function settingsPage() {
  2.         if (!current_user_can('manage_options')) {
  3.             wp_die(__('You do not have sufficient permissions to access this page.', 'price-compare-v2'));
  4.         }
  5.         ?>
  6. <div>
  7.     Header section above all the tabs
  8. </div>
  9.  
  10. <script type="text/javascript">
  11.     jQuery(function() {
  12.         jQuery("#plugin_config_tabs").tabs();
  13.     });
  14. </script>
  15.  
  16. <div class="plugin_config">
  17.     <div id="plugin_config_tabs">
  18.         <ul>
  19.             <li><a href="#plugin_config-1">Tab 1 Label</a></li>
  20.             <li><a href="#plugin_config-2">Tab 2 Label</a></li>
  21.             <li><a href="#plugin_config-3">Options</a></li>
  22.         </ul>
  23.         <div id="plugin_config-1">
  24.             <?php //$this->outputTab1Contents();
  25.                         echo '<H2>tab 1</h2>';
  26.                         ?>
  27.         </div>
  28.         <div id="plugin_config-2">
  29.             <?php //$this->outputTab2Contents();
  30.                         echo '<H2>tab 2</h2>';
  31.                         ?>
  32.         </div>
  33.         <div id="plugin_config-3">
  34.             <?php //parent::settingsPage();
  35.                         echo '<H2>tab 3</h2>';
  36.                         ?>
  37.         </div>
  38.     </div>
  39. </div>
  40. <?php
  41.  
  42.        
  43.  
  44.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement