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


PHP module_config::register_css方法代码示例

本文整理汇总了PHP中module_config::register_css方法的典型用法代码示例。如果您正苦于以下问题:PHP module_config::register_css方法的具体用法?PHP module_config::register_css怎么用?PHP module_config::register_css使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在module_config的用法示例。


在下文中一共展示了module_config::register_css方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: init

 function init()
 {
     $this->version = 2.255;
     // 2.255 - 2015-06-07 - link to settings
     // 2.254 - 2015-04-12 - minor bug fix
     // 2.253 - 2015-03-08 - wysiwyg and dropdown/select extra fields
     // 2.252 - 2015-03-08 - wysiwyg and dropdown/select extra fields
     // 2.251 - 2015-02-05 - text/check extra field types
     // 2.25 - 2015-01-28 - sorting by extra fields
     // 2.249 - 2014-12-22 - extra field dates/delete/list/rename fixes
     // 2.248 - 2014-10-03 - hook_filter_var for better theme support
     // 2.247 - 2014-08-02 - responsive fixes
     // 2.16 - fix to disable editing when page isn't editable. this caused double ups on extra keys in table listings.
     // 2.17 - hooks for the encryption module to take over.
     // 2.18 - bug fix with new extra field types.
     // 2.19 - better saving of extra fields etc.. in sync with member external signup extra field feature
     // 2.2 - started work on sorting extra fields
     // 2.21 - bug fix
     // 2.22 - see Settings-Extra Fields for new options.
     // 2.23 - Extra bug fix
     // 2.24 - permission improvement
     // 2.241 - clickable links in extra fields
     // 2.242 - clickable links in extra fields
     // 2.243 - new delete button in Settings > Extra Fields
     // 2.244 - 2013-11-15 - working on new UI
     // 2.245 - 2013-12-19 - extra fields now available when creating a job
     // 2.246 - 2014-01-23 - searching by extra fields
     $this->links = array();
     $this->module_name = "extra";
     $this->module_position = 8882;
     module_config::register_css('extra', 'extra.css');
     module_config::register_js('extra', 'extra.js');
 }
开发者ID:sgh1986915,项目名称:php-crm,代码行数:33,代码来源:extra.php

示例2: init

 public function init()
 {
     $this->module_name = "encrypt";
     $this->module_position = 1;
     $this->version = 2.269;
     // 2.2 - initial release
     // 2.21 - better support for new 'extra' fields
     // 2.22 - permissions.
     // 2.221 - typo.
     // 2.23 - a better "e" value in RSA to support easier server side public key encryption.
     // 2.24 - sidebar encryption in ticket extra fields.
     // 2.25 - link fix, no htmlspecialchars
     // 2.26 - save decrypted
     // 2.261 - remove console .log
     // 2.262 - fix for encrypted ticket submission + attachments
     // 2.263 - larger popup
     // 2.264 - 2013-04-07 - fix for special characters in encryption
     // 2.265 - 2013-11-23 - working on new ui
     // 2.266 - 2014-01-17 - compatibility update for custom data plugin
     // 2.267 - 2014-01-21 - updated js encryption library
     // 2.268 - 2014-10-13 - hook_filter_var for better theme support
     // 2.269 - 2015-04-12 - fix dollar sign in extra field bug
     module_config::register_js('encrypt', 'sjcl.js');
     module_config::register_js('encrypt', 'encrypt.js');
     module_config::register_css('encrypt', 'encrypt.css');
     hook_add('extra_fields_output', 'module_encrypt::extra_fields_output_callback');
 }
开发者ID:sgh1986915,项目名称:php-crm,代码行数:27,代码来源:encrypt.php

示例3: init

 function init()
 {
     $this->links = array();
     $this->user_types = array();
     $this->module_name = "note";
     $this->module_position = 8882;
     module_config::register_css('note', 'notes.css');
 }
开发者ID:sgh1986915,项目名称:php-crm,代码行数:8,代码来源:note.php

