Commit 17687a33 authored by NickWilde's avatar NickWilde

Standards fixes as per phpcs on automated testing

parent c2610e9d
......@@ -2,25 +2,26 @@
.views_slideshow_cycle_hidden,
.views_slideshow_cycle_controls,
.views_slideshow_cycle_image_count {
display: none;
display: none;
}
/* Pager Settings */
.views_slideshow_cycle_pager div a img {
width: 75px;
height: 75px;
width: 75px;
height: 75px;
}
.views_slideshow_pager_numbered div, .views_slideshow_pager_thumbnails div {
display: inline;
padding-left: 10px;
.views_slideshow_pager_numbered div,
.views_slideshow_pager_thumbnails div {
display: inline;
padding-left: 10px;
}
.views_slideshow_cycle_pager.thumbnails a.activeSlide img {
border: 3px solid #000;
border: 3px solid #000;
}
.views_slideshow_cycle_pager.numbered a.activeSlide {
text-decoration: underline;
text-decoration: underline;
}
......@@ -41,9 +41,9 @@ function template_preprocess_views_slideshow_cycle_main_frame(&$vars) {
$num_divs = count($rows);
if ($settings['items_per_slide_first']) {
$num_divs -= $settings['items_per_slide_first_number'];
$num_divs = $num_divs / $settings['items_per_slide'];
$num_divs += 1;
$num_divs -= $settings['items_per_slide_first_number'];
$num_divs = $num_divs / $settings['items_per_slide'];
$num_divs += 1;
}
else {
$num_divs = $num_divs / $settings['items_per_slide'];
......@@ -204,7 +204,7 @@ function _views_slideshow_cycle_preprocess_views_slideshow_pager_fields(&$vars)
}
$vars['rendered_field_items'] = [];
for ($slide = 0, $count=0; $slide < $slide_count; $count++) {
for ($slide = 0, $count = 0; $slide < $slide_count; $count++) {
$rendered_fields = [];
foreach ($vars['settings']['views_slideshow_pager_fields']['views_slideshow_pager_fields_fields'] as $field => $use) {
if ($use !== 0 && is_object($vars['view']->field[$field])) {
......@@ -244,9 +244,9 @@ function _views_slideshow_cycle_preprocess_views_slideshow_pager_fields(&$vars)
function _views_slideshow_cycle_preprocess_views_slideshow_slide_counter(&$vars) {
$options = $vars['view']->style_plugin->options['views_slideshow_cycle'];
if ($options['items_per_slide_first']) {
$slide_count = $vars['slide_count'] - $options['items_per_slide_first_number'];
$slide_count = $slide_count / $options['items_per_slide'];
$slide_count += 1;
$slide_count = $vars['slide_count'] - $options['items_per_slide_first_number'];
$slide_count = $slide_count / $options['items_per_slide'];
$slide_count += 1;
}
else {
$slide_count = $vars['slide_count'] / $options['items_per_slide'];
......
......@@ -96,7 +96,7 @@ class StyleSlideshowTest extends PluginTestBase {
'type' => 'views_slideshow_controls_text',
],
],
'top' => []
'top' => [],
];
$view->save();
......
......@@ -349,7 +349,7 @@ function template_preprocess_views_slideshow_controls_text_previous(&$vars) {
* Views Slideshow: "pause" control.
*/
function template_preprocess_views_slideshow_controls_text_pause(&$vars) {
$vars['attributes']['class'][] = 'views_slideshow_controls_text_pause views-slideshow-controls-text-status-play';
$vars['attributes']['class'][] = 'views_slideshow_controls_text_pause views-slideshow-controls-text-status-play';
$vars['start_text'] = t('Pause');
}
......@@ -386,4 +386,4 @@ function template_preprocess_views_slideshow_slide_counter(&$vars) {
/**
* @} End of "defgroup vss_theme".
*/
\ No newline at end of file
*/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment