summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2013-11-06 18:40:08 -0200
committerSilvio <silvio@socioambiental.org>2013-11-06 18:40:08 -0200
commite586f688fd957969f0a49a9bc38cf2a390fe1747 (patch)
tree0a447d2ccbda798cf681855440a3189a64c0582b
parent81249af938cf9d6358f7ae65aad7d2b1bae20fd1 (diff)
downloadtimelinejs-e586f688fd957969f0a49a9bc38cf2a390fe1747.tar.gz
timelinejs-e586f688fd957969f0a49a9bc38cf2a390fe1747.tar.bz2
Coding style
-rw-r--r--timelinejs.module20
1 files 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 = '<!DOCTYPE html>';
$output .= '<meta http-equiv="Content-Type" content="text/html; charset=utf-8">';
$output .= '<html style="height: 100%;"><head>';
- $output .= '<title>'. t('Timeline: @title', array('@title' => $node->title)) .'</title>';
+ $output .= '<title>' . t('Timeline: @title', array('@title' => $node->title)) . '</title>';
$output .= '<script type="text/javascript">timelineWidget = true;</script>';
$output .= '</head><body class="widget timeline-widget" style="height: 100%; margin: 0px;">';
$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,
));