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


PHP plugin_manager函数代码示例

本文整理汇总了PHP中plugin_manager函数的典型用法代码示例。如果您正苦于以下问题:PHP plugin_manager函数的具体用法?PHP plugin_manager怎么用?PHP plugin_manager使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: project_tabbed_navigation

/**
 * Prepare dashboard tabbed navigation
 *
 * @param string $selected ID of selected tab
 * @return null
 */
function project_tabbed_navigation($selected = PROJECT_TAB_OVERVIEW)
{
    add_tabbed_navigation_item(new TabbedNavigationItem(PROJECT_TAB_OVERVIEW, lang('overview'), get_url('project', 'index')));
    add_tabbed_navigation_item(new TabbedNavigationItem(PROJECT_TAB_MESSAGES, lang('messages'), get_url('message', 'index')));
    add_tabbed_navigation_item(new TabbedNavigationItem(PROJECT_TAB_TASKS, lang('tasks'), get_url('task', 'index')));
    add_tabbed_navigation_item(new TabbedNavigationItem(PROJECT_TAB_MILESTONES, lang('milestones'), get_url('milestone', 'index')));
    // PLUGIN HOOK
    plugin_manager()->do_action('add_project_tab');
    // PLUGIN HOOK
    tabbed_navigation_set_selected($selected);
}
开发者ID:469306621,项目名称:Languages,代码行数:17,代码来源:project_website.php

示例2: project_tabbed_navigation

/**
 * Prepare dashboard tabbed navigation
 *
 * @param string $selected ID of selected tab
 * @return null
 */
function project_tabbed_navigation($selected = 'overview')
{
    add_filter('tabbed_navigation_items', 'project_tabbed_navigation_filter');
    add_tabbed_navigation_item('overview', 'overview', get_url('project', 'index'));
    add_tabbed_navigation_item('milestones', 'milestones', get_url('milestone', 'index'));
    add_tabbed_navigation_item('tasks', 'tasks', get_url('task', 'index'));
    add_tabbed_navigation_item('messages', 'messages', get_url('message', 'index'));
    // PLUGIN HOOK
    plugin_manager()->do_action('add_project_tab');
    // PLUGIN HOOK
    tabbed_navigation_set_selected($selected);
}
开发者ID:bklein01,项目名称:Project-Pier,代码行数:18,代码来源:project_website.php

示例3: wiki_replace_link_callback

/**
 * Replaces wiki links in format [wiki:{PAGE_ID}] with a textile link to the page
 * 
 * @param mixed $content
 * @return
 */
function wiki_replace_link_callback($matches)
{
    //print_r($matches);
    if (count($matches) >= 2) {
        if (is_numeric($matches[1])) {
            $object_id = $matches[1];
            $object = Wiki::instance()->findById($object_id);
            if ($object instanceof WikiPage) {
                if ($matches[2] == ',content') {
                    $revision = $object->getLatestRevision();
                    return do_textile(plugin_manager()->apply_filters('wiki_text', $revision->getContent()));
                }
                return '<a href="' . externalUrl($object->getViewUrl()) . '" title="' . lang('wiki page') . "({$object_id})" . '">' . $object->getObjectName() . '</a>';
            }
        }
    }
    return '<del>' . lang('invalid reference', $matches[0]) . '</del>';
}
开发者ID:bklein01,项目名称:Project-Pier,代码行数:24,代码来源:wiki.php

示例4: active_project

        ?>
 <div class="icon"><img src="<?php 
        echo active_project()->getLogoUrl();
        ?>
" alt="<?php 
        echo active_project()->getName();
        ?>
" /></div>
<?php 
    }
    // if
    echo clean(active_project()->getName());
    ?>
