示例#1
0
    public function display_badges_page()
    {
        include_once 'badges.php';
        $points_table = new AP_Badges_Table();
        $points_table->prepare_items();
        ?>
		<div class="wrap">        
			<div id="icon-users" class="icon32"><br/></div>
			<h2>
				<?php 
        _e('AnsPress Badges', 'ap');
        ?>
				<a class="add-new-h2" href="#" data-button="ap-new-badge"><?php 
        _e('New badge', 'ap');
        ?>
</a>
			</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="anspress-badge-table" method="get">
				<input type="hidden" name="page" value="<?php 
        echo $_REQUEST['page'];
        ?>
" />
				<?php 
        $points_table->display();
        ?>
			</form>
		</div>
		<?php 
    }
    public function display_badges_page()
    {
        include_once 'badges.php';
        $badge_table = new AP_Badges_Table();
        $badge_table->prepare_items();
        ?>

		<div class="wrap">
			<div id="apicon-users" class="icon32"><br/></div>
			<h2>
				<?php 
        _e('AnsPress Badges', 'ap');
        ?>

				<a class="add-new-h2" href="#" data-button="ap-new-badge"><?php 
        _e('New badge', 'ap');
        ?>
</a>
			</h2>
			<?php 
        do_action('ap_after_admin_page_title');
        ?>

			<form id="anspress-badge-table" method="get">
				<input type="hidden" name="page" value="<?php 
        echo sanitize_text_field($_REQUEST['page']);
        ?>
" />
				<?php 
        $badge_table->display();
        ?>

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