示例4: init

 public function init()
 {
     $this->module_name = "form";
     $this->module_position = 0;
     module_config::register_css('form', 'jquery.timepicker.css');
     module_config::register_js('form', 'jquery.timepicker.min.js');
     hook_add('header_print_js', 'module_form::hook_header_print_js');
 }
开发者ID:sgh1986915,项目名称:php-crm,代码行数:8,代码来源:form.php

示例5: init

 public function init()
 {
     $this->links = array();
     $this->module_name = "backup";
     $this->module_position = 30;
     module_config::register_js('backup', 'backup.js');
     module_config::register_css('backup', 'backup.css');
 }
开发者ID:sgh1986915,项目名称:php-crm,代码行数:8,代码来源:backup.php

示例6: init

 public function init()
 {
     $this->module_name = "timer";
     $this->module_position = 0;
     if (module_security::is_logged_in() && module_config::c('timer_enabled', 1) && self::can_i('view', 'Task Timer') && get_display_mode() != 'mobile') {
         module_config::register_css('timer', 'timer.css');
         module_config::register_js('timer', 'timer.js');
         hook_add('job_task_after', 'module_timer::hook_job_task_after');
         hook_add('header_print_js', 'module_timer::hook_header_print_js');
     }
 }
开发者ID:sgh1986915,项目名称:php-crm,代码行数:11,代码来源:timer.php

示例7: init

 /**
  * Standard UCM function with the base module datas
  */
 public function init()
 {
     $this->links = array();
     $this->module_name = "webnpro_menu_editor";
     $this->module_position = 99999;
     $this->version = '1.1';
     // Include the css files
     module_config::register_css('webnpro_menu_editor', 'webnpro_menu_editor.css');
     module_config::register_css('webnpro_menu_editor', 'font-awesome.css', full_link('/includes/plugin_webnpro_menu_editor/css/font-awesome.css'), 100);
     //module_config::register_css('webnpro_menu_editor', 'font-awesome.css');
     /* END public function init() */
 }
开发者ID:sgh1986915,项目名称:php-crm,代码行数:15,代码来源:webnpro_menu_editor.php

示例8: init

 public function init()
 {
     $this->links = array();
     $this->vendor_types = array();
     $this->module_name = "vendor";
     $this->module_position = 5.1;
     $this->version = 2.12;
     // 2.12 - 2014-07-31 - responsive improvements
     // 2.11 - 2014-07-21 - company permission improvement
     // 2.1 - 2014-07-16 - vendor initial release
     module_config::register_css('vendor', 'vendor.css');
 }
开发者ID:sgh1986915,项目名称:php-crm,代码行数:12,代码来源:vendor.php

