我在drupal 7中構建了一個站點,遇到了很多問題...這裏對於drupal非常新穎。 我從page.tpl文件中拉出了徽標的php調用,並將其放入要添加到所有頁面的標題塊中。我知道我應該把它留在page.tpl文件中,但認爲使用標題塊是有意義的,但它不再有效。有人可以解釋爲什麼這不起作用嗎?php logo在塊中調用 - Drupal 7
這裏是它的,因爲變量$logo
不可用block.tpl.php
,它僅提供給page.tpl.php
代碼
<div id="logo"><?php if ($logo): ?>
<a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home" id="logo"><img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" /></a>
<?php endif; ?></div>