@@ -52,10 +52,10 @@ discard block |
||
| 52 | 52 | $css = ''; |
| 53 | 53 | foreach ($colors as $color) { |
| 54 | 54 | foreach ($color[1] as $rule) { |
| 55 | - $new_css = $rule[0] . '{' . $rule[1] . ':' . $color[0] . '}'; |
|
| 55 | + $new_css = $rule[0].'{'.$rule[1].':'.$color[0].'}'; |
|
| 56 | 56 | // Add an extra wrapper for media queries |
| 57 | 57 | if (isset($rule[2])) { |
| 58 | - $new_css = $rule[2] . '{' . $new_css . '}'; |
|
| 58 | + $new_css = $rule[2].'{'.$new_css.'}'; |
|
| 59 | 59 | } |
| 60 | 60 | $css .= $new_css; |
| 61 | 61 | } |
@@ -170,15 +170,15 @@ discard block |
||
| 170 | 170 | ), |
| 171 | 171 | '#attached' => array( |
| 172 | 172 | 'js' => array( |
| 173 | - libraries_get_path('css.js') . '/css.js', |
|
| 174 | - libraries_get_path('spectrum') . '/spectrum.js', |
|
| 175 | - libraries_get_path('html2canvas') . '/dist/html2canvas.min.js', |
|
| 176 | - libraries_get_path('color-thief') . '/src/color-thief.js', |
|
| 177 | - $path . '/js/df_tools_color.js' |
|
| 173 | + libraries_get_path('css.js').'/css.js', |
|
| 174 | + libraries_get_path('spectrum').'/spectrum.js', |
|
| 175 | + libraries_get_path('html2canvas').'/dist/html2canvas.min.js', |
|
| 176 | + libraries_get_path('color-thief').'/src/color-thief.js', |
|
| 177 | + $path.'/js/df_tools_color.js' |
|
| 178 | 178 | ), |
| 179 | 179 | 'css' => array( |
| 180 | - libraries_get_path('spectrum') . '/spectrum.css', |
|
| 181 | - $path . '/css/df_tools_color.css' |
|
| 180 | + libraries_get_path('spectrum').'/spectrum.css', |
|
| 181 | + $path.'/css/df_tools_color.css' |
|
| 182 | 182 | ), |
| 183 | 183 | ), |
| 184 | 184 | '#weight' => 200, |
@@ -13,8 +13,8 @@ discard block |
||
| 13 | 13 | function df_tools_video_slideshow_views_pre_render(&$view) { |
| 14 | 14 | if ($view->name == 'video_slideshow') { |
| 15 | 15 | $path = drupal_get_path('module', 'df_tools_video_slideshow'); |
| 16 | - drupal_add_css($path . '/css/df_tools_video_slideshow.css'); |
|
| 17 | - drupal_add_Js($path . '/js/df_tools_video_slideshow.js'); |
|
| 16 | + drupal_add_css($path.'/css/df_tools_video_slideshow.css'); |
|
| 17 | + drupal_add_Js($path.'/js/df_tools_video_slideshow.js'); |
|
| 18 | 18 | } |
| 19 | 19 | } |
| 20 | 20 | |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | */ |
| 24 | 24 | function df_tools_video_slideshow_preprocess_views_slideshow(&$variables) { |
| 25 | 25 | if ($variables['view']->name == 'video_slideshow') { |
| 26 | - $variables['slideshow'] = '<div class="views_slideshow_cycle_main_wrapper">' . $variables['slideshow'] . '</div>'; |
|
| 27 | - $variables['bottom_widget_rendered'] = '<div class="views-slideshow-pager-button views-slideshow-pager-previous"></div><div class="widget_pager_bottom_wrapper">' . $variables['bottom_widget_rendered'] . '</div><div class="views-slideshow-pager-button views-slideshow-pager-next"></div>'; |
|
| 26 | + $variables['slideshow'] = '<div class="views_slideshow_cycle_main_wrapper">'.$variables['slideshow'].'</div>'; |
|
| 27 | + $variables['bottom_widget_rendered'] = '<div class="views-slideshow-pager-button views-slideshow-pager-previous"></div><div class="widget_pager_bottom_wrapper">'.$variables['bottom_widget_rendered'].'</div><div class="views-slideshow-pager-button views-slideshow-pager-next"></div>'; |
|
| 28 | 28 | } |
| 29 | 29 | } |
@@ -119,10 +119,10 @@ discard block |
||
| 119 | 119 | * Implements hook_lightning_fpp_types(). |
| 120 | 120 | */ |
| 121 | 121 | function df_tools_slideshow_lightning_fpp_types_alter(&$types) { |
| 122 | - $icon_path = drupal_get_path('module', 'df_tools_slideshow') . '/images/'; |
|
| 122 | + $icon_path = drupal_get_path('module', 'df_tools_slideshow').'/images/'; |
|
| 123 | 123 | $types['slideshow'] = array( |
| 124 | 124 | 'title' => 'slideshow', |
| 125 | - 'icon' => $icon_path . 'icon_slideshow.png', |
|
| 125 | + 'icon' => $icon_path.'icon_slideshow.png', |
|
| 126 | 126 | 'path' => 'slideshow', |
| 127 | 127 | ); |
| 128 | 128 | } |
@@ -132,17 +132,17 @@ discard block |
||
| 132 | 132 | */ |
| 133 | 133 | function df_tools_slideshow_form_after_build($form) { |
| 134 | 134 | // Make the previews for media images larger than the default media_thumbnail |
| 135 | - for ($i=0; $i<=max(array_keys($form['field_media'][LANGUAGE_NONE])); ++$i) { |
|
| 135 | + for ($i = 0; $i <= max(array_keys($form['field_media'][LANGUAGE_NONE])); ++$i) { |
|
| 136 | 136 | // The slick image style is provided by the slick module, and formats images to match hero proportions |
| 137 | 137 | // We do not currently use this image style as the default for the slideshow fpp |
| 138 | 138 | $form['field_media'][LANGUAGE_NONE][$i]['preview']['content']['#image_style'] = 'slick'; |
| 139 | 139 | } |
| 140 | 140 | // Remove the formatting tips for the text fields |
| 141 | - for ($i=0; $i<=max(array_keys($form['field_body'][LANGUAGE_NONE])); ++$i) { |
|
| 141 | + for ($i = 0; $i <= max(array_keys($form['field_body'][LANGUAGE_NONE])); ++$i) { |
|
| 142 | 142 | unset($form['field_body'][LANGUAGE_NONE][$i]['format']['help']); |
| 143 | 143 | unset($form['field_body'][LANGUAGE_NONE][$i]['format']['guidelines']); |
| 144 | 144 | } |
| 145 | - for ($i=0; $i<=max(array_keys($form['field_title'][LANGUAGE_NONE])); ++$i) { |
|
| 145 | + for ($i = 0; $i <= max(array_keys($form['field_title'][LANGUAGE_NONE])); ++$i) { |
|
| 146 | 146 | unset($form['field_title'][LANGUAGE_NONE][$i]['format']['help']); |
| 147 | 147 | unset($form['field_title'][LANGUAGE_NONE][$i]['format']['guidelines']); |
| 148 | 148 | } |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | $node->revision = 1; |
| 57 | 57 | $node->workbench_moderation_state_new = 'draft'; |
| 58 | 58 | node_save($node); |
| 59 | - drupal_goto('/node/' . $node->nid . '/draft'); |
|
| 59 | + drupal_goto('/node/'.$node->nid.'/draft'); |
|
| 60 | 60 | } |
| 61 | 61 | // Return the standard workbench node edit form. |
| 62 | 62 | else { |
@@ -23,10 +23,10 @@ |
||
| 23 | 23 | MigrateDestinationNode::getKeySchema() |
| 24 | 24 | ); |
| 25 | 25 | |
| 26 | - $import_path = drupal_get_path('module', 'df_translate') . '/import/'; |
|
| 26 | + $import_path = drupal_get_path('module', 'df_translate').'/import/'; |
|
| 27 | 27 | |
| 28 | 28 | // Create a MigrateSource object. |
| 29 | - $this->source = new MigrateSourceCSV($import_path . 'df_translate.base.nodes.translations.csv', $this->csvcolumns(), array('header_rows' => 1)); |
|
| 29 | + $this->source = new MigrateSourceCSV($import_path.'df_translate.base.nodes.translations.csv', $this->csvcolumns(), array('header_rows' => 1)); |
|
| 30 | 30 | |
| 31 | 31 | $this->destination = new MigrateDestinationNode('page'); |
| 32 | 32 | |
@@ -10,9 +10,9 @@ |
||
| 10 | 10 | function df_search_js_alter(&$javascript) { |
| 11 | 11 | // Replace the default jQuery autocomplete JS bundled with Search Autocomplete |
| 12 | 12 | // with a version that supports closing the autocomplete using a button. |
| 13 | - $path = drupal_get_path('module', 'search_autocomplete') . '/js/jquery.autocomplete.js'; |
|
| 13 | + $path = drupal_get_path('module', 'search_autocomplete').'/js/jquery.autocomplete.js'; |
|
| 14 | 14 | |
| 15 | 15 | if (isset($javascript[$path])) { |
| 16 | - drupal_add_js(drupal_get_path('module', 'df_search') . '/js/jquery.autocomplete.js'); |
|
| 16 | + drupal_add_js(drupal_get_path('module', 'df_search').'/js/jquery.autocomplete.js'); |
|
| 17 | 17 | } |
| 18 | 18 | } |
@@ -26,10 +26,10 @@ discard block |
||
| 26 | 26 | $this->destination = new MigrateDestinationEntityAPI('commerce_product', 'product'); |
| 27 | 27 | |
| 28 | 28 | // Define a default import path. |
| 29 | - $import_path = drupal_get_path('module', 'df_commerce') . '/import/'; |
|
| 29 | + $import_path = drupal_get_path('module', 'df_commerce').'/import/'; |
|
| 30 | 30 | |
| 31 | 31 | // Create a MigrateSource object. |
| 32 | - $this->source = new MigrateSourceCSV($import_path . 'df_commerce.base.products.csv', $this->csvcolumns(), array('header_rows' => 1)); |
|
| 32 | + $this->source = new MigrateSourceCSV($import_path.'df_commerce.base.products.csv', $this->csvcolumns(), array('header_rows' => 1)); |
|
| 33 | 33 | |
| 34 | 34 | $this->addFieldMapping('title', 'title'); |
| 35 | 35 | $this->addFieldMapping('sku', 'sku'); |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | // Images |
| 39 | 39 | $this->addFieldMapping('field_images', 'images'); |
| 40 | 40 | $this->addFieldMapping('field_images:file_replace')->defaultValue(FILE_EXISTS_REPLACE); |
| 41 | - $this->addFieldMapping('field_images:source_dir')->defaultValue($import_path . 'images'); |
|
| 41 | + $this->addFieldMapping('field_images:source_dir')->defaultValue($import_path.'images'); |
|
| 42 | 42 | $this->addFieldMapping('field_images:destination_file', 'filename'); |
| 43 | 43 | |
| 44 | 44 | $this->addFieldMapping('uid', 'uid'); |
@@ -23,8 +23,8 @@ |
||
| 23 | 23 | MigrateDestinationNode::getKeySchema() |
| 24 | 24 | ); |
| 25 | 25 | |
| 26 | - $import_path = drupal_get_path('module', 'df_commerce') . '/import/'; |
|
| 27 | - $this->source = new MigrateSourceCSV($import_path . 'df_commerce.base.nodes.commerce.csv', $this->csvcolumns(), array('header_rows' => 1)); |
|
| 26 | + $import_path = drupal_get_path('module', 'df_commerce').'/import/'; |
|
| 27 | + $this->source = new MigrateSourceCSV($import_path.'df_commerce.base.nodes.commerce.csv', $this->csvcolumns(), array('header_rows' => 1)); |
|
| 28 | 28 | |
| 29 | 29 | $this->destination = new MigrateDestinationNode('commerce'); |
| 30 | 30 | |
@@ -9,8 +9,8 @@ |
||
| 9 | 9 | |
| 10 | 10 | public function __construct($arguments) { |
| 11 | 11 | parent::__construct($arguments); |
| 12 | - $import_path = drupal_get_path('module', 'df_engage') . '/import/'; |
|
| 13 | - $this->source = new MigrateSourceCSV($import_path . 'df_engage.terms.site_section.csv', $this->csvcolumns(), array('header_rows' => 1)); |
|
| 12 | + $import_path = drupal_get_path('module', 'df_engage').'/import/'; |
|
| 13 | + $this->source = new MigrateSourceCSV($import_path.'df_engage.terms.site_section.csv', $this->csvcolumns(), array('header_rows' => 1)); |
|
| 14 | 14 | $this->destination = new MigrateDestinationTerm('site_section'); |
| 15 | 15 | $this->addFieldMapping('name', 'name'); |
| 16 | 16 | } |