示例9: init

    function init()
    {
        $this->links = array();
        $this->module_name = "job_discussion";
        $this->module_position = 17.1;
        //17 is job
        $this->version = 2.149;
        // 2.1 - initial
        // 2.11 - date change
        // 2.12 - better linking and auto open
        // 2.13 - possible bug fix in discussion saving
        // 2.14 - bug fixing.
        // 2.141 - bug fix for IE.
        // 2.142 - send email to staff option (as well as customer)
        // 2.143 - 2013-07-29 - new _UCM_SECRET hash in config.php
        // 2.144 - 2013-12-06 - javascript for for new jquery
        // 2.145 - 2014-03-17 - make discussion button stand out a bit more ( job_discussion_button_label )
        // 2.146 - 2014-03-18 - fix for disabling job discussion plugin
        // 2.147 - 2014-05-27 - email discussions to multiple customer contacts
        // 2.148 - 2015-01-08 - AdminLTE modal popup discussions (thanks 3wCorner!)
        // 2.149 - 2015-01-10 - job discussion bug fix
        if (self::is_plugin_enabled()) {
            module_config::register_css('job_discussion', 'job_discussion.css');
            module_config::register_js('job_discussion', 'job_discussion.js');
            //if(self::can_i('view','Job Discussions')){
            if (get_display_mode() != 'mobile') {
                hook_add('job_task_after', 'module_job_discussion::hook_job_task_after');
            }
        }
        if (class_exists('module_template', false)) {
            module_template::init_template('job_discussion_email_customer', 'Dear {CUSTOMER_NAME},<br>
<br>
A new comment has been added to a task in your job: {JOB_NAME}.<br><br>
Task: {TASK_NAME} <br/><br/>
Note: {NOTE}<br/><br/>
You can view this job and the comments online by <a href="{JOB_URL}">clicking here</a>.<br><br>
Thank you,<br><br>
{FROM_NAME}
', 'New Job Comment: {JOB_NAME}', array('CUSTOMER_NAME' => 'Customers Name', 'JOB_NAME' => 'Job Name', 'FROM_NAME' => 'Your name', 'JOB_URL' => 'Link to job for customer', 'TASK_NAME' => 'name of the task the note was added to', 'NOTE' => 'Copy of the note'));
            module_template::init_template('job_discussion_email_staff', 'Dear {STAFF_NAME},<br>
<br>
A new comment has been added to a task in your job: {JOB_NAME}.<br><br>
Task: {TASK_NAME} <br/><br/>
Note: {NOTE}<br/><br/>
You can view this job and the comments online by <a href="{JOB_URL}">clicking here</a>.<br><br>
Thank you,<br><br>
{FROM_NAME}
', 'New Comment on your Job: {JOB_NAME}', array('STAFF_NAME' => 'Staff Name', 'JOB_NAME' => 'Job Name', 'FROM_NAME' => 'Your name', 'JOB_URL' => 'Link to job for staff member', 'TASK_NAME' => 'name of the task the note was added to', 'NOTE' => 'Copy of the note'));
        }
    }
开发者ID:sgh1986915,项目名称:php-crm,代码行数:50,代码来源:job_discussion.php

示例10: init

 public function init()
 {
     $this->module_name = "table_sort";
     $this->module_position = 0;
     $this->version = 2.226;
     // 2.226 - 2015-02-12 - extra field sorting on date fields (may be slow)
     // 2.225 - 2015-01-28 - extra field sorting added (may be slow)
     // 2.224 - 2014-09-02 - per page fix for <20 items
     // 2.223 - 2014-09-02 - per page fix in tickets area
     // 2.222 - 2014-08-20 - js fix
     // 2.221 - 2014-02-04 - table sort improvement
     // 2.22 - 2013-09-07 - table sort speed up
     // 2.21 - 2013-07-17 - fix for per-page dropdown
     // 2.2 - 2013-07-17 - memory improvements
     module_config::register_css('table_sort', 'table_sort.css');
 }
开发者ID:sgh1986915,项目名称:php-crm,代码行数:16,代码来源:table_sort.php

示例11: init

 function init()
 {
     $this->links = array();
     $this->module_name = "social";
     $this->module_position = 25.1;
     $this->version = 2.131;
     // 2.131 - 2014-08-04 - responsive improvements
     // 2.13 - 2014-05-23 - social fixes
     // 2.12 - 2014-04-05 - ability to disable social plugin
     // 2.11 - 2014-04-05 - better message archiving
     // 2.1 - 2014-03-25 - initial release
     if (self::is_plugin_enabled()) {
         module_config::register_css('social', 'social.css', true, 5);
         module_config::register_js('social', 'social.js', true, 5);
     }
 }
开发者ID:sgh1986915,项目名称:php-crm,代码行数:16,代码来源:social.php

示例12: init

 function init()
 {
     $this->links = array();
     $this->module_name = "social_twitter";
     $this->module_position = 25.2;
     $this->version = 2.131;
     // 2.131 - 2014-08-04 - responsive im
     // 2.13 - 2014-05-23 - social fixes
     // 2.12 - 2014-04-05 - ability to disable social plugin
     // 2.11 - 2014-04-05 - better message archiving
     // 2.1 - 2014-04-05 - initial release
     if (module_social::is_plugin_enabled() && self::is_plugin_enabled()) {
         module_config::register_js('social_twitter', 'social_twitter.js');
         module_config::register_css('social_twitter', 'social_twitter.css');
     }
     //hook_add('get_social_methods','module_social_twitter::hook_get_social_methods');
 }
开发者ID:sgh1986915,项目名称:php-crm,代码行数:17,代码来源:social_twitter.php

示例13: init

 function init()
 {
     $this->links = array();
     $this->module_name = "social_facebook";
     $this->module_position = 25.2;
     $this->version = 2.132;
     // 2.132 - 2014-10-13 - support for local FB app/api
     // 2.131 - 2014-08-04 - responsive improvements
     // 2.13 - 2014-05-23 - social fixes
     // 2.12 - 2014-04-05 - ability to disable social plugin
     // 2.11 - 2014-04-05 - better message archiving
     // 2.1 - 2014-04-05 - initial release
     if (module_social::is_plugin_enabled() && self::is_plugin_enabled()) {
         module_config::register_js('social_facebook', 'social_facebook.js');
         module_config::register_css('social_facebook', 'social_facebook.css');
     }
     //hook_add('get_social_methods','module_social_facebook::hook_get_social_methods');
 }
开发者ID:sgh1986915,项目名称:php-crm,代码行数:18,代码来源:social_facebook.php

示例14: init

 public function init()
 {
     $this->module_name = "pin";
     $this->module_position = 0;
     module_config::register_css('pin', 'pin.css');
     module_config::register_js('pin', 'pin.js');
     $this->version = 2.11;
     //2.11 css tweak
     if (isset($_REQUEST['pin_process']) && module_security::is_logged_in() && module_pin::can_i('edit', 'Header Pin')) {
         switch ($_REQUEST['pin_process']) {
             case 'pin_save':
                 switch ($_REQUEST['pin_action']) {
                     case 'modify':
                         if ($_REQUEST['pin_id'] && $_REQUEST['current_title']) {
                             $this->update_pin($_REQUEST['pin_id'], false, $_REQUEST['current_title']);
                             set_message('Pin modified successfully');
                             redirect_browser($_REQUEST['current_url']);
                         }
                         break;
                     case 'delete':
                         if ($_REQUEST['pin_id']) {
                             $this->delete_pin($_REQUEST['pin_id']);
                             set_message('Pin deleted successfully');
                             redirect_browser($_REQUEST['current_url']);
                         }
                         break;
                     case 'add':
                         if ($_REQUEST['current_url'] && $_REQUEST['current_title']) {
                             $pin_id = $this->add_pin($_REQUEST['current_url'], $_REQUEST['current_title']);
                             if ($pin_id) {
                                 set_message('Pin added successfully');
                             } else {
                                 set_message('Pin already exists');
                             }
                             redirect_browser($_REQUEST['current_url']);
                         }
                         break;
                 }
                 break;
         }
     }
 }
开发者ID:sgh1986915,项目名称:php-crm,代码行数:42,代码来源:pin.php

示例15: init

 function init()
 {
     $this->links = array();
     $this->module_name = "import_export";
     $this->module_position = 8882;
     $this->version = 2.239;
     // 2.2 - exporting groups to CSV (started with customer export)
     // 2.21 - clear 'eys' value from form after generation - support for a non parent() form submission (eg: from finance list)
     // 2.22 - import options moved to a hidden form submit, rather than a long GET url. better!
     // 2.23 - import extra fields (only customer supported at this stage, have to update other callback methods to handle extra saving correctly).
     // 2.231 - fix for download sample file.
     // 2.232 - fix for large file imports
     // 2.233 - error checking with sohusin max_fields setting
     // 2.234 - better handle large imports, option to edit/delete import rows
     // 2.235 - 2013-05-28 - advanced setting import_export_base64 to help with some hosting providers
     // 2.236 - 2014-03-26 - support for summary at bottom of csv file
     // 2.237 - 2014-03-31 - better extra field export support
     // 2.238 - 2014-07-07 - import/export javascript fix
     // 2.239 - 2014-07-14 - better import extra field support
     module_config::register_css('import_export', 'import_export.css');
 }
开发者ID:sgh1986915,项目名称:php-crm,代码行数:21,代码来源:import_export.php


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