From 39dd802388d44e809d0c489f02c070f4ff4988f6 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 29 Oct 2015 10:45:09 -0200 Subject: Nuvemdario to nuvemwidget --- drupal5_theme_methods.php | 16 ++++++++-------- drupal6_theme_methods.php | 16 ++++++++-------- drupal7_theme_methods.php | 12 ++++++------ nuvemwidget.info | 1 - 4 files changed, 22 insertions(+), 23 deletions(-) diff --git a/drupal5_theme_methods.php b/drupal5_theme_methods.php index 60be9f1..e266e22 100644 --- a/drupal5_theme_methods.php +++ b/drupal5_theme_methods.php @@ -2,7 +2,7 @@ /* Drupal 5 methods definitons */ -function nuvemdario_regions() { +function nuvemwidget_regions() { return array( 'sidebar_left' => t('Left sidebar'), 'vnavigation_left' => ('Left vertical menu'), @@ -65,7 +65,7 @@ function _phptemplate_variables($hook, $vars) { * * @ingroup themeable */ -function nuvemdario_menu_local_task($mid, $active, $primary) { +function nuvemwidget_menu_local_task($mid, $active, $primary) { $active_class = ""; if ($active) { $active_class .= "active "; @@ -84,14 +84,14 @@ function nuvemdario_menu_local_task($mid, $active, $primary) { * @param $url * The url of the feed. */ -function nuvemdario_feed_icon($url) { +function nuvemwidget_feed_icon($url) { return ''; } /** * Allow themable wrapping of all comments. */ -function nuvemdario_comment_wrapper($content, $type = null) { +function nuvemwidget_comment_wrapper($content, $type = null) { static $node_type; if (isset($type)) $node_type = $type; @@ -135,13 +135,13 @@ function nuvemdario_comment_wrapper($content, $type = null) { /** * Allow themable wrapping of all breadcrumbs. */ -function nuvemdario_breadcrumb($breadcrumb) { +function nuvemwidget_breadcrumb($breadcrumb) { if (!empty($breadcrumb)) { return '
'. implode(' | ', $breadcrumb) .'
'; } } -function nuvemdario_service_links_node_format($links) { +function nuvemwidget_service_links_node_format($links) { return ''; } @@ -150,7 +150,7 @@ function nuvemdario_service_links_node_format($links) { * * @ingroup themeable */ -function nuvemdario_button($element) { +function nuvemwidget_button($element) { // Make sure not to overwrite classes. if (isset($element['#attributes']['class'])) { $element['#attributes']['class'] = 'form-'.$element['#button_type'].' '.$element['#attributes']['class'].' b2-button'; @@ -171,7 +171,7 @@ function nuvemdario_button($element) { * Image assist module support. * Added Artisteer styles in IE */ -function nuvemdario_img_assist_page($content, $attributes = NULL) { +function nuvemwidget_img_assist_page($content, $attributes = NULL) { $title = drupal_get_title(); $output = ''."\n"; $output .= ''."\n"; diff --git a/drupal6_theme_methods.php b/drupal6_theme_methods.php index fb7d7e6..101ead4 100644 --- a/drupal6_theme_methods.php +++ b/drupal6_theme_methods.php @@ -16,7 +16,7 @@ function phptemplate_preprocess_page(&$vars) { * @ingroup themeable */ -function nuvemdario_menu_local_task($link, $active = FALSE) { +function nuvemwidget_menu_local_task($link, $active = FALSE) { $active_class = ""; if ($active) { $active_class .= "active "; @@ -37,14 +37,14 @@ function nuvemdario_menu_local_task($link, $active = FALSE) { * @param $title * A descriptive title of the feed. */ -function nuvemdario_feed_icon($url, $title) { +function nuvemwidget_feed_icon($url, $title) { return ''; } /** * Add a "Comments" heading above comments except on forum pages. */ -function nuvemdario_preprocess_comment_wrapper(&$vars) { +function nuvemwidget_preprocess_comment_wrapper(&$vars) { if (!isset($vars['content'])) return; ob_start();?> @@ -87,13 +87,13 @@ function nuvemdario_preprocess_comment_wrapper(&$vars) { /** * Allow themable wrapping of all breadcrumbs. */ -function nuvemdario_breadcrumb($breadcrumb) { +function nuvemwidget_breadcrumb($breadcrumb) { if (!empty($breadcrumb)) { return '
'. implode(' | ', $breadcrumb) .'
'; } } -function nuvemdario_service_links_node_format($links) { +function nuvemwidget_service_links_node_format($links) { return ''; } @@ -102,7 +102,7 @@ function nuvemdario_service_links_node_format($links) { * * @ingroup themeable */ -function nuvemdario_button($element) { +function nuvemwidget_button($element) { // Make sure not to overwrite classes. if (isset($element['#attributes']['class'])) { $element['#attributes']['class'] = 'form-'.$element['#button_type'].' '.$element['#attributes']['class'].' b2-button'; @@ -123,7 +123,7 @@ function nuvemdario_button($element) { * Image assist module support. * Added Artisteer styles in IE */ -function nuvemdario_img_assist_page($content, $attributes = NULL) { +function nuvemwidget_img_assist_page($content, $attributes = NULL) { $title = drupal_get_title(); $output = ''."\n"; $output .= ''."\n"; @@ -196,7 +196,7 @@ function nuvemdario_img_assist_page($content, $attributes = NULL) { * * @ingroup themeable */ -function nuvemdario_node_preview($node) { +function nuvemwidget_node_preview($node) { $output = '
'; $preview_trimmed_version = FALSE; diff --git a/drupal7_theme_methods.php b/drupal7_theme_methods.php index 7df7581..a34b923 100644 --- a/drupal7_theme_methods.php +++ b/drupal7_theme_methods.php @@ -2,7 +2,7 @@ /* Drupal 7 methods definitons */ -function nuvemdario_breadcrumb($variables) { +function nuvemwidget_breadcrumb($variables) { $breadcrumb = $variables['breadcrumb']; if (!empty($breadcrumb)) { @@ -25,7 +25,7 @@ function nuvemdario_breadcrumb($variables) { * * @ingroup themeable */ -function nuvemdario_button($variables) { +function nuvemwidget_button($variables) { $element = $variables['element']; $element['#attributes']['type'] = 'submit'; element_set_attributes($element, array('id', 'name', 'value')); @@ -45,7 +45,7 @@ function nuvemdario_button($variables) { /** * Override or insert variables into the page template. */ -function nuvemdario_preprocess_page(&$vars) { +function nuvemwidget_preprocess_page(&$vars) { $vars['tabs'] = menu_primary_local_tasks(); $vars['tabs2'] = menu_secondary_local_tasks(); } @@ -62,7 +62,7 @@ function nuvemdario_preprocess_page(&$vars) { * * @ingroup themeable */ -function nuvemdario_menu_local_task($variables) { +function nuvemwidget_menu_local_task($variables) { $link = $variables['element']['#link']; $link_text = $link['title']; @@ -98,7 +98,7 @@ function nuvemdario_menu_local_task($variables) { * - url: The url of the feed. * - title: A descriptive title of the feed. */ -function nuvemdario_feed_icon($variables) { +function nuvemwidget_feed_icon($variables) { $text = t('Subscribe to @feed-title', array('@feed-title' => $variables['title'])); return l(NULL, $variables['url'], array('html' => TRUE, 'attributes' => array('class' => array('feed-icon', 'b2-rss-tag-icon'), 'title' => $text))); } @@ -112,7 +112,7 @@ function nuvemdario_feed_icon($variables) { * * @ingroup themeable */ -function nuvemdario_node_preview($variables) { +function nuvemwidget_node_preview($variables) { $node = $variables['node']; $output = '
'; diff --git a/nuvemwidget.info b/nuvemwidget.info index cce7ccc..2c607ba 100644 --- a/nuvemwidget.info +++ b/nuvemwidget.info @@ -1,4 +1,3 @@ -; $Id: nuvemdario.info $ name = Nuvemwidget description = Widget version for Nuvemdario screenshot = screenshot.png -- cgit v1.2.3