Drupal 6のテーマを作成します。パート1

画像

Drupalテーマの作成に関するいくつかの記事をインターネットで見つけることができます( 良い記事です。読むことをお勧めします )が、通常はすべて、テンプレートの簡単なセットと情報ファイルで終わります。 このトピックでは、最も単純なトピックではなく、柔軟なトピックを作成する方法について、アクセスしやすい方法で説明します。



開始する



まず、 sites / all / themesディレクトリに、 テーマの名前でディレクトリを作成する必要があります。 テーマにmythemeという名前を付け、 sites / all / themes / mythemeディレクトリを作成しました。

作成されたディレクトリに、スタイル用のcssディレクトリ、スクリプト用のjs写真用の画像、 テンプレート用のテンプレートを作成します。これについては後処理します。 また、トピックのすべてのロジックとトピックを説明するmytheme.infoを記述するtemplate.phpファイルを作成します。 favicon.icologo.pngを追加することもできます。



mytheme.info



このファイルには、テーマで動作するためにカーネルが必要とするすべての情報が含まれています。

次の内容のファイルを作成します。

Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  1. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  2. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  3. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  4. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  5. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  6. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  7. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  8. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  9. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  10. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  11. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  12. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  13. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  14. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  15. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  16. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  17. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  18. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  19. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  20. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  21. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  22. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  23. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  24. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  25. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  26. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  27. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  28. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  29. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  30. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  31. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  32. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  33. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  34. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  35. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  36. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  37. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  38. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  39. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  40. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  41. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  42. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  43. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  44. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  45. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  46. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js



  47. Copy Source | Copy HTML ; , name = MyTheme ; description = ; core = 6.x ; , phptemplate engine = phptemplate ; version = 6.x-1.01 ; screenshot = images/screenshot.png ; , regions[sidebar_right] = Right sidebar regions[sidebar_left] = Left sidebar regions[header_line] = Line in header regions[footer_line] = Line in footer regions[content_top] = Content top regions[content_bottom] = Content bottom regions[content_right] = Content right regions[comments_rigth] = Comments right regions[page_bottom] = Page bottom ; , ;features[] = name features[] = node_user_picture features[] = comment_user_picture features[] = search ;features[] = favicon ;features[] = primary_links ;features[] = secondary_links ; stylesheets[ all ][] = css/blocks.css stylesheets[ all ][] = css/comments.css stylesheets[ all ][] = css/fields.css stylesheets[ all ][] = css/forms.css stylesheets[ all ][] = css/html-reset.css stylesheets[ all ][] = css/layout.css stylesheets[ all ][] = css/messages.css stylesheets[ all ][] = css/navigation.css stylesheets[ all ][] = css/nodes.css stylesheets[ all ][] = css/pages.css stylesheets[ all ][] = css/tabs.css ;stylesheets[ print ][] = css/ print .css ;stylesheets[handheld][] = css/mobile.css ;stylesheets[ only screen and ( max -device-width: 480px)][] = css/iphone.css ; ;scripts[] = js/script.js







これは、Drupalがトピックを確認して認識するのに十分です。 このスタイルと地域のセットを選んだのは、 便利だと思います。 好みに合わせて変更できます。



template.php



トピックの最もおいしい部分。 このファイルでは、すべてのロジック-フックを記述します。



まず、 HOOK_theme()を定義します。

Copy Source | Copy HTML



  1. function mytheme_theme(& $ existing$ type$ theme$ path ){
  2. //テーマが子の場合、ベーステーマを定義します
  3. static $ base_themes = array ();
  4. $ base_themes [] = $ theme ;
  5. // "preprocess"の後に呼び出されるフック "process"を追加します。
  6. if$ type == 'theme' ){
  7. foreach (array_keys( $ existingas $ hook ){
  8. if (function_exists( $ theme'_preprocess' )){
  9. $ existing [ $ hook ] [ 'preprocess functions' ] [] = $ theme'_preprocess' ;
  10. }
  11. if (function_exists( $ theme'_preprocess_'$ hook )){
  12. $ existing [ $ hook ] [ 'preprocess functions' ] [] = $ theme'_preprocess_'$フック ;
  13. }
  14. foreach$ base_themes as $ base_theme ){
  15. if (function_exists( $ base_theme'_process' )){
  16. $ existing [ $ hook ] [ 'preprocess functions' ] [] = $ base_theme'_process' ;
  17. }
  18. if (function_exists( $ base_theme'_process _ '$ hook )){
  19. $ existing [ $ hook ] [ 'preprocess functions' ] [] = $ base_theme'_process_'$フック ;
  20. }
  21. }
  22. }
  23. }
  24. //このトピックにのみ前処理を追加します。子テーマには適用されません
  25. if$ theme == 'mytheme' ){
  26. 配列を返す
  27. //領域を追加します。 これは、地域のテンプレートを使用できるようにするために必要です
  28. 'region' => 配列
  29. //利用可能な引数
  30. '引数' => 配列'要素' => NULL)、
  31. //テンプレートへのパス
  32. 'path' => drupal_get_path( 'theme''mytheme' )。 '/テンプレート'
  33. //テンプレートの名前。 完全なファイル名はregion.tpl.phpになります
  34. 'template' => 'region'
  35. //標準化のために変数を準備する関数
  36. '前処理関数' => 配列
  37. 'template_preprocess'
  38. 'mytheme_preprocess'
  39. 'mytheme_preprocess_region'
  40. 'mytheme_process'
  41. )、
  42. )、
  43. //ヘッダーとフッターを別々のテンプレートに入れます
  44. 'header' => 配列
  45. '引数' => 配列'要素' => NULL)、
  46. 'path' => drupal_get_path( 'theme''mytheme' )。 '/テンプレート'
  47. 'template' => 'header'
  48. '前処理関数' => 配列
  49. 'template_preprocess'
  50. 'mytheme_preprocess'
  51. 'mytheme_preprocess_header'
  52. 'mytheme_process'
  53. )、
  54. )、
  55. 'footer' => 配列
  56. '引数' => 配列'要素' => NULL)、
  57. 'path' => drupal_get_path( 'theme''mytheme' )。 '/テンプレート'
  58. 'テンプレート' => 'フッター'
  59. '前処理関数' => 配列
  60. 'template_preprocess'
  61. 'mytheme_preprocess'
  62. 'mytheme_preprocess_footer'
  63. 'mytheme_process'
  64. )、
  65. )、
  66. );
  67. }
  68. return array ();
  69. }




