<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爰免费视频| 亚洲成年人啊啊aa在线观看| 美女被免费网站视频在线| 免费在线观看黄色毛片| 成在线人直播免费视频| 亚洲午夜久久久久久久久久| 182tv免费视频在线观看| 亚洲第一区香蕉_国产a| 亚洲无砖砖区免费| 亚洲综合伊人制服丝袜美腿| 麻豆精品国产免费观看| 免费人成网站永久| 亚洲av无码国产精品色午夜字幕 | 99蜜桃在线观看免费视频网站| 久久精品亚洲综合专区| 免费成人福利视频| 亚洲国产精品无码观看久久| 免费一级毛片在级播放| 叮咚影视在线观看免费完整版| 亚洲视频一区二区三区| 日韩毛片无码永久免费看| 免费精品国产自产拍在线观看 | 亚洲国产精品激情在线观看| 国产精品福利片免费看| 精品日韩亚洲AV无码| 国产永久免费高清在线| 亚洲一卡2卡4卡5卡6卡残暴在线| 午夜免费不卡毛片完整版| www免费插插视频| 亚洲精品视频观看| 久久国产精品免费看| 亚洲人成人无码.www石榴 | 亚欧色视频在线观看免费| 亚洲av日韩av永久在线观看| 亚洲中文久久精品无码| 久久不见久久见中文字幕免费| 无码的免费不卡毛片视频| 亚洲视频精品在线观看|