Ejemplo n.º 1
0
    /**
     * 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();
    }
Ejemplo n.º 2
0
 /**
  * Format the name of the field
  * 
  * @param string $id
  * @return void
  * @since 1.0.0
  */
 function yit_get_field_name($id)
 {
     return YIT_Type::name($id);
 }
Ejemplo n.º 3
0
	/**
	 * 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();
	}