theme_blocks($ region)を定義します。 この関数は、指定された領域の現在のユーザーが使用できるブロックのセットを返します。

Copy Source | Copy HTML



  1. function mytheme_blocks( $ region ){
  2. if$ region ){
  3. $ output = '' ;
  4. if$ list = block_list( $ region )){
  5. foreach$ key => $ block としての $ list ){
  6. $ output 。= theme( 'block'$ block );
  7. }
  8. }
  9. //この地域のコンテンツ
  10. $ output 。= drupal_get_content( $ region );
  11. $ elements [ '#children' ] = $ output ;
  12. $ elements [ '#region' ] = $ region ;
  13. //テーマ領域をブロックで返します。 region.tpl.phpによって使用されます
  14. $ outputを 返し ますか? テーマ( 'region'$ elements ): '' ;
  15. }
  16. }




template_preprocess(&$ variables、$ hook)を定義しますこの関数は、テンプレートに渡される変数を準備します。

Copy Source | Copy HTML



  1. 関数 mytheme_preprocess(& $ vars$ hook ){
  2. $ key =( $ hook == 'page' || $ hook == 'maintenance_page' )? 'body_classes''classes' ;
  3. if (array_key_exists( $ key$ vars )){
  4. if (is_string( $ vars [ $ key ])){
  5. $ vars [ 'classes_array' ] = explode( ''$ vars [ $ key ]);
  6. unset$ vars [ $ key ]);
  7. }
  8. }
  9. その他 {
  10. $ vars [ 'classes_array' ] = array$ hook );
  11. }
  12. //ここにはちょっとした魔法があります。
  13. //フックタイプhook_preprocess_anything()ごとに、対応するファイルを探します
  14. //プリプロセスディレクトリで呼び出します
  15. $ name = 'preprocess / preprocess-' 。 str_replace( '_''-'$ hook )。 '.inc' ;
  16. if (is_file(drupal_get_path( 'theme''mytheme' )。 ' /'。$ name )){
  17. include$ name );
  18. }
  19. }




前述のHOOK_process()を定義します。

Copy Source | Copy HTML



  1. 関数 mytheme_process(& $ vars$ hook ){
  2. if (array_key_exists( 'classes_array'$ vars )){
  3. //要素のすべてのスタイルを文字列にマージします
  4. $ vars [ 'classes' ] = implode( ''$ vars [ 'classes_array' ]);
  5. }
  6. }




トピックへのパスを返す関数を定義します。

Copy Source | Copy HTML



  1. function _mytheme_path(){
  2. static $ path = FALSE;
  3. if (! $ path ){
  4. $ matches = drupal_system_listing( 'mytheme \ .info $''themes''name'0 );
  5. if (! empty$ matches [ 'mytheme' ]-> filename)){
  6. $ path = dirname( $は [ 'mytheme' ]-> filenameに一致します);
  7. }
  8. }
  9. $ pathを 返し ます
  10. }




最後に、ページのクラスとIDを処理するための関数をいくつか追加します

Copy Source | Copy HTML



  1. if (!function_exists( 'drupal_html_class' )){
  2. 関数 drupal_html_class( $ class ){
  3. $ class = strtr(drupal_strtolower( $ class )、 array'' => '-''_' => '-''/' => '-''[' => '-''] ' => ' ' ));
  4. $ class = preg_replace( '/ [^ \ x {002D} \ x {0030}-\ x {0039} \ x {0041}-\ x {005A} \ x {005F} \ x {0061}-\ x { 007A} \ x {00A1}-\ x {FFFF}] / u '' '$ class );
  5. return $ class ;
  6. }
  7. }
  8. if (!function_exists( 'drupal_html_id' )){
  9. 関数 drupal_html_id( $ id ){
  10. $ id = strtr(drupal_strtolower( $ id )、 array'' => '-''_' => '-''[' => '-'']' => '' ));
  11. $ id = preg_replace( '/ [^ A-Za-z0-9 \ -_] /'''$ id );
  12. $ idを 返します。
  13. }
  14. }




パート2パート3



All Articles