本文整理汇总了PHP中Ansel::getBreadcrumbs方法的典型用法代码示例。如果您正苦于以下问题:PHP Ansel::getBreadcrumbs方法的具体用法?PHP Ansel::getBreadcrumbs怎么用?PHP Ansel::getBreadcrumbs使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Ansel
的用法示例。
在下文中一共展示了Ansel::getBreadcrumbs方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: html
/**
* Return the HTML representing this view.
*
* @return string The HTML.
*
*/
public function html()
{
global $conf, $prefs, $registry;
$vars = Horde_Variables::getDefaultVariables();
if (!empty($this->_params['page'])) {
$vars->add('page', $this->_params['page']);
}
if (!empty($this->_params['pager_url'])) {
$this->_pagerurl = $this->_params['pager_url'];
$override = true;
} else {
$override = false;
$this->_pagerurl = Ansel::getUrlFor('view', array('owner' => $this->_owner, 'special' => $this->_special, 'groupby' => $this->_view->groupby, 'view' => 'List'));
}
$p_params = array('num' => $this->_view->numGalleries, 'url' => $this->_pagerurl, 'perpage' => $this->_view->gPerPage);
if ($override) {
$p_params['url_callback'] = null;
}
$this->_pager = new Horde_Core_Ui_Pager('page', $vars, $p_params);
$preserve = array('sort_dir' => $this->_view->sortDir);
if (!empty($this->_view->sortBy)) {
$preserve['sort'] = $this->_view->sortBy;
}
$this->_pager->preserve($preserve);
if ($this->_view->numGalleries) {
$min = $this->_page * $this->_view->gPerPage;
$max = $min + $this->_view->gPerPage;
if ($max > $this->_view->numGalleries) {
$max = $this->_view->numGalleries - $min;
}
$this->_view->start = $min + 1;
$this->_view->end = min($this->_view->numGalleries, $min + $this->_view->gPerPage);
if ($this->_owner) {
$this->_view->refresh_link = Ansel::getUrlFor('view', array('groupby' => $this->_view->groupby, 'owner' => $this->_owner, 'page' => $this->_page, 'view' => 'List'));
} else {
$this->_view->refresh_link = Ansel::getUrlFor('view', array('view' => 'List', 'groupby' => $this->_view->groupby, 'page' => $this->_page));
}
// Get top-level / default gallery style.
if (empty($this->_params['style'])) {
$style = Ansel::getStyleDefinition($prefs->getValue('default_gallerystyle'));
} else {
$style = Ansel::getStyleDefinition($this->_params['style']);
}
// Final touches.
if (empty($this->_params['api'])) {
$this->_view->breadcrumbs = Ansel::getBreadcrumbs();
$this->_view->groupbyUrl = strval(Ansel::getUrlFor('group', array('actionID' => 'groupby', 'groupby' => 'owner')));
}
$this->_view->pager = $this->_pager->render();
$this->_view->style = $style;
$this->_view->tilesperrow = $prefs->getValue('tilesperrow');
$this->_view->cellwidth = round(100 / $this->_view->tilesperrow);
$this->_view->params = $this->_params;
$GLOBALS['page_output']->addScriptFile('views/common.js');
return $this->_view->render('list');
}
return ' ';
}
示例2: array
<!-- Image title/breadcrumbs -->
<h1 class="header"><?php
echo Ansel::getBreadcrumbs();
?>
</h1>
<div id="ansel-contentwrapper">
<div id="ansel-content-nowidgets" style="background-color:<?php
echo $this->background;
?>
;">
<!-- Actions -->
<div class="control anselActions" style="text-align:center;">
<?php
if ($this->hasEdit) {
?>
<?php
echo $this->contentTag('a', _("Properties"), array('target' => '_blank', 'id' => 'image_properties_link'));
?>
|
| <?php
echo $this->contentTag('a', _("Edit"), array('id' => 'image_edit_link', 'href' => $this->urls['edit']));
?>
|
<?php
}
?>
<?php
if (!empty($this->urls['delete'])) {
?>
<?php