From 49e903820067403db97d5abc260af274887870f3 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 29 Oct 2015 10:24:58 -0200 Subject: Rename stuff to nuvemdario_ --- block-navigation.tpl.php | 2 +- comment.tpl.php | 4 +-- common_methods.php | 52 +++++++++++++++++++-------------------- drupal5_theme_methods.php | 4 +-- drupal6_theme_methods.php | 4 +-- drupal7_theme_methods.php | 4 +-- maintenance-page.tpl.php | 24 +++++++++--------- node-og-group-post.tpl.php | 6 ++--- node.tpl.php | 10 ++++---- page.tpl.php | 30 +++++++++++----------- template.php | 10 ++++---- templates/comment-wrapper.tpl.php | 4 +-- templates/region.tpl.php | 6 ++--- 13 files changed, 80 insertions(+), 80 deletions(-) diff --git a/block-navigation.tpl.php b/block-navigation.tpl.php index cecb723..f3b395f 100644 --- a/block-navigation.tpl.php +++ b/block-navigation.tpl.php @@ -1 +1 @@ -content, true, 'b2-hmenu'); ?> \ No newline at end of file +content, true, 'b2-hmenu'); ?> diff --git a/comment.tpl.php b/comment.tpl.php index f7373b3..b055dac 100644 --- a/comment.tpl.php +++ b/comment.tpl.php @@ -1,5 +1,5 @@ print_comment($vars); -?> \ No newline at end of file +?> diff --git a/common_methods.php b/common_methods.php index 6510107..78306c6 100644 --- a/common_methods.php +++ b/common_methods.php @@ -6,7 +6,7 @@ * Generate the HTML representing a given menu with Artisteer style. * */ -function art_menu_worker($content = NULL, $show_sub_menus, $menu_class) { +function nuvemdario_menu_worker($content = NULL, $show_sub_menus, $menu_class) { if (!$content) { return ''; } @@ -25,7 +25,7 @@ function art_menu_worker($content = NULL, $show_sub_menus, $menu_class) { } if (class_exists('DOMDocument')) { - $output = art_menu_xml_parcer($output, $show_sub_menus, $menu_class); + $output = nuvemdario_menu_xml_parcer($output, $show_sub_menus, $menu_class); /* Support Block Edit Link module */ $output = str_replace('', $empty_str, $output); } @@ -36,10 +36,10 @@ function art_menu_worker($content = NULL, $show_sub_menus, $menu_class) { return $output; } -function art_menu_xml_parcer($content, $show_sub_menus, $menu_class) { +function nuvemdario_menu_xml_parcer($content, $show_sub_menus, $menu_class) { $parent_id = $menu_class . '-id'; - $doc = art_xml_document_creator($content, $parent_id); + $doc = nuvemdario_xml_document_creator($content, $parent_id); if ($doc === FALSE) { return $content; // An error occurred while reading XML content } @@ -56,7 +56,7 @@ function art_menu_xml_parcer($content, $show_sub_menus, $menu_class) { } if ($ul_element == NULL) return $content; - $ul_children = art_menu_style_parcer($doc, $ul_element->childNodes, $show_sub_menus); + $ul_children = nuvemdario_menu_style_parcer($doc, $ul_element->childNodes, $show_sub_menus); $parent->appendChild($ul_element); while ($ul_element->previousSibling) @@ -65,8 +65,8 @@ function art_menu_xml_parcer($content, $show_sub_menus, $menu_class) { return html_entity_decode($doc->saveHTML(), ENT_NOQUOTES, "UTF-8"); } -function art_xml_document_creator($content, $parent_id) { - $old_error_handler = set_error_handler('art_handle_xml_error'); +function nuvemdario_xml_document_creator($content, $parent_id) { + $old_error_handler = set_error_handler('nuvemdario_handle_xml_error'); $dom = new DOMDocument(); /* Support Block Edit Link module */ $doc_content = <<< XML @@ -82,14 +82,14 @@ XML; return $dom; } -function art_handle_xml_error($errno, $errstr, $errfile, $errline) { +function nuvemdario_handle_xml_error($errno, $errstr, $errfile, $errline) { if ($errno==E_WARNING && (substr_count($errstr,"DOMDocument::loadXML()")>0)) return false; // An error occurred while reading XML content else return true; // Successful } -function art_menu_style_parcer($doc, $elements, $show_sub_menus) { +function nuvemdario_menu_style_parcer($doc, $elements, $show_sub_menus) { $parentNodes_to_delete = array(); $childNodes_to_delete = array(); foreach ($elements as $element) { @@ -134,12 +134,12 @@ function art_menu_style_parcer($doc, $elements, $show_sub_menus) { } } - art_remove_elements($childNodes_to_delete); - art_remove_elements($parentNodes_to_delete); + nuvemdario_remove_elements($childNodes_to_delete); + nuvemdario_remove_elements($parentNodes_to_delete); return $elements; } -function art_remove_elements($elements_to_delete) { +function nuvemdario_remove_elements($elements_to_delete) { if (!isset($elements_to_delete)) return; foreach($elements_to_delete as $element) { if ($element != null) { @@ -148,9 +148,9 @@ function art_remove_elements($elements_to_delete) { } } -function art_node_worker($node) { - $links_output = art_links_woker($node->links); - $terms_output = art_terms_worker($node->taxonomy); +function nuvemdario_node_worker($node) { + $links_output = nuvemdario_links_woker($node->links); + $terms_output = nuvemdario_terms_worker($node->taxonomy); $output = $links_output; if (!empty($links_output) && !empty($terms_output)) { @@ -168,7 +168,7 @@ function art_node_worker($node) { * * @ingroup themeable */ -function art_terms_worker($terms) { +function nuvemdario_terms_worker($terms) { $result = ''; $terms = get_terms_D7($content); if (!empty($terms)) { @@ -191,7 +191,7 @@ $terms = get_terms_D7($content); * @return * A string containing an unordered list of links. */ -function art_links_woker($links, $attributes = array('class' => 'links')) { +function nuvemdario_links_woker($links, $attributes = array('class' => 'links')) { $output = ''; if (!empty($links)) { @@ -285,7 +285,7 @@ function get_html_link_output($link) { return $output; } -function art_content_replace($content) { +function nuvemdario_content_replace($content) { $first_time_str = '
@@ -422,7 +422,7 @@ ob_start();?> return $output; } -function is_art_links_set($links) { +function is_nuvemdario_links_set($links) { $size = sizeof($links); if ($size == 0) { return FALSE; @@ -441,7 +441,7 @@ function is_art_links_set($links) { * Method to define node title output. * */ -function art_node_title_output($title, $node_url, $page) { +function nuvemdario_node_title_output($title, $node_url, $page) { $output = ''; if (!$page) $output = '' . $title . ''; @@ -450,11 +450,11 @@ function art_node_title_output($title, $node_url, $page) { return $output; } -function art_vmenu_output($subject, $content) { +function nuvemdario_vmenu_output($subject, $content) { if (empty($content)) return; - $output = art_menu_worker($content, true, 'b2-vmenu'); + $output = nuvemdario_menu_worker($content, true, 'b2-vmenu'); $bvm = "
\r\n
\r\n"; $bvmt = "
\r\n
\r\n
\r\n

"; $evmt = "

\r\n
\r\n"; diff --git a/drupal5_theme_methods.php b/drupal5_theme_methods.php index 60be9f1..2cdd1e6 100644 --- a/drupal5_theme_methods.php +++ b/drupal5_theme_methods.php @@ -142,7 +142,7 @@ function nuvemdario_breadcrumb($breadcrumb) { } function nuvemdario_service_links_node_format($links) { - return ''; + return ''; } /** @@ -234,4 +234,4 @@ function nuvemdario_img_assist_page($content, $attributes = NULL) { $output .= ''; $output .= ''; return $output; -} \ No newline at end of file +} diff --git a/drupal6_theme_methods.php b/drupal6_theme_methods.php index fb7d7e6..1fab4fd 100644 --- a/drupal6_theme_methods.php +++ b/drupal6_theme_methods.php @@ -94,7 +94,7 @@ function nuvemdario_breadcrumb($breadcrumb) { } function nuvemdario_service_links_node_format($links) { - return ''; + return ''; } /** @@ -273,4 +273,4 @@ EOT; $output .= "
\n"; return $output; -} \ No newline at end of file +} diff --git a/drupal7_theme_methods.php b/drupal7_theme_methods.php index 7df7581..293ba48 100644 --- a/drupal7_theme_methods.php +++ b/drupal7_theme_methods.php @@ -194,7 +194,7 @@ EOT; * @return * A string containing an unordered list of links. */ -function art_links_woker_D7($content) { +function nuvemdario_links_woker_D7($content) { $result = ''; if (!isset($content['links'])) return $result; foreach (array_keys($content['links']) as $name) { @@ -296,4 +296,4 @@ if ($index > 0 && !empty($link_output) && !empty($output)) { } return $output; -} \ No newline at end of file +} diff --git a/maintenance-page.tpl.php b/maintenance-page.tpl.php index ebde559..6274e67 100644 --- a/maintenance-page.tpl.php +++ b/maintenance-page.tpl.php @@ -1,14 +1,14 @@ print_head($vars); if (isset($page)) foreach (array_keys($page) as $name) $$name = & $page[$name]; - $art_sidebar_left = isset($sidebar_left) && !empty($sidebar_left) ? $sidebar_left : NULL; - $art_sidebar_right = isset($sidebar_right) && !empty($sidebar_right) ? $sidebar_right : NULL; + $nuvemdario_sidebar_left = isset($sidebar_left) && !empty($sidebar_left) ? $sidebar_left : NULL; + $nuvemdario_sidebar_right = isset($sidebar_right) && !empty($sidebar_right) ? $sidebar_right : NULL; if (!isset($vnavigation_left)) $vnavigation_left = NULL; if (!isset($vnavigation_right)) $vnavigation_right = NULL; $tabs = (isset($tabs) && !(empty($tabs))) ? '
    '.render($tabs).'
' : NULL; @@ -66,10 +66,10 @@
'.render($banner1).'
'; } ?> - +
-
+
'.render($banner2).'
'; } ?> @@ -107,7 +107,7 @@ '.$mission.''; }; ?> - +
@@ -129,16 +129,16 @@ '.render($banner5).''; } ?> - - + +
- +'.render($banner6).''; } ?> -print_closure($vars); ?> \ No newline at end of file +print_closure($vars); ?> diff --git a/node-og-group-post.tpl.php b/node-og-group-post.tpl.php index be40e4c..1eb2d0b 100644 --- a/node-og-group-post.tpl.php +++ b/node-og-group-post.tpl.php @@ -2,12 +2,12 @@

> - +

@@ -25,7 +25,7 @@
@@ -143,15 +143,15 @@ - - + +
- - + +
@@ -174,7 +174,7 @@ - +
@@ -197,16 +197,16 @@ '.render($banner5).'
'; } ?>
- - + +
- +'.render($banner6).''; } ?>