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


PHP Breadcrumbs::render方法代碼示例

本文整理匯總了PHP中Breadcrumbs::render方法的典型用法代碼示例。如果您正苦於以下問題:PHP Breadcrumbs::render方法的具體用法?PHP Breadcrumbs::render怎麽用?PHP Breadcrumbs::render使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Breadcrumbs的用法示例。


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

示例1: getList

 protected function getList()
 {
     if ($this->request->has('task')) {
         $taskId = $this->request->input('task');
         /** @var Task $task */
         $task = Task::findOrFail($taskId);
         $this->pageTitle = ' Submissions for ' . $task->name;
         $this->breadcrumbs = \Breadcrumbs::render('task-submissions', $task);
         return Submission::where('taskId', $taskId)->orderBy('createdAt', 'DESC');
     } else {
         return Submission::orderBy('createdAt', 'DESC');
     }
 }
開發者ID:stickableapp,項目名稱:stickable-api,代碼行數:13,代碼來源:SubmissionsController.php

示例2: test_should_validate_rendered_breadcrumbs

    /**
     * @test
     * @group breadcrumbs
     */
    public function test_should_validate_rendered_breadcrumbs()
    {
        Breadcrumbs::add(Breadcrumb::factory()->set_title("Crumb 1")->set_url("http://example.com/"));
        Breadcrumbs::add(Breadcrumb::factory()->set_title("Crumb 2"));
        $expected = <<<EOL
<ul id="breadcrumbs">
\t<li><a href="http://example.com/">Crumb 1</a></li>
\t<li>Crumb 2</li>
</ul>

EOL;
        ob_end_clean();
        ob_start();
        Breadcrumbs::render();
        $actual = ob_get_contents();
        ob_end_clean();
        $this->assertSame($expected, $actual);
    }
開發者ID:kierangraham,項目名稱:breadcrumbs,代碼行數:22,代碼來源:BreadcrumbsTest.php

示例3: breadcrumbs

/**
 * Render all the dropped breadcrumbs
 *
 * @return mixed
 */
function breadcrumbs()
{
    return \Breadcrumbs::render();
}
開發者ID:andycrockett,項目名稱:andycrockett,代碼行數:9,代碼來源:helpers.php

示例4: e

<?php

$__env->startSection('content');
?>

<?php 
echo Breadcrumbs::render('lotes');
?>


<div class="panel panel-default">
	<!-- Default panel contents -->
	<div class="panel-heading">
		Gestor de Lotes
	</div>

	<div class="panel-body">
		<!-- Nav tabs -->
		<ul class="nav nav-tabs">
			<li class="active">
				<a href="<?php 
echo e(url('lotes'));
?>
">Conjuntos</a>
			</li>
			<li>
				<a href="<?php 
echo e(url('lotes/pecas'));
?>
">Peças</a>
			</li>
開發者ID:system3d,項目名稱:gestor-de-lotes,代碼行數:31,代碼來源:d11dac89ee562dfcbe010356575d7827ef442c45.php

示例5: __

        <?php 
    echo View::factory('alert_terms');
    ?>
    <?php 
}
?>

	<?php 
echo $header;
?>
    <div class="container bs-docs-container">
        <div class="row">
            
            <div class="col-xs-9">
                <?php 
echo Breadcrumbs::render('breadcrumbs');
?>
                <?php 
echo Alert::show();
?>
                <?php 
echo $content;
?>
            </div><!--/span-->
            <?php 
echo FORM::open(Route::url('search'), array('class' => 'col-xs-3', 'method' => 'GET', 'action' => ''));
?>
                <div class="form-group">
                    <input type="text" name="search" class="search-query form-control" placeholder="<?php 
echo __('Search');
?>
開發者ID:Wildboard,項目名稱:WbWebApp,代碼行數:31,代碼來源:main.php

示例6: testRender

 public function testRender()
 {
     $html = Breadcrumbs::render('post', $this->post);
     $this->assertXmlStringEqualsXmlFile(__DIR__ . '/../fixtures/integration.html', $html);
 }
開發者ID:AdaptiveAds,項目名稱:AdaptiveAds,代碼行數:5,代碼來源:IntegrationTest.php

示例7: array

?>
	    
		<?php 
echo core::get('print') == 1 ? '' : View::factory('oc-panel/sidebar', array('user' => $user));
?>
    <div class="bs-docs-nav">
    <div class="alert alert-warning off-line" style="display:none;"><strong><?php 
echo __('Warning');
?>
!</strong> <?php 
echo __('We detected you are currently off-line, please connect to gain full experience.');
?>
</div>
			<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 main pull-left" id="content">
				<?php 
echo core::get('print') == 1 ? '' : Breadcrumbs::render('oc-panel/breadcrumbs');
?>
      
				<?php 
echo Alert::show();
?>
                <?php 
