Example #1
0
    public function display_moderate_page()
    {
        include_once 'moderate.php';
        $moderate_table = new AP_Moderate_Table();
        $moderate_table->prepare_items();
        ?>
		<div class="wrap">        
			<div id="icon-users" class="icon32"><br/></div>
			<h2><?php 
        _e('Posts waiting moderation', 'ap');
        ?>
</h2>
			<div class="doante-to-anspress">
				<h3>Help us keep AnsPress open source, free and full functional without any limitations</h3>
				<a href="https://www.paypal.com/cgi-bin/webscr?business=rah12@live.com&cmd=_xclick&item_name=Donation%20to%20AnsPress%20development" target="_blank"><img src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" alt="" /></a>
			</div>
			<form id="moderate-filter" method="get">
				<input type="hidden" name="page" value="<?php 
        echo $_REQUEST['page'];
        ?>
" />
				<?php 
        $moderate_table->views();
        ?>
				<?php 
        $moderate_table->advanced_filters();
        ?>
				<?php 
        $moderate_table->display();
        ?>
			</form>
		</div>
		<?php 
    }
    public function display_moderate_page()
    {
        include_once 'moderate.php';
        $moderate_table = new AP_Moderate_Table();
        $moderate_table->prepare_items();
        ?>

		<div class="wrap">
			<div id="apicon-users" class="icon32"><br/></div>
			<h2><?php 
        _e('Posts waiting moderation', 'ap');
        ?>
</h2>
			<?php 
        do_action('ap_after_admin_page_title');
        ?>

			<form id="moderate-filter" method="get">
				<input type="hidden" name="page" value="<?php 
        echo sanitize_text_field($_REQUEST['page']);
        ?>
" />
				<?php 
        $moderate_table->views();
        ?>

				<?php 
        $moderate_table->advanced_filters();
        ?>

				<?php 
        $moderate_table->display();
        ?>

			</form>
		</div>
		<?php 
    }