本文整理汇总了PHP中module_add_action_tpl函数的典型用法代码示例。如果您正苦于以下问题:PHP module_add_action_tpl函数的具体用法?PHP module_add_action_tpl怎么用?PHP module_add_action_tpl使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了module_add_action_tpl函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: array
<?php
include_once 'wistie_avatars_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('all');
if (do_we_load_module()) {
if (is_object($main_smarty)) {
$main_smarty->plugins_dir[] = wistie_avatars_plugins_path;
module_add_action_tpl('tpl_pligg_story_title_start', wistie_avatars_tpl_path . 'wistie_avatars_index.tpl');
}
// module_add_action_tpl('tpl_pligg_below_center', wistie_avatars_tpl_path . '<your tpl name>.tpl');
}
开发者ID:pantofla,项目名称:waterfan,代码行数:15,代码来源:wistie_avatars_init.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');
}
}
开发者ID:Grprashanthkumar,项目名称:ColfusionWeb,代码行数:31,代码来源:upload_init.php
示例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';
}
}
开发者ID:hyrmedia,项目名称:pligg-cms,代码行数:25,代码来源:simple_messaging_init.php
示例4: array
<?php
include_once 'social_bookmark_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'
$do_not_include_in_pages = array();
$include_in_pages = array('all');
if (do_we_load_module()) {
if (is_object($main_smarty)) {
module_add_action_tpl('tpl_pligg_story_tools_end', social_bookmark_tpl_path . 'social_bookmark_index.tpl');
}
}
开发者ID:bendroid,项目名称:pligg-cms,代码行数:13,代码来源:social_bookmark_init.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';
}
}
}
开发者ID:pantofla,项目名称:waterfan,代码行数:22,代码来源:admin_help_english_init.php
示例6: 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';
}
}
}
开发者ID:pantofla,项目名称:waterfan,代码行数:22,代码来源:multibox_admin_init.php
示例7: 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';
}
}
开发者ID:hyrmedia,项目名称:modules,代码行数:22,代码来源:openid_init.php
示例8: 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';
}
}
开发者ID:hyrmedia,项目名称:modules,代码行数:15,代码来源:embed_videos_init.php
示例9: array
<?php
if (defined('mnminclude')) {
include_once 'hello_world_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', hello_world_tpl_path . 'hello_world_admin_main_link.tpl');
}
$include_in_pages = array('module');
if (do_we_load_module()) {
$moduleName = $_REQUEST['module'];
if ($moduleName == 'hello_world') {
module_add_action('module_page', 'hello_world_showpage', '');
include_once mnmmodules . 'hello_world/hello_world_main.php';
}
}
}
开发者ID:pantofla,项目名称:waterfan,代码行数:21,代码来源:hello_world_init.php
示例10: array
<?php
include_once 'sidebar_saved_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_saved_plugins_path;
module_add_action_tpl('tpl_pligg_sidebar_end', sidebar_saved_tpl_path . 'sidebar_saved_index.tpl');
}
}
开发者ID:Grprashanthkumar,项目名称:ColfusionWeb,代码行数:11,代码来源:sidebar_saved_init.php
示例11: array
<?php
include_once 'variable_viewer_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('all');
if (do_we_load_module()) {
if (is_object($main_smarty)) {
$main_smarty->plugins_dir[] = variable_viewer_plugins_path;
module_add_action_tpl('tpl_pligg_body_start', variable_viewer_tpl_path . 'variable_viewer_index.tpl');
}
// module_add_action_tpl('tpl_pligg_below_center', variable_viewer_tpl_path . '<your tpl name>.tpl');
}
开发者ID:hyrmedia,项目名称:modules,代码行数:15,代码来源:variable_viewer_init.php
示例12: array
<?php
include_once 'tinymce_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()) {
$loadable_js_files = array();
$canIhaveAccess = 0;
$canIhaveAccess = $canIhaveAccess + checklevel('admin');
module_add_action_tpl('tpl_pligg_head_end', tinymce_tpl_path . 'tinymce.tpl');
module_add_action_tpl('tpl_pligg_admin_head_end', tinymce_tpl_path . 'tinymce.tpl');
}
开发者ID:hyrmedia,项目名称:modules,代码行数:15,代码来源:tinymce_init.php
示例13: 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';
}
}
开发者ID:hyrmedia,项目名称:modules,代码行数:21,代码来源:sidebar_tweets_init.php
示例14: array
<?php
include_once 'addthis_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('all');
if (do_we_load_module()) {
if (is_object($main_smarty)) {
$main_smarty->plugins_dir[] = addthis_plugins_path;
module_add_action_tpl('tpl_pligg_story_tools_end', addthis_tpl_path . 'addthis_index.tpl');
}
// module_add_action_tpl('tpl_pligg_story_tools_end', addthis_tpl_path . '<your tpl name>.tpl');
}
开发者ID:nicefirework,项目名称:modules,代码行数:15,代码来源:addthis_init.php
示例15: array
<?php
if (defined('mnminclude')) {
include_once 'rss_import_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'
$do_not_include_in_pages = array();
$include_in_pages = array('all');
if (do_we_load_module()) {
// add the rss_import menu options for admin
module_add_action_tpl('tpl_header_admin_main_links', rss_import_tpl_path . 'rss_import_admin_main_link.tpl');
}
$include_in_pages = array('module');
if (do_we_load_module()) {
$moduleName = $_REQUEST['module'];
if ($moduleName == 'rss_import') {
module_add_action('module_page', 'rss_import_showpage', '');
include_once mnmmodules . 'rss_import/rss_import_main.php';
}
if ($moduleName == 'rss_import_do_import') {
module_add_action('module_page', 'rss_import_do_import', '');
include_once mnmmodules . 'rss_import/rss_import_main.php';
}
}
}
开发者ID:hyrmedia,项目名称:modules,代码行数:26,代码来源:rss_import_init.php
示例16: array
<?php
if (defined('mnminclude')) {
include_once 'captcha_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_tpl('tpl_header_admin_main_links', captcha_tpl_path . 'captcha_admin_main_link.tpl');
module_add_action('register_showform', 'captcha_register', '');
module_add_action('register_check_errors', 'captcha_register_check_errors', '');
$moduleName = isset($_REQUEST['module']) ? $_REQUEST['module'] : '';
if ($moduleName == 'captcha') {
module_add_action('module_page', 'captcha_showpage', '');
}
include_once mnmmodules . 'captcha/captcha_main.php';
}
}
开发者ID:pantofla,项目名称:waterfan,代码行数:20,代码来源:captcha_init.php
示例17: array
<?php
if (defined('mnminclude')) {
include_once 'akismet_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', 'akismet_top', '');
$canIhaveAccess = 0;
$canIhaveAccess = $canIhaveAccess + checklevel('god');
if ($canIhaveAccess == 1) {
// show the inbox link in the menus on the top
module_add_action_tpl('tpl_sidebar_logged_in_just_below_profile', akismet_tpl_path . 'spam_link_in_menu.tpl');
}
module_add_action_tpl('tpl_header_admin_main_links', akismet_tpl_path . 'akismet_admin_main_link.tpl');
module_add_action('do_submit3', 'akismet_check_submit', '');
module_add_action('comment_save', 'akismet_save_comment', '');
if (isset($_REQUEST['module'])) {
$moduleName = $_REQUEST['module'];
} else {
$moduleName = '';
}
if ($moduleName == 'akismet') {
module_add_action('module_page', 'akismet_showpage', '');
}
include_once mnmmodules . 'akismet/akismet_main.php';
}
}
开发者ID:pantofla,项目名称:waterfan,代码行数:31,代码来源:akismet_init.php
示例18: array
<?php
include_once 'queue_bar_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('all');
if (do_we_load_module()) {
if (is_object($main_smarty)) {
$main_smarty->plugins_dir[] = queue_bar_plugins_path;
module_add_action_tpl('tpl_pligg_sidebar_start', queue_bar_tpl_path . 'queue_bar_index.tpl');
}
// module_add_action_tpl('tpl_pligg_below_center', queue_bar_tpl_path . '<your tpl name>.tpl');
}
开发者ID:pantofla,项目名称:geez,代码行数:15,代码来源:queue_bar_init.php
示例19: array
<?php
if (defined('mnminclude')) {
include_once 'send_announcement_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('all');
if (do_we_load_module()) {
module_add_action_tpl('tpl_header_admin_main_links', send_announcement_tpl_path . 'sendannouncement_admin_main_link.tpl');
}
$include_in_pages = array('module');
if (do_we_load_module()) {
$moduleName = $_REQUEST['module'];
if ($moduleName == 'sendannouncement') {
module_add_action('module_page', 'sendannouncement_showpage', '');
include_once mnmmodules . 'send_announcement/send_announcement_main.php';
}
}
}
开发者ID:Grprashanthkumar,项目名称:ColfusionWeb,代码行数:21,代码来源:send_announcement_init.php
示例20: array
<?php
if (defined('mnminclude')) {
include_once 'email_article_settings.php';
$include_in_pages = array('all');
$do_not_include_in_pages = array();
if (do_we_load_module()) {
module_add_action_tpl('tpl_pligg_story_tools_end', email_article_tpl_path . 'email_article.tpl');
}
}
开发者ID:hyrmedia,项目名称:modules,代码行数:10,代码来源:email_article_init.php
注:本文中的module_add_action_tpl函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论