diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-10-29 10:45:09 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-10-29 10:45:09 -0200 |
commit | 39dd802388d44e809d0c489f02c070f4ff4988f6 (patch) | |
tree | 5a90bc927fcc84ea488e8a608c01aee7515ab614 | |
parent | 2821f8b7dc667a05433c9dc4edc5e554b81ec8cc (diff) | |
download | nuvemwidget-39dd802388d44e809d0c489f02c070f4ff4988f6.tar.gz nuvemwidget-39dd802388d44e809d0c489f02c070f4ff4988f6.tar.bz2 |
Nuvemdario to nuvemwidget
-rw-r--r-- | drupal5_theme_methods.php | 16 | ||||
-rw-r--r-- | drupal6_theme_methods.php | 16 | ||||
-rw-r--r-- | drupal7_theme_methods.php | 12 | ||||
-rw-r--r-- | 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 '<a href="'. check_url($url) .'" class="b2-rss-tag-icon" title="' . t('Syndicate content') . '"></a>'; } /** * 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 '<div class="breadcrumb b2-postcontent">'. implode(' | ', $breadcrumb) .'</div>'; } } -function nuvemdario_service_links_node_format($links) { +function nuvemwidget_service_links_node_format($links) { return '<div class="service-links"><div class="service-label">'. t('Bookmark/Search this post with: ') .'</div>'. art_links_woker($links) .'</div>'; } @@ -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 = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n"; $output .= '<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">'."\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 '<a href="'. check_url($url) .'" class="b2-rss-tag-icon" title="' . $title . '"></a>'; } /** * 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 '<div class="breadcrumb b2-postcontent">'. implode(' | ', $breadcrumb) .'</div>'; } } -function nuvemdario_service_links_node_format($links) { +function nuvemwidget_service_links_node_format($links) { return '<div class="service-links"><div class="service-label">'. t('Bookmark/Search this post with: ') .'</div>'. art_links_woker($links) .'</div>'; } @@ -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 = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n"; $output .= '<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">'."\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 = '<div class="preview">'; $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 = '<div class="preview">'; 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 |