summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Espino Angulo2011-12-06 18:43:34 (GMT)
committerCarlos Espino Angulo2011-12-06 18:43:34 (GMT)
commite6377001f10d8abce38926e06b73bd29591785ef (patch)
treeea7a665e2badfde23cdc69eef46b4b82e509fb32
parent7904593803a0ee42c0a1b65e03dba04ab432bc75 (diff)
-rw-r--r--README.txt24
-rw-r--r--cea00.css65
-rw-r--r--cea00.info22
-rw-r--r--down_arrow.pngbin0 -> 338 bytes
-rw-r--r--favicon.icobin0 -> 2450 bytes
-rw-r--r--images/down_arrow.pngbin0 -> 239 bytes
-rw-r--r--logo.pngbin0 -> 2603 bytes
-rw-r--r--page.tpl.php149
-rw-r--r--schemas/blue.css17
-rw-r--r--schemas/forest.css17
-rw-r--r--schemas/graphite.css17
-rw-r--r--schemas/maroon.css19
-rw-r--r--schemas/orange.css18
-rw-r--r--schemas/pink.css17
-rw-r--r--schemas/red.css17
-rw-r--r--screenshot.pngbin0 -> 23803 bytes
-rw-r--r--theme-settings.php69
-rw-r--r--translations/themes-cea00.es.po59
18 files changed, 510 insertions, 0 deletions
diff --git a/README.txt b/README.txt
new file mode 100644
index 0000000..48afdb4
--- /dev/null
+++ b/README.txt
@@ -0,0 +1,24 @@
+cea00 1.x for Drupal 7
+Created by Carlos Espino
+http://drupal.org/project/cea00
+
+cea00 is a simple and clean Framework based theme
+
+-------
+USAGE
+
+Install to sites/all/themes
+
+To fully convert cea00 to your own custom theme, it is encouraged that you:
+ - COPY the 'cea00' directory within sites/all/themes/
+ - Enable the theme
+ - Configure as needed
+
+-------
+SUPPORT
+
+If you have questions or problems, check the issue list before submitting a new issue:
+http://drupal.org/project/issues/cea00
+
+For general support, please refer to:
+http://drupal.org/support
diff --git a/cea00.css b/cea00.css
new file mode 100644
index 0000000..fd81ca7
--- /dev/null
+++ b/cea00.css
@@ -0,0 +1,65 @@
+/* Drupal 7 cea00 - Created by Carlos Espino
+------------------------------------------------
+
+------------------------------------------------*/
+
+#container {margin-top: 5px;}
+
+#supra_bar {margin-top: 0px; background: #000000;height: 34px;}
+#supra_bar #main-menu li {display: inline;margin-right: 12px;}
+#supra_bar a {color:#ffffff !important; font-size: 14px !important;}
+
+#supra_logo {margin-top: 0px; background: #d9d9d9 ;}
+#supra_logo h2 {color:#ffffff; font-variant:small-caps;}
+#header {width: 940px; margin:auto; padding-top: 10px;}
+
+
+.sidebar-first #main {border-left: 1px dotted #d9d9d9; padding: 8px !important; }
+.sidebar-second #main {border-right: 1px dotted #d9d9d9; padding-right: 8px !important; }
+.two-sidebars #main {border-right: 1px dotted #d9d9d9; padding-right: 8px !important; border-left: 1px dotted #d9d9d9; padding: 8px !important;}
+
+.field-name-field-image img {float: left; margin-right: 10px;}
+.submitted {font-style:italic; font-size: 0.75em }
+article header {margin-bottom: 5px;}
+article footer {clear:both; border:0px solid red; text-align: right;}
+article {border-bottom: 1px dotted #d9d9d9; margin-bottom: 55px !important;}
+article footer * {text-transform:uppercase; font-size: 12px !important; line-height: 12px !important;}
+
+#admin-menu * {color:#ffffff !important;}
+
+/* Combo menu */
+#mini_pic {float:right;}
+#mini_pic img { height:28px; width:auto;margin-top: 0px;vertical-align:text-top }
+
+#supra_bar_combo_menu {
+ float:right;
+ position:relative;
+ right:0px;
+}
+
+#supra_bar_combo_menu select {
+ float:left;
+ background-image:url('images/down_arrow.png');
+ background-color:transparent;
+ background-repeat:no-repeat;
+ background-position:right top;
+ color:transparent;
+}
+
+#supra_bar_combo_menu option {
+ background:#000000;
+ color:#ffffff;
+}
+
+#supra_bar_home_link {
+ float:left;
+ position:absolute;
+ left:14px;
+ background:#000000;
+}
+#supra_bar_home_link a {
+ color:#ffffff !important;
+ font-size: 14px;
+}
+
+
diff --git a/cea00.info b/cea00.info
new file mode 100644
index 0000000..30fe5c3
--- /dev/null
+++ b/cea00.info
@@ -0,0 +1,22 @@
+name = cea00
+description = cea00 is a Framework based theme
+core = 7.x
+engine = phptemplate
+stylesheets[all][] = cea00.css
+base theme = framework
+
+regions[supra_bar] = Supra Bar
+regions[header] = Header
+regions[navigation] = Navigation
+regions[highlighted] = Highlighted
+regions[help] = Help
+regions[content] = Content
+regions[sidebar_first] = First Sidebar
+regions[sidebar_second] = Second Sidebar
+regions[footer] = Footer
+
+
+settings[cea00_schema] = gray
+settings[cea00_menu_select] = user-menu
+settings[cea00_top_margin] = 0
+
diff --git a/down_arrow.png b/down_arrow.png
new file mode 100644
index 0000000..0eeb3d4
--- /dev/null
+++ b/down_arrow.png
Binary files differ
diff --git a/favicon.ico b/favicon.ico
new file mode 100644
index 0000000..97e308e
--- /dev/null
+++ b/favicon.ico
Binary files differ
diff --git a/images/down_arrow.png b/images/down_arrow.png
new file mode 100644
index 0000000..37b4389
--- /dev/null
+++ b/images/down_arrow.png
Binary files differ
diff --git a/logo.png b/logo.png
new file mode 100644
index 0000000..841182e
--- /dev/null
+++ b/logo.png
Binary files differ
diff --git a/page.tpl.php b/page.tpl.php
new file mode 100644
index 0000000..d369cec
--- /dev/null
+++ b/page.tpl.php
@@ -0,0 +1,149 @@
+
+<?php
+$supra_bar_combo_menu = "";
+global $user;
+global $base_url;
+if ($user->uid){
+ print '<div style="height: '.theme_get_setting('cea00_top_margin').'px;"></div>';
+ $picture = file_load($user->picture);
+ if($picture){
+ $filepath = $picture->uri;
+ $user_pic = theme('image', array('path' => $filepath, 'alt' => '', 'title' => ''));
+ }
+ else{
+ $picture = '';
+ }
+ $user_uri = user_uri($user);
+ $user_link = l($user_pic.' '.$user->name,$user_uri['path'], array('html'=>true) );
+ $mini_pic = '<div id="mini_pic">'.$user_link.'</div>';
+ $menu_custom = menu_navigation_links(theme_get_setting('cea00_menu_select'), $level = 0);
+ $combo_menu = "<form><select onchange='window.location.href = this.value'>";
+ foreach ( $menu_custom as $menuItem ){
+ $combo_menu .= '<option style="display:none" value="?q='.$menuItem['href'].'" >'.$menuItem['title'].'</option>';
+ $combo_menu .= '<option value="?q='.$menuItem['href'].'" >'.$menuItem['title'].'</option>';
+ }
+ $combo_menu .= "</select></form>";
+ $home_link = "<div id='supra_bar_home_link'>
+ <a href='$base_url'>".t('Home')."</a>
+ </div><br />";
+ $supra_bar_combo_menu = "<div id='supra_bar_combo_menu'>".$combo_menu.$home_link."</div>".$mini_pic;
+}
+
+
+?>
+
+
+<?php
+drupal_add_css(drupal_get_path('theme', 'cea00') . '/schemas/'.theme_get_setting('cea00_schema').'.css', array('group' => CSS_DEFAULT, 'every_page' => TRUE));
+?>
+<div id="supra_bar" class="clearfix">
+ <div style="float:left" id="supra_bar_main_menu">
+ <?php print theme('links__system_main_menu', array(
+ 'links' => $main_menu,
+ 'attributes' => array(
+ 'id' => 'main-menu',
+ 'class' => array('links', 'clearfix'),
+ ),
+ 'heading' => array(
+ 'text' => t('Main menu'),
+ 'level' => 'h2',
+ 'class' => array('element-invisible'),
+ ),
+ )); ?>
+ </div> <!-- /#supra_bar_main_menu -->
+ <?php print $supra_bar_combo_menu; ?>
+</div>
+
+<div id="supra_logo" class="clearfix">
+ <header id="header" role="banner" class="clearfix">
+ <?php if ($logo): ?>
+ <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" id="logo">
+ <img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" />
+ </a>
+ <?php endif; ?>
+ <?php if ($site_name || $site_slogan): ?>
+ <hgroup id="site-name-slogan">
+ <?php if ($site_name): ?>
+ <h1 id="site-name">
+ <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>"><span><?php print $site_name; ?></span></a>
+ </h1>
+ <?php endif; ?>
+ <?php if ($site_slogan): ?>
+ <h2 id="site-slogan"><?php print $site_slogan; ?></h2>
+ <?php endif; ?>
+ </hgroup>
+ <?php endif; ?>
+
+ <?php print render($page['header']); ?>
+
+ <?php if ($main_menu || $secondary_menu || !empty($page['navigation'])): ?>
+ <nav id="navigation" role="navigation" class="clearfix">
+ <?php if (!empty($page['navigation'])): ?> <!--if block in navigation region, override $main_menu and $secondary_menu-->
+ <?php print render($page['navigation']); ?>
+ <?php endif; ?>
+ <?php if (empty($page['navigation'])): ?>
+
+
+
+ <?php print theme('links__system_secondary_menu', array(
+ 'links' => $secondary_menu,
+ 'attributes' => array(
+ 'id' => 'secondary-menu',
+ 'class' => array('links', 'clearfix'),
+ ),
+ 'heading' => array(
+ 'text' => t('Secondary menu'),
+ 'level' => 'h2',
+ 'class' => array('element-invisible'),
+ ),
+ )); ?>
+ <?php endif; ?>
+ </nav> <!-- /#navigation -->
+ <?php endif; ?>
+
+ </header> <!-- /#header -->
+</div>
+
+<div id="container" class="clearfix">
+
+ <div id="skip-link">
+ <a href="#main-content" class="element-invisible element-focusable"><?php print t('Skip to main content'); ?></a>
+ <?php if ($main_menu): ?>
+ <a href="#navigation" class="element-invisible element-focusable"><?php print t('Skip to navigation'); ?></a>
+ <?php endif; ?>
+ </div>
+
+
+
+ <section id="main" role="main" class="clearfix">
+<?php if ($breadcrumb): print $breadcrumb; endif;?>
+ <?php print $messages; ?>
+ <a id="main-content"></a>
+ <?php if ($page['highlighted']): ?><div id="highlighted"><?php print render($page['highlighted']); ?></div><?php endif; ?>
+ <?php print render($title_prefix); ?>
+ <?php if ($title): ?><h1 class="title" id="page-title"><?php print $title; ?></h1><?php endif; ?>
+ <?php print render($title_suffix); ?>
+ <?php if (!empty($tabs['#primary'])): ?><div class="tabs-wrapper clearfix"><?php print render($tabs); ?></div><?php endif; ?>
+ <?php print render($page['help']); ?>
+ <?php if ($action_links): ?><ul class="action-links"><?php print render($action_links); ?></ul><?php endif; ?>
+ <?php print render($page['content']); ?>
+ </section> <!-- /#main -->
+
+ <?php if ($page['sidebar_first']): ?>
+ <aside id="sidebar-first" role="complementary" class="sidebar clearfix">
+ <?php print render($page['sidebar_first']); ?>
+ </aside> <!-- /#sidebar-first -->
+ <?php endif; ?>
+
+ <?php if ($page['sidebar_second']): ?>
+ <aside id="sidebar-second" role="complementary" class="sidebar clearfix">
+ <?php print render($page['sidebar_second']); ?>
+ </aside> <!-- /#sidebar-second -->
+ <?php endif; ?>
+
+ <footer id="footer" role="contentinfo" class="clearfix">
+ <?php print render($page['footer']) ?>
+ <?php print $feed_icons ?>
+ </footer> <!-- /#footer -->
+
+</div> <!-- /#container -->
diff --git a/schemas/blue.css b/schemas/blue.css
new file mode 100644
index 0000000..ddee9c4
--- /dev/null
+++ b/schemas/blue.css
@@ -0,0 +1,17 @@
+#supra_bar {background: #000000 !important;}
+#supra_bar #main-menu a {color:#ffffff !important;}
+#supra_logo {background: #0000ff !important;}
+#supra_logo a {color: #ffffff !important;}
+
+.sidebar-first #main {border-left: 1px dotted #0000ff !important;}
+.sidebar-second #main {border-right: 1px dotted #0000ff !important;}
+.two-sidebars #main {border-right: 1px dotted #0000ff !important;
+ border-left: 1px dotted #0000ff !important;}
+
+article {border-bottom: 1px dotted #0000ff !important;}
+
+a {color: #0000ff !important; }
+
+.sidebar a {color: #0000ff !important; }
+
+body {background: #ccdddd !important}
diff --git a/schemas/forest.css b/schemas/forest.css
new file mode 100644
index 0000000..c1563e8
--- /dev/null
+++ b/schemas/forest.css
@@ -0,0 +1,17 @@
+#supra_bar {background: #000000 !important;}
+#supra_bar #main-menu a {color:#ffffff !important;}
+#supra_logo {background: #339966 !important;}
+#supra_logo a {color: #ffffff !important;}
+
+.sidebar-first #main {border-left: 1px dotted #339966 !important;}
+.sidebar-second #main {border-right: 1px dotted #339966 !important;}
+.two-sidebars #main {border-right: 1px dotted #339966 !important;
+ border-left: 1px dotted #339966 !important;}
+
+article {border-bottom: 1px dotted #339966 !important;}
+
+a {color: #339966 !important; }
+
+.sidebar a {color: #339966 !important; }
+
+body {background: #bbcc88 !important}
diff --git a/schemas/graphite.css b/schemas/graphite.css
new file mode 100644
index 0000000..1ca2114
--- /dev/null
+++ b/schemas/graphite.css
@@ -0,0 +1,17 @@
+#supra_bar {background: #000000 !important;}
+#supra_bar #main-menu a {color:#ffffff !important;}
+#supra_logo {background: #111111 !important;}
+#supra_logo a {color: #ffffff !important;}
+
+.sidebar-first #main {border-left: 1px dotted #111111 !important;}
+.sidebar-second #main {border-right: 1px dotted #111111 !important;}
+.two-sidebars #main {border-right: 1px dotted #111111 !important;
+ border-left: 1px dotted #111111 !important;}
+
+article {border-bottom: 1px dotted #111111 !important;}
+
+a {color: #111111 !important; }
+
+.sidebar a {color: #111111 !important; }
+
+body {background: #ddd !important}
diff --git a/schemas/maroon.css b/schemas/maroon.css
new file mode 100644
index 0000000..eeda6ff
--- /dev/null
+++ b/schemas/maroon.css
@@ -0,0 +1,19 @@
+#supra_bar {background: #000000 !important;}
+#supra_bar #main-menu a {color:#ffffff !important;}
+#supra_logo {background: #cc6600 !important;}
+#supra_logo a {color: #ffffff !important;}
+
+.sidebar-first #main {border-left: 1px dotted #cc6600 !important;}
+.sidebar-second #main {border-right: 1px dotted #cc6600 !important;}
+.two-sidebars #main {border-right: 1px dotted #cc6600 !important;
+ border-left: 1px dotted #cc6600 !important;}
+
+article {border-bottom: 1px dotted #cc6600 !important;}
+
+a {color: #cc6600 !important; }
+
+.sidebar a {color: #cc6600 !important; }
+
+body {background: #ffcc99 !important}
+
+
diff --git a/schemas/orange.css b/schemas/orange.css
new file mode 100644
index 0000000..9b2bcd6
--- /dev/null
+++ b/schemas/orange.css
@@ -0,0 +1,18 @@
+#supra_bar {background: #000000 !important;}
+#supra_bar #main-menu a {color:#ffffff !important;}
+#supra_logo {background: #ff8844 !important;}
+#supra_logo a {color: #ffffff !important;}
+
+.sidebar-first #main {border-left: 1px dotted #ff8844 !important;}
+.sidebar-second #main {border-right: 1px dotted #ff8844 !important;}
+.two-sidebars #main {border-right: 1px dotted #ff8844 !important;
+ border-left: 1px dotted #ff8844 !important;}
+
+article {border-bottom: 1px dotted #ff8844 !important;}
+
+a {color: #ff8844 !important; }
+
+.sidebar a {color: #ff8844 !important; }
+
+body {background: #ffeedd !important}
+
diff --git a/schemas/pink.css b/schemas/pink.css
new file mode 100644
index 0000000..7cbfb5c
--- /dev/null
+++ b/schemas/pink.css
@@ -0,0 +1,17 @@
+#supra_bar {background: #000000 !important;}
+#supra_bar #main-menu a {color:#ffffff !important;}
+#supra_logo {background: #ff4488 !important;}
+#supra_logo a {color: #ffffff !important;}
+
+.sidebar-first #main {border-left: 1px dotted #ff4488 !important;}
+.sidebar-second #main {border-right: 1px dotted #ff4488 !important;}
+.two-sidebars #main {border-right: 1px dotted #ff4488 !important;
+ border-left: 1px dotted #ff4488 !important;}
+
+article {border-bottom: 1px dotted #ff4488 !important;}
+
+a {color: #ff4488 !important; }
+
+.sidebar a {color: #ff4488 !important; }
+
+body {background: #ffddee !important}
diff --git a/schemas/red.css b/schemas/red.css
new file mode 100644
index 0000000..208ed5b
--- /dev/null
+++ b/schemas/red.css
@@ -0,0 +1,17 @@
+#supra_bar {background: #000000 !important;}
+#supra_bar #main-menu a {color:#ffffff !important;}
+#supra_logo {background: #ff0000 !important;}
+#supra_logo a {color: #ffffff !important;}
+
+.sidebar-first #main {border-left: 1px dotted #ff0000 !important;}
+.sidebar-second #main {border-right: 1px dotted #ff0000 !important;}
+.two-sidebars #main {border-right: 1px dotted #ff0000 !important;
+ border-left: 1px dotted #ff0000 !important;}
+
+article {border-bottom: 1px dotted #ff0000 !important;}
+
+a {color: #ff0000 !important; }
+
+.sidebar a {color: #ff0000 !important; }
+
+body {background: #ffeeee !important}
diff --git a/screenshot.png b/screenshot.png
new file mode 100644
index 0000000..045551f
--- /dev/null
+++ b/screenshot.png
Binary files differ
diff --git a/theme-settings.php b/theme-settings.php
new file mode 100644
index 0000000..0a551ae
--- /dev/null
+++ b/theme-settings.php
@@ -0,0 +1,69 @@
+<?php
+
+/**
+ * @file
+ * Theme setting callbacks for the cea00 theme.
+ */
+
+/**
+ * Implements hook_form_FORM_ID_alter().
+ *
+ * @param $form
+ * The form.
+ * @param $form_state
+ * The form state.
+ */
+function cea00_form_system_theme_settings_alter(&$form, &$form_state) {
+
+/* Select color schema combo */
+ $form['cea00_schema'] = array(
+ '#type' => 'select',
+ '#default_value' => theme_get_setting('cea00_schema'),
+ '#title' => t('Schema'),
+ '#options' => array(
+ 'gray' => t('Gray'),
+ 'red' => t('Red'),
+ 'blue' => t('Blue'),
+ 'orange' => t('Orange'),
+ 'pink' => t('Pink'),
+ 'maroon' => t('Maroon'),
+ 'forest' => t('Forest'),
+ 'graphite' => t('Graphite'),
+ ),
+ '#description' => t('Select the color schema.'),
+ // Place this above the color scheme options.
+ '#weight' => -2,
+ );
+
+/* Select menu combo */
+ $menus_in_combo = array();
+ $site_menus = menu_get_names();
+ foreach ($site_menus as $id_menu){
+ $array_menu = menu_load($id_menu);
+ if ( $array_menu ){
+ $menus_in_combo[$array_menu['menu_name']] = $array_menu['title'];
+ }
+ }
+
+ $form['cea00_menu_select'] = array(
+ '#type' => 'select',
+ '#default_value' => theme_get_setting('cea00_menu_select'),
+ '#title' => t('Menu'),
+ '#options' => $menus_in_combo,
+ '#description' => t('Select the combo menu in the top bar.'),
+ '#weight' => -5,
+ );
+
+ /* Imput top margin */
+ $form['cea00_top_margin'] = array(
+ '#type' => 'textfield',
+ '#default_value' => theme_get_setting('cea00_top_margin'),
+ '#size' => 6,
+ '#maxlength' => 3,
+ '#title' => t('Top margin'),
+ '#description' => t('Select the top margin value in pixels.'),
+ '#weight' => -1,
+ );
+}
+
+
diff --git a/translations/themes-cea00.es.po b/translations/themes-cea00.es.po
new file mode 100644
index 0000000..70fd752
--- /dev/null
+++ b/translations/themes-cea00.es.po
@@ -0,0 +1,59 @@
+# Spanish translation of cea00 theme (7.0)
+# Copyright (c) 2011 by Carlos Espino
+#
+
+msgid ""
+msgstr ""
+"Project-Id-Version: Drupal core (7.9)\n"
+"POT-Creation-Date: 2011-10-30 20:36+0000\n"
+"PO-Revision-Date: YYYY-mm-DD HH:MM+ZZZZ\n"
+"Language-Team: Spanish\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n!=1);\n"
+
+msgid "Published by !username on !datetime"
+msgstr "Publicado por !username el !datetime"
+
+
+
+msgid "Schema"
+msgstr "Esquema de color"
+
+msgid "Gray"
+msgstr "Gris"
+
+msgid "Red"
+msgstr "Rojo"
+
+msgid "Blue"
+msgstr "Azul"
+
+msgid "Orange"
+msgstr "Naranja"
+
+msgid "Pink"
+msgstr "Rosa"
+
+msgid "Maroon"
+msgstr "Marrón"
+
+msgid "Forest"
+msgstr "Bosque"
+
+msgid "Graphite"
+msgstr "Grafito"
+
+msgid "Select the color schema."
+msgstr "Selecionar el esquema de color"
+
+msgid "Select the combo menu in the top bar."
+msgstr "Seleccionar el menú que aparecerá en la barra superior"
+
+msgid "Top margin"
+msgstr "Margen superior"
+
+msgid "Select the top margin value in pixels."
+msgstr "Seleccionar el valor del margen superior en pixels"
+