From 790da7b3cc0b188378c1a5efa4cb202a3974ca9a Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Tue, 6 Jul 2010 05:25:51 +0000 Subject: #683026 by jensimmons, JohnAlbin, Jeff Burnz, Jacine, stephthegeek, bleen18, smerrill, et al: New core theme: Bartik, a flexible, re-colorable theme with many regions that shows off what Drupal can do. Truly a team effort. :) --- themes/bartik/templates/comment-wrapper.tpl.php | 54 +++++ themes/bartik/templates/comment.tpl.php | 102 +++++++++ themes/bartik/templates/maintenance-page.tpl.php | 93 ++++++++ themes/bartik/templates/node.tpl.php | 126 ++++++++++ themes/bartik/templates/page.tpl.php | 280 +++++++++++++++++++++++ 5 files changed, 655 insertions(+) create mode 100644 themes/bartik/templates/comment-wrapper.tpl.php create mode 100644 themes/bartik/templates/comment.tpl.php create mode 100644 themes/bartik/templates/maintenance-page.tpl.php create mode 100644 themes/bartik/templates/node.tpl.php create mode 100644 themes/bartik/templates/page.tpl.php (limited to 'themes/bartik/templates') diff --git a/themes/bartik/templates/comment-wrapper.tpl.php b/themes/bartik/templates/comment-wrapper.tpl.php new file mode 100644 index 000000000..66e9e798e --- /dev/null +++ b/themes/bartik/templates/comment-wrapper.tpl.php @@ -0,0 +1,54 @@ + +
+
> + type != 'forum'): ?> + +

+ + + + + + +

+ + +
+
diff --git a/themes/bartik/templates/comment.tpl.php b/themes/bartik/templates/comment.tpl.php new file mode 100644 index 000000000..07555da8d --- /dev/null +++ b/themes/bartik/templates/comment.tpl.php @@ -0,0 +1,102 @@ +created variable. + * - $changed: Formatted date and time for when the comment was last changed. + * Preprocess functions can reformat it by calling format_date() with the + * desired parameters on the $comment->changed variable. + * - $new: New comment marker. + * - $permalink: Comment permalink. + * - $picture: Authors picture. + * - $signature: Authors signature. + * - $status: Comment status. Possible values are: + * comment-unpublished, comment-published or comment-preview. + * - $title: Linked title. + * - $classes: String of classes that can be used to style contextually through + * CSS. It can be manipulated through the variable $classes_array from + * preprocess functions. The default values can be one or more of the following: + * - comment: The current template type, i.e., "theming hook". + * - comment-by-anonymous: Comment by an unregistered user. + * - comment-by-node-author: Comment by the author of the parent node. + * - comment-preview: When previewing a new or edited comment. + * The following applies only to viewers who are registered users: + * - comment-unpublished: An unpublished comment visible only to administrators. + * - comment-by-viewer: Comment by the user currently viewing the page. + * - comment-new: New comment since last the visit. + * - $title_prefix (array): An array containing additional output populated by + * modules, intended to be displayed in front of the main title tag that + * appears in the template. + * - $title_suffix (array): An array containing additional output populated by + * modules, intended to be displayed after the main title tag that appears in + * the template. + * + * These two variables are provided for context: + * - $comment: Full comment object. + * - $node: Node object the comments are attached to. + * + * Other variables: + * - $classes_array: Array of html class attribute values. It is flattened + * into a string within the variable $classes. + * + * @see template_preprocess() + * @see template_preprocess_comment() + * @see template_process() + * @see theme_comment() + */ +?> +
> + +
+ + + + +
+ +
+
+ + + + + + + > + + +
> + + +
+ +
+ +
+ + +
+
diff --git a/themes/bartik/templates/maintenance-page.tpl.php b/themes/bartik/templates/maintenance-page.tpl.php new file mode 100644 index 000000000..57e40a07a --- /dev/null +++ b/themes/bartik/templates/maintenance-page.tpl.php @@ -0,0 +1,93 @@ + + + + + + + <?php print $head_title; ?> + + + +> + + + +
+ + + +
+ +
+
+ + +

+ +

+ + + + +
+ +
+ + +
+ + +
+ +
+ + + + diff --git a/themes/bartik/templates/node.tpl.php b/themes/bartik/templates/node.tpl.php new file mode 100644 index 000000000..e3ada69db --- /dev/null +++ b/themes/bartik/templates/node.tpl.php @@ -0,0 +1,126 @@ +body becomes $body. When needing to access + * a field's raw values, developers/themers are strongly encouraged to use these + * variables. Otherwise they will have to explicitly specify the desired field + * language, e.g. $node->body['en'], thus overriding any language negotiation + * rule that was previously applied. + * + * @see template_preprocess() + * @see template_preprocess_node() + * @see template_process() + */ +?> +
> + + + + > + + + + + + + + + +
> + +
+ + + + + + + +
diff --git a/themes/bartik/templates/page.tpl.php b/themes/bartik/templates/page.tpl.php new file mode 100644 index 000000000..87f6a73e8 --- /dev/null +++ b/themes/bartik/templates/page.tpl.php @@ -0,0 +1,280 @@ + +
+ + + + +
+ +
+ + + + + + +
+ + + + + + + + + + +
+
+ + + +

+ +

+ + + +
+ +
+ + + + + + + + +
+ + + + + +
+ + +
+ + +
+ +
+ + + +
+ +
+ + + +
+ +
+ + +
+ + + + +
-- cgit v1.2.3