Support Forums

Support Offline : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

How to set the slider speed

Featured Lock Resolved Task
Hi

How do I set the speed of the slider. I looked in the forum and it says to change:

"templates/shaper_spectrum/js/addon.slider.js

I don't have such a file.

Regards

8 Answers

Paul Frankowski - Staff

More than a month ago #Permalink
Hi,
you have to edit that file:
templates\shaper_spectrum\sppagebuilder\addons\slideshow_full\site.php
in line 162 - change value from 1500 to 2500 (or 3500 or 5000)

autoplaySpeed: 2500,

and below in new line add

smartSpeed: 350,
autoplayTimeout: 5000,


*5000 example value.
It should slown down.

itechwebdesign

More than a month ago #Permalink
Hi

Thank you for the info.

I'm using shaper_cuisine and there is no such lines in templates\shaper_cuisine\sppagebuilder\addons\slideshow_full\site.php

Can you please specify the location for the Cuisine template?

Regards

Paul Frankowski - Staff

More than a month ago #Permalink
because you have to ADD them.

Read again my 1st answer, word by word.

itechwebdesign

More than a month ago #Permalink
Thank you for the feedback. This is your fist answer

Hi,
you have to edit that file:
templates\shaper_spectrum\sppagebuilder\addons\slideshow_full\site.php
in line 162 - change value from 1500 to 2500 (or 3500 or 5000)

autoplaySpeed: 2500,

and below in new line add

smartSpeed: 350,
autoplayTimeout: 5000,

*5000 example value.
It should slown down.

+++

The file I have does not have line 162 to change from 1500 to 2500.

Regards

Paul Frankowski - Staff

More than a month ago #Permalink
add CODE only, not description


smartSpeed: 350,
autoplayTimeout: 5000,


look at the screenshot

add.jpg

Attachments (1)

  • add.jpg
    add.jpg 25.9 KB

itechwebdesign

More than a month ago #Permalink
Hi

My site.php file does not look anything like your example. My site.php file only has 112 lines. Pleaqse note this is for the Cuisine template.


Please my code below for: templates\shaper_cuisine\sppagebuilder\addons\slideshow_full\site.php


<?php

/**
* @package Aspasia
* @author JoomShaper http://www.joomshaper.com
* @copyright Copyright (c) 2010 - 2016 JoomShaper
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later
*/
//no direct accees
defined('_JEXEC') or die('resticted aceess');

class SppagebuilderAddonSlideshow_full extends SppagebuilderAddons {

public function render() {
$arrows = (isset($this->addon->settings->arrows) && $this->addon->settings->arrows) ? $this->addon->settings->arrows : '';
$class = (isset($this->addon->settings->class) && $this->addon->settings->class) ? $this->addon->settings->class : '';


$output = '<div id="sppb-slider-fullwidth" class="carousel slide carousel-fade ' . $class . '" data-ride="carousel">';
$output .= '<div class="carousel-inner" role="listbox">';

foreach ($this->addon->settings->sp_slideshow_full_item as $key => $item) {

$class = ($key == 0) ? ' active' : '';

$output .= '<div class="item' . $class . '" style="background-image: url('/ . JURI::base(true) . '/' . $item->image . ')">';
$output .= '<div class="sppb-text-center">';

if (isset($item->title) && $item->title) {
$output .= '<p class="sp-leading sp-slide-title">' . $item->title . '</p>';
}

if (isset($item->sub_title) && $item->sub_title) {
$output .= '<h2 class="sp-slide-subtitle">' . $item->sub_title . '</h2>';
}

if (isset($item->text) && $item->text) {
$output .= '<div class="sp-slide-description">' . $item->text . '</div>';
}

if ((isset($item->button_text) && $item->button_text) && (isset($item->button_url) && $item->button_url)) {
$output .= '<a href="' . $item->button_url . '" class="btn btn-' . $item->button_type . ' btn-' . $item->button_size . '">' . $item->button_text . '</a>';
}

$output .= '</div>';
$output .= '</div>';
}

$output .= '</div>';

// Arrows
if ($arrows) {
$output .= '<a class="left sppb-slider-control" href="#sppb-slider-fullwidth" role="button" data-slide="prev"><i class="fa fa-angle-left" aria-hidden="true"></i></a>';
$output .= '<a class="right sppb-slider-control" href="#sppb-slider-fullwidth" role="button" data-slide="next"><i class="fa fa-angle-right" aria-hidden="true"></i></a>';
}

$output .= '</div>';

return $output;
}

public static function getTemplate() {
$output = '
<#
let arrows = (typeof data.arrows !== "undefined") ? data.arrows : 0;
let contentClass = (!_.isEmpty(data.class) && data.class) ? data.class : "";
#>

<div id="sppb-slider-fullwidth" class="carousel slide carousel-fade {{contentClass}}" data-ride="carousel">
<div class="carousel-inner" role="listbox">

<# _.each (data.sp_slideshow_full_item,function(item, key) {

let activeClass = (key == 0) ? " active" : "";
#>

<div class="item {{activeClass}}" style="background-image: url(/{{item.image}})">
<div class="sppb-text-center">

<# if (!_.isEmpty(item.title) && item.title) { #>
<p class="sp-leading sp-slide-title">{{{item.title}}}</p>
<# } #>

<# if (!_.isEmpty(item.sub_title) && item.sub_title) { #>
<h2 class="sp-slide-subtitle">{{{item.sub_title}}}</h2>
<# } #>

<# if (!_.isEmpty(item.text) && item.text) { #>
<div class="sp-slide-description">{{{item.text}}}</div>
<# } #>

<# if ((!_.isEmpty(item.button_text) && item.button_text) && (!_.isEmpty(item.button_url) && item.button_url)) { #>
<a href="/{{item.button_url}}" class="btn btn-{{item.button_type}} btn-{{item.button_size}}">{{item.button_text}}</a>
<# } #>

</div>
</div>
<# }) #>

</div>
<# if (arrows>0) { #>
<a class="left sppb-slider-control" href="#sppb-slider-fullwidth" role="button" data-slide="prev"><i class="fa fa-angle-left" aria-hidden="true"></i></a>
<a class="right sppb-slider-control" href="#sppb-slider-fullwidth" role="button" data-slide="next"><i class="fa fa-angle-right" aria-hidden="true"></i></a>
<# } #>

</div>

';
return $output;
}

}

Paul Frankowski - Staff

More than a month ago #Permalink
and I gave answer about Spectrum, because this TOPIC is about Spectrum ONLY.
Maybe look again what you have chosen and written at 7 July.
Yes, I have glasses on.

Paul Frankowski - Staff

More than a month ago #Permalink
if you need answer about shaper_cuisine - open new forum thread.


There are no replies made for this post yet.
Be one of the first to reply to this post!

Leaderboard (30 days)

Paul Frankowski

Paul Frankowski

Total Accepted Answers: 126
Sifat

Sifat

Total Accepted Answers: 82
Toufiq

Toufiq

Total Accepted Answers: 39
Pavel

Pavel

Total Accepted Answers: 6
Sohan

Sohan

Total Accepted Answers: 3

114

Templates

292605

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us