Website

copy and paste the contents of your theme’s page.tpl.php

overwrite Drupal’s homepage template

Customising your theme’s homepage template is to copy and paste the contents of your theme’s page.tpl.php template in to the newly created page–front.tpl.php. Of course, if you know the node ID of the page you’re using as Drupal’s homepage, you could use:

page--node--4.tpl.php

 

Custom variables supplied by Adaptivetheme 7.x-3.x and used in the page template:

  • $site_logo: Themed logo – linked to front with alt attribute.
  • $site_name: Site name linked to the homepage.
  • $site_name_unlinked: Site name without any link.
  • $hide_site_name: toggle_name boolean, used to toggle the visibility is the site name.
  • $visibility: Holds the class .element-invisible or is empty. Used to hide the site name if turned off in toggle settings (same behavior as Bartik).
  • $primary_navigation: Themed Main menu. Uses theme_links() and h2 header.
  • $secondary_navigation: Themed Secondary/user menu. Uses theme_links() and h2 header.
  • $primary_local_tasks: Split local tasks – primary. Allows you to print the primary local tasks separately from the secondary tasks.
  • $secondary_local_tasks: Split local tasks – secondary. Allows you to print the secondary local tasks separately from the primary tasks.
  • $tag: Prints the wrapper element for the main content, either a section or div element.

Add your comments

Loading Facebook Comments ...
Loading Disqus Comments ...