@@ -6,9 +6,9 @@ |
||
6 | 6 | |
7 | 7 | class DFToolsBeanBlock extends BeanPlugin { |
8 | 8 | |
9 | - /** |
|
10 | - * Declares default block settings. |
|
11 | - */ |
|
9 | + /** |
|
10 | + * Declares default block settings. |
|
11 | + */ |
|
12 | 12 | public function values() { |
13 | 13 | return array( |
14 | 14 | 'view_mode' => 'default', |
@@ -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 = '';}"; |
@@ -20,8 +20,8 @@ discard block |
||
20 | 20 | MigrateDestinationNode::getKeySchema() |
21 | 21 | ); |
22 | 22 | $this->dependencies = array('DFSMEDProducts'); |
23 | - $import_path = drupal_get_path('module', 'dfs_med') . '/import/'; |
|
24 | - $this->source = new MigrateSourceCSV($import_path . 'dfs_med.nodes.commerce.csv', $this->csvcolumns(), array('header_rows' => 1)); |
|
23 | + $import_path = drupal_get_path('module', 'dfs_med').'/import/'; |
|
24 | + $this->source = new MigrateSourceCSV($import_path.'dfs_med.nodes.commerce.csv', $this->csvcolumns(), array('header_rows' => 1)); |
|
25 | 25 | $this->destination = new MigrateDestinationNode('commerce'); |
26 | 26 | // Created |
27 | 27 | $this->addFieldMapping('created', 'created')->defaultValue(strtotime("now")); |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | // Feature Image |
33 | 33 | $this->addFieldMapping('field_product_image', 'image'); |
34 | 34 | $this->addFieldMapping('field_product_image:file_replace')->defaultValue(FILE_EXISTS_REPLACE); |
35 | - $this->addFieldMapping('field_product_image:source_dir')->defaultValue($import_path . 'images'); |
|
35 | + $this->addFieldMapping('field_product_image:source_dir')->defaultValue($import_path.'images'); |
|
36 | 36 | $this->addFieldMapping('field_product_image:destination_file', 'filename'); |
37 | 37 | // Booleans |
38 | 38 | $this->addfieldmapping('field_featured', 'featured'); |
@@ -82,9 +82,9 @@ discard block |
||
82 | 82 | ); |
83 | 83 | $this->destination = new MigrateDestinationEntityAPI('commerce_product', 'product'); |
84 | 84 | // Define a default import path. |
85 | - $import_path = drupal_get_path('module', 'dfs_med') . '/import/'; |
|
85 | + $import_path = drupal_get_path('module', 'dfs_med').'/import/'; |
|
86 | 86 | // Create a MigrateSource object. |
87 | - $this->source = new MigrateSourceCSV($import_path . 'dfs_med.nodes.commerce.csv', $this->csvcolumns(), array('header_rows' => 1)); |
|
87 | + $this->source = new MigrateSourceCSV($import_path.'dfs_med.nodes.commerce.csv', $this->csvcolumns(), array('header_rows' => 1)); |
|
88 | 88 | } |
89 | 89 | |
90 | 90 | function csvcolumns() { |
@@ -10,31 +10,31 @@ |
||
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_med') . '/import/'; |
|
13 | + $import_path = drupal_get_path('module', 'dfs_med').'/import/'; |
|
14 | 14 | // Create a MigrateSource object. |
15 | - $this->source = new MigrateSourceCSV($import_path . 'dfs_med.nodes.brand.csv', $this->csvcolumns(), array('header_rows' => 1)); |
|
15 | + $this->source = new MigrateSourceCSV($import_path.'dfs_med.nodes.brand.csv', $this->csvcolumns(), array('header_rows' => 1)); |
|
16 | 16 | $this->destination = new MigrateDestinationNode('brand'); |
17 | 17 | // Created |
18 | 18 | $this->addFieldMapping('created', 'created')->defaultValue(strtotime("now")); |
19 | 19 | // Logo Image |
20 | 20 | $this->addFieldMapping('field_logo', 'logo'); |
21 | 21 | $this->addFieldMapping('field_logo:file_replace')->defaultValue(FILE_EXISTS_REPLACE); |
22 | - $this->addFieldMapping('field_logo:source_dir')->defaultValue($import_path . 'images'); |
|
22 | + $this->addFieldMapping('field_logo:source_dir')->defaultValue($import_path.'images'); |
|
23 | 23 | $this->addFieldMapping('field_logo:destination_file', 'filename'); |
24 | 24 | // Splash Image |
25 | 25 | $this->addFieldMapping('field_splash_image', 'splash'); |
26 | 26 | $this->addFieldMapping('field_splash_image:file_replace')->defaultValue(FILE_EXISTS_REPLACE); |
27 | - $this->addFieldMapping('field_splash_image:source_dir')->defaultValue($import_path . 'images'); |
|
27 | + $this->addFieldMapping('field_splash_image:source_dir')->defaultValue($import_path.'images'); |
|
28 | 28 | $this->addFieldMapping('field_splash_image:destination_file', 'filename'); |
29 | 29 | // Superbrand Link Image |
30 | 30 | $this->addfieldmapping('field_link_image', 'link_image'); |
31 | 31 | $this->addfieldmapping('field_link_image:file_replace')->defaultvalue(FILE_EXISTS_REPLACE); |
32 | - $this->addfieldmapping('field_link_image:source_dir')->defaultvalue($import_path . 'images'); |
|
32 | + $this->addfieldmapping('field_link_image:source_dir')->defaultvalue($import_path.'images'); |
|
33 | 33 | $this->addfieldmapping('field_link_image:destination_file', 'filename'); |
34 | 34 | // Superbrand Link Image |
35 | 35 | $this->addfieldmapping('field_link_image_hover', 'link_image_hover'); |
36 | 36 | $this->addfieldmapping('field_link_image_hover:file_replace')->defaultvalue(FILE_EXISTS_REPLACE); |
37 | - $this->addfieldmapping('field_link_image_hover:source_dir')->defaultvalue($import_path . 'images'); |
|
37 | + $this->addfieldmapping('field_link_image_hover:source_dir')->defaultvalue($import_path.'images'); |
|
38 | 38 | $this->addfieldmapping('field_link_image_hover:destination_file', 'filename'); |
39 | 39 | // Booleans |
40 | 40 | $this->addfieldmapping('field_superbrand', 'superbrand'); |
@@ -19,11 +19,11 @@ |
||
19 | 19 | MigrateDestinationFile::getKeySchema() |
20 | 20 | ); |
21 | 21 | $this->destination = new MigrateDestinationFile('image'); |
22 | - $import_path = drupal_get_path('module', 'dfs_med') . '/import/'; |
|
23 | - $this->source = new MigrateSourceCSV($import_path . 'dfs_med.files.image.csv', $this->csvcolumns(), array('header_rows' => 1)); |
|
22 | + $import_path = drupal_get_path('module', 'dfs_med').'/import/'; |
|
23 | + $this->source = new MigrateSourceCSV($import_path.'dfs_med.files.image.csv', $this->csvcolumns(), array('header_rows' => 1)); |
|
24 | 24 | $this->addFieldMapping('value', 'image'); |
25 | 25 | $this->addFieldMapping('file_replace')->defaultValue(FILE_EXISTS_REPLACE); |
26 | - $this->addFieldMapping('source_dir')->defaultValue($import_path . 'images'); |
|
26 | + $this->addFieldMapping('source_dir')->defaultValue($import_path.'images'); |
|
27 | 27 | $this->addFieldMapping('destination_file', 'image'); |
28 | 28 | } |
29 | 29 |