summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--starterkit/README.txt73
-rw-r--r--starterkit/favicon.icobin0 -> 15086 bytes
-rwxr-xr-xstarterkit/logo.pngbin0 -> 4735 bytes
-rwxr-xr-xstarterkit/omega_starterkit.info151
-rw-r--r--starterkit/page.tpl.php190
-rwxr-xr-xstarterkit/screenshot.pngbin0 -> 9359 bytes
-rw-r--r--starterkit/template.php113
-rw-r--r--starterkit/theme-settings.php24
8 files changed, 551 insertions, 0 deletions
diff --git a/starterkit/README.txt b/starterkit/README.txt
new file mode 100644
index 0000000..24db257
--- /dev/null
+++ b/starterkit/README.txt
@@ -0,0 +1,73 @@
+$Id$
+##########################################################
+##### Omega Theme
+##########################################################
+Project Page: http://drupal.org/project/omega
+Issue Queue: http://drupal.org/project/issues/omega
+Usage Stats: http://drupal.org/project/usage/omega
+Demo Page: http://omega.himerus.com
+Maintainer(s): Jake Strawn
+ http://himerus.com
+ http://twitter.com/himerus
+##########################################################
+
+Omega Theme Information
+=======================
+The Omega Theme is a powerful and free Drupal theme based on the 960gs.
+It harneses the power and features of many popular themes to provide an
+excellent base theme, and sub-theming system to help you quickly prototype
+and theme your site...
+
+Creating your Omega Sub Theme
+=============================
+
+1. Copy the starterkit folder from the default Omega theme directory
+ and place it in your sites/all/themes directory.
+
+2. Rename the folder to the theme name of your choice.
+ (subtheme for this example)
+
+3. Rename omega_starterkit.info to subtheme.info and modify default
+ information in the .info file as needed (name & description)
+
+4. Open template.php and search and replace omega_starterkit with
+ "subtheme" or the appropriate name of the theme you are creating.
+
+5. Open theme-settings.php and search and replace omega_starterkit with
+ "subtheme" or the appropriate name of the theme you are creating.
+
+6. Visit admin/build/themes/settings/subtheme and configure to your
+ hearts desire!!
+
+Additional README.txt's you should see
+======================================
+ * Preprocess information: preprocess/README.txt
+ This README provides information on how to use and add additional preprocess
+ functionality to your sub-theme, and explains the "Omega way".
+
+ * CSS information: css/README.txt
+ This README provides basic information on the CSS organization, and adding new
+ CSS files to your sub-theme, and keeping them organized.
+ * JS information: js/README.txt
+
+ This README provides basic information on the JS organization, and adding new
+ javascript files to your sub-theme, and keeping them organized.
+
+Additional 960gs/Omega Resources
+================================
+ * I recently presented at DrupalCamp Montreal on the 960gs and Omega theme.
+ The information on this presentation along with slides & video can be found here.
+ http://himerus.com/drupalcamp-montreal-advanced-960gs-theming-omega
+
+ * I presented on 960gs and the ninesixty theme at Drupalcon Paris with Todd
+ from Four Kitchens. You can download the slides here, and watch the video here.
+ http://himerus.com/drupalcon-paris-accelerated-grid-theming-using-ninesixty
+
+ * I will be presenting this April at Drupalcon San Fransisco on the Omgea theme
+ in a presentation titled: Elevating 960gs in Drupal with the Omega theme.
+ You may find information on the session and sign up here
+ http://sf2010.drupal.org/conference/sessions/elevating-960gs-drupal-omega-theme
+
+Contributors
+============
+- himerus (Jake Strawn)
diff --git a/starterkit/favicon.ico b/starterkit/favicon.ico
new file mode 100644
index 0000000..0f9909a
--- /dev/null
+++ b/starterkit/favicon.ico
Binary files differ
diff --git a/starterkit/logo.png b/starterkit/logo.png
new file mode 100755
index 0000000..ca82c94
--- /dev/null
+++ b/starterkit/logo.png
Binary files differ
diff --git a/starterkit/omega_starterkit.info b/starterkit/omega_starterkit.info
new file mode 100755
index 0000000..e20951c
--- /dev/null
+++ b/starterkit/omega_starterkit.info
@@ -0,0 +1,151 @@
+; $Id$
+
+; ------- Declare default theme information
+
+name = Omega Starter Kit
+description = Omega Sub-Theme starter kit
+screenshot = screenshot.png
+core = 6.x
+base theme = omega
+
+; ------- Declare default stylesheets
+
+;stylesheets[all][] = css/your_css_file.css
+
+; ------- Declare default javascript includes
+
+;scripts[] = js/your_js_file.js
+
+
+; ------- Declare default theme regions
+
+regions[sidebar_first] = sidebar first
+regions[sidebar_last] = sidebar last
+
+regions[header_first] = header first
+regions[header_last] = header last
+
+regions[preface_first] = preface first
+regions[preface_middle] = preface middle
+regions[preface_last] = preface last
+
+regions[content_top] = content top
+regions[content_bottom] = content bottom
+
+regions[postscript_one] = postscript 1
+regions[postscript_two] = postscript 2
+regions[postscript_three] = postscript 3
+regions[postscript_four] = postscript 4
+
+regions[footer_first] = footer first
+regions[footer_last] = footer last
+
+; ------- Declare default theme features
+
+features[] = logo
+features[] = name
+features[] = slogan
+features[] = mission
+features[] = node_user_picture
+features[] = comment_user_picture
+features[] = search
+features[] = favicon
+features[] = primary_links
+features[] = secondary_links
+
+; ------- Set the default settings to be used in theme-settings.php
+
+; ------- Non-960gs general settings
+
+settings[front_page_title_display] = title_slogan
+settings[page_title_display_custom] = ''
+settings[other_page_title_display] = ptitle_stitle
+settings[other_page_title_display_custom] = ''
+settings[configurable_separator] = ' | '
+
+settings[omega_breadcrumb] = 'yes'
+settings[omega_breadcrumb_separator] = ' / '
+settings[omega_breadcrumb_home] = 1
+settings[omega_breadcrumb_trailing] = 1
+settings[omega_breadcrumb_title] = 1
+
+settings[mission_statement_pages] = home
+
+settings[sidebar_combine] = 1
+settings[sidebar_contain_pages] = ''
+
+; ------- / Non-960gs general settings
+
+; ------- 960gs default region settings
+
+; ------- default_container_width applies to regions like $help, $messages
+settings[omega_default_container_width] = 16
+
+; ------- Region settings for top zone (logo, menus)
+
+settings[omega_branding_wrapper_width] = 16
+settings[omega_header_logo_width] = 4
+settings[omega_header_menu_width] = 12
+
+; ------- Region settings for header regions
+
+settings[omega_header_wrapper_width] = 16
+settings[omega_header_first_width] = 8
+settings[omega_header_last_width] = 8
+
+; ------- Region settings for default breadcrumb and search box placement
+
+settings[omega_internal_nav_wrapper_width] = 16
+settings[omega_breadcrumb_slogan_width] = 10
+settings[omega_search_width] = 6
+
+; ------- Region settings for preface regions
+
+settings[omega_preface_wrapper_grids] = 16
+settings[omega_preface_first_width] = 8
+settings[omega_preface_first_prefix] = 0
+settings[omega_preface_first_suffix] = 0
+settings[omega_preface_middle_width] = 4
+settings[omega_preface_middle_prefix] = 0
+settings[omega_preface_middle_suffix] = 0
+settings[omega_preface_last_width] = 4
+settings[omega_preface_last_prefix] = 0
+settings[omega_preface_last_suffix] = 0
+
+; ------- Region settings for content regions
+
+settings[omega_content_layout] = first_content_last
+settings[omega_content_container_width] = 16
+settings[omega_sidebar_first_width] = 4
+settings[omega_content_main_width] = 8
+settings[omega_sidebar_last_width] = 4
+
+; ------- Region settings for postscript regions
+
+settings[omega_postscript_container_width] = 16
+settings[omega_postscript_one_width] = 4
+settings[omega_postscript_one_prefix] = 0
+settings[omega_postscript_one_suffix] = 0
+settings[omega_postscript_two_width] = 4
+settings[omega_postscript_two_prefix] = 0
+settings[omega_postscript_two_suffix] = 0
+settings[omega_postscript_three_width] = 4
+settings[omega_postscript_three_prefix] = 0
+settings[omega_postscript_three_suffix] = 0
+settings[omega_postscript_four_width] = 4
+settings[omega_postscript_four_prefix] = 0
+settings[omega_postscript_four_suffix] = 0
+
+; ------- Region settings for footer regions
+
+settings[omega_footer_container_width] = 16
+settings[omega_footer_first_width] = 16
+settings[omega_footer_last_width] = 16
+
+; ------- / 960gs default region settings
+; Information added by drupal.org packaging script on 2010-04-28
+version = "6.x-1.0-beta4"
+core = "6.x"
+project = "omega"
+datestamp = "1272428408"
+
diff --git a/starterkit/page.tpl.php b/starterkit/page.tpl.php
new file mode 100644
index 0000000..1776f78
--- /dev/null
+++ b/starterkit/page.tpl.php
@@ -0,0 +1,190 @@
+<?php
+// $Id$
+?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>">
+
+<head>
+ <title><?php print $head_title; ?></title>
+ <?php print $head; ?>
+ <?php print $styles; ?>
+ <?php print $scripts; ?>
+</head>
+
+<body class="<?php print $body_classes; ?>">
+ <?php if (!empty($admin)) print $admin; ?>
+ <div id="page" class="clear-block">
+ <div id="site-header" class="container-<?php print $branding_wrapper_width; ?> clear-block">
+ <div id="branding" class="grid-<?php print $header_logo_width; ?>">
+ <?php if ($linked_logo_img): ?>
+ <?php print $linked_logo_img; ?>
+ <?php endif; ?>
+ <?php if ($linked_site_name): ?>
+ <?php if ($title): ?>
+ <h2 id="site-name" class=""><?php print $linked_site_name; ?></h2>
+ <?php else: ?>
+ <h1 id="site-name" class=""><?php print $linked_site_name; ?></h1>
+ <?php endif; ?>
+ <?php endif; ?>
+ </div><!-- /#branding -->
+
+ <?php if ($main_menu_links || $secondary_menu_links): ?>
+ <div id="site-menu" class="grid-<?php print $header_menu_width; ?>">
+ <?php if($main_menu_links): ?>
+ <div><?php print $main_menu_links; ?></div>
+ <?php endif; ?>
+ <?php if($secondary_menu_links): ?>
+ <div><?php print $secondary_menu_links; ?></div>
+ <?php endif; ?>
+ </div><!-- /#site-menu -->
+ <?php endif; ?>
+ </div><!-- /#site-header -->
+
+ <?php if($header_first || $header_last): ?>
+ <div id="header-regions" class="container-<?php print $header_wrapper_width; ?> clear-block">
+ <?php if($header_first): ?>
+ <div id="header-first" class="<?php print $header_first_classes; ?>">
+ <?php print $header_first; ?>
+ </div><!-- /#header-first -->
+ <?php endif; ?>
+ <?php if($header_last): ?>
+ <div id="header-last" class="<?php print $header_last_classes; ?>">
+ <?php print $header_last; ?>
+ </div><!-- /#header-last -->
+ <?php endif; ?>
+ </div><!-- /#header-regions -->
+ <?php endif; ?>
+
+ <?php if($site_slogan && $is_front || $search_box || $breadcrumb): ?>
+ <div id="internal-nav" class="container-<?php print $internal_nav_wrapper_width; ?> clear-block">
+ <div id="slogan-bcrumb" class="grid-<?php print $breadcrumb_slogan_width; ?>">
+ <?php if ($site_slogan && $is_front): ?>
+ <div id="slogan"><?php print $site_slogan; ?></div><!-- /#slogan -->
+ <?php endif; ?>
+ <?php if($breadcrumb): ?>
+ <div id="bcrumb"><?php print $breadcrumb; ?></div><!-- /#bcrumb -->
+ <?php endif; ?>
+ </div>
+ <?php if ($search_box): ?>
+ <div id="search-box" class="grid-<?php print $search_width; ?>"><?php print $search_box; ?></div><!-- /#search-box -->
+ <?php endif; ?>
+ </div><!-- /#internal-nav -->
+ <?php endif; ?>
+
+ <?php if($preface_first || $preface_middle || $preface_last): ?>
+ <div id="preface-wrapper" class="container-<?php print $preface_wrapper_grids; ?>">
+ <?php if($preface_first): ?>
+ <div id="preface-first" class="preface <?php print $preface_first_classes; ?>">
+ <?php print $preface_first; ?>
+ </div><!-- /#preface-first -->
+ <?php endif; ?>
+ <?php if($preface_middle): ?>
+ <div id="preface-middle" class="preface <?php print $preface_middle_classes; ?>">
+ <?php print $preface_middle; ?>
+ </div><!-- /#preface-middle -->
+ <?php endif; ?>
+ <?php if($preface_last): ?>
+ <div id="preface-last" class="preface <?php print $preface_last_classes; ?>">
+ <?php print $preface_last; ?>
+ </div><!-- /#preface-last -->
+ <?php endif; ?>
+ </div><!-- /#preface-wrapper -->
+ <?php endif; ?>
+
+ <?php if($help || $messages): ?>
+ <div class="container-<?php print $default_container_width; ?> clear-block">
+ <div class="grid-<?php print $default_container_width; ?>">
+ <?php print $help; ?><?php print $messages; ?>
+ </div>
+ </div><!-- /.container-xx -->
+ <?php endif; ?>
+
+ <div id="main-content-container" class="container-<?php print $content_container_width; ?> clear-block">
+ <div id="main-wrapper" class="column <?php print $main_content_classes; ?>">
+ <?php print $mission; ?>
+ <?php if($content_top): ?>
+ <div id="content-top">
+ <?php print $content_top; ?>
+ </div><!-- /#content-top -->
+ <?php endif; ?>
+ <?php if ($tabs): ?>
+ <div id="content-tabs" class=""><?php print $tabs; ?></div><!-- /#content-tabs -->
+ <?php endif; ?>
+
+ <?php if ($title): ?>
+ <h1 class="title" id="page-title"><?php print $title; ?></h1>
+ <?php endif; ?>
+
+ <div id="main-content" class="region clear-block">
+ <?php print $content; ?>
+ </div><!-- /#main-content -->
+
+ <?php if($content_bottom): ?>
+ <div id="content-bottom">
+ <?php print $content_bottom; ?>
+ </div><!-- /#content-bottom -->
+ <?php endif; ?>
+ </div><!-- /#main-wrapper -->
+
+ <?php if ($sidebar_first): ?>
+ <div id="sidebar-first" class="column sidebar region <?php print $sidebar_first_classes; ?>">
+ <?php print $sidebar_first; ?>
+ </div><!-- /#sidebar-first -->
+ <?php endif; ?>
+
+ <?php if ($sidebar_last): ?>
+ <div id="sidebar-last" class="column sidebar region <?php print $sidebar_last_classes; ?>">
+ <?php print $sidebar_last; ?>
+ </div><!-- /#sidebar-last -->
+ <?php endif; ?>
+ </div><!-- /#main-content-container -->
+
+ <?php if($postscript_one || $postscript_two || $postscript_three || $postscript_four): ?>
+ <div id="postscript-wrapper" class="container-<?php print $postscript_container_width; ?> clear-block">
+ <?php if($postscript_one): ?>
+ <div id="postscript-one" class="postscript <?php print $postscript_one_classes; ?>">
+ <?php print $postscript_one; ?>
+ </div><!-- /#postscript-one -->
+ <?php endif; ?>
+ <?php if($postscript_two): ?>
+ <div id="postscript-two" class="postscript <?php print $postscript_two_classes; ?>">
+ <?php print $postscript_two; ?>
+ </div><!-- /#postscript-two -->
+ <?php endif; ?>
+ <?php if($postscript_three): ?>
+ <div id="postscript-three" class="postscript <?php print $postscript_three_classes; ?>">
+ <?php print $postscript_three; ?>
+ </div><!-- /#postscript-three -->
+ <?php endif; ?>
+ <?php if($postscript_four): ?>
+ <div id="postscript-four" class="postscript <?php print $postscript_four_classes; ?>">
+ <?php print $postscript_four; ?>
+ </div><!-- /#postscript-four -->
+ <?php endif; ?>
+ </div><!-- /#postscript-wrapper -->
+ <?php endif; ?>
+
+ <?php if($footer_first || $footer_last || $footer_message): ?>
+ <div id="footer-wrapper" class="container-<?php print $footer_container_width; ?> clearfix">
+ <?php if($footer_first): ?>
+ <div id="footer-first" class="<?php print $footer_first_classes; ?>">
+ <?php print $footer_first; ?>
+ </div><!-- /#footer-first -->
+ <?php endif; ?>
+ <?php if($footer_last || $footer_message): ?>
+ <div id="footer-last" class="<?php print $footer_last_classes; ?>">
+ <?php print $footer_last; ?>
+ <?php if ($footer_message): ?>
+ <div id="footer-message">
+ <?php print $footer_message; ?>
+ </div><!-- /#footer-message -->
+ <?php endif; ?>
+ </div><!-- /#footer-last -->
+ <?php endif; ?>
+ </div><!-- /#footer-wrapper -->
+ <?php endif; ?>
+ </div><!-- /#page -->
+ <?php print $closure; ?>
+</body>
+</html> \ No newline at end of file
diff --git a/starterkit/screenshot.png b/starterkit/screenshot.png
new file mode 100755
index 0000000..fb9ef1c
--- /dev/null
+++ b/starterkit/screenshot.png
Binary files differ
diff --git a/starterkit/template.php b/starterkit/template.php
new file mode 100644
index 0000000..f16b57e
--- /dev/null
+++ b/starterkit/template.php
@@ -0,0 +1,113 @@
+<?php
+// $Id$
+
+/*
+ * Add any conditional stylesheets you will need for this sub-theme.
+ *
+ * To add stylesheets that ALWAYS need to be included, you should add them to
+ * your .info file instead. Only use this section if you are including
+ * stylesheets based on certain conditions.
+ */
+/* -- Delete this line if you want to use and modify this code
+// Example: optionally add a fixed width CSS file.
+if (theme_get_setting('omega_starterkit_fixed')) {
+ drupal_add_css(path_to_theme() . '/layout-fixed.css', 'theme', 'all');
+}
+// */
+
+
+/**
+ * Implementation of HOOK_theme().
+ */
+function omega_starterkit_theme(&$existing, $type, $theme, $path) {
+ $hooks = omega_theme($existing, $type, $theme, $path);
+ // Add your theme hooks like this:
+ /*
+ $hooks['hook_name_here'] = array( // Details go here );
+ */
+ // @TODO: Needs detailed comments. Patches welcome!
+ return $hooks;
+}
+
+/**
+ * Override or insert variables into all templates.
+ *
+ * @param $vars
+ * An array of variables to pass to the theme template.
+ * @param $hook
+ * The name of the template being rendered (name of the .tpl.php file.)
+ */
+/* -- Delete this line if you want to use this function
+function omega_starterkit_preprocess(&$vars, $hook) {
+ $vars['sample_variable'] = t('Lorem ipsum.');
+}
+// */
+
+/**
+ * Override or insert variables into the page templates.
+ *
+ * @param $vars
+ * An array of variables to pass to the theme template.
+ * @param $hook
+ * The name of the template being rendered ("page" in this case.)
+ */
+/* -- Delete this line if you want to use this function
+function omega_starterkit_preprocess_page(&$vars, $hook) {
+ $vars['sample_variable'] = t('Lorem ipsum.');
+}
+// */
+
+/**
+ * Override or insert variables into the node templates.
+ *
+ * @param $vars
+ * An array of variables to pass to the theme template.
+ * @param $hook
+ * The name of the template being rendered ("node" in this case.)
+ */
+/* -- Delete this line if you want to use this function
+function omega_starterkit_preprocess_node(&$vars, $hook) {
+ $vars['sample_variable'] = t('Lorem ipsum.');
+}
+// */
+
+/**
+ * Override or insert variables into the comment templates.
+ *
+ * @param $vars
+ * An array of variables to pass to the theme template.
+ * @param $hook
+ * The name of the template being rendered ("comment" in this case.)
+ */
+/* -- Delete this line if you want to use this function
+function omega_starterkit_preprocess_comment(&$vars, $hook) {
+ $vars['sample_variable'] = t('Lorem ipsum.');
+}
+// */
+
+/**
+ * Override or insert variables into the block templates.
+ *
+ * @param $vars
+ * An array of variables to pass to the theme template.
+ * @param $hook
+ * The name of the template being rendered ("block" in this case.)
+ */
+/* -- Delete this line if you want to use this function
+function omega_starterkit_preprocess_block(&$vars, $hook) {
+ $vars['sample_variable'] = t('Lorem ipsum.');
+}
+// */
+
+
+/**
+ * Create a string of attributes form a provided array.
+ *
+ * @param $attributes
+ * @return string
+ */
+function omega_starterkit_render_attributes($attributes) {
+ // not sure why this has to be here anymore, investigating
+ omega_render_attributes($attributes);
+
+} \ No newline at end of file
diff --git a/starterkit/theme-settings.php b/starterkit/theme-settings.php
new file mode 100644
index 0000000..5dd505c
--- /dev/null
+++ b/starterkit/theme-settings.php
@@ -0,0 +1,24 @@
+<?php
+// $Id$
+
+// Include the definition of omega_settings() and omega_theme_get_default_settings().
+include_once './' . drupal_get_path('theme', 'omega') . '/theme-settings.php';
+
+/**
+ * Implementation of THEMEHOOK_settings() function.
+ *
+ * @param $saved_settings
+ * An array of saved settings for this theme.
+ * @return
+ * A form array.
+ */
+function omega_starterkit_settings($saved_settings) {
+ // Get the default values from the .info file.
+ $subtheme_defaults = omega_theme_get_default_settings('omega_starterkit');
+ // Merge the saved variables and their default values.
+ $form = array();
+ // Add the base theme's settings.
+ $form += omega_settings($saved_settings, $subtheme_defaults);
+ // Return the form
+ return $form;
+}