⬆️ ⬇️

Create a theme for Drupal 6. Part 1

image

You can find several articles on the creation of topics for Drupal on the Internet (a good article, I advise you to read ), but usually everything ends with a banal set of templates and an info file. In this topic I will try to tell you how to create a flexible and not very simple topic.



Start



First we need to create a directory in the sites / all / themes directory with the name of our theme. I called the theme mytheme and created the sites / all / themes / mytheme directory .

In the created directory we create directories css - for styles, js - for scripts, images - for images, templates - for templates, preprocess - more on this later. We also create a file template.php in which we will write all the logic of the topic and mytheme.info to describe the topic. You can also add favicon.ico and logo.png .



mytheme.info



The file contains all the information necessary for the kernel to work with the theme.

Create a file with approximately the following content:

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




This is enough for the drupal to see and recognize our topic. I chose such a set of styles and regions, because I find it convenient. You can change to your taste.

')

template.php



The most delicious part of the topic. In this file we will write all the logic - hooks.



First we define HOOK_theme () .

Copy Source | Copy HTML
  1. function mytheme_theme (& $ existing , $ type , $ theme , $ path ) {
  2. // Determine the base theme, if our theme is a child
  3. static $ base_themes = array ();
  4. $ base_themes [] = $ theme ;
  5. // Add the "process" hook, which will be called after the "preprocess".
  6. if ( $ type == 'theme' ) {
  7. foreach (array_keys ( $ existing ) as $ 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_' . $ hook ;
  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_' . $ hook ;
  20. }
  21. }
  22. }
  23. }
  24. // Add preprocesses only for this topic, they will not apply to child themes
  25. if ( $ theme == 'mytheme' ) {
  26. return array (
  27. // Add a region. This is necessary so that we can use templates for regions.
  28. 'region' => array (
  29. // Arguments to be available
  30. 'arguments' => array ( 'elements' => NULL),
  31. // Pattern Path
  32. 'path' => drupal_get_path ( 'theme' , 'mytheme' ). '/ templates' ,
  33. // The name of the template. The full file name will be region.tpl.php
  34. 'template' => 'region' ,
  35. // Functions that will prepare variables for templating
  36. 'preprocess functions' => array (
  37. 'template_preprocess' ,
  38. 'mytheme_preprocess' ,
  39. 'mytheme_preprocess_region' ,
  40. 'mytheme_process' ,
  41. ),
  42. ),
  43. // Move header and footer into separate templates
  44. 'header' => array (
  45. 'arguments' => array ( 'elements' => NULL),
  46. 'path' => drupal_get_path ( 'theme' , 'mytheme' ). '/ templates' ,
  47. 'template' => 'header' ,
  48. 'preprocess functions' => array (
  49. 'template_preprocess' ,
  50. 'mytheme_preprocess' ,
  51. 'mytheme_preprocess_header' ,
  52. 'mytheme_process' ,
  53. ),
  54. ),
  55. 'footer' => array (
  56. 'arguments' => array ( 'elements' => NULL),
  57. 'path' => drupal_get_path ( 'theme' , 'mytheme' ). '/ templates' ,
  58. 'template' => 'footer' ,
  59. 'preprocess functions' => array (
  60. 'template_preprocess' ,
  61. 'mytheme_preprocess' ,
  62. 'mytheme_preprocess_footer' ,
  63. 'mytheme_process' ,
  64. ),
  65. ),
  66. );
  67. }
  68. return array ();
  69. }




Define theme_blocks ($ region) . The function returns a set of blocks available for the current user in the specified region.

Copy Source | Copy HTML
  1. function mytheme_blocks ( $ region ) {
  2. if ( $ region ) {
  3. $ output = '' ;
  4. if ( $ list = block_list ( $ region )) {
  5. foreach ( $ list as $ key => $ block ) {
  6. $ output . = theme ( 'block' , $ block );
  7. }
  8. }
  9. // Content for this region
  10. $ output . = drupal_get_content ( $ region );
  11. $ elements [ '#children' ] = $ output ;
  12. $ elements [ '#region' ] = $ region ;
  13. // Return the temised region with blocks. Used by region.tpl.php
  14. return $ output ? theme ( 'region' , $ elements ): '' ;
  15. }
  16. }




Define template_preprocess (& $ variables, $ hook) . The function prepares variables that will be passed to the template.

Copy Source | Copy HTML
  1. function 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. else {
  10. $ vars [ 'classes_array' ] = array ( $ hook );
  11. }
  12. // There's some magic here.
  13. // For each hook of type hook_preprocess_anything (), we look for the corresponding file
  14. // in the preprocess directory and call it
  15. $ name = 'preprocess / preprocess-' . str_replace ( '_' , '-' , $ hook ). '.inc' ;
  16. if (is_file (drupal_get_path ( 'theme' , 'mytheme' ). '/' . $ name )) {
  17. include ( $ name );
  18. }
  19. }




We define the HOOK_process () described earlier.

Copy Source | Copy HTML
  1. function mytheme_process (& $ vars , $ hook ) {
  2. if (array_key_exists ( 'classes_array' , $ vars )) {
  3. // Merge all styles for element into line
  4. $ vars [ 'classes' ] = implode ( '' , $ vars [ 'classes_array' ]);
  5. }
  6. }




We define a function that returns the path to our topic.

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 ( $ matches [ 'mytheme' ] -> filename);
  7. }
  8. }
  9. return $ path ;
  10. }




Finally, add a couple of functions to handle the classes and id for the pages.

Copy Source | Copy HTML
  1. if (! function_exists ( 'drupal_html_class' )) {
  2. function 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. function drupal_html_id ( $ id ) {
  10. $ id = strtr (drupal_strtolower ( $ id ), array ( '' => '-' , '_' => '-' , '[' => '-' , ']' => '' ));
  11. $ id = preg_replace ( '/ [^ A-Za-z0-9 \ -_] /' , '' , $ id );
  12. return $ id ;
  13. }
  14. }




Part 2 , Part 3

Source: https://habr.com/ru/post/86453/



All Articles