views_slideshow.module in Views Slideshow 8.4
Same filename and directory in other branches
Provides Slideshow style options for Views.
File
views_slideshow.moduleView source
<?php
/**
* @file
* Provides Slideshow style options for Views.
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function views_slideshow_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the gss module.
case 'help.page.views_slideshow':
$output = '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('Views Slideshow can be used to create a slideshow of any content (not just images) that can appear in a View. Powered by jQuery, it is heavily customizable: you may choose slideshow settings for each View you create.') . '</p>';
$output .= '<h3>' . t('More Information') . '</h3>';
$output .= '<p>' . t('For more information about this module visit the <a href="@link">Views Slideshow</a> module page.', [
'@link' => 'https://www.drupal.org/project/views_slideshow',
]) . '</p>';
return $output;
}
}
/**
* Implements hook_theme().
*/
function views_slideshow_theme() {
return [
'views_slideshow_main_section' => [
'variables' => [
'vss_id' => NULL,
'slides' => NULL,
'plugin' => NULL,
],
'file' => 'views_slideshow.theme.inc',
],
'views_slideshow_pager_widget' => [
'variables' => [
'vss_id' => NULL,
'view' => NULL,
'settings' => [],
'location' => NULL,
'rows' => [],
],
'file' => 'views_slideshow.theme.inc',
],
'views_slideshow_pager_fields' => [
'variables' => [
'vss_id' => NULL,
'view' => NULL,
'settings' => [],
'location' => NULL,
'attributes' => [],
],
'file' => 'views_slideshow.theme.inc',
],
'views_slideshow_pager_field_field' => [
'variables' => [
'view' => NULL,
'css_identifier' => NULL,
'label' => NULL,
'output' => NULL,
],
'file' => 'views_slideshow.theme.inc',
],
'views_slideshow_pager_field_item' => [
'variables' => [
'vss_id' => NULL,
'item' => NULL,
'count' => NULL,
'location' => NULL,
'length' => NULL,
],
'file' => 'views_slideshow.theme.inc',
],
'views_slideshow_pager_bullets' => [
'variables' => [
'vss_id' => NULL,
'view' => NULL,
'settings' => [],
'location' => NULL,
'attributes' => [],
],
'file' => 'views_slideshow.theme.inc',
],
'views_slideshow_controls_widget' => [
'variables' => [
'vss_id' => NULL,
'view' => NULL,
'settings' => [],
'location' => NULL,
'rows' => [],
],
'file' => 'views_slideshow.theme.inc',
],
'views_slideshow_controls_text' => [
'variables' => [
'vss_id' => NULL,
'view' => NULL,
'settings' => [],
'location' => NULL,
'rows' => [],
],
'file' => 'views_slideshow.theme.inc',
],
'views_slideshow_controls_text_previous' => [
'variables' => [
'vss_id' => NULL,
'view' => NULL,
'settings' => [],
],
'file' => 'views_slideshow.theme.inc',
],
'views_slideshow_controls_text_pause' => [
'variables' => [
'vss_id' => NULL,
'view' => NULL,
'settings' => [],
],
'file' => 'views_slideshow.theme.inc',
],
'views_slideshow_controls_text_next' => [
'variables' => [
'vss_id' => NULL,
'view' => NULL,
'settings' => [],
],
'file' => 'views_slideshow.theme.inc',
],
'views_slideshow_slide_counter_widget' => [
'variables' => [
'vss_id' => NULL,
'view' => NULL,
'settings' => [],
'location' => NULL,
'rows' => [],
],
'file' => 'views_slideshow.theme.inc',
],
'views_slideshow_slide_counter' => [
'variables' => [
'vss_id' => NULL,
'view' => NULL,
'settings' => [],
'location' => NULL,
'rows' => [],
],
'file' => 'views_slideshow.theme.inc',
],
];
}
/**
* Views Slideshow: Slideshow.
*
* As it is a preprocess function, store it with other functions in theme.inc.
*/
function template_preprocess_views_view_slideshow(&$vars) {
\Drupal::moduleHandler()
->loadInclude('views_slideshow', 'inc', 'views_slideshow.theme');
_views_slideshow_preprocess_views_view_slideshow($vars);
}
Functions
Name | Description |
---|---|
template_preprocess_views_view_slideshow | Views Slideshow: Slideshow. |
views_slideshow_help | Implements hook_help(). |
views_slideshow_theme | Implements hook_theme(). |