本文整理汇总了PHP中Options_Framework_Media_Uploader::init方法的典型用法代码示例。如果您正苦于以下问题:PHP Options_Framework_Media_Uploader::init方法的具体用法?PHP Options_Framework_Media_Uploader::init怎么用?PHP Options_Framework_Media_Uploader::init使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Options_Framework_Media_Uploader
的用法示例。
在下文中一共展示了Options_Framework_Media_Uploader::init方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: optionsframework_init
function optionsframework_init()
{
$path = get_template_directory() . '/options-framework/';
// If user can't edit theme options, exit
if (!current_user_can('edit_theme_options')) {
return;
}
// Load translation files
//load_plugin_textdomain( 'options-framework', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
// Loads the required Options Framework classes.
require $path . 'includes/class-options-framework.php';
require $path . 'includes/class-options-framework-admin.php';
require $path . 'includes/class-options-interface.php';
require $path . 'includes/class-options-media-uploader.php';
require $path . 'includes/class-options-sanitization.php';
// Instantiate the main plugin class.
$options_framework = new Options_Framework();
$options_framework->init();
// Instantiate the options page.
$options_framework_admin = new Options_Framework_Admin();
$options_framework_admin->init();
// Instantiate the media uploader class
$options_framework_media_uploader = new Options_Framework_Media_Uploader();
$options_framework_media_uploader->init();
}
示例2:
function optionsframework_init()
{
// If user can't edit theme options, exit
if (!current_user_can('edit_theme_options')) {
return;
}
// Loads the required Options Framework classes.
require __DIR__ . 'options/class-options-framework.php';
require __DIR__ . 'options/class-options-framework-admin.php';
require __DIR__ . 'options/class-options-interface.php';
require __DIR__ . 'options/class-options-media-uploader.php';
require __DIR__ . 'options/class-options-sanitization.php';
// Instantiate the options page.
$options_framework_admin = new Options_Framework_Admin();
$options_framework_admin->init();
// Instantiate the media uploader class
$options_framework_media_uploader = new Options_Framework_Media_Uploader();
$options_framework_media_uploader->init();
}
示例3:
function optionsframework_init()
{
// If user can't edit theme options, exit
if (!current_user_can('edit_theme_options')) {
return;
}
// Include the required files
require plugin_dir_path(__FILE__) . 'includes/class-options-framework.php';
require plugin_dir_path(__FILE__) . 'includes/class-options-framework-admin.php';
require plugin_dir_path(__FILE__) . 'includes/class-options-interface.php';
require plugin_dir_path(__FILE__) . 'includes/class-options-media-uploader.php';
require plugin_dir_path(__FILE__) . 'includes/class-options-sanitize.php';
// Instantiate the options page.
$options_framework_admin = new Options_Framework_Admin();
$options_framework_admin->init();
// Instantiate the media uploader class
$options_framework_media_uploader = new Options_Framework_Media_Uploader();
$options_framework_media_uploader->init();
}
示例4:
function optionsframework_init()
{
// If user can't edit theme options, exit
if (!current_user_can('edit_theme_options')) {
return;
}
// Loads the required Options Framework classes.
require get_template_directory() . '/inc/includes/class-options-framework.php';
require get_template_directory() . '/inc/includes/class-options-framework-admin.php';
require get_template_directory() . '/inc/includes/class-options-interface.php';
require get_template_directory() . '/inc/includes/class-options-media-uploader.php';
require get_template_directory() . '/inc/includes/class-options-sanitization.php';
//trailingslashit( get_template_directory() . '/inc/meta-box/' )
// Instantiate the options page.
$options_framework_admin = new Options_Framework_Admin();
$options_framework_admin->init();
// Instantiate the media uploader class
$options_framework_media_uploader = new Options_Framework_Media_Uploader();
$options_framework_media_uploader->init();
}
示例5:
function optionsframework_init()
{
// If user can't edit theme options, exit
if (!current_user_can('edit_theme_options')) {
return;
}
// Loads the required Options Framework classes.
tokopress_require_file(plugin_dir_path(__FILE__) . 'includes/class-options-framework.php');
tokopress_require_file(plugin_dir_path(__FILE__) . 'includes/class-options-framework-admin.php');
tokopress_require_file(plugin_dir_path(__FILE__) . 'includes/class-options-interface.php');
tokopress_require_file(plugin_dir_path(__FILE__) . 'includes/class-options-media-uploader.php');
tokopress_require_file(plugin_dir_path(__FILE__) . 'includes/class-options-sanitization.php');
// Instantiate the main plugin class.
$options_framework = new Options_Framework();
$options_framework->init();
// Instantiate the options page.
$options_framework_admin = new Options_Framework_Admin();
$options_framework_admin->init();
// Instantiate the media uploader class
$options_framework_media_uploader = new Options_Framework_Media_Uploader();
$options_framework_media_uploader->init();
}
示例6:
function optionsframework_init()
{
// If user can't edit theme options, exit
if (!current_user_can('edit_theme_options')) {
return;
}
// Loads the required Options Framework classes.
require plugin_dir_path(__FILE__) . 'includes/class-options-framework.php';
require plugin_dir_path(__FILE__) . 'includes/class-options-framework-admin.php';
require plugin_dir_path(__FILE__) . 'includes/class-options-interface.php';
require plugin_dir_path(__FILE__) . 'includes/class-options-media-uploader.php';
require plugin_dir_path(__FILE__) . 'includes/class-options-sanitization.php';
// Instantiate the main plugin class.
$options_framework = new Options_Framework();
$options_framework->init();
// Instantiate the options page.
$options_framework_admin = new Options_Framework_Admin();
$options_framework_admin->init();
// Instantiate the media uploader class
$options_framework_media_uploader = new Options_Framework_Media_Uploader();
$options_framework_media_uploader->init();
wp_enqueue_style('optionsframework', OPTIONS_FRAMEWORK_DIRECTORY . 'css/optionsframework.css');
}