当前位置: 首页>>代码示例>>PHP>>正文


PHP breadcrumbs函数代码示例

本文整理汇总了PHP中breadcrumbs函数的典型用法代码示例。如果您正苦于以下问题:PHP breadcrumbs函数的具体用法?PHP breadcrumbs怎么用?PHP breadcrumbs使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了breadcrumbs函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: white_breadcrumbs

function white_breadcrumbs()
{
    global $lang;
    global $conf;
    //check if enabled
    if (!$conf['breadcrumbs']) {
        return false;
    }
    $crumbs = breadcrumbs();
    //setup crumb trace
    $crumbs_sep = ' <span class="bcsep">' . $sep . '</span> ';
    //render crumbs, highlight the last one
    print '<h3>' . $lang['breadcrumb'] . '</h3>';
    $last = count($crumbs);
    $i = 0;
    print '<ul>';
    foreach ($crumbs as $id => $name) {
        $i++;
        print '<li>';
        if ($i == $last) {
            print '<span class="curid">';
        }
        tpl_link(wl($id), hsc($name), 'class="breadcrumbs" title="' . $id . '"');
        if ($i == $last) {
            print '</span>';
        }
        print '</li>';
    }
    print '</ul>';
    return true;
}
开发者ID:ipari,项目名称:dokuwiki-template-white,代码行数:31,代码来源:tpl_functions.php

示例2: tpl_breadcrumbs_bootstrap

/**
 * Print the breadcrumbs trace with Bootstrap class
 *
 * @author Nicolas GERARD
 *
 * @param string $sep Separator between entries
 * @return bool
 */
function tpl_breadcrumbs_bootstrap($sep = '�')
{
    global $conf;
    global $lang;
    //check if enabled
    if (!$conf['breadcrumbs']) {
        return false;
    }
    $crumbs = array_reverse(breadcrumbs());
    //setup crumb trace
    $last = count($crumbs);
    $i = 0;
    echo '<ol class="breadcrumb">' . PHP_EOL;
    foreach ($crumbs as $id => $name) {
        $i++;
        if ($i == $last) {
            print '<li class="active">';
        } else {
            print '<li>';
        }
        if ($i == 1) {
            // Try to get the template custom breadcrumb
            $breadCrumb = tpl_getLang('breadcrumb');
            if ($breadCrumb == '') {
                // If not present for the language, get the default one
                $breadCrumb = $lang['breadcrumb'];
            }
            echo $breadCrumb . ': ';
        }
        tpl_link(wl($id), hsc($name), 'title="' . $id . '"');
        print '</li>' . PHP_EOL;
    }
    echo '</ol>' . PHP_EOL;
    return true;
}
开发者ID:alanthonyc,项目名称:dokuwiki-template-bootie,代码行数:43,代码来源:tpl_template_NicoBoot.php

示例3: amdy_tpl_breadcrumbs

function amdy_tpl_breadcrumbs()
{
    global $lang;
    global $conf;
    //check if enabled
    if (!$conf['breadcrumbs']) {
        return false;
    }
    $crumbs = breadcrumbs();
    //setup crumb trace
    //render crumbs, highlight the last one
    print '<ul class="breadcrumb">';
    $last = count($crumbs);
    $i = 0;
    foreach ($crumbs as $id => $name) {
        $i++;
        echo '<li' . ($i == $last ? ' class="active"' : '') . '>';
        //echo '<a href="test.php">test</a>';
        echo '<a href="' . wl($id) . '" title="' . $id . '"' . '>' . hsc($name) . '</a>';
        if ($i != $last) {
            echo '<span class="divider">/</span>';
        }
        echo '</li>';
    }
    print '</ul>';
    return true;
}
开发者ID:nduhamel,项目名称:Dokuwiki-Template-Twitter,代码行数:27,代码来源:template.php

示例4: echo_breadcrumbs_bar

