From fb951546d0e88063b8bb4cfb986bd12bea33f58b Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 29 Oct 2015 10:30:15 -0200 Subject: Custom common methods --- common_methods.php | 10 +++++----- drupal5_theme_methods.php | 6 +++--- drupal6_theme_methods.php | 6 +++--- drupal7_theme_methods.php | 6 +++--- template.php | 12 +++++------- 5 files changed, 19 insertions(+), 21 deletions(-) diff --git a/common_methods.php b/common_methods.php index 78306c6..958b4e2 100644 --- a/common_methods.php +++ b/common_methods.php @@ -173,7 +173,7 @@ function nuvemdario_terms_worker($terms) { $terms = get_terms_D7($content); if (!empty($terms)) { ob_start();?> - /images/posttagicon.png" width="16" height="16" alt="" /> ' . render($terms) . ''; } @@ -231,7 +231,7 @@ if (strpos ($key, "comment") !== FALSE) { $output .= ' | '; } ob_start();?> - /images/postcommentsicon.png" width="16" height="16" alt="" /> 0 && !empty($link_output) && !empty($output)) { $output .= ' | '; } ob_start();?> - /images/postcategoryicon.png" width="16" height="16" alt="" /> - /images/postdateicon.png" width="16" height="16" alt="" /> - /images/postauthoricon.png" width="16" height="16" alt="" /> @import \"". base_path() . $path ."\";\n"; - $output .= ''."\n"; - $output .= ''."\n"; - $output .= ''."\n"; + $output .= ''."\n"; + $output .= ''."\n"; + $output .= ''."\n"; $output .= "\n"; $output .= '\n"; diff --git a/drupal6_theme_methods.php b/drupal6_theme_methods.php index 1fab4fd..308f5cf 100644 --- a/drupal6_theme_methods.php +++ b/drupal6_theme_methods.php @@ -171,9 +171,9 @@ function nuvemdario_img_assist_page($content, $attributes = NULL) { $path = drupal_get_path('module', 'img_assist') .'/img_assist_popup.css'; $output .= "\n"; - $output .= ''."\n"; - $output .= ''."\n"; - $output .= ''."\n"; + $output .= ''."\n"; + $output .= ''."\n"; + $output .= ''."\n"; $output .= "\n"; $output .= '\n"; diff --git a/drupal7_theme_methods.php b/drupal7_theme_methods.php index 293ba48..eb0da4c 100644 --- a/drupal7_theme_methods.php +++ b/drupal7_theme_methods.php @@ -213,7 +213,7 @@ function nuvemdario_links_woker_D7($content) { $terms = get_terms_D7($content); if (!empty($terms)) { ob_start();?> - /images/posttagicon.png" width="16" height="16" alt="" /> ' . render($terms) . ''; } @@ -277,7 +277,7 @@ if (strpos ($key, "comment") !== FALSE) { $output .= ' | '; } ob_start();?> - /images/postcommentsicon.png" width="16" height="16" alt="" /> 0 && !empty($link_output) && !empty($output)) { $output .= ' | '; } ob_start();?> - /images/postcategoryicon.png" width="16" height="16" alt="" /> = 6) return $language->language; return $language; } -function get_full_path_to_theme() { +function nuvemdario_get_full_path_to_theme() { return base_path().path_to_theme(); } -*/ function get_nuvemdario_drupal_view() { if (get_drupal_version() == 7) @@ -55,7 +53,7 @@ class nuvemdario_view_drupal56 { $$name = & $vars[$name]; ?> -dir)) { echo 'dir="'.$language->dir.'"'; }?> > +dir)) { echo 'dir="'.$language->dir.'"'; }?> > <?php if (isset($head_title )) { echo $head_title; } ?> -- cgit v1.2.3