aboutsummaryrefslogtreecommitdiff
path: root/template.php
diff options
context:
space:
mode:
Diffstat (limited to 'template.php')
-rw-r--r--template.php40
1 files changed, 20 insertions, 20 deletions
diff --git a/template.php b/template.php
index 1d36d79..b23a61a 100644
--- a/template.php
+++ b/template.php
@@ -9,7 +9,7 @@
/**
* Override or insert variables into the html template.
*/
-function sky_preprocess_html(&$vars) {
+function muambeiro_preprocess_html(&$vars) {
global $theme_path;
// Add conditional CSS for IE7 and below.
@@ -19,7 +19,7 @@ function sky_preprocess_html(&$vars) {
/**
* Implements template_preprocess_page().
*/
-function sky_preprocess_page(&$vars) {
+function muambeiro_preprocess_page(&$vars) {
// Shorten the sidebar variable names.
$sidebar_1 = $vars['page']['sidebar_first'];
$sidebar_2 = $vars['page']['sidebar_second'];
@@ -30,8 +30,8 @@ function sky_preprocess_page(&$vars) {
$width = 3;
}
// Define grid classes for page.tpl.php
- $vars['content_grid_classes'] = sky_ns('grid-16', $sidebar_1, $width, $sidebar_2, $width) . ' ' . sky_ns('push-' . $width, !$sidebar_1, $width);
- $vars['sidebar_first_grid_classes'] = 'grid-' . $width . ' ' . sky_ns('pull-' . (16 - $width), $sidebar_2, $width);
+ $vars['content_grid_classes'] = muambeiro_ns('grid-16', $sidebar_1, $width, $sidebar_2, $width) . ' ' . muambeiro_ns('push-' . $width, !$sidebar_1, $width);
+ $vars['sidebar_first_grid_classes'] = 'grid-' . $width . ' ' . muambeiro_ns('pull-' . (16 - $width), $sidebar_2, $width);
$vars['sidebar_second_grid_classes'] = 'grid-' . $width;
// Add text for unpublished nodes.
@@ -43,7 +43,7 @@ function sky_preprocess_page(&$vars) {
/**
* Implements template_process_html().
*/
-function sky_process_html(&$vars) {
+function muambeiro_process_html(&$vars) {
// Apply color module scheme.
if (module_exists('color')) {
_color_html_alter($vars);
@@ -53,7 +53,7 @@ function sky_process_html(&$vars) {
/**
* Implements template_preprocess_region().
*/
-function sky_preprocess_region(&$vars) {
+function muambeiro_preprocess_region(&$vars) {
// Grid classes.
if ($vars['region'] == 'header') {
$vars['classes_array'][] = 'grid-6';
@@ -71,7 +71,7 @@ function sky_preprocess_region(&$vars) {
/**
* Implements template_preprocess_node().
*/
-function sky_preprocess_node(&$vars) {
+function muambeiro_preprocess_node(&$vars) {
// Add decent classes for node titles.
$vars['title_attributes_array']['class'][] = 'title';
$vars['title_attributes_array']['class'][] = 'node-title';
@@ -83,7 +83,7 @@ function sky_preprocess_node(&$vars) {
/**
* Implements template_preprocess_block().
*/
-function sky_preprocess_block(&$vars) {
+function muambeiro_preprocess_block(&$vars) {
// Add decent classes for block titles.
$vars['title_attributes_array']['class'][] = 'title';
$vars['title_attributes_array']['class'][] = 'block-title';
@@ -103,13 +103,13 @@ function sky_preprocess_block(&$vars) {
* Implements hook_html_head_alter().
* Overwrite the default meta character type tag with HTML5 version.
*/
-function sky_html_head_alter(&$head_elements) {
+function muambeiro_html_head_alter(&$head_elements) {
// Modify the meta tag for HTML5.
$head_elements['system_meta_content_type']['#attributes'] = array(
'charset' => 'utf-8',
);
// Force IE to always run the latest rendering engine.
- $head_elements['sky_edge_chrome'] = array(
+ $head_elements['muambeiro_edge_chrome'] = array(
'#type' => 'html_tag',
'#tag' => 'meta',
'#attributes' => array('http-equiv' => 'X-UA-Compatible', 'content' => 'IE=edge,chrome=1'),
@@ -119,8 +119,8 @@ function sky_html_head_alter(&$head_elements) {
/**
* Implements hook_css_alter().
*/
-function sky_css_alter(&$css) {
- $path = drupal_get_path('theme', 'sky');
+function muambeiro_css_alter(&$css) {
+ $path = drupal_get_path('theme', 'muambeiro');
// Remove some core default stylesheets.
unset($css[drupal_get_path('module', 'system') . '/system.menus.css']);
@@ -153,7 +153,7 @@ function sky_css_alter(&$css) {
/**
* Implements hook_page_alter().
*/
-function sky_page_alter(&$page) {
+function muambeiro_page_alter(&$page) {
// Remove the block template wrapper from the main content block.
if (!empty($page['content']['system_main'])) {
$page['content']['system_main']['#theme_wrappers'] = array_diff($page['content']['system_main']['#theme_wrappers'], array('block'));
@@ -169,7 +169,7 @@ function sky_page_alter(&$page) {
* Overrides theme_status_messages().
* Shows the message headers instead of hiding them.
*/
-function sky_status_messages($variables) {
+function muambeiro_status_messages($variables) {
$display = $variables['display'];
$output = '';
@@ -196,7 +196,7 @@ function sky_status_messages($variables) {
/**
* Overrides theme_field().
*/
-function sky_field($variables) {
+function muambeiro_field($variables) {
$output = '';
// Render the label, if it's not hidden.
@@ -222,11 +222,11 @@ function sky_field($variables) {
/**
* Implements hook_theme().
*/
-function sky_theme() {
+function muambeiro_theme() {
return array(
'color_scheme_form' => array(
'render element' => 'form',
- 'path' => drupal_get_path('theme', 'sky') . '/templates',
+ 'path' => drupal_get_path('theme', 'muambeiro') . '/templates',
'template' => 'color-scheme-form',
),
);
@@ -235,10 +235,10 @@ function sky_theme() {
/**
* Implements template_preprocess_color_scheme_form().
*/
-function sky_preprocess_color_scheme_form(&$variables) {
+function muambeiro_preprocess_color_scheme_form(&$variables) {
$form = $variables['form'];
$info = $form['info']['#value'];
- $path = drupal_get_path('theme', 'sky') . '/';
+ $path = drupal_get_path('theme', 'muambeiro') . '/';
// Add the preview.css file.
drupal_add_css($path . $info['preview_css'], array('group' => CSS_THEME, 'preprocess' => FALSE));
@@ -256,7 +256,7 @@ function sky_preprocess_color_scheme_form(&$variables) {
* Taken from the Ninesixty project to help generate grid classes.
* @see http://drupal.org/project/ninesixty
*/
-function sky_ns() {
+function muambeiro_ns() {
$args = func_get_args();
$default = array_shift($args);
// Get the type of class, i.e., 'grid', 'pull', 'push', etc.