</div>
  <div class="content"><?php 
    echo plugin_manager()->apply_filters('project_description', do_textile(active_project()->getDescription()));
    ?>
  <div class="clear"></div>
  <div id="pageAttachments">
  <?php 
    if (is_array($page_attachments) && count($page_attachments)) {
        foreach ($page_attachments as $page_attachment) {
            tpl_assign('attachment', $page_attachment);
            if ($page_attachment->getRelObjectManager() != '') {
                if (file_exists(get_template_path('view_' . $page_attachment->getRelObjectManager(), 'page_attachment'))) {
                    $this->includeTemplate(get_template_path('view_' . $page_attachment->getRelObjectManager(), 'page_attachment'));
                } else {
                    $this->includeTemplate(get_template_path('view_DefaultObject', 'page_attachment'));
                }
            } else {
                $this->includeTemplate(get_template_path('view_EmptyAttachment', 'page_attachment'));
开发者ID:noxstyle,项目名称:Project-Pier,代码行数:31,代码来源:overview.php

示例5: account_tabbed_navigation

/**
 * Prepare account tabbed navigation
 *
 * @access public
 * @param string $selected ID of selected tab
 * @return null
 */
function account_tabbed_navigation($selected = ACCOUNT_TAB_MY_ACCOUNT)
{
    add_tabbed_navigation_item(ACCOUNT_TAB_MY_ACCOUNT, 'my account', get_url('account', 'index'));
    // PLUGIN HOOK
    plugin_manager()->do_action('add_my_account_tab');
    // PLUGIN HOOK
    tabbed_navigation_set_selected($selected);
}
开发者ID:federosky,项目名称:ProjectPier-Core,代码行数:15,代码来源:company_website.php

示例6: trace

<?php

trace(__FILE__, 'ProjectMessage::project_tabbed_navigation()');
project_tabbed_navigation();
trace(__FILE__, 'ProjectMessage::canAdd');
if (ProjectMessage::canAdd(logged_user(), active_project())) {
    add_page_action(lang('add message'), get_url('message', 'add'));
}
// if
trace(__FILE__, 'ProjectTaskList::canAdd');
if (ProjectTaskList::canAdd(logged_user(), active_project())) {
    add_page_action(lang('add task list'), get_url('task', 'add_list'));
}
// if
trace(__FILE__, 'ProjectMilestone::canAdd');
if (ProjectMilestone::canAdd(logged_user(), active_project())) {
    add_page_action(lang('add milestone'), get_url('milestone', 'add'));
}
// if
//trace(__FILE__,'project.canChangePermissions()');
//if (active_project()->canChangePermissions(logged_user())) {
//  add_page_action(lang('permissions'), get_url('project', 'permissions'));
//} // if
trace(__FILE__, 'plugin hook');
// PLUGIN HOOK
plugin_manager()->do_action('project_overview_page_actions');
// PLUGIN HOOK
if (use_permitted(logged_user(), active_project(), 'tasks')) {
    add_page_action(lang('download task lists'), get_url('project', 'download_task_lists'));
}
开发者ID:bklein01,项目名称:Project-Pier,代码行数:30,代码来源:pageactions.php

示例7: remove_filter

function remove_filter($tag, $function_to_remove, $priority = 10)
{
    return plugin_manager()->remove_filter($tag, $function_to_remove, $priority);
}
开发者ID:469306621,项目名称:Languages,代码行数:4,代码来源:plugins.php

示例8: plugin_manager

            }
            // if
        }
        // foreach
        ?>
  </ul>
<?php 
    }
    // if
    ?>
</div>
<?php 
}
// if
// PLUGIN HOOK
plugin_manager()->do_action('dashboard_content', $this);
// PLUGIN HOOK
if (config_option('per_project_activity_logs', 0) == 1) {
    if (isset($projects_activity_log) && is_array($projects_activity_log) && count($projects_activity_log)) {
        foreach ($projects_activity_log as $activity_log) {
            if (isset($activity_log) && is_array($activity_log) && count($activity_log)) {
                $project = $activity_log[0]->getProject();
                echo render_project_application_logs($project, $activity_log);
            }
            //if
        }
        //foreach $project
    } else {
        echo lang('no recent activities');
    }
    // if
开发者ID:469306621,项目名称:Languages,代码行数:31,代码来源:index.php

示例9: trace

<?php

trace(__FILE__, 'begin');
/**
 * @author Alex Mayhew
 * @copyright 2008
 */
set_page_title(!$iscurrev ? lang('viewing revision of', $revision->getRevision(), $revision->getName()) : $revision->getName() . ' [' . $revision->getPageId() . ']');
project_tabbed_navigation();
project_crumbs(array(array(lang('wiki'), get_url('wiki')), array($revision->getName())));
if ($page->canAdd(logged_user(), active_project())) {
    add_page_action(lang('add wiki page'), $page->getAddUrl());
}
// if
if ($page->canEdit(logged_user(), active_project()) && !$page->isNew()) {
    add_page_action(lang('edit wiki page'), $page->getEditUrl());
    add_page_action(lang('view page history'), $page->getViewHistoryUrl());
}
// if
if ($page->canDelete(logged_user(), active_project()) && !$page->isNew() && $iscurrev) {
    add_page_action(lang('delete wiki page'), $page->getDeleteUrl());
}
add_page_action(lang('wiki public wiki'), externalUrl(ROOT_URL . '/' . PUBLIC_FOLDER . '/wiki'));
?>

<div id="wiki-page-content"><?php 
echo do_textile(plugin_manager()->apply_filters('wiki_text', do_textile($revision->getContent())));
?>
</div>
开发者ID:bklein01,项目名称:Project-Pier,代码行数:29,代码来源:view.php

示例10: plugin_manager

<div class="emptyAttachment">
<?php 
echo plugin_manager()->apply_filters('pageattachment_text', do_textile($attachment->getText()));
?>
</div>
开发者ID:bklein01,项目名称:Project-Pier,代码行数:5,代码来源:view_EmptyAttachment.php

示例11: tabbed_navigation_items

/**
 * Return all tabbed navigation items
 *
 * @access public
 * @param void
 * @return array
 */
function tabbed_navigation_items()
{
    // PLUGIN HOOK
    return plugin_manager()->apply_filters('tabbed_navigation_items', TabbedNavigation::instance()->getItems());
    // PLUGIN HOOK
}
开发者ID:federosky,项目名称:ProjectPier-Core,代码行数:13,代码来源:tabbednavigation.php

示例12: logged_user

}
// if
if (logged_user()->canUpdatePermissions(logged_user())) {
    ?>
        <li><a href="<?php 
    echo logged_user()->getUpdatePermissionsUrl();
    ?>
"><?php 
    echo lang('update permissions');
    ?>
</a></li>
<?php 
}
// if
// PLUGIN HOOK
plugin_manager()->do_action('my_account_dropdown');
// PLUGIN HOOK
?>
      </ul>
    </li>

    <li><a href=#><img src="<?php 
