本文整理汇总了PHP中C_Base_Module::initialize方法的典型用法代码示例。如果您正苦于以下问题:PHP C_Base_Module::initialize方法的具体用法?PHP C_Base_Module::initialize怎么用?PHP C_Base_Module::initialize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类C_Base_Module
的用法示例。
在下文中一共展示了C_Base_Module::initialize方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: initialize
function initialize()
{
parent::initialize();
if (is_admin()) {
add_action('admin_init', array(&$this, 'add_all_lightbox_forms'));
}
}
示例2: initialize
function initialize()
{
parent::initialize();
if (is_admin()) {
$forms = C_Form_Manager::get_instance();
$forms->add_form(NGG_DISPLAY_SETTINGS_SLUG, NGG_BASIC_SINGLEPIC);
}
}
示例3: initialize
function initialize()
{
parent::initialize();
if (is_admin()) {
$forms = C_Form_Manager::get_instance();
$forms->add_form(NGG_DISPLAY_SETTINGS_SLUG, NGG_BASIC_COMPACT_ALBUM);
$forms->add_form(NGG_DISPLAY_SETTINGS_SLUG, NGG_BASIC_EXTENDED_ALBUM);
}
}
示例4: initialize
function initialize()
{
parent::initialize();
if (!is_admin()) {
$triggers = C_Displayed_Gallery_Trigger_Manager::get_instance();
$triggers->add(NGG_PRO_LIGHTBOX_TRIGGER, 'C_NextGen_Pro_Lightbox_Trigger');
$triggers->add(NGG_PRO_LIGHTBOX_COMMENT_TRIGGER, 'C_NextGen_Pro_Lightbox_Trigger');
}
}
示例5: initialize
function initialize()
{
parent::initialize();
if (is_admin()) {
$forms = C_Form_Manager::get_instance();
$forms->add_form(NGG_DISPLAY_SETTINGS_SLUG, NGG_BASIC_THUMBNAILS);
$forms->add_form(NGG_DISPLAY_SETTINGS_SLUG, NGG_BASIC_SLIDESHOW);
}
$notices = C_Admin_Notification_Manager::get_instance();
$notices->add('image_rotator_notice', 'C_Image_Rotator_Notice');
}
示例6: initialize
function initialize()
{
parent::initialize();
if (!is_admin()) {
// adds lightbox JS overrides
if (version_compare(NGG_PLUGIN_VERSION, '2.0.67') >= 0) {
M_NextGen_Pro_Lightbox::add_component('photocrati-nextgen_pro_proofing', 'C_NextGen_Pro_Proofing_Lightbox');
} else {
M_NextGen_Pro_Lightbox_Legacy::add_component('photocrati-nextgen_pro_proofing', 'C_NextGen_Pro_Proofing_Lightbox');
}
$triggers = C_Displayed_Gallery_Trigger_Manager::get_instance();
$triggers->add(NGG_PRO_PROOFING_TRIGGER, 'C_NextGen_Pro_Proofing_Trigger');
C_NextGen_Shortcode_Manager::add('ngg_pro_proofing', array(&$this, 'render_proofed_images'));
}
}
示例7: initialize
function initialize()
{
parent::initialize();
if (!is_admin()) {
// Add lightbox components
if (version_compare(NGG_PLUGIN_VERSION, '2.0.67') >= 0) {
M_NextGen_Pro_Lightbox::add_component('photocrati-add_to_cart', 'C_NextGen_Pro_Add_To_Cart');
} else {
M_NextGen_Pro_Lightbox_Legacy::add_component('photocrati-add_to_cart', 'C_NextGen_Pro_Add_To_Cart');
}
// Add trigger
$triggers = C_Displayed_Gallery_Trigger_Manager::get_instance();
$triggers->add(NGG_ECOMMERCE_TRIGGER, 'C_NextGen_Pro_Ecommerce_Trigger');
C_NextGen_Shortcode_Manager::add('ngg_pro_cart_count', array(&$this, 'render_cart_count'));
C_NextGen_Shortcode_Manager::add('ngg_pro_checkout', array(&$this, 'render_checkout_form'));
C_NextGen_Shortcode_Manager::add('ngg_pro_digital_downloads', array(&$this, 'render_digital_downloads'));
C_NextGen_Shortcode_Manager::add('ngg_pro_order_details', array(&$this, 'render_order_details'));
C_NextGen_Shortcode_Manager::add('ngg_pro_verify_order', array(&$this, 'render_order_verification'));
}
// Add pricelist sources
$sources = C_Pricelist_Source_Manager::get_instance();
$sources->register(NGG_PRO_MANUAL_PRICELIST_SOURCE, array('title' => __('Manual Pricelist', 'nextgen-gallery-pro'), 'shipping_method' => 'C_NextGen_Pro_Flat_Rate_Shipping_Calculator', 'settings_field' => 'manual_settings'));
$sources->register(NGG_PRO_DIGITAL_DOWNLOADS_SOURCE, array('title' => __('Digital Downloads', 'nextgen-gallery-pro'), 'shipping_method' => NULL, 'settings_field' => 'digital_download_settings'));
}
示例8: initialize
function initialize()
{
parent::initialize();
}
示例9: initialize
function initialize()
{
parent::initialize();
include_once implode(DIRECTORY_SEPARATOR, array(dirname(__FILE__), 'nggallery.php'));
}
示例10: initialize
function initialize()
{
parent::initialize();
$notices = C_Admin_Notification_Manager::get_instance();
$notices->add('image_rotator_notice', 'C_Image_Rotator_Notice');
}
示例11: initialize
function initialize()
{
parent::initialize();
include_once path_join(dirname(__FILE__), 'nggallery.php');
}