/** * Print all options * * @return void * @since 1.0.0 */ public function display_page() { $this->get_header('theme_option'); $this->get_form(array('id' => 'theme_option', 'action' => 'panel', 'subpage' => strtolower(str_replace('YIT_Submenu_', '', get_class($this))))); foreach ($this->_tabClasses as $slug => $fields) { ?> <div id="yit_<?php echo $slug; ?> " class="yit-box"> <div class="yit-options"> <?php ksort($fields->fields); foreach ($fields->fields as $priority => $tab) { if ($priority < 0) { continue; } YIT_Type::display($tab); } ?> </div> </div> <?php } $this->get_footer(); }
/** * Print all options * * @return void * @since 1.0.0 */ public function display_page() { $this->get_header('maintenance'); $this->get_form( array( 'id' => 'maintenance', 'action' => 'panel_maintenance', 'subpage' => strtolower( str_replace( 'YIT_Submenu_', '', __CLASS__ ) ) ) ); foreach( $this->_tabClasses as $slug => $fields ) : ?> <div id="yit_<?php echo $slug ?>" class="yit-box"> <div class="yit-options"> <?php ksort( $fields->fields ); foreach( $fields->fields as $priority => $tab ) { if( $priority < 0 ) { continue; } YIT_Type::display( $tab ); } ?> </div> </div> <?php endforeach; $this->get_footer(); }