Example #1
0
    function admin_page()
    {
        if (isset($_POST['submit'])) {
            $this->save();
        }
        if (isset($_POST['reset-options'])) {
            $this->reset();
        }
        if (isset($_POST['rebuild-pages'])) {
            $this->rebuild_pages();
        }
        ?>
	
		<div class="wrap <?php 
        echo $this->slug;
        ?>
-admin">
			
			<?php 
        userpro_admin_bar();
        ?>
			
			<h2 class="nav-tab-wrapper"><?php 
        $this->admin_tabs();
        ?>
</h2>

			<div class="<?php 
        echo $this->slug;
        ?>
-admin-contain">
				
				<?php 
        $this->get_tab_content();
        ?>
				
				<div class="clear"></div>
				
			</div>
			
		</div>

	<?php 
    }
Example #2
0
    function admin_page()
    {
        if (isset($_POST['import_settings'])) {
            $this->import_settings();
        }
        if (isset($_POST['import_fields'])) {
            $this->import_fields();
        }
        if (isset($_POST['import_groups'])) {
            $this->import_groups();
        }
        if (isset($_POST['verify-license'])) {
            $this->verify_license();
        }
        if (isset($_POST['userpro-reinstall'])) {
            $this->reinstall();
        }
        if (isset($_POST['up-group-new'])) {
            $this->new_group();
        }
        if (isset($_POST['submit'])) {
            $this->save();
        }
        if (isset($_GET['userpro_act'])) {
            $this->do_action();
        }
        if (isset($_POST['reset-options'])) {
            $this->reset();
        }
        if (isset($_POST['rebuild-pages'])) {
            $this->rebuild_pages();
        }
        if (isset($_POST['woosync'])) {
            $this->woo_sync();
        }
        if (isset($_POST['woosync_del'])) {
            $this->woo_sync_del();
        }
        ?>
	
		<div class="wrap <?php 
        echo $this->slug;
        ?>
-admin">
		
			<?php 
        userpro_admin_bar();
        ?>
			
			<h2 class="nav-tab-wrapper"><?php 
        $this->admin_tabs();
        ?>
</h2>

			<div class="<?php 
        echo $this->slug;
        ?>
-admin-contain">
				
				<?php 
        $this->get_tab_content();
        ?>
				
				<div class="clear"></div>
				
			</div>
			
		</div>

	<?php 
    }