当前位置: 首页>>代码示例>>PHP>>正文


PHP C_Base_Module::initialize方法代码示例

本文整理汇总了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'));
     }
 }
开发者ID:JeffreyBue,项目名称:jb,代码行数:7,代码来源:module.lightbox.php

示例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);
     }
 }
开发者ID:albinmartinsson91,项目名称:ux_blog,代码行数:8,代码来源:module.nextgen_basic_singlepic.php

示例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);
     }
 }
开发者ID:albinmartinsson91,项目名称:ux_blog,代码行数:9,代码来源:module.nextgen_basic_album.php

示例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');
     }
 }
开发者ID:CodeNoEvil,项目名称:mbp_web_infrastructure,代码行数:9,代码来源:module.nextgen_pro_lightbox.php

示例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');
 }
开发者ID:simeont9,项目名称:stoneopen,代码行数:11,代码来源:module.nextgen_basic_gallery.php

示例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'));
     }
 }
开发者ID:CodeNoEvil,项目名称:mbp_web_infrastructure,代码行数:15,代码来源:module.nextgen_pro_proofing.php

示例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'));
 }
开发者ID:CodeNoEvil,项目名称:mbp_web_infrastructure,代码行数:24,代码来源:module.nextgen_pro_ecommerce.php

示例8: initialize

 function initialize()
 {
     parent::initialize();
 }
开发者ID:radscheit,项目名称:unicorn,代码行数:4,代码来源:module.wpcli.php

示例9: initialize

 function initialize()
 {
     parent::initialize();
     include_once implode(DIRECTORY_SEPARATOR, array(dirname(__FILE__), 'nggallery.php'));
 }
开发者ID:albinmartinsson91,项目名称:ux_blog,代码行数:5,代码来源:module.ngglegacy.php

示例10: initialize

 function initialize()
 {
     parent::initialize();
     $notices = C_Admin_Notification_Manager::get_instance();
     $notices->add('image_rotator_notice', 'C_Image_Rotator_Notice');
 }
开发者ID:ayoayco,项目名称:upbeat,代码行数:6,代码来源:module.nextgen_basic_gallery.php

示例11: initialize

 function initialize()
 {
     parent::initialize();
     include_once path_join(dirname(__FILE__), 'nggallery.php');
 }
开发者ID:hiaedenis,项目名称:nextgen-gallery,代码行数:5,代码来源:module.ngglegacy.php


注:本文中的C_Base_Module::initialize方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。