Your IP : 216.73.216.171


Current Path : /home/ereika83/www/wp-content/plugins/genesis-club-pro/classes/
Upload File :
Current File : /home/ereika83/www/wp-content/plugins/genesis-club-pro/classes/class-menu-pro-admin.php

<?php
class Genesis_Club_Menu_Pro_Admin extends Genesis_Club_Menu_Admin {
	private $pro_tips = array(
		'loginout' => array('heading' => 'Add Loginout Link', 'tip' => 'Here you can add a Login /Logout link to the end of one of the menus'),
		'login_text' => array('heading' => 'Login Text', 'tip' => 'Text to display on Login link'),
		'logout_text' => array('heading' => 'Logout Text', 'tip' => 'Text to display on Logout link'),
		);

    function load_page() {
        parent::load_page();
        $this->set_tooltips(array_merge($this->tips, $this->pro_tips));
        add_filter( 'genesis_club_menu_settings', array($this, 'add_loginout_panel'), 10, 2);	//add to plugin metabox		    
    }    

	function add_loginout_panel($content, $options) {
        return $content + array('Login /Logout Links' => $this->loginout_panel( $options )); 
    }

	function loginout_panel($options){	
        return 	
            $this->fetch_form_field('loginout', $options['loginout'], 'select', 
                array('none' => 'Not required','primary' => 'Primary Navigation', 'secondary' => 'Secondary Navigation', 'header' => 'Header Right')).
            $this->responsive_text_field('login_text', $options['login_text'], 20) .
            $this->responsive_text_field('logout_text', $options['logout_text'], 20) ;
   }

}