diff --git a/js/views-bootstrap.js b/js/views-bootstrap.js index fb645de2742a74f215d6f8bfb2345e3281e86442..befd0efe16a17524aed1b93855381e4eca711e5d 100644 --- a/js/views-bootstrap.js +++ b/js/views-bootstrap.js @@ -1,20 +1,14 @@ (function ($) { - - 'use strict'; - /** * Attaches the behavior to bootstrap carousel view. */ Drupal.behaviors.views_bootstrap_carousel = { - attach: function (context, settings) { - $('.carousel-inner').each(function() { + attach(context, settings) { + $('.carousel-inner').each(function () { if ($(this).children('div').length === 1) { $(this).siblings('.carousel-control, .carousel-indicators').hide(); } }); - } - } - - - -}(jQuery)); \ No newline at end of file + }, + }; +})(jQuery); diff --git a/src/Plugin/views/style/ViewsBootstrapAccordion.php b/src/Plugin/views/style/ViewsBootstrapAccordion.php index d8f9ab3c06740592516d9a8eef75f09d6136f0a0..06cefe26fa626305ac7fd9a8a923abc861254ea2 100644 --- a/src/Plugin/views/style/ViewsBootstrapAccordion.php +++ b/src/Plugin/views/style/ViewsBootstrapAccordion.php @@ -61,7 +61,7 @@ class ViewsBootstrapAccordion extends StylePluginBase { '#options' => $this->displayHandler->getFieldLabels(TRUE), '#required' => TRUE, '#default_value' => $this->options['panel_title_field'], - '#description' => $this->t('Select the field that will be used as the accordian panel titles.'), + '#description' => $this->t('Select the field that will be used as the accordion panel titles.'), ]; } $options_select = [ diff --git a/src/Plugin/views/style/ViewsBootstrapCarousel.php b/src/Plugin/views/style/ViewsBootstrapCarousel.php index d4dd2928c307f90251297d4ab83cc4ab343bf4ea..4966d2adbd8bc6c8c2b393ac2c39c82dff676a98 100644 --- a/src/Plugin/views/style/ViewsBootstrapCarousel.php +++ b/src/Plugin/views/style/ViewsBootstrapCarousel.php @@ -78,7 +78,7 @@ class ViewsBootstrapCarousel extends StylePluginBase { $form['ride'] = [ '#type' => 'checkbox', '#title' => $this->t('Ride (Autoplay)'), - '#description' => $this->t('Autoplays the carousel on load.'), + '#description' => $this->t('Autoplay the carousel on load.'), '#default_value' => $this->options['ride'], ]; diff --git a/templates/views-bootstrap-media-object.html.twig b/templates/views-bootstrap-media-object.html.twig index 80b6393fcbb30c27ec251d6eea9b45b0baa4cfb5..de394730f68773980b84c815da66c359ae75377e 100644 --- a/templates/views-bootstrap-media-object.html.twig +++ b/templates/views-bootstrap-media-object.html.twig @@ -1,4 +1,4 @@ -{# @todo: add more control to images and positoning #} +{# @todo: add more control to images and positioning #} <div{{ attributes.addClass(classes) }} id="{{ id }}"> {% for key, row in rows -%} diff --git a/views_bootstrap.theme.inc b/views_bootstrap.theme.inc index 7ff97b08608b3e9745ee59b7932f2263693ffb84..b731f1d54a3282c9bd71325bc64f34da153d1733 100644 --- a/views_bootstrap.theme.inc +++ b/views_bootstrap.theme.inc @@ -32,7 +32,7 @@ function template_preprocess_views_bootstrap_accordion(array &$vars) { } } else { - // @todo This would be better as valdiation errors on the style plugin options form. + // @todo This would be better as validation errors on the style plugin options form. \Drupal::messenger()->addWarning(t('@style style will not display without the "@field" setting.', [ '@style' => $view->style_plugin->definition['title'], @@ -230,7 +230,7 @@ function template_preprocess_views_bootstrap_tab(array &$vars) { } } else { - // @todo This would be better as valdiation errors on the style plugin options form. + // @todo This would be better as validation errors on the style plugin options form. \Drupal::messenger()->addWarning(t('@style style will not display without the "@field" setting.', [ '@style' => $view->style_plugin->definition['title'],