function echo_breadcrumbs_bar($crumbs)
{
    echo '	<div class="action-bar">' . "\n";
    echo '		<div class="container">' . "\n";
    echo breadcrumbs($crumbs);
    echo '		</div>' . "\n";
    echo '	</div>' . "\n";
}
开发者ID:anly2,项目名称:raspberry-spi,代码行数:8,代码来源:header.php

示例5: loadBreadcrumbs

 /**
  * Load all breadcrumbs.
  */
 protected function loadBreadcrumbs()
 {
     breadcrumbs()->register($this->breadcrumbsContainer, function (Builder $bc) {
         $bc->parent('main');
         if (!empty($this->breadcrumbsItems)) {
             foreach ($this->breadcrumbsItems as $crumb) {
                 $bc->push($crumb['title'], $crumb['url'], isset($crumb['array']) ? $crumb['array'] : []);
             }
         }
     });
 }
开发者ID:arcanedev,项目名称:breadcrumbs,代码行数:14,代码来源:BreadcrumbsTrait.php

示例6: widget

    function widget($args, $instance) {
        extract( $args );
        echo $before_widget;
		if (function_exists( 'bcn_display')) {
			echo '<div class="breadcrumb" itemprop="breadcrumb">';
			bcn_display();
			echo '</div>';
		} elseif (function_exists('yoast_breadcrumb' )) {
			yoast_breadcrumb( '<div class="breadcrumb">', '</div>' );
		} elseif ( function_exists( 'breadcrumbs' ) ) {
			breadcrumbs();
		} elseif ( function_exists( 'crumbs' ) ) {
			crumbs();
		} else {
			$this->ultimatum_breadcrumb();
		}
        echo $after_widget;
    }
开发者ID:polaris610,项目名称:medicalhound,代码行数:18,代码来源:the-breadcrumb.php

示例7: genesis_do_breadcrumbs

/**
 * Display Breadcrumbs above the Loop. Concedes priority to popular breadcrumb
 * plugins.
 *
 * @since 0.1.6
 *
 * @return null Return null if a popular breadcrumb plugin is active
 */
function genesis_do_breadcrumbs()
{
    if ('posts' === get_option('show_on_front') && is_home() && !genesis_get_option('breadcrumb_home') || 'page' === get_option('show_on_front') && is_front_page() && !genesis_get_option('breadcrumb_front_page') || 'page' === get_option('show_on_front') && is_home() && !genesis_get_option('breadcrumb_posts_page') || is_single() && !genesis_get_option('breadcrumb_single') || is_page() && !genesis_get_option('breadcrumb_page') || (is_archive() || is_search()) && !genesis_get_option('breadcrumb_archive') || is_404() && !genesis_get_option('breadcrumb_404') || is_attachment() && !genesis_get_option('breadcrumb_attachment')) {
        return;
    }
    if (function_exists('bcn_display')) {
        echo '<div class="breadcrumb" itemprop="breadcrumb">';
        bcn_display();
        echo '</div>';
    } elseif (function_exists('yoast_breadcrumb')) {
        yoast_breadcrumb('<div class="breadcrumb">', '</div>');
    } elseif (function_exists('breadcrumbs')) {
        breadcrumbs();
    } elseif (function_exists('crumbs')) {
        crumbs();
    } else {
        genesis_breadcrumb();
    }
}
开发者ID:treydonovan,项目名称:innergame-anna,代码行数:27,代码来源:breadcrumb.php

示例8: genesis_do_breadcrumbs

/**
 * Display Breadcrumbs above the Loop. Concedes priority to popular breadcrumb
 * plugins.
 *
 * @since 0.1.6
 *
 * @return null Null if a popular breadcrumb plugin is active.
 */
