本文整理汇总了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');
}
}
示例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);
}
示例3: breadcrumbs
/**
* Render all the dropped breadcrumbs
*
* @return mixed
*/
function breadcrumbs()
{
return \Breadcrumbs::render();
}
示例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>
示例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');
?>
示例6: testRender
public function testRender()
{
$html = Breadcrumbs::render('post', $this->post);
$this->assertXmlStringEqualsXmlFile(__DIR__ . '/../fixtures/integration.html', $html);
}
示例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
示例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');
?>
示例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>
示例10: framework_breadcrumb
/**
*
*/
function framework_breadcrumb()
{
$breadcrumb = new Breadcrumbs();
$breadcrumb->render();
}
示例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()]]];
}
示例12: getShowData
protected function getShowData($instance)
{
return ['breadcrumbs' => \Breadcrumbs::render('task', $instance), 'relations' => [['title' => 'Submissions', 'url' => 'submissions', 'items' => $instance->submissions, 'fields' => SubmissionsController::getListFields()]]];
}
示例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);
}
}
示例14: testRender
/**
* @expectedException DaveJamesMiller\Breadcrumbs\Exception
* @expectedExceptionMessage Breadcrumbs view not specified
*/
public function testRender()
{
Breadcrumbs::render('home');
}
示例15: testRender
public function testRender()
{
$html = Breadcrumbs::render('home');
$this->assertXmlStringEqualsXmlFile(__DIR__ . '/../fixtures/DependantServiceProvider.html', $html);
}