當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。