Exemplo n.º 1
0
    protected function show_editor()
    {
        //$container_width = $this->get_ure_container_width();
        $this->show_message($this->notification);
        if ($this->ure_object == 'user') {
            $view = new URE_User_View();
        } else {
            $this->set_current_role();
            $view = new URE_Role_View();
            $view->role_edit_prepare_html();
        }
        ?>
        <div class="wrap">
            <h1><?php 
        _e('User Role Editor', 'user-role-editor');
        ?>
</h1>
            <div id="ure_container">                
                <div id="user_role_editor" class="ure-table-cell" >
                    <form id="ure_form" method="post" action="<?php 
        echo URE_WP_ADMIN_URL . URE_PARENT . '?page=users-' . URE_PLUGIN_FILE;
        ?>
" >			
                        <div id="ure_form_controls">
        <?php 
        $view->display();
        wp_nonce_field('user-role-editor', 'ure_nonce');
        ?>
                            <input type="hidden" name="action" value="update" />
                        </div>      
                    </form>		      
<?php 
        if (!$this->is_pro()) {
            $view->advertise_pro();
        }
        ?>
                </div>
<?php 
        if (!$this->is_pro()) {
            $view->advertise_commercials();
        }
        $view->display_edit_dialogs();
        do_action('ure_dialogs_html');
        $view->output_confirmation_dialog();
        ?>
            
            </div>
        </div>
        <?php 
    }