コード例 #1
0
    public static function initialization_page()
    {
        ?>
		<div class='wrap'>
			<h2><span class='bbd-red'>Big Boom Design</span> Initialize WP</h2>
			<?php 
        # Content
        ## pages
        BBD_Init_Ajax::action_button(array('label' => 'Generate pages', 'id' => 'bbdi_create_pages'));
        ## categories
        BBD_Init_Ajax::action_button(array('label' => 'Create categories', 'id' => 'bbdi_create_categories'));
        # Options
        BBD_Init_Ajax::action_button(array('label' => 'Set options', 'id' => 'bbdi_set_options'));
        # Menu
        BBD_Init_Ajax::action_button(array('label' => 'Create menu', 'id' => 'bbdi_create_menu'));
        ?>
		</div>
	<?php 
    }
コード例 #2
0
Version: 1.1.1
*/
/* 
* Main Routine
*/
require_once bbdi_dir('/lib/class-bbd-init.php');
/* 
* Back end
*/
if (is_admin()) {
    # Scripts
    add_action('admin_enqueue_scripts', array('BBD_Init', 'admin_enqueue'));
    # Menu Page under 'Tools'
    add_action('admin_menu', array('BBD_Init', 'admin_menu'));
    # ajax
    BBD_Init_Ajax::add_actions();
} else {
    # Login Screen
    function bbdi_custom_login()
    {
        wp_enqueue_style('bbd-initialize-login-css', bbdi_url('/custom-login/custom-login.css'));
    }
    add_action('login_head', 'bbdi_custom_login');
    ## URL link for logo
    function bbdi_url_login()
    {
        return "http://bigboomdesign.com/";
    }
    add_filter('login_headerurl', 'bbdi_url_login');
    // changing the alt text on the logo to show your site name
    function bbdi_login_title()