function genesis_do_breadcrumbs()
{
    if ('posts' === get_option('show_on_front') && is_home() && !genesis_get_option('breadcrumb_home') || 'page' === get_option('show_on_front') && is_front_page() && !genesis_get_option('breadcrumb_front_page') || 'page' === get_option('show_on_front') && is_home() && !genesis_get_option('breadcrumb_posts_page') || is_single() && !genesis_get_option('breadcrumb_single') || is_page() && !genesis_get_option('breadcrumb_page') || (is_archive() || is_search()) && !genesis_get_option('breadcrumb_archive') || is_404() && !genesis_get_option('breadcrumb_404') || is_attachment() && !genesis_get_option('breadcrumb_attachment')) {
        return;
    }
    $breadcrumb_markup_open = sprintf('<div %s>', genesis_attr('breadcrumb'));
    if (function_exists('bcn_display')) {
        echo $breadcrumb_markup_open;
        bcn_display();
        echo '</div>';
    } elseif (function_exists('breadcrumbs')) {
        breadcrumbs();
    } elseif (function_exists('crumbs')) {
        crumbs();
    } elseif (class_exists('WPSEO_Breadcrumbs') && genesis_get_option('breadcrumbs-enable', 'wpseo_internallinks')) {
        yoast_breadcrumb($breadcrumb_markup_open, '</div>');
    } elseif (function_exists('yoast_breadcrumb') && !class_exists('WPSEO_Breadcrumbs')) {
        yoast_breadcrumb($breadcrumb_markup_open, '</div>');
    } else {
        genesis_breadcrumb();
    }
}
开发者ID:netmagik,项目名称:netmagik,代码行数:30,代码来源:breadcrumb.php

示例9: html_start

function html_start()
{
    global $CONFIG;
    $path = htmlentities(breadcrumbs());
    echo <<<EOT
<!DOCTYPE HTML>
<html>
<head>
\t<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
\t<title>CGP{$path}</title>
\t<link rel="stylesheet" href="{$CONFIG['weburl']}/layout/style.css" type="text/css">
\t<script type="text/javascript" src="{$CONFIG['weburl']}/ajax.js"></script>
</head>
<body>

<div id="header">
  <h1><a href="{$CONFIG['weburl']}">Collectd Graph Panel</a></h1>
</div>

<div id="content">

EOT;
}
开发者ID:jrottenberg,项目名称:cgp,代码行数:23,代码来源:html.inc.php

示例10: modificar_estrategia

	public function modificar_estrategia($id_estrategia = '')
	{
		modules::run('general/is_logged', base_url().'index.php/usuarios/iniciar-sesion');
		$permiso = modules::run('general/have_permission', 31);
		$vista = ($permiso) ? 'crear_estrategia' : 'continuidad_sinpermiso';
		$view['nivel'] = 31;
		
		$where['id_estrategia'] = $id_estrategia;
		if($this->general->exist('estrategias_recuperacion',$where))
		{
			$view['estrategia'] = $this->general->get_row('estrategias_recuperacion',$where);
			$breadcrumbs = array
			(
				base_url() => 'Inicio',
				base_url().'index.php/continuidad' => 'Continuidad del Negocio',
				base_url().'index.php/continuidad/estrategias' => 'Estrategias de Recuperación',
				'#' => 'Modificar Estrategia'
			);
			$view['breadcrumbs'] = breadcrumbs($breadcrumbs);
			$view['tipo_estrategias'] = $this->general->get_table('tipo_estrategiasrecuperacion');
			$this->utils->template($this->_list1(),'continuidad/estrategias/'.$vista,$view,$this->title,'Modificar estrategias','two_level');
		}else
		{
			$this->session->set_flashdata('alert_error','La estrategia que intenta modificar no se encuentra en la base de datos');
			redirect(site_url('index.php/continuidad/estrategias'));
		}
	}
开发者ID:kelgwiin,项目名称:tesis,代码行数:27,代码来源:estrategias.php

示例11: _e

" id="form_publish" class="ui-button"><?php 
    _e("Publish your ad for free", 'realestate');
    ?>
</a>
        <?php 
}
?>
        <div class="empty"></div>
    </div>
    <div id="header-shadow"></div>
