当前位置: 首页>>代码示例>>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;未经允许,请勿转载。