echo image_url('icons/language.gif');
?>
" /></a><ul>
        <li><span><?php 
echo lang('select language');
?>
:</span></li>
<?php 
$base_language = config_option('installation_base_language', 'en_us');
开发者ID:bklein01,项目名称:Project-Pier,代码行数:31,代码来源:user_box.php

示例13: label_tag

<div id="wiki-field-name">
<?php 
echo label_tag(lang('name'), 'wikiFormName', true);
echo text_field('wiki[name]', $revision->getName(), array('class' => 'long', 'id' => 'wikiFormName'));
?>
</div>
<div id="wiki-field-content">
<?php 
echo label_tag(lang('wiki page content'), 'wikiFormContent', true);
echo textarea_field('wiki[content]', $data['content'], array('cols' => 132, 'class' => 'shot', 'id' => 'wikiFormContent'));
echo submit_button(lang('preview'), 'p', array('name' => 'wiki[preview]'));
echo label_tag(lang('preview'), 'wikiFormPreview', false);
?>
<div class="preview"><?php 
echo do_textile(plugin_manager()->apply_filters('wiki_text', $data['preview_content']));
?>
</div>
</div>
<div id="wiki-field-log">
<?php 
echo label_tag(lang('wiki log message'), 'wikiFormLog');
echo text_field('wiki[log_message]', $page->isNew() ? lang('wiki page created') : '', array('class' => 'long', 'id' => 'wikiFormLog'));
if (plugin_active('tags')) {
    echo label_tag(lang('tags'), 'wikiFormTags');
    echo text_field('wiki[tags]', $tags, array('class' => 'long', 'id' => 'wikiFormTags'));
}
?>
</div>
  <div>
    <?php 
开发者ID:bklein01,项目名称:Project-Pier,代码行数:30,代码来源:edit.php

示例14: tpl_display

<form action="<?php echo $page->getAddUrl() ?>" method="POST">
<?php else: ?>
<form action="<?php echo $page->getEditUrl() ?>" method="POST">
<?php endif;?>
<?php tpl_display(get_template_path('form_errors')) ?>

<div id="wiki-field-name">
<?php echo label_tag(lang('name'), 'wikiFormName', true) ?>
<?php echo text_field('wiki[name]', $revision->getName(), array('class' => 'long', 'id' => 'wikiFormName')) ?>
</div>
<div id="wiki-field-content">
<?php echo label_tag(lang('wiki page content'), 'wikiFormContent', true) ?>
<?php echo textarea_field('wiki[content]', $data['content'], array('cols' => 132, 'class' => 'shot', 'id' => 'wikiFormContent')) ?>
<?php echo submit_button(lang('preview'), 'p', array( 'name' => 'wiki[preview]') ) ?>
<?php echo label_tag(lang('preview'), 'wikiFormPreview', false) ?>
<div class="preview"><?php echo do_textile(plugin_manager()->apply_filters('wiki_text', $data['preview_content'])); ?></div>
</div>
<div id="wiki-field-log">
<?php 
  echo label_tag(lang('wiki log message'), 'wikiFormLog');
  echo text_field('wiki[log_message]', ($page->isNew() ? lang('wiki page created') : ''), array('class' => 'long', 'id' => 'wikiFormLog'));
?>
<?php 
  if (plugin_active('tags')) {
    echo label_tag(lang('tags'), 'wikiFormTags');
    echo text_field('wiki[tags]', $tags, array('class' => 'long', 'id' => 'wikiFormTags'));
  }
?>
</div>
  <div>
    <?php echo label_tag(lang('parent page'), 'wikiFormParentId', true) ?>
开发者ID:pombredanne,项目名称:ArcherSys,代码行数:31,代码来源:edit.php

示例15: lang

    ?>
</div>
<?php 
} else {
    ?>
      <div class="messageAuthor"><?php 
    echo lang('posted on', format_datetime($message->getCreatedOn()));
    ?>
</div>
<?php 
}
// if
?>
      <div class="messageText">
        <?php 
echo plugin_manager()->apply_filters('all_messages_message_text', do_textile($message->getText()));
?>
        <p><a href="<?php 
echo $message->getViewUrl();
?>
"><?php 
echo lang('read more');
?>
</a></p>
      </div>
    <?php 
echo render_object_files($message, $message->canEdit(logged_user()));
?>
      <div class="messageCommentCount">
<?php 
if ($message->countComments()) {
开发者ID:bklein01,项目名称:Project-Pier,代码行数:31,代码来源:view_message.php


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