if (!isset($_COOKIE['donation_alert']) and Theme::get('premium') != 1 and $user->id_role == Model_Role::ROLE_ADMIN) {
    ?>
                   <div class="alert alert-warning fade in">
                    <button type="button" class="close" data-dismiss="alert" aria-hidden="true" onclick='setCookie("donation_alert",1,7)'>×</button>
                    <h4><?php 
    echo __('Help us to improve!');
    ?>
</h4>
                    <p><?php 
開發者ID:alirezadamash,項目名稱:open-eshop,代碼行數:31,代碼來源:main.php

示例8: __

        .nav-header{margin-left: 10px;}

    </style>

  </head>

  <body>
	<?php 
echo $header;
?>
    <div class="container">
	    <div class="row">
	    	
	    	<div class="col-md-12">
	    		<?php 
echo Breadcrumbs::render('oc-panel/breadcrumbs');
?>
	    		<?php 
echo Alert::show();
?>
	    	</div><!--/span--> 

	    	<div class="col-md-8">
                <div class="page-header">
                    <h2><?php 
echo __('Available widgets');
?>
</h2>
                    <a href="http://open-classifieds.com/2013/08/26/overview-of-widgets/" target="_blank"><?php 
echo __('Read more');
?>
開發者ID:Wildboard,項目名稱:WbWebApp,代碼行數:31,代碼來源:main.php

示例9: e

<?php

$__env->startSection('content');
?>

<?php 
echo Breadcrumbs::render('pecas');
?>


<div class="panel panel-default">
	<!-- Default panel contents -->
	<div class="panel-heading">
		Gestor de Lotes
	</div>

	<div class="panel-body">
	    <!-- Nav tabs -->
	    <ul class="nav nav-tabs">
	        <li>
	            <a href="<?php 
echo e(url('lotes'));
?>
">Conjuntos</a>
	        </li>
	        <li class="active">
	            <a href="<?php 
echo e(url('lotes/pecas'));
?>
">Peças</a>
	        </li>
開發者ID:system3d,項目名稱:gestor-de-lotes,代碼行數:31,代碼來源:827d7c2260398ae2c690fffb1566e3d7946e4b43.php

示例10: framework_breadcrumb

/**
 *
 */
function framework_breadcrumb()
{
    $breadcrumb = new Breadcrumbs();
    $breadcrumb->render();
}
開發者ID:sube1even,項目名稱:azWCtYsMP34bXs,代碼行數:8,代碼來源:breadcrumbs.php

示例11: getShowData

 public function getShowData($instance)
 {
     return ['breadcrumbs' => \Breadcrumbs::render('sticker', $instance), 'relations' => [['title' => 'Designs', 'url' => 'sticker-designs', 'createButton' => ['New Design', '/sticker-designs/create?stickerId=' . $instance->id], 'items' => $instance->designs, 'fields' => StickerDesignsController::getListFields()], ['title' => 'Tasks', 'url' => 'tasks', 'createButton' => ['New Task', '/tasks/create?stickerId=' . $instance->id], 'items' => $instance->tasks, 'fields' => TasksController::getListFields()]]];
 }
開發者ID:stickableapp,項目名稱:stickable-api,代碼行數:4,代碼來源:StickersController.php

示例12: getShowData

 protected function getShowData($instance)
 {
     return ['breadcrumbs' => \Breadcrumbs::render('task', $instance), 'relations' => [['title' => 'Submissions', 'url' => 'submissions', 'items' => $instance->submissions, 'fields' => SubmissionsController::getListFields()]]];
 }
開發者ID:stickableapp,項目名稱:stickable-api,代碼行數:4,代碼來源:TasksController.php

示例13: after

 public function after()
 {
     $this->template_filter();
     $controller = $this->request->controller();
     $action = $this->request->action();
     $page_description = Kohana::message('page_title', $controller . '_' . $action . '.description');
     $page_title = Kohana::message('page_title', $controller . '_' . $action . '.title');
     $breadcrumbs = Breadcrumbs::render();
     $this->content = str_replace('replace_here_page_description', $page_description, $this->content);
     $this->content = str_replace('replace_here_page_title', $page_title, $this->content);
     if ($this->request->is_ajax() || !$this->request->is_initial()) {
         $this->response->body($this->content);
     } else {
         $title = 'Kode Learn';
         $styles = array('media/css/reset.css' => 'screen', 'media/css/components.css' => 'screen', 'media/css/kodelearn.css' => 'screen', 'media/css/jquery-ui-1.8.14.custom.css' => 'screen');
         $scripts = array('media/javascript/jquery-1.6.2.min.js', 'media/javascript/common.js', 'media/javascript/classes.js', 'media/javascript/events.js', 'media/javascript/ajaxupload.js', 'media/javascript/jquery-ui-1.8.14.custom.min.js', 'media/javascript/jquery-ui-timepicker-addon.js', 'media/javascript/kodelearnUI.js', 'media/javascript/jquery.watermark.min.js', 'media/javascript/jquery.flip.js');
         $this->view->set('content', $this->content);
         $this->view->set('styles', $styles);
         $this->view->set('scripts', $scripts);
         $this->view->set('title', $title . ' - ' . $page_title);
         $this->view->set('breadcrumbs', $breadcrumbs);
         $this->menu_init();
         $this->response->body($this->view);
     }
 }
開發者ID:hemsinfotech,項目名稱:kodelearn,代碼行數:25,代碼來源:base.php

示例14: testRender

 /**
  * @expectedException DaveJamesMiller\Breadcrumbs\Exception
  * @expectedExceptionMessage Breadcrumbs view not specified
  */
 public function testRender()
 {
     Breadcrumbs::render('home');
 }
開發者ID:davejamesmiller,項目名稱:laravel-breadcrumbs,代碼行數:8,代碼來源:DependantServiceProviderErrorTest.php

示例15: testRender

 public function testRender()
 {
     $html = Breadcrumbs::render('home');
     $this->assertXmlStringEqualsXmlFile(__DIR__ . '/../fixtures/DependantServiceProvider.html', $html);
 }
開發者ID:cnlisai,項目名稱:laravel-breadcrumbs,代碼行數:5,代碼來源:DependantServiceProviderTest.php


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