</div>
<!-- /header -->
<?php 
if (function_exists('breadcrumbs')) {
    ?>
    <?php 
    if (!osc_is_home_page()) {
        ?>
    <div class="breadcrumb">
        <?php 
        breadcrumbs('&raquo;');
        ?>
    </div>
    <?php 
    }
}
?>
<!-- container -->
<div class="container">
<?php 
osc_show_widgets('header');
开发者ID:blairmain,项目名称:theme-realestate,代码行数:31,代码来源:header.php

示例12: get_header

<?php

get_header();
/*
Template Name: Helpful-information
*/
?>
<section class="helpfull-inf">
    <div class="breadcrumbs">
<?php 
echo breadcrumbs(' / ');
?>
    </div>
    <div class="help-news-container">
    <h3><a href="http://portfolio.esy.es/news">Новости</a></h3>
        <div style="width: auto;
            height: 180px;
            position: relative;
            top:100px;"class="news-block">
            <div class="n-left">
                <img src="<?php 
echo get_template_directory_uri();
?>
/img/news-robot.png" alt="">
            </div>

            <div class="n-right">

                <span class="date">21.09.15</span>
                <a href="" style=" text-decoration: underline;">Далеко-далеко за словесными горами.</a>
                <p>Далеко-далеко за словесными горами в стране,
开发者ID:GooDDimoh,项目名称:Wordpress,代码行数:31,代码来源:page-helpful-inf.php

示例13: breadcrumbs

<section id="content">
    <div class="container">
        <div class="card">
            <?php 
echo breadcrumbs('', 'Import Group');
?>
            <div class="card-body card-padding">
                <?php 
echo form_open_multipart("groups/import", array('id' => 'dropzone', 'class' => 'dropzone m-t-25'));
?>
                    <div class="fileinput fileinput-new fallback" data-provides="fileinput">
                        <span class="btn btn-primary btn-file m-r-10">
                            <span class="fileinput-new">Select file</span>
                            <span class="fileinput-exists">Change</span>
                            <div class="file-preview-other"></div>
                            <?php 
echo form_upload('file', set_value('file'), ['class' => 'file-input-field', 'accept' => '.csv']);
?>
                        </span>
                        <span class="fileinput-filename"></span>
                        <a href="#" class="close fileinput-exists" data-dismiss="fileinput">&times;</a>
                        <button type="submit" class="btn btn-primary hidden">Submit</button>
                    </div>
                <?php 
echo form_close();
?>

            </div>
        </div>
    </div>
</section>
开发者ID:john-lioneil,项目名称:sams,代码行数:31,代码来源:import.php

示例14: dir_logPageAccess

 /**
  * logs access to a wiki page
  *
  * @param  $id  page id of the wiki page including namespace
  *
  * @author Matthias Grimm <matthiasgrimm@users.sourceforge.net>
  */
 function dir_logPageAccess($id)
 {
     global $ACT;
     if ($ACT == 'show') {
         $page = $this->dir_prepareID($id);
         $crumbs = breadcrumbs();
         // get last visited pages
         $crumbs = array_keys($crumbs);
         // get raw page IDs
         array_pop($crumbs);
         // skip current page
         $referer = array_pop($crumbs);
         // get current page's predecessor
         $referer = $referer ? $this->dir_prepareID($referer) : '';
         $this->dir_logAccess($page, $this->dir_getStatus(wikiFN($id)), $referer);
     }
 }
开发者ID:nunoflores,项目名称:directions,代码行数:24,代码来源:action.php

示例15: mysql_fetch_assoc

<?
if($query = mysql_query("SELECT * FROM content WHERE link='".$page."'") and mysql_fetch_assoc($query)!=''){
	mysql_data_seek($query, 0);
	$row = mysql_fetch_assoc($query);
	$name = $row['name'];
	$content = $row['text'];
	
	$bread = breadcrumbs($row['id']);
	//подключаем шаблон
	include($_SERVER['DOCUMENT_ROOT'].'templates/inner.tpl');
}

?>
开发者ID:Ghostik007,项目名称:online-store-Radilura,代码行数:13,代码来源:inner.php


注:本文中的breadcrumbs函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。