@@ -32,8 +32,7 @@ |
||
32 | 32 | // Create a MigrateSource object. |
33 | 33 | if (isset($arguments['path'])) { |
34 | 34 | $import_path = $arguments['path']; |
35 | - } |
|
36 | - else { |
|
35 | + } else { |
|
37 | 36 | $import_path = drupal_get_path('module', 'df_tools_commerce_product') . '/import/df_tools_commerce.fpp.commerce_product.csv'; |
38 | 37 | } |
39 | 38 | $this->source = new MigrateSourceCSV($import_path, array(), array('header_rows' => 1)); |
@@ -36,14 +36,14 @@ |
||
36 | 36 | $import_path = $arguments['path']; |
37 | 37 | } |
38 | 38 | else { |
39 | - $import_path = drupal_get_path('module', 'df_tools_hero') . '/import/df_tools_hero.fpp.hero.csv'; |
|
39 | + $import_path = drupal_get_path('module', 'df_tools_hero').'/import/df_tools_hero.fpp.hero.csv'; |
|
40 | 40 | } |
41 | 41 | $this->source = new MigrateSourceCSV($import_path, array(), array('header_rows' => 1)); |
42 | 42 | $this->destination = new MigrateDestinationFieldablePanelsPanes('hero', array('text_format' => 'full_html')); |
43 | 43 | |
44 | 44 | $this->addFieldMapping('field_hero_image', 'Image'); |
45 | 45 | $this->addFieldMapping('field_hero_image:file_replace')->defaultValue(FILE_EXISTS_REPLACE); |
46 | - $this->addFieldMapping('field_hero_image:source_dir')->defaultValue(dirname($import_path) . '/images'); |
|
46 | + $this->addFieldMapping('field_hero_image:source_dir')->defaultValue(dirname($import_path).'/images'); |
|
47 | 47 | $this->addFieldMapping('field_hero_image:destination_file', 'filename'); |
48 | 48 | |
49 | 49 | $this->addFieldMapping('field_hero_headline_1', 'Headline 1'); |
@@ -32,8 +32,7 @@ |
||
32 | 32 | // Create a MigrateSource object. |
33 | 33 | if (isset($arguments['path'])) { |
34 | 34 | $import_path = $arguments['path']; |
35 | - } |
|
36 | - else { |
|
35 | + } else { |
|
37 | 36 | $import_path = drupal_get_path('module', 'df_tools_commerce_product') . '/import/df_tools_commerce.fpp.commerce_product.csv'; |
38 | 37 | } |
39 | 38 | $this->source = new MigrateSourceCSV($import_path, array(), array('header_rows' => 1)); |
@@ -36,14 +36,14 @@ discard block |
||
36 | 36 | $import_path = $arguments['path']; |
37 | 37 | } |
38 | 38 | else { |
39 | - $import_path = drupal_get_path('module', 'df_tools_slideshow') . '/import/df_tools_slideshow.fpp.slideshow.csv'; |
|
39 | + $import_path = drupal_get_path('module', 'df_tools_slideshow').'/import/df_tools_slideshow.fpp.slideshow.csv'; |
|
40 | 40 | } |
41 | 41 | $this->source = new MigrateSourceCSV($import_path, array(), array('header_rows' => 1)); |
42 | 42 | $this->destination = new MigrateDestinationFieldablePanelsPanes('slideshow', array('text_format' => 'raw_html')); |
43 | 43 | |
44 | 44 | $this->addFieldMapping('field_media', 'media_formatted'); |
45 | 45 | $this->addFieldMapping('field_media:file_replace')->defaultValue(FILE_EXISTS_REPLACE); |
46 | - $this->addFieldMapping('field_media:source_dir')->defaultValue(dirname($import_path) . '/images'); |
|
46 | + $this->addFieldMapping('field_media:source_dir')->defaultValue(dirname($import_path).'/images'); |
|
47 | 47 | $this->addFieldMapping('field_media:destination_file', 'filename'); |
48 | 48 | |
49 | 49 | $this->addFieldMapping('field_title', 'title_formatted'); |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | if (strpos($column, 'Slide ') === 0) { |
66 | 66 | // Slide columns are in the format "Slide <index> <Field>" |
67 | 67 | $column = explode(' ', $column); |
68 | - $row->{strtolower($column[2]) . '_formatted'}[$column[1]] = $value; |
|
68 | + $row->{strtolower($column[2]).'_formatted'}[$column[1]] = $value; |
|
69 | 69 | } |
70 | 70 | } |
71 | 71 | return TRUE; |
@@ -32,8 +32,7 @@ |
||
32 | 32 | // Create a MigrateSource object. |
33 | 33 | if (isset($arguments['path'])) { |
34 | 34 | $import_path = $arguments['path']; |
35 | - } |
|
36 | - else { |
|
35 | + } else { |
|
37 | 36 | $import_path = drupal_get_path('module', 'df_tools_commerce_product') . '/import/df_tools_commerce.fpp.commerce_product.csv'; |
38 | 37 | } |
39 | 38 | $this->source = new MigrateSourceCSV($import_path, array(), array('header_rows' => 1)); |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | * Page callback; enable a scenario. |
10 | 10 | */ |
11 | 11 | function df_admin_page_enable($module) { |
12 | - if (!isset($_GET['token']) || !drupal_valid_token($_GET['token'], DRUPAL_ROOT . '/df/enable/' . $module)) { |
|
12 | + if (!isset($_GET['token']) || !drupal_valid_token($_GET['token'], DRUPAL_ROOT.'/df/enable/'.$module)) { |
|
13 | 13 | return drupal_access_denied(); |
14 | 14 | } |
15 | 15 | return df_admin_enable_scenario($module); |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | } |
35 | 35 | |
36 | 36 | // Load info file to grab dependencies. |
37 | - if (!$info = drupal_parse_info_file(drupal_get_path('module', $module) . '/' . $module . '.info')) { |
|
37 | + if (!$info = drupal_parse_info_file(drupal_get_path('module', $module).'/'.$module.'.info')) { |
|
38 | 38 | drupal_set_message(t('Unable to load Scenario .info file'), 'error'); |
39 | 39 | return FALSE; |
40 | 40 | } |
@@ -58,8 +58,8 @@ discard block |
||
58 | 58 | // Not all DFS require a batch content import, but some need this. |
59 | 59 | // Resolves to the DF admin page if no reset callback present. |
60 | 60 | if (!drupal_is_cli()) { |
61 | - $path = 'admin/df/reset/' . $module; |
|
62 | - $token = drupal_get_token(DRUPAL_ROOT . '/df/reset/' . $module); |
|
61 | + $path = 'admin/df/reset/'.$module; |
|
62 | + $token = drupal_get_token(DRUPAL_ROOT.'/df/reset/'.$module); |
|
63 | 63 | drupal_goto($path, array('query' => array('token' => $token))); |
64 | 64 | } |
65 | 65 | |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | // Enable a disabled Features module. |
74 | 74 | if (!module_exists($module)) { |
75 | 75 | if (module_enable(array($module))) { |
76 | - watchdog('demo framework', 'Enabled module: ' . $module); |
|
76 | + watchdog('demo framework', 'Enabled module: '.$module); |
|
77 | 77 | drupal_set_message(t('@module enabled.', array('@module' => $module)), 'status'); |
78 | 78 | return TRUE; |
79 | 79 | } |
@@ -89,7 +89,7 @@ |
||
89 | 89 | $import_path = drupal_get_path('module', 'dfs_med') . '/import/'; |
90 | 90 | $this->source = new MigrateSourceCSV($import_path . 'dfs_med.nodes.episode.csv', $this->csvcolumns(), array('header_rows' => 1)); |
91 | 91 | $this->addFieldMapping('value', 'video'); |
92 | - } |
|
92 | + } |
|
93 | 93 | |
94 | 94 | function csvcolumns() { |
95 | 95 | $columns[10] = array('video', 'Video'); |
@@ -10,14 +10,14 @@ discard block |
||
10 | 10 | public function __construct($arguments) { |
11 | 11 | parent::__construct($arguments); |
12 | 12 | $this->description = t('Import nodes.'); |
13 | - $import_path = drupal_get_path('module', 'dfs_wem') . '/import/'; |
|
13 | + $import_path = drupal_get_path('module', 'dfs_wem').'/import/'; |
|
14 | 14 | // Create a MigrateSource object. |
15 | - $this->source = new MigrateSourceCSV($import_path . 'dfs_wem.nodes.wem_news.csv', $this->csvcolumns(), array('header_rows' => 1)); |
|
15 | + $this->source = new MigrateSourceCSV($import_path.'dfs_wem.nodes.wem_news.csv', $this->csvcolumns(), array('header_rows' => 1)); |
|
16 | 16 | $this->destination = new MigrateDestinationNode('wem_news'); |
17 | 17 | // Image |
18 | 18 | $this->addFieldMapping('field_wem_image', 'image'); |
19 | 19 | $this->addFieldMapping('field_wem_image:file_replace')->defaultValue(FILE_EXISTS_REPLACE); |
20 | - $this->addFieldMapping('field_wem_image:source_dir')->defaultValue($import_path . 'images'); |
|
20 | + $this->addFieldMapping('field_wem_image:source_dir')->defaultValue($import_path.'images'); |
|
21 | 21 | $this->addFieldMapping('field_wem_image:destination_file', 'filename'); |
22 | 22 | // Video |
23 | 23 | $this->addFieldMapping('field_wem_video', 'video')->sourceMigration('DFSWEMNewsVideo'); |
@@ -63,8 +63,8 @@ discard block |
||
63 | 63 | MigrateDestinationFile::getKeySchema() |
64 | 64 | ); |
65 | 65 | $this->destination = new MigrateDestinationFile('video', 'MigrateExtrasFileYoutube'); |
66 | - $import_path = drupal_get_path('module', 'dfs_wem') . '/import/'; |
|
67 | - $this->source = new MigrateSourceCSV($import_path . 'dfs_wem.nodes.wem_news.csv', $this->csvcolumns(), array('header_rows' => 1)); |
|
66 | + $import_path = drupal_get_path('module', 'dfs_wem').'/import/'; |
|
67 | + $this->source = new MigrateSourceCSV($import_path.'dfs_wem.nodes.wem_news.csv', $this->csvcolumns(), array('header_rows' => 1)); |
|
68 | 68 | $this->addFieldMapping('value', 'video'); |
69 | 69 | } |
70 | 70 |
@@ -1,1 +1,1 @@ |
||
1 | -<span id="views_slideshow_controls_text_previous_<?php print $variables['vss_id']; ?>" class="<?php print $classes;?> slide-nav-wrap"><a href="#"><img src="<?php print base_path() . path_to_theme(); ?>/images/hero-carousel-prev.svg"></a></span> |
|
1 | +<span id="views_slideshow_controls_text_previous_<?php print $variables['vss_id']; ?>" class="<?php print $classes; ?> slide-nav-wrap"><a href="#"><img src="<?php print base_path().path_to_theme(); ?>/images/hero-carousel-prev.svg"></a></span> |
@@ -210,7 +210,7 @@ |
||
210 | 210 | |
211 | 211 | <?php if ($site_name) :?> |
212 | 212 | <div class="copyright large-12 columns"> |
213 | - © <?php print date('Y') . ' ' . check_plain($site_name) . ' ' . t('All rights reserved.'); ?> |
|
213 | + © <?php print date('Y').' '.check_plain($site_name).' '.t('All rights reserved.'); ?> |
|
214 | 214 | </div> |
215 | 215 | <?php endif; ?> |
216 | 216 | </footer> |
@@ -1,1 +1,1 @@ |
||
1 | -<span id="views_slideshow_controls_text_next_<?php print $variables['vss_id']; ?>" class="<?php print $classes; ?> slide-nav-wrap"><a href="#"><img src="<?php print base_path() . path_to_theme(); ?>/images/hero-carousel-next.svg"></a></span> |
|
1 | +<span id="views_slideshow_controls_text_next_<?php print $variables['vss_id']; ?>" class="<?php print $classes; ?> slide-nav-wrap"><a href="#"><img src="<?php print base_path().path_to_theme(); ?>/images/hero-carousel-next.svg"></a></span> |
@@ -12,7 +12,7 @@ |
||
12 | 12 | <?php endif; ?> |
13 | 13 | <ul class="small-block-grid-2 medium-block-grid-4 large-block-grid-4"> |
14 | 14 | <?php foreach ($rows as $id => $row): ?> |
15 | - <li<?php if ($classes_array[$id]) { print ' class="' . $classes_array[$id] .'"'; } ?>> |
|
15 | + <li<?php if ($classes_array[$id]) { print ' class="'.$classes_array[$id].'"'; } ?>> |
|
16 | 16 | <?php print $row; ?> |
17 | 17 | </li> |
18 | 18 | <?php endforeach; ?> |
19 | 19 | \ No newline at end of file |
@@ -30,10 +30,10 @@ |
||
30 | 30 | if ($form_id == 'search_block_form') { |
31 | 31 | $form['search_block_form']['#title'] = t('Search'); // Change the text on the label element |
32 | 32 | $form['search_block_form']['#title_display'] = 'invisible'; // Toggle label visibilty |
33 | - $form['search_block_form']['#size'] = 40; // define size of the textfield |
|
33 | + $form['search_block_form']['#size'] = 40; // define size of the textfield |
|
34 | 34 | $form['search_block_form']['#default_value'] = t('Search'); // Set a default value for the textfield |
35 | 35 | $form['actions']['submit']['#value'] = t('GO!'); // Change the text on the submit button |
36 | - $form['actions']['submit'] = array('#type' => 'image_button', '#src' => base_path() . path_to_theme() . '/images/search-button.png'); |
|
36 | + $form['actions']['submit'] = array('#type' => 'image_button', '#src' => base_path().path_to_theme().'/images/search-button.png'); |
|
37 | 37 | // Add extra attributes to the text box |
38 | 38 | $form['search_block_form']['#attributes']['onblur'] = "if (this.value == '') {this.value = 'Search';}"; |
39 | 39 | $form['search_block_form']['#attributes']['onfocus'] = "if (this.value == 'Search') {this.value = '';}"; |