Exemple #1
0
 /**
  * @param IfwPsn_Wp_Options $options
  * @param null $pageId
  */
 public function render(IfwPsn_Wp_Options $options, $pageId = null)
 {
     if ($options->getAddedFields() === 0) {
         echo '<p>' . __('No options available.', 'ifw') . '</p>';
     } else {
         if ($pageId == null) {
             $pageId = $options->getPageId();
         }
         ?>
         <form method="post" action="options.php">
             <?php 
         settings_fields($pageId);
         ?>
             <?php 
         do_settings_sections($pageId);
         ?>
             <?php 
         submit_button();
         ?>
         </form>
     <?php 
     }
 }