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


PHP tbg_get_breadcrumblinks函數代碼示例

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


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

示例1: tbg_get_breadcrumblinks

<?php

$tbg_response->addBreadcrumb(__('Release center'), null, tbg_get_breadcrumblinks('project_summary', $selected_project));
$tbg_response->setTitle(__('"%project_name" release center', array('%project_name' => $selected_project->getName())));
include_component('project/projectheader', array('selected_project' => $selected_project, 'subpage' => __('Release center')));
?>
<div id="project_release_center" class="project_info_container">
    <div class="project_right_container">
        <div class="project_right only_active" id="project_release_center_container">
            <?php 
if ($tbg_user->canManageProjectReleases($selected_project)) {
    ?>
                <div class="project_save_container">
                    <div class="button button-silver" onclick="TBG.Main.Helpers.Backdrop.show('<?php 
    echo make_url('get_partial_for_backdrop', array('key' => 'project_build', 'project_id' => $selected_project->getId()));
    ?>
');"><?php 
    echo __('Add new project release');
    ?>
</div>
                    <?php 
    if ($selected_project->isEditionsEnabled()) {
        ?>
                        <div class="button button-silver dropper"><?php 
        echo __('Add edition release');
        ?>
</div>
                        <ul class="rounded_box white shadowed dropdown_box rightie popup_box more_actions_dropdown">
                            <?php 
        foreach ($selected_project->getEditions() as $edition_id => $edition) {
            ?>
開發者ID:RTechSoft,項目名稱:thebuggenie,代碼行數:31,代碼來源:releasecenter.html.php

示例2: tbg_get_breadcrumblinks

<?php

$tbg_response->addBreadcrumb(__('Teams'), null, tbg_get_breadcrumblinks('team_list'));
if ($team instanceof \thebuggenie\core\entities\Team) {
    $tbg_response->setTitle(__('Team dashboard for %team_name', array('%team_name' => $team->getName())));
    $tbg_response->setPage('team');
    $tbg_response->addBreadcrumb(__($team->getName()), make_url('team_dashboard', array('team_id' => $team->getID())));
} else {
    $tbg_response->setTitle(__('Team dashboard'));
    $tbg_response->addBreadcrumb(__('Team dashboard'));
}
?>

<div class="team_dashboard">
    <div class="dashboard_team_info">
        <span class="dashboard_team_header"><?php 
echo $team->getName();
?>
</span><br />
    </div>

    <table class="team_dashboard_table">
        <tr>
            <td class="team_dashboard_projects padded">
                <div class="header">
                    <?php 
echo __('Projects for %team', array('%team' => __($team->getName())));
?>
                        <a style="float: right;" class="button button-silver" href="javascript:void(0);" onclick="TBG.Main.Helpers.Backdrop.show('<?php 
echo make_url('get_partial_for_backdrop', array('key' => 'team_archived_projects', 'tid' => $team->getID()));
?>
開發者ID:founderio,項目名稱:thebuggenie,代碼行數:31,代碼來源:teamdashboard.html.php

示例3: make_url

<?php

$tbg_response->addBreadcrumb(__('Clients'), make_url('client_list'), tbg_get_breadcrumblinks('client_list'));
if ($client instanceof \thebuggenie\core\entities\Client) {
    $tbg_response->setTitle(__('Client dashboard for %client_name', array('%client_name' => $client->getName())));
    $tbg_response->setPage('client');
    $tbg_response->addBreadcrumb($client->getName(), make_url('client_dashboard', array('client_id' => $client->getID())));
} else {
    $tbg_response->setTitle(__('Client dashboard'));
    $tbg_response->addBreadcrumb(__('Client dashboard'));
}
?>

<?php 
if ($client instanceof \thebuggenie\core\entities\Client) {
    ?>
    <div class="client_dashboard">
        <div class="dashboard_client_info">
            <span class="dashboard_client_header"><?php 
    echo $client->getName();
    ?>
</span>
            <table>
                <tr>
                    <td style="padding-right: 10px">
                        <b><?php 
    echo __('Website:');
    ?>
</b> <?php 
    if ($client->getWebsite() == '') {
        ?>
開發者ID:nrensen,項目名稱:thebuggenie,代碼行數:31,代碼來源:clientdashboard.html.php

示例4: tbg_get_pagename

function tbg_get_pagename($page)
{
    $links = tbg_get_breadcrumblinks('project_summary', \thebuggenie\core\framework\Context::getCurrentProject());
    return isset($links[$page]) && $page != 'project_issues' ? $links[$page]['title'] : __('Dashboard');
}
開發者ID:underblaze,項目名稱:thebuggenie-4.1.0,代碼行數:5,代碼來源:common.inc.php

示例5: array

<?php

$tbg_response->setTitle(__('About %sitename', array('%sitename' => TBGSettings::getTBGname())));
$tbg_response->addBreadcrumb(__('About %sitename', array('%sitename' => TBGSettings::getTBGname())), make_url('about'), tbg_get_breadcrumblinks('main_links'));
?>
<div class="rounded_box borderless mediumgrey" style="margin: 10px auto 0 auto; width: 500px; padding: 5px 5px 15px 5px; font-size: 13px; text-align: center;">
	<div style="text-align: left; padding: 10px;">
		<h1 style="font-size: 25px; margin-bottom: 0px; padding-bottom: 3px;">
			The Bug Genie
			<span style="font-size: 14px; font-weight: normal; color: #888;">
				<?php 
echo __('Version %thebuggenie_version', array('%thebuggenie_version' => TBGSettings::getVersion(true)));
?>
			</span>
		</h1>
		<h3 style="margin-top: 0; padding-top: 0;">Beautiful issue tracking and project management</h3>
		<?php 
echo __('The Bug Genie is an issue tracking system with a strong focus on being friendly &ndash; both for regular users and power users');
?>
.<br>
		<br>
		<?php 
echo __('The Bug Genie follows an open development model, and is released under an open source software license called the MPL (Mozilla Public License). This license gives you the freedom to pick up the sourcecode for The Bug Genie and work with it any way you need.');
?>
<br>
		<br>
		<?php 
echo __('Extend, develop and change The Bug Genie in any way you want, and do whatever you want with the new piece of software (The only thing you cannot do is call your software The Bug Genie). Please do send us your modifications for inclusion in The Bug Genie.');
?>
<br>
		<br>
開發者ID:oparoz,項目名稱:thebuggenie,代碼行數:31,代碼來源:about.html.php

示例6: tbg_get_breadcrumblinks

<?php

$tbg_response->addBreadcrumb(__('Team overview'), null, tbg_get_breadcrumblinks('project_summary', $selected_project));
$tbg_response->setTitle(__('"%project_name" project team', array('%project_name' => $selected_project->getName())));
include_component('project/projectheader', array('selected_project' => $selected_project, 'subpage' => __('Team')));
?>
<div id="project_team" class="project_info_container">
    <div id="project_team_container">
        <div style="width: auto;" id="project_team_overview">
            <div class="project_team_list_container">
                <?php 
if (count($assigned_users) == 0) {
    ?>
                    <div style="padding: 5px; color: #AAA; font-size: 12px;"><?php 
    echo __('There are no users assigned to this project');
    ?>
</div>
                <?php 
} else {
    ?>
                    <h3><?php 
    echo __('Assigned users');
    ?>
</h3>
                    <ul class="project_team_list usercard users">
                        <?php 
    foreach ($assigned_users as $user) {
        ?>
                            <li>
                                <div style="padding: 2px; width: 48px; height: 48px; text-align: center; background-color: #FFF; border: 1px solid #DDD; float: left; margin-right: 5px;">
                                    <?php 
開發者ID:RTechSoft,項目名稱:thebuggenie,代碼行數:31,代碼來源:team.html.php

示例7: make_url

<?php

$tbg_response->setTitle(__('Frontpage'));
$tbg_response->addBreadcrumb(__('Frontpage'), make_url('home'), tbg_get_breadcrumblinks('main_links'));
if ($show_project_config_link && $show_project_list) {
    ?>
    <?php 
    if ($project_count == 1) {
        ?>
        <?php 
        include_component('main/hideableInfoBoxModal', array('key' => 'index_single_project_mode', 'title' => __('Only using The Bug Genie to track issues for one project?'), 'template' => 'main/intro_index_single_tracker'));
        ?>
    <?php 
    } elseif ($project_count == 0) {
        ?>
        <?php 
        include_component('main/hideableInfoBoxModal', array('key' => 'index_no_projects', 'title' => __('Get started using The Bug Genie'), 'template' => 'main/intro_index_no_projects'));
        ?>
    <?php 
    }
}
?>
<table style="margin-top: 0px; table-layout: fixed; width: 100%;" cellpadding=0 cellspacing=0>
    <tr>
        <td class="side_bar">
            <?php 
include_component('main/menulinks', array('links' => $links, 'target_type' => 'main_menu', 'target_id' => 0, 'title' => __('Quick links')));
?>
            <?php 
\thebuggenie\core\framework\Event::createNew('core', 'index_left')->trigger();
?>
開發者ID:RTechSoft,項目名稱:thebuggenie,代碼行數:31,代碼來源:index.html.php

示例8: tbg_get_breadcrumblinks

<?php

$tbg_response->addBreadcrumb(__('Clients'), null, tbg_get_breadcrumblinks('main_links'));
if ($client instanceof \thebuggenie\core\entities\Client) {
    $tbg_response->setTitle(__('Client dashboard for %client_name', array('%client_name' => $client->getName())));
    $tbg_response->setPage('client');
    $tbg_response->addBreadcrumb($client->getName(), make_url('client_dashboard', array('client_id' => $client->getID())), tbg_get_breadcrumblinks('client_list'));
} else {
    $tbg_response->setTitle(__('Client dashboard'));
    $tbg_response->addBreadcrumb(__('Client dashboard'));
}
?>

<?php 
if ($client instanceof \thebuggenie\core\entities\Client) {
    ?>
    <div class="client_dashboard">
        <div class="dashboard_client_info">
            <span class="dashboard_client_header"><?php 
    echo $client->getName();
    ?>
</span>
            <table>
                <tr>
                    <td style="padding-right: 10px">
                        <b><?php 
    echo __('Website:');
    ?>
</b> <?php 
    if ($client->getWebsite() == '') {
        ?>
開發者ID:RTechSoft,項目名稱:thebuggenie,代碼行數:31,代碼來源:clientdashboard.html.php

示例9: array

<?php

$tbg_response->setTitle(__('About %sitename', array('%sitename' => \thebuggenie\core\framework\Settings::getSiteHeaderName())));
$tbg_response->addBreadcrumb(__('About %sitename', array('%sitename' => \thebuggenie\core\framework\Settings::getSiteHeaderName())), make_url('about'), tbg_get_breadcrumblinks('main_links'));
?>
<div class="rounded_box borderless mediumgrey" style="margin: 10px auto 0 auto; width: 500px; padding: 5px 5px 15px 5px; font-size: 13px; text-align: center;">
    <div style="text-align: left; padding: 10px;">
        <h1 style="font-size: 25px; margin-bottom: 0px; padding-bottom: 3px;">
            The Bug Genie
            <span style="font-size: 14px; font-weight: normal; color: #888;">
                <?php 
echo __('Version %thebuggenie_version', array('%thebuggenie_version' => \thebuggenie\core\framework\Settings::getVersion(true)));
?>
            </span>
        </h1>
        <h3 style="margin-top: 0; padding-top: 0;">Beautiful issue tracking and project management</h3>
        <?php 
echo __('The Bug Genie is an issue tracking system with a strong focus on being friendly &ndash; both for regular users and power users');
?>
.<br>
        <br>
        <?php 
echo __('The Bug Genie follows an open development model, and is released under an open source software license called the MPL (Mozilla Public License). This license gives you the freedom to pick up the sourcecode for The Bug Genie and work with it any way you need.');
?>
<br>
        <br>
        <?php 
echo __('Extend, develop and change The Bug Genie in any way you want, and do whatever you want with the new piece of software (The only thing you cannot do is call your software The Bug Genie). Please do send us your modifications for inclusion in The Bug Genie.');
?>
<br>
        <br>
開發者ID:RTechSoft,項目名稱:thebuggenie,代碼行數:31,代碼來源:about.html.php

示例10: tbg_get_breadcrumblinks

<?php

$tbg_response->addBreadcrumb(__('Teams'), null, tbg_get_breadcrumblinks('main_links'));
if ($team instanceof TBGTeam) {
    $tbg_response->setTitle(__('Team dashboard for %team_name%', array('%team_name%' => $team->getName())));
    $tbg_response->setPage('team');
    $tbg_response->addBreadcrumb(__($team->getName()), make_url('team_dashboard', array('team_id' => $team->getID())), tbg_get_breadcrumblinks('team_list'));
} else {
    $tbg_response->setTitle(__('Team dashboard'));
    $tbg_response->addBreadcrumb(__('Team dashboard'));
}
?>

<div class="team_dashboard">
	<div class="dashboard_team_info">
		<span class="dashboard_team_header"><?php 
echo $team->getName();
?>
</span><br />
	</div>
	
	<table class="team_dashboard_table">
		<tr>
			<td class="team_dashboard_projects padded">
				<div class="header">
					<?php 
echo __('Projects for %team%', array('%team%' => __($team->getName())));
?>
				</div>
				<?php 
if (count($projects) > 0) {
開發者ID:ronaldbroens,項目名稱:thebuggenie,代碼行數:31,代碼來源:teamdashboard.html.php

示例11: tbg_get_breadcrumblinks

<?php

$tbg_response->addBreadcrumb(__('Project settings'), null, tbg_get_breadcrumblinks('project_settings', $selected_project));
$tbg_response->setTitle(__('"%project_name" settings', array('%project_name' => $selected_project->getName())));
?>
			<?php 
include_template('project/projectheader', array('selected_project' => $selected_project));
?>
			<?php 
include_template('project/projectinfosidebar', array('selected_project' => $selected_project));
?>
			<div style="width: 790px;">
				<?php 
include_component('project/projectconfig', array('project' => $selected_project));
?>
			</div>
		</td>
	</tr>
</table>
<?php 
if ($settings_saved) {
    ?>
	<script type="text/javascript">
		document.observe('dom:loaded', function() {
			TBG.Main.Helpers.Message.success('<?php 
    echo __('Settings saved');
    ?>
', '<?php 
    echo __('Project settings have been saved successfully');
    ?>
');
開發者ID:oparoz,項目名稱:thebuggenie,代碼行數:31,代碼來源:settings.html.php

示例12: make_url

<?php

$tbg_response->addBreadcrumb(__('Teams'), make_url('team_list'), tbg_get_breadcrumblinks('team_list'));
?>

<div class="team_list_header"><?php 
echo __('Teams');
?>
</div>

<div class="team_list">
    <?php 
if (count($teams) > 0) {
    foreach ($teams as $team) {
        if ($team->hasAccess()) {
            include_component('team', array('team' => $team));
        }
    }
} else {
    echo '<div class="no_items">', __('There are no teams.'), '</div>';
}
?>
</div>
開發者ID:nrensen,項目名稱:thebuggenie,代碼行數:23,代碼來源:teamlist.html.php

示例13: isset

<?php

$article_name = isset($article_name) ? $article_name : '';
if (!\thebuggenie\core\framework\Context::isProjectContext() || \thebuggenie\core\framework\Context::isProjectContext() && mb_strtolower($article_name) != mb_strtolower(\thebuggenie\core\framework\Context::getCurrentProject()->getKey() . ':mainpage')) {
    if (\thebuggenie\core\framework\Context::isProjectContext()) {
        $tbg_response->addBreadcrumb(\thebuggenie\core\framework\Context::getModule('publish')->getMenuTitle(), make_url('publish_article', array('article_name' => \thebuggenie\core\framework\Context::getCurrentProject()->getKey() . ':MainPage')), tbg_get_breadcrumblinks('project_summary', \thebuggenie\core\framework\Context::getCurrentProject()));
    } else {
        $tbg_response->addBreadcrumb(\thebuggenie\core\framework\Context::getModule('publish')->getMenuTitle(), make_url('publish_article', array('article_name' => 'MainPage')), tbg_get_breadcrumblinks('main_links'));
    }
    $items = explode(':', $article_name);
    $bcpath = array_shift($items);
    if (mb_strtolower($bcpath) == 'category') {
        $tbg_response->addBreadcrumb(__('Categories'));
        if (\thebuggenie\core\framework\Context::isProjectContext()) {
            $bcpath .= ":" . array_shift($items);
        }
    } elseif (!\thebuggenie\core\framework\Context::isProjectContext() && mb_strtolower($bcpath) != 'mainpage') {
        $tbg_response->addBreadcrumb($bcpath, make_url('publish_article', array('article_name' => $bcpath)));
    }
    foreach ($items as $bc_name) {
        $bcpath .= ":" . $bc_name;
        $tbg_response->addBreadcrumb($bc_name, make_url('publish_article', array('article_name' => $bcpath)));
    }
} else {
    $tbg_response->addBreadcrumb(\thebuggenie\core\framework\Context::getModule('publish')->getMenuTitle(), make_url('publish_article', array('article_name' => \thebuggenie\core\framework\Context::getCurrentProject()->getKey() . ':MainPage')), tbg_get_breadcrumblinks('project_summary', \thebuggenie\core\framework\Context::getCurrentProject()));
}
開發者ID:RTechSoft,項目名稱:thebuggenie,代碼行數:26,代碼來源:_wikibreadcrumbs.inc.php

示例14: make_url

<?php

if ($issue instanceof \thebuggenie\core\entities\Issue) {
    ?>
    <?php 
    $tbg_response->addBreadcrumb(__('Issues'), make_url('project_issues', array('project_key' => \thebuggenie\core\framework\Context::getCurrentProject()->getKey())), tbg_get_breadcrumblinks('project_summary', \thebuggenie\core\framework\Context::getCurrentProject()));
    $tbg_response->addBreadcrumb($issue->getFormattedIssueNo(true, true), make_url('viewissue', array('project_key' => $issue->getProject()->getKey(), 'issue_no' => $issue->getFormattedIssueNo())));
    $tbg_response->setTitle('[' . ($issue->isClosed() ? mb_strtoupper(__('Closed')) : mb_strtoupper(__('Open'))) . '] ' . $issue->getFormattedIssueNo(true) . ' - ' . tbg_decodeUTF8($issue->getTitle()));
    ?>
    <?php 
    \thebuggenie\core\framework\Event::createNew('core', 'viewissue_top', $issue)->trigger();
    ?>
    <div id="issuetype_indicator_fullpage" style="display: none;" class="fullpage_backdrop">
        <div style="position: absolute; top: 45%; left: 40; z-index: 100001; color: #FFF; font-size: 15px; font-weight: bold;">
            <?php 
    echo image_tag('spinning_32.gif');
    ?>
<br>
            <?php 
    echo __('Please wait while updating issue type');
    ?>
...
        </div>
    </div>
    <div id="issue_<?php 
    echo $issue->getID();
    ?>
" class="viewissue_container <?php 
    if ($issue->isBlocking()) {
        echo ' blocking';
    }
開發者ID:shoreless-Limited,項目名稱:thebuggenie,代碼行數:31,代碼來源:viewissue.html.php

示例15: isset

<?php

$article_name = isset($article_name) ? $article_name : '';
if (!TBGContext::isProjectContext() || TBGContext::isProjectContext() && mb_strtolower($article_name) != mb_strtolower(TBGContext::getCurrentProject()->getKey() . ':mainpage')) {
    if (TBGContext::isProjectContext()) {
        $tbg_response->addBreadcrumb(TBGPublish::getModule()->getMenuTitle(), make_url('publish_article', array('article_name' => TBGContext::getCurrentProject()->getKey() . ':MainPage')), tbg_get_breadcrumblinks('project_summary', TBGContext::getCurrentProject()));
    } else {
        $tbg_response->addBreadcrumb(TBGPublish::getModule()->getMenuTitle(), make_url('publish_article', array('article_name' => 'MainPage')), tbg_get_breadcrumblinks('main_links'));
    }
    $items = explode(':', $article_name);
    $bcpath = array_shift($items);
    if (mb_strtolower($bcpath) == 'category') {
        $tbg_response->addBreadcrumb(__('Categories'));
        if (TBGContext::isProjectContext()) {
            $bcpath .= ":" . array_shift($items);
        }
    } elseif (!TBGContext::isProjectContext() && mb_strtolower($bcpath) != 'mainpage') {
        $tbg_response->addBreadcrumb($bcpath, make_url('publish_article', array('article_name' => $bcpath)));
    }
    foreach ($items as $bc_name) {
        $bcpath .= ":" . $bc_name;
        $tbg_response->addBreadcrumb($bc_name, make_url('publish_article', array('article_name' => $bcpath)));
    }
} else {
    $tbg_response->addBreadcrumb(TBGPublish::getModule()->getMenuTitle(), make_url('publish_article', array('article_name' => TBGContext::getCurrentProject()->getKey() . ':MainPage')), tbg_get_breadcrumblinks('project_summary', TBGContext::getCurrentProject()));
}
開發者ID:oparoz,項目名稱:thebuggenie,代碼行數:26,代碼來源:_wikibreadcrumbs.inc.php


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