Mercurial > hg > isophonics-drupal-site
view modules/contrib/views_slideshow/views_slideshow.module @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | c69a71b4f40f |
children |
line wrap: on
line 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 visite the <a href="@link">Views Slideshow</a> module page.', array('@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_render' => [ 'variables' => [ 'vss_id' => NULL, 'view' => NULL, 'settings' => [], 'location' => NULL, 'rows' => [], ], 'file' => 'views_slideshow.theme.inc', 'function' => 'template_preprocess_views_slideshow_pager_widget_render', ], '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, ], ], 'views_slideshow_pager_bullets' => [ 'variables' => [ 'vss_id' => NULL, 'view' => NULL, 'settings' => [], 'location' => NULL, 'attributes' => [], ], 'file' => 'views_slideshow.theme.inc', ], 'views_slideshow_controls_widget_render' => [ 'variables' => [ 'vss_id' => NULL, 'view' => NULL, 'settings' => [], 'location' => NULL, 'rows' => [], ], 'file' => 'views_slideshow.theme.inc', 'function' => 'template_preprocess_views_slideshow_controls_widget_render', ], '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_render' => [ 'variables' => [ 'vss_id' => NULL, 'view' => NULL, 'settings' => [], 'location' => NULL, 'rows' => [], ], 'file' => 'views_slideshow.theme.inc', 'function' => 'template_preprocess_views_slideshow_slide_counter_widget_render', ], '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); }