From e586f688fd957969f0a49a9bc38cf2a390fe1747 Mon Sep 17 00:00:00 2001 From: Silvio Date: Wed, 6 Nov 2013 18:40:08 -0200 Subject: Coding style --- timelinejs.module | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/timelinejs.module b/timelinejs.module index bb9014b..e6d5877 100644 --- a/timelinejs.module +++ b/timelinejs.module @@ -60,7 +60,7 @@ function timelinejs_theme($existing, $type, $theme, $path) { 'start_at_end' => 'false', 'hash_bookmark' => 'true', 'css' => NULL, - 'js' => '/'. timelinejs_library_path() .'/compiled/js/timeline.js', + 'js' => '/' . timelinejs_library_path() . '/compiled/js/timeline.js', 'font' => NULL, 'lang' => NULL, ), @@ -135,7 +135,7 @@ function timelinejs_fetch_items($nid, $format = 'json') { $event->body['und'] = NULL; } - $output[] = theme('timelinejs_'. $format .'_event', array('event' => $event)); + $output[] = theme('timelinejs_' . $format . '_event', array('event' => $event)); if ($format == 'json') { $events = implode(',', $output); } @@ -163,7 +163,7 @@ function timelinejs_fetch_items($nid, $format = 'json') { function timelinejs_json($nid) { print theme('timelinejs_json', timelinejs_fetch_items($nid)); - # Avoid themable output. + // Avoid themable output. exit; } @@ -189,7 +189,7 @@ function timelinejs_widget($nid = NULL, $width = '960px', $height = '500px') { $output = ''; $output .= ''; $output .= ''; - $output .= ''. t('Timeline: @title', array('@title' => $node->title)) .''; + $output .= '' . t('Timeline: @title', array('@title' => $node->title)) . ''; $output .= ''; $output .= ''; $output .= timelinejs($nid, $width, $height); @@ -217,11 +217,11 @@ function timelinejs($nid = NULL, $width = '960px', $height = '600px') { $library_path = timelinejs_library_path(); // Determine stylesheet - if (file_exists($theme_path .'/timeline.css')) { - $css = '/'. $theme_path .'/timeline.css'; + if (file_exists($theme_path . '/timeline.css')) { + $css = '/' . $theme_path . '/timeline.css'; } else { - $css = '/'. $library_path .'/compiled/css/timeline.css'; + $css = '/' . $library_path . '/compiled/css/timeline.css'; } // Determine data source @@ -229,7 +229,7 @@ function timelinejs($nid = NULL, $width = '960px', $height = '600px') { $source = $node->field_source['und'][0]['value']; } else { - $source = $base_url .'/timelinejs/json/'. (int) $nid; + $source = $base_url . '/timelinejs/json/' . (int) $nid; } // Determine dimensions @@ -246,8 +246,8 @@ function timelinejs($nid = NULL, $width = '960px', $height = '600px') { 'height' => $height, 'source' => $source, 'css' => $css, - 'js' => '/'. $library_path .'/compiled/js/timeline-min.js', - 'lang' => '/'. $library_path .'/compiled/js/locale/'. $language->language .'.js', + 'js' => '/' . $library_path . '/compiled/js/timeline-min.js', + 'lang' => '/' . $library_path . '/compiled/js/locale/' . $language->language . '.js', 'font' => variable_get('timelinejs_font', 'Bevan-PotanoSans'), 'library_path' => $library_path, )); -- cgit v1.2.3