2010-06-18 24 views

回答

1

創建一個執行PHP代碼的自定義塊。以下代碼段應顯示$custom_theme中主題集中的當前頁面。

global $custom_theme, $theme; 

// If $theme is set, init_theme() will not initialize the custom theme. 
unset($theme); 

// Set the theme you want to use. 
$custom_theme = "garland"; 
init_theme(); 

還有一個模塊,允許您更改基於某些規則所使用的主題(例如,內容類型被顯示,當前查看的頁面的URL等):該項目頁面http://drupal.org/project/themekey