? themes/bartik/color
? themes/bartik/css
? themes/bartik/images
Index: themes/bartik/README.txt
===================================================================
RCS file: themes/bartik/README.txt
diff -N themes/bartik/README.txt
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ themes/bartik/README.txt 21 Feb 2010 14:26:12 -0000
@@ -0,0 +1,33 @@
+// $Id$
+
+EDITING THIS THEME
+
+You can customize this theme to make it more your own. But do not edit this
+original copy of Bartik. Duplicate the Bartik directory (the folder) with all of
+it's files, move your new copy to the sites/all/themes directory, and edit it there.
+Be sure to rename your new theme by changing the name of the directory, changing
+the name of the .info file, and editing the text inside the .info file.
+
+If you are running a multisite installation, you can place the new theme in in a
+subdirectory under /sites/{sitename}/themes/, where {sitename} is the name of your
+site (e.g., www.example.com).
+
+If you edit this copy of Bartik, you are "hacking core". Do not hack core.
+
+If you hack core, and edit the original copy of Bartik, updating Drupal will be
+much harder, and you risk having your new theme deleted in the process.
+
+For more details, see: http://drupal.org/node/176043
+
+
+CHANGING THE COLOR.CSS FILE
+
+If you adjust the colors using the color scheme tool in Bartik's theme settings,
+the color.css file will be duplicated and the new copy will be placed in
+default/sites/files/. It is this new copy that will have the CSS for the colors
+you specified. The original copy of color.css will stay in themes/bartik/css/,
+but will no longer have any impact on the site's display.
+
+If you are having trouble making changes directly to the stylesheet, if you are
+making changes but they aren't having an effect, then try turning color module
+off in the modules administration area.
Index: themes/bartik/bartik.info
===================================================================
RCS file: themes/bartik/bartik.info
diff -N themes/bartik/bartik.info
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ themes/bartik/bartik.info 21 Feb 2010 14:26:12 -0000
@@ -0,0 +1,36 @@
+; $Id$
+
+name = Bartik
+description = A flexible, recolorable theme with many regions.
+version = VERSION
+core = 7.x
+engine = phptemplate
+
+stylesheets[all][] = css/reset.css
+stylesheets[all][] = css/layout.css
+stylesheets[all][] = css/style.css
+stylesheets[all][] = css/color.css
+
+regions[header] = Header
+regions[help] = Help
+regions[page_top] = Page top
+regions[page_bottom] = Page bottom
+regions[highlight] = Highlighted
+
+regions[featured] = Featured
+regions[content] = Content
+regions[sidebar_first] = Sidebar first
+regions[sidebar_second] = Sidebar second
+
+regions[triptych_first] = Triptych first
+regions[triptych_middle] = Triptych middle
+regions[triptych_last] = Triptych last
+
+regions[footer_firstcolumn] = Footer first column
+regions[footer_secondcolumn] = Footer second column
+regions[footer_thirdcolumn] = Footer third column
+regions[footer_fourthcolumn] = Footer fourth column
+regions[footer] = Footer
+
+settings[bartik_sample_regions] = 1
+settings[shortcut_module_link] = 1
Index: themes/bartik/comment-wrapper.tpl.php
===================================================================
RCS file: themes/bartik/comment-wrapper.tpl.php
diff -N themes/bartik/comment-wrapper.tpl.php
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ themes/bartik/comment-wrapper.tpl.php 21 Feb 2010 14:26:12 -0000
@@ -0,0 +1,48 @@
+
+
Index: themes/bartik/comment.tpl.php
===================================================================
RCS file: themes/bartik/comment.tpl.php
diff -N themes/bartik/comment.tpl.php
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ themes/bartik/comment.tpl.php 21 Feb 2010 14:26:12 -0000
@@ -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()
+ */
+?>
+
Index: themes/bartik/html.tpl.php
===================================================================
RCS file: themes/bartik/html.tpl.php
diff -N themes/bartik/html.tpl.php
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ themes/bartik/html.tpl.php 21 Feb 2010 14:26:12 -0000
@@ -0,0 +1,57 @@
+language contains its textual representation.
+ * $language->dir contains the language direction. It will either be 'ltr' or 'rtl'.
+ * - $rdf_namespaces: All the RDF namespace prefixes used in the HTML document.
+ * - $grddl_profile: A GRDDL profile allowing agents to extract the RDF data.
+ * - $head_title: A modified version of the page title, for use in the TITLE tag.
+ * - $head: Markup for the HEAD section (including meta tags, keyword tags, and
+ * so on).
+ * - $styles: Style tags necessary to import all CSS files for the page.
+ * - $scripts: Script tags necessary to load the JavaScript files and settings
+ * for the page.
+ * - $page_top: Initial markup from any modules that have altered the
+ * page. This variable should always be output first, before all other dynamic
+ * content.
+ * - $page: The rendered page content.
+ * - $page_bottom: Final closing markup from any modules that have altered the
+ * page. This variable should always be output last, after all other dynamic
+ * content.
+ * - $classes String of classes that can be used to style contextually through
+ * CSS.
+ *
+ * @see template_preprocess()
+ * @see template_preprocess_html()
+ * @see template_process()
+ */
+?>
+>
+
+
+
+
+
+
+
+>
+
+
+
+
+
+
Index: themes/bartik/logo.png
===================================================================
RCS file: themes/bartik/logo.png
diff -N themes/bartik/logo.png
Binary files /dev/null and logo.png differ
Index: themes/bartik/maintenance-page.tpl.php
===================================================================
RCS file: themes/bartik/maintenance-page.tpl.php
diff -N themes/bartik/maintenance-page.tpl.php
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ themes/bartik/maintenance-page.tpl.php 21 Feb 2010 14:26:12 -0000
@@ -0,0 +1,174 @@
+
+
+
+
+
+
+
+
+
+
+>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Index: themes/bartik/node.tpl.php
===================================================================
RCS file: themes/bartik/node.tpl.php
diff -N themes/bartik/node.tpl.php
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ themes/bartik/node.tpl.php 21 Feb 2010 14:26:12 -0000
@@ -0,0 +1,134 @@
+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()
+ */
+?>
+>
+
+
+
+
>
+
+
+
+
+
+
+
+
+
+
>
+
+
+
+
+
+
+
+
+
+
+
+
Index: themes/bartik/page.tpl.php
===================================================================
RCS file: themes/bartik/page.tpl.php
diff -N themes/bartik/page.tpl.php
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ themes/bartik/page.tpl.php 21 Feb 2010 14:26:12 -0000
@@ -0,0 +1,274 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Index: themes/bartik/screenshot.png
===================================================================
RCS file: themes/bartik/screenshot.png
diff -N themes/bartik/screenshot.png
Binary files /dev/null and screenshot.png differ
Index: themes/bartik/template.php
===================================================================
RCS file: themes/bartik/template.php
diff -N themes/bartik/template.php
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ themes/bartik/template.php 21 Feb 2010 14:26:12 -0000
@@ -0,0 +1,89 @@
+region == 'header' && ($variables['block']->module == 'menu' || $variables['block']->module == 'user' && $variables['block']->delta == 'login')) {
+ $variables['title_attributes_array']['class'][] = 'element-invisible';
+ }
+}
Index: themes/bartik/theme-settings.php
===================================================================
RCS file: themes/bartik/theme-settings.php
diff -N themes/bartik/theme-settings.php
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ themes/bartik/theme-settings.php 21 Feb 2010 14:26:12 -0000
@@ -0,0 +1,99 @@
+ 'checkbox',
+ '#title' => t('Display sample content in empty regions'),
+ '#default_value' => theme_get_setting('bartik_sample_regions'),
+ '#description' => t("When previewing this theme, it's useful to see the styling for all regions even if they won't have any content by default."),
+ );
+}
+
+/**
+ * Helper function that inserts sample content into empty regions.
+ */
+function _bartik_process_page(&$variables) {
+ // Lorem ipsum is Latin and doesn't need to be translated.
+ $paragraph = 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
';
+ // List of links to be used in footer regions.
+ $list = theme('links', array(
+ 'links' => array(
+ 'jean-bartik' => array(
+ 'title' => t('Jean Bartik'),
+ 'href' => 'http://www.google.com/search?q=Jean+Bartik',
+ 'absolute' => TRUE,
+ ),
+ 'bartik-settings' => array(
+ 'title' => t('Bartik theme settings'),
+ 'href' => 'admin/appearance/settings/bartik',
+ ),
+ 'drupal' => array(
+ 'title' => t('Drupal.org'),
+ 'href' => 'http://drupal.org',
+ 'absolute' => TRUE,
+ ),
+ 'theme-guide' => array(
+ 'title' => t('Drupal theme guide'),
+ 'href' => 'http://drupal.org/theme-guide',
+ 'absolute' => TRUE,
+ ),
+ ),
+ ));
+ // Generate a link to the settings.
+ $link = '' . t('This sample content can be turned off using the “Display sample content in empty regions” option on the !link page.', array('!link' => l(t('Bartik settings'), 'admin/appearance/settings/bartik'))) . '
';
+
+ // Create a fake block.
+ $block = new stdClass();
+ $block->module = 'bartik';
+ $block->theme = 'bartik';
+ $block->status = 1;
+ $block->weight = 0;
+ $block->custom = 0;
+ $block->visibility = 0;
+ $block->pages = '';
+ $block->title = '';
+ $block->cache = DRUPAL_NO_CACHE;
+ $block->subject = 'Lorem ipsum';
+
+ // Grab the list of visible regions.
+ $regions = system_region_list('bartik', REGIONS_VISIBLE);
+ // Ignore common regions.
+ $ignore_regions = array('header', 'highlight', 'help', 'content', 'footer');
+
+ // Generate sample content for any empty regions.
+ $bid = 1000;
+ foreach ($regions as $region => $label) {
+ if (!in_array($region, $ignore_regions) && empty($variables['page'][$region])) {
+ // Set dynamic bits of the fake block.
+ $bid++;
+ $block->bid = $bid;
+ $block->delta = 'delta-' . $bid;
+ $block->region = $region;
+ // Show the list of links in the footer regions, otherwise show lorem ipsum.
+ if (strpos($region, 'footer_') === 0) {
+ $content = $list . $link;
+ }
+ else {
+ $content = $paragraph . $link;
+ }
+ // Load the region.
+ $variables['page'][$region] = array(
+ 'bartik_sample_block' => array(
+ '#markup' => $content,
+ '#block' => $block,
+ '#weight' => 0,
+ '#theme_wrappers' => array('block'),
+ ),
+ );
+ }
+ }
+}
>
+ + +