<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 周銳 閱讀(226) 評論(0)  編輯  收藏 所屬分類: PHP
    主站蜘蛛池模板: 亚洲日韩精品无码一区二区三区 | 亚洲一区二区三区丝袜| 日韩免费视频一区二区| 久久精品国产亚洲网站| 999zyz**站免费毛片| 久久久久久a亚洲欧洲aⅴ| 久久国产精品萌白酱免费| 亚洲国产高清人在线| 久久久久久毛片免费播放| 亚洲欧洲校园自拍都市| 青娱乐免费在线视频| 亚洲字幕AV一区二区三区四区| 好男人视频在线观看免费看片| 亚洲成a人片在线不卡一二三区 | 国产亚洲精品影视在线| 成人激情免费视频| 精品国产亚洲一区二区三区在线观看| 国产又粗又猛又爽又黄的免费视频| 日韩免费高清一级毛片| 亚洲色偷偷综合亚洲AVYP| 日韩内射激情视频在线播放免费 | 91免费在线播放| 亚洲午夜无码久久久久软件| 国产免费人人看大香伊| 国产在线国偷精品免费看| 亚洲美女人黄网成人女| 在线日韩av永久免费观看| 伊人久久大香线蕉免费视频| 亚洲美女视频网站| yy6080久久亚洲精品| 日韩免费在线观看视频| 亚洲av无码一区二区三区天堂| 亚洲精品老司机在线观看| 久久久久久夜精品精品免费啦| 亚洲一线产区二线产区区| 亚洲码国产精品高潮在线| 一个人在线观看视频免费| 中文字幕不卡免费高清视频| 亚洲精品动漫在线| 国产精品亚洲不卡一区二区三区| 最近中文字幕免费2019|