Exemplo n.º 1
0
            wp_enqueue_style('wpes_overwrite', $template_uri . DS . 'wpes.css');
        }
    }
    /**
     * 管理画面CSS読み込み
     */
    function admin_event_style()
    {
        global $post_type;
        if ($post_type == POST_TYPE) {
            wp_enqueue_style('wpes_jquery-ui-custom', WP_PLUGIN_URL . DS . PLUGIN_DIR . DS . CSS_DIR . DS . 'smoothness' . DS . 'jquery-ui-1.10.3.custom.min.css');
            wp_enqueue_style('wpes_jquery-ui-timepicker', WP_PLUGIN_URL . DS . PLUGIN_DIR . DS . CSS_DIR . DS . 'jquery-ui-timepicker-addon.css');
        }
    }
    /**
     * 管理画面JS読み込み
     */
    function admin_event_script()
    {
        global $post_type;
        if ($post_type == POST_TYPE) {
            wp_enqueue_script('wpes_jquery-ui-timepicker', WP_PLUGIN_URL . DS . PLUGIN_DIR . DS . JS_DIR . DS . 'jquery-ui-timepicker-addon.js', array('jquery-ui-datepicker'));
            wp_enqueue_script('wpes_common', WP_PLUGIN_URL . DS . PLUGIN_DIR . DS . JS_DIR . DS . 'common.js');
        }
    }
}
EventSchedule::_init();
Admin::_init();
Shortcode::_init();
PostType::_init();
$WPES = new TemplateTag();