@@ -23,13 +23,13 @@ |
||
| 23 | 23 | $anchor_id = Html::getUniqueId('df-tools-anchor'); |
| 24 | 24 | $build = [ |
| 25 | 25 | '#markup' => |
| 26 | - '<div id="' . $anchor_id . '"></div>' . |
|
| 27 | - '<div data-sticky-container class="df-tools-magellan-block hide-for-small-only full-width-row">' . |
|
| 28 | - ' <div class="sticky" data-sticky data-top-anchor="' . $anchor_id . '" data-margin-top="0">' . |
|
| 29 | - ' <nav data-magellan data-active-class="active">' . |
|
| 30 | - ' <ul class="horizontal menu expanded"></ul>' . |
|
| 31 | - ' </nav>' . |
|
| 32 | - ' </div>' . |
|
| 26 | + '<div id="'.$anchor_id.'"></div>'. |
|
| 27 | + '<div data-sticky-container class="df-tools-magellan-block hide-for-small-only full-width-row">'. |
|
| 28 | + ' <div class="sticky" data-sticky data-top-anchor="'.$anchor_id.'" data-margin-top="0">'. |
|
| 29 | + ' <nav data-magellan data-active-class="active">'. |
|
| 30 | + ' <ul class="horizontal menu expanded"></ul>'. |
|
| 31 | + ' </nav>'. |
|
| 32 | + ' </div>'. |
|
| 33 | 33 | '</div>' |
| 34 | 34 | ]; |
| 35 | 35 | |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | // Write YAML to a file. |
| 52 | - $panels_file = $base_path . '/data/panelizer.panels_display.node.'.$node->uuid() . '.yml'; |
|
| 52 | + $panels_file = $base_path.'/data/panelizer.panels_display.node.'.$node->uuid().'.yml'; |
|
| 53 | 53 | $configuration = \Drupal::service('panelizer')->getPanelsDisplay($node, 'full')->getConfiguration(); |
| 54 | 54 | $yaml = \Symfony\Component\Yaml\Yaml::dump($configuration, 99, 2); |
| 55 | 55 | file_put_contents($panels_file, $yaml); |
@@ -20,19 +20,19 @@ |
||
| 20 | 20 | 'render element' => 'content', |
| 21 | 21 | 'base hook' => 'node', |
| 22 | 22 | 'template' => 'node--cta', |
| 23 | - 'path' => drupal_get_path('module', 'df_tools_cta') . '/templates', |
|
| 23 | + 'path' => drupal_get_path('module', 'df_tools_cta').'/templates', |
|
| 24 | 24 | ); |
| 25 | 25 | $theme['node__cta__callout'] = array( |
| 26 | 26 | 'render element' => 'content', |
| 27 | 27 | 'base hook' => 'node', |
| 28 | 28 | 'template' => 'node--cta--callout', |
| 29 | - 'path' => drupal_get_path('module', 'df_tools_cta') . '/templates', |
|
| 29 | + 'path' => drupal_get_path('module', 'df_tools_cta').'/templates', |
|
| 30 | 30 | ); |
| 31 | 31 | $theme['node__cta__notification'] = array( |
| 32 | 32 | 'render element' => 'content', |
| 33 | 33 | 'base hook' => 'node', |
| 34 | 34 | 'template' => 'node--cta--notification', |
| 35 | - 'path' => drupal_get_path('module', 'df_tools_cta') . '/templates', |
|
| 35 | + 'path' => drupal_get_path('module', 'df_tools_cta').'/templates', |
|
| 36 | 36 | ); |
| 37 | 37 | return $theme; |
| 38 | 38 | } |
@@ -11,14 +11,14 @@ |
||
| 11 | 11 | function df_tools_gallery_library_info_alter(&$libraries, $extension) { |
| 12 | 12 | // Optionally use the Libraries module to determine our library paths. |
| 13 | 13 | if ($extension == 'df_tools_gallery' && \Drupal::moduleHandler()->moduleExists('libraries')) { |
| 14 | - $imagesloaded_path = libraries_get_path('imagesloaded') . '/imagesloaded.pkgd.min.js'; |
|
| 15 | - $masonry_path = libraries_get_path('masonry') . '/dist/masonry.pkgd.min.js'; |
|
| 14 | + $imagesloaded_path = libraries_get_path('imagesloaded').'/imagesloaded.pkgd.min.js'; |
|
| 15 | + $masonry_path = libraries_get_path('masonry').'/dist/masonry.pkgd.min.js'; |
|
| 16 | 16 | $lightbox2_path = libraries_get_path('lightbox2'); |
| 17 | 17 | |
| 18 | - $libraries['lightbox2']['css']['theme'] = ['/' . $lightbox2_path . '/dist/css/lightbox.min.css' => []]; |
|
| 19 | - $libraries['lightbox2']['js'] = ['/' . $lightbox2_path . '/dist/js/lightbox.min.js' => ['minified' => 'true']]; |
|
| 20 | - $libraries['imagesloaded']['js'] = ['/' . $imagesloaded_path => ['minified' => 'true']]; |
|
| 21 | - $libraries['masonry']['js'] = ['/' . $masonry_path => ['minified' => 'true']]; |
|
| 18 | + $libraries['lightbox2']['css']['theme'] = ['/'.$lightbox2_path.'/dist/css/lightbox.min.css' => []]; |
|
| 19 | + $libraries['lightbox2']['js'] = ['/'.$lightbox2_path.'/dist/js/lightbox.min.js' => ['minified' => 'true']]; |
|
| 20 | + $libraries['imagesloaded']['js'] = ['/'.$imagesloaded_path => ['minified' => 'true']]; |
|
| 21 | + $libraries['masonry']['js'] = ['/'.$masonry_path => ['minified' => 'true']]; |
|
| 22 | 22 | } |
| 23 | 23 | } |
| 24 | 24 | |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | $image_names = explode(',', $images); |
| 20 | 20 | $files = []; |
| 21 | 21 | foreach ($image_names as $image_name) { |
| 22 | - $path = dirname($this->configuration['path']) . '/images/' . $image_name; |
|
| 22 | + $path = dirname($this->configuration['path']).'/images/'.$image_name; |
|
| 23 | 23 | $data = file_get_contents($path); |
| 24 | 24 | $uri = file_build_uri($image_name); |
| 25 | 25 | $files[] = file_save_data($data, $uri); |
@@ -20,8 +20,8 @@ |
||
| 20 | 20 | ->getStorage('file')->loadByProperties(['filename' => $image]); |
| 21 | 21 | |
| 22 | 22 | if (empty($files)) { |
| 23 | - $base_path = dirname($this->configuration['path']) . '/images/'; |
|
| 24 | - $path = $base_path . $image; |
|
| 23 | + $base_path = dirname($this->configuration['path']).'/images/'; |
|
| 24 | + $path = $base_path.$image; |
|
| 25 | 25 | $data = file_get_contents($path); |
| 26 | 26 | $uri = file_build_uri($image); |
| 27 | 27 | $file = file_save_data($data, $uri); |
@@ -11,11 +11,11 @@ |
||
| 11 | 11 | function df_tools_editor_editor_js_settings_alter(array &$settings) { |
| 12 | 12 | foreach ($settings['editor']['formats'] as &$format) { |
| 13 | 13 | // Set the editor skin to Moono-Lisa. |
| 14 | - $format['editorSettings']['skin'] = 'moono-lisa,' . base_path() . drupal_get_path('module', 'df_tools_editor') . '/skins/moono-lisa/'; |
|
| 14 | + $format['editorSettings']['skin'] = 'moono-lisa,'.base_path().drupal_get_path('module', 'df_tools_editor').'/skins/moono-lisa/'; |
|
| 15 | 15 | |
| 16 | 16 | // Swap in our custom JS by adding a pseudo plugin. We do this as we do not |
| 17 | 17 | // provide a button, which is what traditional CKEditor plugins would do. |
| 18 | - $format['editorSettings']['drupalExternalPlugins']['df_tools_editor'] = base_path() . drupal_get_path('module', 'df_tools_editor') . '/js/df_tools_editor.js'; |
|
| 18 | + $format['editorSettings']['drupalExternalPlugins']['df_tools_editor'] = base_path().drupal_get_path('module', 'df_tools_editor').'/js/df_tools_editor.js'; |
|
| 19 | 19 | $format['editorSettings']['extraPlugins'] .= ',df_tools_editor'; |
| 20 | 20 | } |
| 21 | 21 | } |