@@ -55,8 +55,7 @@ |
||
55 | 55 | |
56 | 56 | drupal_set_message(t('Successfully exported Panelizer display for Node @nid to @panels_file', ['@nid' => $node->id(), '@panels_file' => $panels_file])); |
57 | 57 | return TRUE; |
58 | - } |
|
59 | - else { |
|
58 | + } else { |
|
60 | 59 | drupal_set_message(t('The given Node is not Panelized.'), 'error'); |
61 | 60 | return FALSE; |
62 | 61 | } |
@@ -64,22 +64,22 @@ |
||
64 | 64 | // Generate the title |
65 | 65 | // This is the only block of code that differs from ctools_node_title_content_type_render |
66 | 66 | if (!empty($conf['link'])) { |
67 | - $content = l($node->title, 'node/' . $node->nid, array('attributes' => array('data-quickedit-field-id' => $field_id))); |
|
67 | + $content = l($node->title, 'node/'.$node->nid, array('attributes' => array('data-quickedit-field-id' => $field_id))); |
|
68 | 68 | } |
69 | 69 | else { |
70 | - $content = "<div data-quickedit-field-id=\"$field_id\">" . check_plain($node->title) . '</div>'; |
|
70 | + $content = "<div data-quickedit-field-id=\"$field_id\">".check_plain($node->title).'</div>'; |
|
71 | 71 | } |
72 | 72 | |
73 | 73 | // Build any surrounding markup if so configured |
74 | 74 | if (isset($conf['markup']) && $conf['markup'] != 'none') { |
75 | - $markup = '<' . $conf['markup']; |
|
75 | + $markup = '<'.$conf['markup']; |
|
76 | 76 | if (!empty($conf['id'])) { |
77 | - $markup .= ' id="' . $conf['id'] . '"'; |
|
77 | + $markup .= ' id="'.$conf['id'].'"'; |
|
78 | 78 | } |
79 | 79 | if (!empty($conf['class'])) { |
80 | - $markup .= ' class="' . $conf['class'] . '"'; |
|
80 | + $markup .= ' class="'.$conf['class'].'"'; |
|
81 | 81 | } |
82 | - $markup .= '>' . $content . '</' . $conf['markup'] . '>' . "\n"; |
|
82 | + $markup .= '>'.$content.'</'.$conf['markup'].'>'."\n"; |
|
83 | 83 | $content = $markup; |
84 | 84 | } |
85 | 85 |
@@ -3,7 +3,7 @@ |
||
3 | 3 | /** |
4 | 4 | * Implements of hook_menu() |
5 | 5 | */ |
6 | -function dfs_med_base_menu(){ |
|
6 | +function dfs_med_base_menu() { |
|
7 | 7 | $items['empty-page'] = array( |
8 | 8 | 'title' => 'Redirect', |
9 | 9 | 'description' => 'Redirect user.', |
@@ -37,8 +37,7 @@ |
||
37 | 37 | </div> |
38 | 38 | </div> |
39 | 39 | '; |
40 | - } |
|
41 | - else { |
|
40 | + } else { |
|
42 | 41 | $block['content'] = ' |
43 | 42 | <div class="user-header-block"> |
44 | 43 | <div class="uh-container"> |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | $block['content'] = ' |
25 | 25 | <div class="user-header-block"> |
26 | 26 | <div class="uh-container"> |
27 | - <a data-dropdown="drop1" class="user-name med-user parent">' . $user->name . '</a> |
|
27 | + <a data-dropdown="drop1" class="user-name med-user parent">' . $user->name.'</a> |
|
28 | 28 | <ul id="drop1" class="f-dropdown" data-dropdown-content> |
29 | 29 | <li class="dropdown"><a href="/user">My Profile</a> |
30 | 30 | </li> |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | </ul> |
34 | 34 | </div> |
35 | 35 | <div class="uh-container"> |
36 | - | <a class="shows" href="/user/' . $user->uid . '/my-shows">My Shows</a> |
|
36 | + | <a class="shows" href="/user/' . $user->uid.'/my-shows">My Shows</a> |
|
37 | 37 | </div> |
38 | 38 | </div> |
39 | 39 | '; |
@@ -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'); |
@@ -22,10 +22,10 @@ discard block |
||
22 | 22 | MigrateDestinationNode::getKeySchema() |
23 | 23 | ); |
24 | 24 | |
25 | - $import_path = drupal_get_path('module', 'dfs_med') . '/import/'; |
|
25 | + $import_path = drupal_get_path('module', 'dfs_med').'/import/'; |
|
26 | 26 | |
27 | 27 | // Create a MigrateSource object. |
28 | - $this->source = new MigrateSourceCSV($import_path . 'dfs_med.nodes.episode.csv', $this->csvcolumns(), array('header_rows' => 1)); |
|
28 | + $this->source = new MigrateSourceCSV($import_path.'dfs_med.nodes.episode.csv', $this->csvcolumns(), array('header_rows' => 1)); |
|
29 | 29 | $this->destination = new MigrateDestinationNode('episode'); |
30 | 30 | |
31 | 31 | // Created |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | // Splash Image |
35 | 35 | $this->addFieldMapping('field_splash_image', 'splash'); |
36 | 36 | $this->addFieldMapping('field_splash_image:file_replace')->defaultValue(FILE_EXISTS_REPLACE); |
37 | - $this->addFieldMapping('field_splash_image:source_dir')->defaultValue($import_path . 'images'); |
|
37 | + $this->addFieldMapping('field_splash_image:source_dir')->defaultValue($import_path.'images'); |
|
38 | 38 | $this->addFieldMapping('field_splash_image:destination_file', 'filename'); |
39 | 39 | |
40 | 40 | // Metadata |
@@ -86,8 +86,8 @@ discard block |
||
86 | 86 | MigrateDestinationFile::getKeySchema() |
87 | 87 | ); |
88 | 88 | $this->destination = new MigrateDestinationFile('video', 'MigrateExtrasFileYoutube'); |
89 | - $import_path = drupal_get_path('module', 'dfs_med') . '/import/'; |
|
90 | - $this->source = new MigrateSourceCSV($import_path . 'dfs_med.nodes.episode.csv', $this->csvcolumns(), array('header_rows' => 1)); |
|
89 | + $import_path = drupal_get_path('module', 'dfs_med').'/import/'; |
|
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 |
@@ -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)); |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | $import_path = $arguments['path']; |
29 | 29 | } |
30 | 30 | else { |
31 | - $import_path = drupal_get_path('module', 'df_tools_panelizer') . '/import/df_tools_panelizer.nodes.landing.csv'; |
|
31 | + $import_path = drupal_get_path('module', 'df_tools_panelizer').'/import/df_tools_panelizer.nodes.landing.csv'; |
|
32 | 32 | } |
33 | 33 | $this->source = new MigrateSourceCSV($import_path, array(), array('header_rows' => 1)); |
34 | 34 | $this->destination = new MigrateDestinationNode('landing'); |
@@ -65,9 +65,9 @@ discard block |
||
65 | 65 | |
66 | 66 | // Loop through each UUID in this region and add a new pane for this node |
67 | 67 | foreach ($value as $uuid) { |
68 | - $pane = panels_new_pane('fieldable_panels_pane', 'uuid:' . $uuid, TRUE); |
|
68 | + $pane = panels_new_pane('fieldable_panels_pane', 'uuid:'.$uuid, TRUE); |
|
69 | 69 | // Check to see if any classy panel styles are included for this pane |
70 | - if (array_key_exists($uuid . '-style', $row) && $settings = json_decode($row->{$uuid . '-style'}, TRUE)) { |
|
70 | + if (array_key_exists($uuid.'-style', $row) && $settings = json_decode($row->{$uuid.'-style'}, TRUE)) { |
|
71 | 71 | // Add our default settings |
72 | 72 | $settings['classy_panel_styles_flag'] = 'classy-panel-styles pane'; |
73 | 73 | $pane->style = array( |
@@ -37,8 +37,7 @@ |
||
37 | 37 | </div> |
38 | 38 | </div> |
39 | 39 | '; |
40 | - } |
|
41 | - else { |
|
40 | + } else { |
|
42 | 41 | $block['content'] = ' |
43 | 42 | <div class="user-header-block"> |
44 | 43 | <div class="uh-container"> |
@@ -31,19 +31,19 @@ |
||
31 | 31 | $path = 'misc/vertical-tabs.js'; |
32 | 32 | unset($libraries['drupal.vertical-tabs']['js'][$path]); |
33 | 33 | |
34 | - $libraries['drupal.vertical-tabs']['js'][drupal_get_path('module', 'df_tools_vertical_tabs') . '/js/df-tools-vertical-tabs.js'] = array(); |
|
34 | + $libraries['drupal.vertical-tabs']['js'][drupal_get_path('module', 'df_tools_vertical_tabs').'/js/df-tools-vertical-tabs.js'] = array(); |
|
35 | 35 | |
36 | 36 | // Replace vertical tab CSS. |
37 | 37 | $path = 'misc/vertical-tabs.css'; |
38 | 38 | unset($libraries['drupal.vertical-tabs']['css'][$path]); |
39 | 39 | |
40 | - $libraries['drupal.vertical-tabs']['css'][drupal_get_path('module', 'df_tools_vertical_tabs') . '/css/vertical-tabs.css'] = array(); |
|
41 | - $libraries['drupal.vertical-tabs']['css'][drupal_get_path('module', 'df_tools_vertical_tabs') . '/css/vertical-tabs-theme.css'] = array(); |
|
40 | + $libraries['drupal.vertical-tabs']['css'][drupal_get_path('module', 'df_tools_vertical_tabs').'/css/vertical-tabs.css'] = array(); |
|
41 | + $libraries['drupal.vertical-tabs']['css'][drupal_get_path('module', 'df_tools_vertical_tabs').'/css/vertical-tabs-theme.css'] = array(); |
|
42 | 42 | |
43 | 43 | // Add CSS to display vertical tabs on the right unless the user has toggled |
44 | 44 | // the vertical tag setting. |
45 | 45 | if (variable_get('df_tools_vertical_tabs_vertical_tabs_toggle') != TRUE) { |
46 | - $libraries['drupal.vertical-tabs']['css'][drupal_get_path('module', 'df_tools_vertical_tabs') . '/css/vertical-tabs-right.css'] = array(); |
|
46 | + $libraries['drupal.vertical-tabs']['css'][drupal_get_path('module', 'df_tools_vertical_tabs').'/css/vertical-tabs-right.css'] = array(); |
|
47 | 47 | } |
48 | 48 | } |
49 | 49 | } |
@@ -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', |
@@ -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,7 +36,7 @@ |
||
36 | 36 | $import_path = $arguments['path']; |
37 | 37 | } |
38 | 38 | else { |
39 | - $import_path = drupal_get_path('module', 'df_tools_fpp') . '/import/df_tools_fpp.raw_html.csv'; |
|
39 | + $import_path = drupal_get_path('module', 'df_tools_fpp').'/import/df_tools_fpp.raw_html.csv'; |
|
40 | 40 | } |
41 | 41 | $this->source = new MigrateSourceCSV($import_path, array(), array('header_rows' => 1)); |
42 | 42 | $this->destination = new MigrateDestinationFieldablePanelsPanes('raw_html', array('text_format' => 'raw_html')); |