當前位置: 首頁>>代碼示例>>PHP>>正文


PHP module_add_action_tpl函數代碼示例

本文整理匯總了PHP中module_add_action_tpl函數的典型用法代碼示例。如果您正苦於以下問題:PHP module_add_action_tpl函數的具體用法?PHP module_add_action_tpl怎麽用?PHP module_add_action_tpl使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了module_add_action_tpl函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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


注:本文中的module_add_action_tpl函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。