Download the PHP package quexer69/yii-slit-slider without Composer
On this page you can find all versions of the php package quexer69/yii-slit-slider. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download quexer69/yii-slit-slider
More information about quexer69/yii-slit-slider
Files in quexer69/yii-slit-slider
Package yii-slit-slider
Short Description Yii Slit Slider for phundament 3, with packages from composer repository http://packages.phundament.com
License BSD-3-Clause
Homepage https://github.com/Quexer69
Informations about the package yii-slit-slider
Yii Slit Slider Widget
Version 0.3.9-patch1
What is Slit Slider Widget?
A phundament3 Widget from the well known jQuery Slit Slider. But we have a backend crud to administrate all the slider widgets in your web application. featuring P3Media
Composer support for easy installation of this phundament3 widget.
- [phundament3 on GitHub] (https://github.com/phundament/app)
- [p3Media on GitHub] (https://github.com/schmunk42/p3media)
- [yii-slit-slider on GitHub] (https://github.com/quexer69/yii-slit-slider)
Quick-Start
Composer
If you have composer already installed
composer.phar require quexer69/yii-slit-slider
or
add the package quexer69/yii-slit-slider
to your composer.json
!!! You need to have already setup a database connection for the yii-slit-slider migration !!!
Setup
[SETUP] edit in app/config/main.php
REQUIRED
do add imagePresets to the slitslider module. The indices of this array have to be real p3media->params->presets!
edit in app/config/console.php to add slit-slider migration ($ yiic migrate)
REQUIRED
OPTIONAL (if you have schmunk42/multi-theme installed, you can say in which theme should the SlitSlider Backend be displayed)
Run widget
Default Call of the slitSlider Widget
Params Call of the slitSlider Widget
if groupId is NULL for a slider widget
-> all slits will be shown in this slider.if groupId is NULL for a slit
-> this slit will be shown in all sliders.groupId
can be a number or a groupname
Or easily add through P3WidgetContainer
(you need to add slitSlider Widget to the P3Widgets)
output on any page template
Administration
Now you get in the P3Admin backend the module SlitSlider to configurate your sliders!!!
Custom Attributes
Every slide will also have some data-attributes that we will use in order to control the effect for each slide. The data attributes that we want are the following:
The first one, data-orientation
should be either vertical
or horizontal
.
This we need in order to know where to “slice” the slide. It will be either slice horizontally or vertically.
The data-slice1-rotation
and data-slice2-rotation
value will be the rotation degree for each one of the slices
and the data-slice1-scale
and data-slice2-scale
value will be the scale value.
Documentation
Database-Dump
dump Schema
app/yiic database dump init_slitSlider_tables --prefix=slider_ \
--dbConnection=db --createSchema=1 \
--insertData=0
dump datas
app/yiic database dump replace_slider_data --prefix=slider_ \
--dbConnection=db --createSchema=0 \
--foreignKeyChecks=0 --truncateTable=1