<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    posts - 431,  comments - 344,  trackbacks - 0
    theme-name_breadcrumb()

    theme-engine_ breadcrumb()

    theme_ breadcrumb()

    Defining Additional Template Files

    First, create a file within your theme directory named breadcrumb.tpl.php. This is the new template file for breadcrumbs. Because we wanted to change the <div> tag to a <span> tag, go ahead and populate the file with the following:

    <span class="breadcrumb"><?php print $breadcrumb ?></span>

    That’s easy enough for a designer to edit. Now you need to let Drupal know to call

    this template file when looking to render its breadcrumbs. Inside template.php, override theme_breadcrumb() as you did previously, but this time you’re going to tell this function to use the template file instead of just the function:

    function mytheme_breadcrumb($breadcrumb) {

     if (!empty($breadcrumb)) {

           $variables = array(

                  'breadcrumb' => implode(' -> ', $breadcrumb)

           );

           return _phptemplate_callback('breadcrumb', $variables);

     }

    }

    The magic inside this function is happening with _phptemplate_callback(). Its first parameter is the name of the template file to look for, and the second parameter is an array of variables to pass to the template file. You can create and pass along as many variables as you need into your template files.

    Defining New Block Regions

    function mytheme_regions() {

           return array(

                  'left' => t('left sidebar'),

                  'right' => t('right sidebar'),

                  'content_top' => t('content top'),

                  'content_bottom' => t('content bottom'),

                  'header' => t('header'),

                  'footer' => t('footer')

           );

    }

    To print out the content top region in your page template, use <?php print $content_top ?>.

    posted on 2007-12-04 09:29 周銳 閱讀(224) 評論(0)  編輯  收藏 所屬分類: PHP
    主站蜘蛛池模板: 麻豆亚洲AV永久无码精品久久 | 中文字幕a∨在线乱码免费看 | 久久精品国产亚洲夜色AV网站| 114级毛片免费观看| 亚洲精品乱码久久久久久V| 日本片免费观看一区二区| 国产亚洲高清在线精品不卡| 国产亚洲综合色就色| 全免费a级毛片免费看无码| 国产黄在线播放免费观看| 亚洲午夜精品在线| 亚洲精品无码永久在线观看 | 亚洲日韩aⅴ在线视频| 成人影片麻豆国产影片免费观看 | 色偷偷亚洲第一综合网| 免费精品国产自产拍观看| 日韩成人精品日本亚洲| 久久精品国产亚洲AV麻豆不卡| 无码视频免费一区二三区| a级毛片在线视频免费观看| 亚洲综合一区二区精品导航| 日本免费电影一区| 亚洲精品免费在线视频| 国产A∨免费精品视频| 亚洲中文字幕乱码一区| 亚洲精品自产拍在线观看动漫| 亚洲国产V高清在线观看| 一二三四影视在线看片免费 | 成年女人免费v片| 久久亚洲免费视频| 一级毛片在线完整免费观看| 亚洲精品乱码久久久久久按摩| 成年人免费网站在线观看| 久久国产高潮流白浆免费观看| sss日本免费完整版在线观看| 亚洲日产乱码一二三区别| 91亚洲精品自在在线观看| 亚洲福利视频导航| 精品国产综合成人亚洲区| 亚洲人成色7777在线观看不卡| 日韩免费视频网站|