本文整理汇总了PHP中module_add_action函数的典型用法代码示例。如果您正苦于以下问题:PHP module_add_action函数的具体用法?PHP module_add_action怎么用?PHP module_add_action使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了module_add_action函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<?php
if (defined('mnminclude')) {
include_once 'angular_js_settings.php';
$include_in_pages = array('module');
$do_not_include_in_pages = array();
$include_in_pages = array('all');
if (do_we_load_module()) {
if (is_object($main_smarty)) {
$main_smarty->plugins_dir[] = angular_js_plugins_path;
module_add_action_tpl('tpl_pligg_head_end', angular_js_tpl_path . 'angular_js.tpl');
}
$moduleName = $_REQUEST['module'];
if ($moduleName == 'angular_js') {
//
module_add_action('module_page', 'ajaxchat_showpage', '');
//
module_add_js(angular_js_path . 'js/functionAddEvent.js');
module_add_js(angular_js_path . 'js/contact.js');
module_add_js(angular_js_path . 'js/xmlHttp.js');
include_once mnmmodules . 'angular_js/angular_js_main.php';
}
}
}
示例2: module_add_action
if ($moduleName == 'upload') {
module_add_action('module_page', 'upload_showpage', '');
include_once mnmmodules . 'upload/upload_main.php';
}
}
$include_in_pages = array('all');
if (do_we_load_module()) {
include_once mnmmodules . 'upload/upload_main.php';
module_add_action('lib_link_summary_fill_smarty', 'upload_track', '');
module_add_action('admin_story_delete', 'upload_delete', '');
$place = get_misc_data('upload_place');
$fileplace = get_misc_data('upload_fileplace');
module_add_action_tpl($place, upload_tpl_path . '/upload_thumb.tpl');
module_add_action_tpl($fileplace, upload_tpl_path . '/upload_links.tpl');
module_add_action_tpl('tpl_header_admin_main_links', upload_tpl_path . 'upload_admin_main_link.tpl');
}
$include_in_pages = array('submit', 'story');
if (do_we_load_module()) {
// module_add_action('do_submit2', 'upload_do_submit2','');
include_once mnmmodules . 'upload/upload_main.php';
module_add_action_tpl('tpl_pligg_submit_step2_start', upload_tpl_path . '/upload_files.tpl');
// module_add_action_tpl('submit_step_2_pre_extrafields', upload_tpl_path . '/upload_files.tpl');
}
$include_in_pages = array('editlink');
if (do_we_load_module()) {
module_add_action('edit_link_hook', 'upload_edit_link', '');
include_once mnmmodules . 'upload/upload_main.php';
module_add_action_tpl('tpl_pligg_submit_step2_start', upload_tpl_path . '/upload_files.tpl');
// module_add_action_tpl('submit_step_2_pre_extrafields', upload_tpl_path . '/edit_files.tpl');
}
}
示例3: array
<?php
if (defined('mnminclude')) {
include_once 'simple_messaging_settings.php';
// tell pligg what pages this modules should be included in
// pages are <script name> minus .php
// index.php becomes 'index' and new.php becomes 'new'
$include_in_pages = array('all');
$do_not_include_in_pages = array();
if (do_we_load_module()) {
module_add_action('all_pages_top', 'get_new_messages', '');
// show the inbox link in the menus on the top
module_add_action_tpl('tpl_pligg_navbar_end', simple_messaging_tpl_path . 'inbox_link_in_menu.tpl');
if (isset($_REQUEST['module'])) {
$moduleName = $_REQUEST['module'];
} else {
$moduleName = '';
}
if ($moduleName == 'simple_messaging') {
module_add_action('module_page', 'simple_messaging_showpage', '');
module_add_action_tpl('tpl_pligg_breadcrumb_end', simple_messaging_tpl_path . 'breadcrumb.tpl');
}
include_once mnmmodules . 'simple_messaging/simple_messaging_main.php';
}
}
示例4: array
<?php
include_once 'openid_settings.php';
// tell pligg what pages this modules should be included in
// pages are <script name> minus .php
// index.php becomes 'index' and upcoming.php becomes 'upcoming'
$do_not_include_in_pages = array();
$include_in_pages = array('login');
if (do_we_load_module()) {
if (is_object($main_smarty)) {
$main_smarty->plugins_dir[] = openid_plugins_path;
}
module_add_action_tpl('tpl_login_top', openid_tpl_path . 'openid_login_top.tpl');
}
$include_in_pages = array('module');
if (do_we_load_module()) {
$moduleName = $_REQUEST['module'];
if ($moduleName == 'openid') {
module_add_action('module_page', 'openid_showpage', '');
include_once mnmmodules . 'openid/openid_main.php';
}
}
示例5: array
<?php
if (defined('mnminclude')) {
include_once 'admin_help_english_settings.php';
// tell pligg what pages this modules should be included in
// pages are <script name> minus .php
// index.php becomes 'index'
$include_in_pages = array('all');
$do_not_include_in_pages = array();
if (do_we_load_module()) {
module_add_action_tpl('tpl_header_admin_main_links', admin_help_english_tpl_path . 'admin_help_english_admin_main_link.tpl');
module_add_action_tpl('tpl_pligg_admin_legend_before', admin_help_english_tpl_path . 'admin_help_legend.tpl');
}
$include_in_pages = array('module');
if (do_we_load_module()) {
$moduleName = $_REQUEST['module'];
if ($moduleName == 'admin_help_english') {
module_add_action('module_page', 'admin_help_english_showpage', '');
include_once mnmmodules . 'admin_help_english/admin_help_english_main.php';
}
}
}
示例6: array
<?php
include_once 'image_upload_settings.php';
// tell pligg what pages this modules should be included in
// pages are <script name> minus .php
// index.php becomes 'index' and shakeit.php becomes 'shakeit'
$include_in_pages = array('all');
$do_not_include_in_pages = array();
if (do_we_load_module()) {
module_add_action('image_upload_process', 'image_upload_process_handler', '');
module_add_action('image_upload_preview', 'image_upload_preview_handler', '');
module_add_action('image_upload_form', 'image_upload_form_handler', '');
// future use
# module_add_action('image_upload_delete', 'image_upload_delete_handler', '');
include_once mnmmodules . 'image_upload/image_upload_main.php';
}
示例7: array
<?php
if (defined('mnminclude')) {
include_once 'multibox_admin_settings.php';
// tell pligg what pages this modules should be included in
// pages are <script name> minus .php
// index.php becomes 'index'
$include_in_pages = array('all');
$do_not_include_in_pages = array();
if (do_we_load_module()) {
module_add_action_tpl('tpl_pligg_admin_head_start', multibox_admin_tpl_path . 'multibox_admin_head_start.tpl');
module_add_action_tpl('tpl_pligg_admin_body_end', multibox_admin_tpl_path . 'multibox_admin_body_end.tpl');
}
$include_in_pages = array('module');
if (do_we_load_module()) {
$moduleName = $_REQUEST['module'];
if ($moduleName == 'multibox_admin') {
module_add_action('module_page', 'multibox_admin_showpage', '');
include_once mnmmodules . 'multibox_admin/multibox_admin_main.php';
}
}
}
示例8: array
<?php
include_once 'sidebar_tweets_settings.php';
$do_not_include_in_pages = array();
$include_in_pages = array('all');
if (do_we_load_module()) {
if (is_object($main_smarty)) {
$main_smarty->plugins_dir[] = sidebar_tweets_plugins_path;
module_add_action_tpl('tpl_pligg_sidebar_end', sidebar_tweets_tpl_path . 'sidebar_tweets_index.tpl');
}
}
// Settings page in the admin panel
$include_in_pages = array('module', 'admin_index', 'admin_widgets', 'admin_modules', 'admin_links', 'admin_comments', 'admin_users', 'admin_config', 'admin_categories', 'admin_page', 'admin_group', 'admin_editor');
if (do_we_load_module()) {
module_add_action_tpl('tpl_header_admin_main_links', sidebar_tweets_tpl_path . 'sidebar_tweets_link.tpl');
$moduleName = $_REQUEST['module'];
if ($moduleName == 'sidebar_tweets') {
module_add_action('module_page', 'sidebar_tweets_showpage', '');
include_once mnmmodules . 'sidebar_tweets/sidebar_tweets_main.php';
}
}
示例9: array
<?php
if (defined('mnminclude')) {
include_once 'embed_videos_settings.php';
// tell pligg what pages this modules should be included in
// pages are <script name> minus .php
// index.php becomes 'index' and upcoming.php becomes 'upcoming'
$include_in_pages = array('all');
$do_not_include_in_pages = array();
if (do_we_load_module()) {
module_add_action('lib_link_summary_fill_smarty', 'embed_videos_lib_link_summary_fill_smarty', '');
module_add_action_tpl('tpl_link_summary_pre_story_content', embed_videos_tpl_path . 'link_summary_pre_story_content.tpl');
include_once mnmmodules . 'embed_videos/embed_videos_main.php';
}
}
示例10: array
<?php
if (defined('mnminclude')) {
include_once 'profiles_settings.php';
// tell pligg what pages this modules should be included in
// pages are <script name> minus .php
// index.php becomes 'index' and upcoming.php becomes 'upcoming'
$include_in_pages = array('user', 'profile');
$do_not_include_in_pages = array();
if (do_we_load_module()) {
// execute the function that retreives extra profile data
module_add_action('index_top', 'profiles_retrieve', '');
module_add_action_tpl('tpl_pligg_profile_info_middle', profiles_tpl_path . 'profile_extend.tpl');
include_once mnmmodules . 'profiles/profiles_main.php';
include_once mnmmodules . 'profiles/profiles_main.php';
}
}
示例11: array
<?php
if (defined('mnminclude')) {
include_once 'random_story_settings.php';
// tell pligg what pages this modules should be included in
// pages are <script name> minus .php
// index.php becomes 'index' and upcoming.php becomes 'upcoming'
$include_in_pages = array('all');
$do_not_include_in_pages = array();
if (do_we_load_module()) {
module_add_action('all_pages_top', 'random_story_getdata', '');
module_add_action_tpl('tpl_sidebar_top', random_story_tpl_path . 'random_story.tpl');
include_once mnmmodules . 'random_story/random_story_main.php';
}
}
示例12: Copyright
/*
XML Sitemaps module for Pligg
Copyright (C) 2007-2008 Secasiu Mihai - http://patchlog.com
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
if (defined('mnminclude')) {
include_once 'xml_sitemaps_settings.php';
$include_in_pages = array('all');
$do_not_include_in_pages = array();
if (do_we_load_module()) {
if ($moduleName == 'xml_sitemaps_show_sitemap') {
module_add_action('module_page', 'xml_sitemaps_show_sitemap', '');
include_once mnmmodules . 'xml_sitemaps/xml_sitemaps_main.php';
}
module_add_action('do_submit3', 'xml_sitemaps_sites_ping', '');
include_once mnmmodules . 'xml_sitemaps/xml_sitemaps_main.php';
}
}
示例13: array
<?php
if (defined('mnminclude')) {
include_once 'users_extra_fields_settings.php';
// tell pligg what pages this modules should be included in
// pages are <script name> minus .php
// index.php becomes 'index' and upcoming.php becomes 'upcoming'
$include_in_pages = array('all');
$do_not_include_in_pages = array();
if (do_we_load_module()) {
module_add_action('story_top', 'users_extra_fields_story_top', '');
module_add_action('admin_users_save', 'users_extra_fields_admin_users_save', '');
module_add_action('admin_users_view', 'users_extra_fields_admin_users_view', '');
module_add_action('admin_users_edit', 'users_extra_fields_admin_users_edit', '');
module_add_action('profile_save', 'users_extra_fields_profile_save', '');
module_add_action('profile_show', 'users_extra_fields_profile_show', '');
module_add_action_tpl('tpl_profile_center_fields', users_extra_fields_tpl_path . 'profile_center_fields.tpl');
module_add_action_tpl('tpl_admin_user_edit_center_fields', users_extra_fields_tpl_path . 'admin_user_edit_center_fields.tpl');
module_add_action_tpl('tpl_admin_user_show_center_fields', users_extra_fields_tpl_path . 'admin_user_show_center_fields.tpl');
// ***********************************************
// call the extended profile display templates
// we add a module_add_action_tpl for every tpl file we create
// ***********************************************
// to load the Age template field ** 1 **
module_add_action_tpl('tpl_show_extra_profile_age', users_extra_fields_tpl_path . 'profile_extend_age.tpl');
// to load the Gender template field ** 2 **
module_add_action_tpl('tpl_show_extra_profile_gender', users_extra_fields_tpl_path . 'profile_extend_gender.tpl');
// to load the university/college template field ** ? **
module_add_action_tpl('tpl_show_extra_profile_university', users_extra_fields_tpl_path . 'profile_extend_university.tpl');
// to load the Status template field ** 3 **
module_add_action_tpl('tpl_show_extra_profile_status', users_extra_fields_tpl_path . 'profile_extend_status.tpl');
示例14: array
<?php
if (defined('mnminclude')) {
include_once 'template_management_settings.php';
// tell pligg what pages this modules should be included in
// pages are <script name> minus .php
// index.php becomes 'index' and shakeit.php becomes 'shakeit'
$do_not_include_in_pages = array();
$include_in_pages = array('all');
if (do_we_load_module()) {
module_add_action_tpl('tpl_header_admin_main_links', template_management_tpl_path . 'template_management_admin_main_link.tpl');
}
$include_in_pages = array('module');
if (do_we_load_module()) {
$moduleName = $_REQUEST['module'];
if ($moduleName == 'template_management') {
module_add_action('module_page', 'template_management_showpage', '');
module_add_js(template_management_path . 'js/EditInPlaceAF.js');
include_once mnmmodules . 'template_management/template_management_main.php';
}
}
}
示例15: array
<?php
if (defined('mnminclude')) {
include_once 'pligg_web_toolbar_settings.php';
include_once mnmmodules . 'pligg_web_toolbar/pligg_web_toolbar_main.php';
$do_not_include_in_pages = array();
$include_in_pages = array('all');
if (do_we_load_module()) {
module_add_action_tpl('tpl_header_admin_main_links', pligg_web_toolbar_tpl_path . 'pligg_web_toolbar_admin_main_link.tpl');
module_add_action('story_top', 'pligg_web_toolbar_story', '');
module_add_action('pligg_web_toolbar', 'pligg_web_toolbar_display', '');
}
$include_in_pages = array('module');
if (do_we_load_module()) {
$moduleName = $_REQUEST['module'];
if ($moduleName == 'pligg_web_toolbar') {
module_add_action('module_page', 'pligg_web_toolbar_showpage', '');
}
}
}