README.txt 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /**
  2. * @file
  3. * Theme implementation to display a single Drupal page.
  4. *
  5. * Available variables:
  6. *
  7. * General utility variables:
  8. * - $base_path: The base URL path of the Drupal installation. At the very
  9. * least, this will always default to /.
  10. * - $directory: The directory the template is located in, e.g. modules/system
  11. * or themes/garland.
  12. * - $is_front: TRUE if the current page is the front page.
  13. * - $logged_in: TRUE if the user is registered and signed in.
  14. * - $is_admin: TRUE if the user has permission to access administration pages.
  15. *
  16. * Site identity:
  17. * - $front_page: The URL of the front page. Use this instead of $base_path,
  18. * when linking to the front page. This includes the language domain or
  19. * prefix.
  20. * - $logo: The path to the logo image, as defined in theme configuration.
  21. * - $site_name: The name of the site, empty when display has been disabled
  22. * in theme settings.
  23. * - $site_slogan: The slogan of the site, empty when display has been disabled
  24. * in theme settings.
  25. *
  26. * Navigation:
  27. * - $main_menu (array): An array containing the Main menu links for the
  28. * site, if they have been configured.
  29. * - $secondary_menu (array): An array containing the Secondary menu links for
  30. * the site, if they have been configured.
  31. * - $breadcrumb: The breadcrumb trail for the current page.
  32. *
  33. * Page content (in order of occurrence in the default page.tpl.php):
  34. * - $title_prefix (array): An array containing additional output populated by
  35. * modules, intended to be displayed in front of the main title tag that
  36. * appears in the template.
  37. * - $title: The page title, for use in the actual HTML content.
  38. * - $title_suffix (array): An array containing additional output populated by
  39. * modules, intended to be displayed after the main title tag that appears in
  40. * the template.
  41. * - $messages: HTML for status and error messages. Should be displayed
  42. * prominently.
  43. * - $tabs (array): Tabs linking to any sub-pages beneath the current page
  44. * (e.g., the view and edit tabs when displaying a node).
  45. * - $action_links (array): Actions local to the page, such as 'Add menu' on the
  46. * menu administration interface.
  47. * - $feed_icons: A string of all feed icons for the current page.
  48. * - $node: The node object, if there is an automatically-loaded node
  49. * associated with the page, and the node ID is the second argument
  50. * in the page's path (e.g. node/12345 and node/12345/revisions, but not
  51. * comment/reply/12345).
  52. *
  53. * @see template_preprocess()
  54. * @see template_preprocess_page()
  55. * @see template_process()
  56. *
  57. * <?php print render($page['Region_Name']); ?>
  58. *
  59. */