Version Description
Download this release
Release Info
Developer | WOWSlider.com |
Plugin | WOW Slider |
Version | 3.1 |
Comparing to | |
See all releases |
Code changes from version 2.7.1 to 3.1
- api.php +7 -3
- install/script.js +4 -8
- readme.txt +74 -65
- wowslider.php +12 -19
api.php
CHANGED
@@ -170,10 +170,14 @@ function wowslider_get($q){
|
|
170 |
global $wpdb;
|
171 |
static $q_count = 0;
|
172 |
$sliders = array();
|
173 |
-
if (is_integer($q)){
|
174 |
-
$
|
|
|
|
|
|
|
|
|
175 |
$only_public = func_num_args() > 1 ? func_get_arg(1) : true;
|
176 |
-
if ($wpdb -> get_var('SELECT ID FROM ' . $wpdb -> prefix . 'wowslider WHERE
|
177 |
$html = "\n\n<link rel='stylesheet' href='" . wowslider_upload_dir('url') . "$id/style.css' type='text/css' media='all' />\n" . str_replace('%URL%', wowslider_upload_dir('url') . "$id/", file_get_contents(wowslider_upload_dir() . $id . '/slider.html')) . "\n\n";
|
178 |
if (file_exists(wowslider_upload_dir() . $id . '/script.js')) $html .= "<script type='text/javascript' src='" . wowslider_upload_dir('url') . "$id/script.js'></script>\n\n";
|
179 |
return $html;
|
170 |
global $wpdb;
|
171 |
static $q_count = 0;
|
172 |
$sliders = array();
|
173 |
+
if (is_integer($q) || (is_array($q) && isset($q['name']))){
|
174 |
+
$sort = '';
|
175 |
+
if (is_array($q)){
|
176 |
+
$sort = ' ORDER BY ID DESC';
|
177 |
+
$where = 'slider_name = "' . $wpdb -> escape($q['name']) . '"';
|
178 |
+
} else $where = 'ID = ' . $q;
|
179 |
$only_public = func_num_args() > 1 ? func_get_arg(1) : true;
|
180 |
+
if ($id = $wpdb -> get_var('SELECT ID FROM ' . $wpdb -> prefix . 'wowslider WHERE ' . $where . ($only_public ? ' AND slider_public = 1' : '') . $sort . ' LIMIT 1;')){
|
181 |
$html = "\n\n<link rel='stylesheet' href='" . wowslider_upload_dir('url') . "$id/style.css' type='text/css' media='all' />\n" . str_replace('%URL%', wowslider_upload_dir('url') . "$id/", file_get_contents(wowslider_upload_dir() . $id . '/slider.html')) . "\n\n";
|
182 |
if (file_exists(wowslider_upload_dir() . $id . '/script.js')) $html .= "<script type='text/javascript' src='" . wowslider_upload_dir('url') . "$id/script.js'></script>\n\n";
|
183 |
return $html;
|
install/script.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
// http://wowslider.com/
|
3 |
// JavaScript Wow Slider is a free software that helps you easily generate delicious
|
4 |
// slideshows with gorgeous transition effects, in a few clicks without writing a single line of code.
|
5 |
-
// Generated by WOW Slider
|
6 |
jQuery.fn.wowSlider = function (d) {
|
7 |
var e = jQuery;
|
8 |
var h = this;
|
@@ -53,7 +53,7 @@ jQuery.fn.wowSlider = function (d) {
|
|
53 |
return ((D || 0) + v) % v
|
54 |
}
|
55 |
var C = navigator.userAgent;
|
56 |
-
|
57 |
var b = Math.pow(10, Math.ceil(Math.LOG10E * Math.log(v)));
|
58 |
l.css({
|
59 |
width: b + "00%"
|
@@ -304,11 +304,7 @@ jQuery.fn.wowSlider = function (d) {
|
|
304 |
if (G || F) {
|
305 |
D.html((G ? "<span>" + G + "</span>" : "") + (F ? "<div>" + F + "</div>" : ""));
|
306 |
D.fadeIn(400, function () {
|
307 |
-
|
308 |
-
e(this)
|
309 |
-
.get(0)
|
310 |
-
.style.removeAttribute("filter")
|
311 |
-
}
|
312 |
})
|
313 |
}
|
314 |
})
|
@@ -336,4 +332,4 @@ jQuery.extend(jQuery.easing, {
|
|
336 |
}
|
337 |
});
|
338 |
|
339 |
-
jQuery("#wowslider-container%ID%").wowSlider({effect:"rotate",prev:"",next:"",duration:20*100,delay:20*100,width:580,height:212,autoPlay:true,stopOnHover:false,loop:false,bullets:true,caption:true,captionEffect:"slide",controls:true,logo:"wowslider/install/loading.gif",images:0});
|
2 |
// http://wowslider.com/
|
3 |
// JavaScript Wow Slider is a free software that helps you easily generate delicious
|
4 |
// slideshows with gorgeous transition effects, in a few clicks without writing a single line of code.
|
5 |
+
// Generated by WOW Slider 3.0
|
6 |
jQuery.fn.wowSlider = function (d) {
|
7 |
var e = jQuery;
|
8 |
var h = this;
|
53 |
return ((D || 0) + v) % v
|
54 |
}
|
55 |
var C = navigator.userAgent;
|
56 |
+
if ((/MSIE/.test(C) && parseInt(/MSIE\s+([\d\.]+)/.exec(C)[1], 10)<8) || (/Safari/.test(C))){
|
57 |
var b = Math.pow(10, Math.ceil(Math.LOG10E * Math.log(v)));
|
58 |
l.css({
|
59 |
width: b + "00%"
|
304 |
if (G || F) {
|
305 |
D.html((G ? "<span>" + G + "</span>" : "") + (F ? "<div>" + F + "</div>" : ""));
|
306 |
D.fadeIn(400, function () {
|
307 |
+
if(this.filters) this.style.removeAttribute('filter')
|
|
|
|
|
|
|
|
|
308 |
})
|
309 |
}
|
310 |
})
|
332 |
}
|
333 |
});
|
334 |
|
335 |
+
jQuery("#wowslider-container%ID%").wowSlider({effect:"rotate",prev:"",next:"",duration:20*100,delay:20*100,width:580,height:212,autoPlay:true,stopOnHover:false,loop:false,bullets:true,caption:true,captionEffect:"slide",controls:true,logo:"wowslider/install/loading.gif",images:0});
|
readme.txt
CHANGED
@@ -1,65 +1,74 @@
|
|
1 |
-
=== WOW Slider ===
|
2 |
-
Contributors: WOWSlider.com
|
3 |
-
Donate link: http://wowslider.com/
|
4 |
-
Tags: banner, gallery, image, image slider, images, javascript, jquery, photo, css, photos, picture, pictures, plugin, post, responsive slider, shortcode, posts, slider, slideshow, widget, wordpress, wordpress slider, wow slider, page, links
|
5 |
-
Requires at least: 3.1
|
6 |
-
Tested up to: 3.5
|
7 |
-
Stable tag: trunk
|
8 |
-
|
9 |
-
Add beautiful image slider to your Wordpress blog! Awesome effects, fancy templates, point-and-click wizard. Fully responsive, pure CSS fallback.
|
10 |
-
|
11 |
-
== Description ==
|
12 |
-
|
13 |
-
[WOW Slider](http://wowslider.com/) is a Wordpress slider with stunning visual effects and tons of professionally made templates.
|
14 |
-
WOW Slider is packed with a point-and-click wizard to create fantastic image sliders in a matter of seconds without
|
15 |
-
coding and image editing.
|
16 |
-
Responsive, fully accessible as a pure CSS slider if the Javascript is turned off, touch swipe support,
|
17 |
-
all browsers, all devices, search engine friendly, clean and valid markup.
|
18 |
-
|
19 |
-
**Live Demos**:
|
20 |
-
|
21 |
-
* [
|
22 |
-
* [
|
23 |
-
* [
|
24 |
-
* [
|
25 |
-
* [
|
26 |
-
* [
|
27 |
-
* [
|
28 |
-
* [
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
[
|
33 |
-
|
34 |
-
[
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
http://wowslider.com/
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
1.
|
57 |
-
1.
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
==
|
64 |
-
|
65 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== WOW Slider ===
|
2 |
+
Contributors: WOWSlider.com
|
3 |
+
Donate link: http://wowslider.com/
|
4 |
+
Tags: banner, gallery, image, image slider, images, javascript, jquery, photo, css, photos, picture, pictures, plugin, post, responsive slider, shortcode, posts, slider, slideshow, widget, wordpress, wordpress slider, wow slider, page, links
|
5 |
+
Requires at least: 3.1
|
6 |
+
Tested up to: 3.5
|
7 |
+
Stable tag: trunk
|
8 |
+
|
9 |
+
Add beautiful image slider to your Wordpress blog! Awesome effects, fancy templates, point-and-click wizard. Fully responsive, pure CSS fallback.
|
10 |
+
|
11 |
+
== Description ==
|
12 |
+
|
13 |
+
[WOW Slider](http://wowslider.com/) is a Wordpress slider with stunning visual effects and tons of professionally made templates.
|
14 |
+
WOW Slider is packed with a point-and-click wizard to create fantastic image sliders in a matter of seconds without
|
15 |
+
coding and image editing.
|
16 |
+
Responsive, fully accessible as a pure CSS slider if the Javascript is turned off, touch swipe support,
|
17 |
+
all browsers, all devices, search engine friendly, clean and valid markup.
|
18 |
+
|
19 |
+
**Live Demos**:
|
20 |
+
|
21 |
+
* [Balance Demo with Blast effect](http://wowslider.com/online-photo-slideshow-balance-blast.html "Online Photo Slideshow - Balance Template Demo with Blast effect")
|
22 |
+
* [Calm Demo with Ken Burns effect](http://wowslider.com/html-slider-calm-kenburns-demo.html "HTML slider - Calm Template Demo with Ken Burns effect")
|
23 |
+
* [Dominion Demo with Blinds effect](http://wowslider.com/html-gallery-dominion-blinds-demo.html "HTML gallery - Dominion Template Demo with Blinds effect")
|
24 |
+
* [Silence Demo with Blur effect](http://wowslider.com/html-slideshow-silence-blur-demo.html "HTML slideshow - Silence Template Demo with Blur effect")
|
25 |
+
* [Prime Time - Filmstrip](http://wowslider.com/jquery-image-scroller-prime-time-linear-demo.html "jQuery Image Scroller - Prime Time Template Demo with Basic linear effect")
|
26 |
+
* [Elemental Slices Demo](view-source:http://wowslider.com/jquery-slider-css-elemental-slices-demo.html "jQuery Slider CSS Elemental Slices Demo")
|
27 |
+
* [Responsive Slider - Shady Stack](view-source:http://wowslider.com/wordpress-gallery-css-shady-stack-v-demo.html "Responsive Slider - Wordpress Shady Stack Demo")
|
28 |
+
* [Catalyst Demo](http://wowslider.com/jquery-banner-rotator-catalyst-fade-demo.html "Jquery banner rotator - Catalyst Template Demo with Fade effect")
|
29 |
+
* [Catalyst Digital Demo](http://www.wowslider.com/jquery-picture-slider-catalyst-digital-stack-demo.html "jQuery Picture Slider - Catalyst Digital Template Demo with Stack effect")
|
30 |
+
* [Dark Matter Demo](http://www.wowslider.com/free-image-slider-dark-matter-squares-demo.html "Free image slider - Dark Matter Demo with Squares effect")
|
31 |
+
* [Quiet Demo - Rotate effect](http://www.wowslider.com/javascript-slideshow-quiet-rotate-demo.html "Javascript Slideshow - Quiet Template Demo with Rotate effect")
|
32 |
+
* [HTML5 Image Gallery - Numeric](view-source:http://wowslider.com/html5-image-gallery-numeric-basic-demo.html "HTML5 Image Gallery Numeric Basic Demo")
|
33 |
+
* [CSS Slider - Aqua Flip](http://www.wowslider.com/css-slider-aqua-flip-demo.html "CSS Slider - Aqua Template with Flip effect")
|
34 |
+
* [jQuery Image Rotator - Blur](view-source:http://wowslider.com/jquery-image-rotator-terse-blur-demo.html "jQuery Image Rotator Terse Blur Demo : jQuery Banner Rotator")
|
35 |
+
* [Slider Demo - Mellow Blast Example](http://www.wowslider.com/jquery-slider-mellow-blast-demo.html "Slider Demo with Mellow template and Blast transition effect")
|
36 |
+
* [More amazing demos made with WOW Slider..](view-source:http://wowslider.com/jquery-image-rotator-terse-blur-demo.html "jQuery Slider - Terse Blur")
|
37 |
+
|
38 |
+
|
39 |
+
More Info: http://wowslider.com/
|
40 |
+
|
41 |
+
[How to create Wordpress slider with WOW Slider - Full Tutorial](view-source:http://wowslider.com/wordpress-jquery-slider.html "Wordpress Image Slider Plugin Tutorial")
|
42 |
+
|
43 |
+
[youtube http://www.youtube.com/watch?v=o82IuhWtgTo]
|
44 |
+
|
45 |
+
== Installation ==
|
46 |
+
|
47 |
+
Please see full tutorial+video here:
|
48 |
+
http://wowslider.com/wordpress-jquery-slider.html
|
49 |
+
|
50 |
+
1. Download WOWSlider app for Win or Mac from
|
51 |
+
http://wowslider.com/wowslider-free-setup.zip
|
52 |
+
1. Create an image slideshow in WOW Slider program, click "Publish" button, and select "Wordpress Slider" as a publishing method - wowslider.zip WordPress plugin will be created
|
53 |
+
1. Install and activate the created module � wowslider.zip through the 'Plugins' menu in WordPress
|
54 |
+
1. WOWSlider menu will appear. Go to WOW Slider -> All Sliders and copy the shortcode of your slider
|
55 |
+
1. Add the shortcode inside the page where you want your slider to appear
|
56 |
+
1. Preview changes
|
57 |
+
1. Use WOW Slider menu WOW Slider -> Add New to add each next slider
|
58 |
+
|
59 |
+
[youtube http://www.youtube.com/watch?v=o82IuhWtgTo]
|
60 |
+
|
61 |
+
== Frequently Asked Questions ==
|
62 |
+
|
63 |
+
== Screenshots ==
|
64 |
+
|
65 |
+
1. Fancy Templates
|
66 |
+
1. Create an image slideshow in WOW Slider program, click "Publish" button, and select "Wordpress Slider" as a publishing method - wowslider.zip WordPress plugin will be created
|
67 |
+
1. Install and activate the created module � wowslider.zip through the 'Plugins' menu in WordPress
|
68 |
+
1. WOWSlider menu will appear. Go to WOW Slider -> All Sliders and copy the shortcode of your slider
|
69 |
+
1. Add the shortcode inside the page where you want your slider to appear
|
70 |
+
1. Preview changes. Use WOW Slider menu WOW Slider -> Add New to add each next slider
|
71 |
+
|
72 |
+
== Changelog ==
|
73 |
+
|
74 |
+
== Upgrade Notice ==
|
wowslider.php
CHANGED
@@ -3,37 +3,30 @@
|
|
3 |
Plugin Name: WOW Slider
|
4 |
Description: This module easily adds image sliders created with WOWSlider app.
|
5 |
Author: WOWSlider.com
|
6 |
-
Version:
|
7 |
Author URI: http://wowslider.com/
|
8 |
*/
|
9 |
|
10 |
-
/* Copyright (C)
|
11 |
|
12 |
// template tag
|
13 |
function wowslider($id = 0, $write = true){
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
|
|
|
|
|
|
18 |
$out = wowslider_get($id);
|
19 |
-
if (
|
20 |
-
|
21 |
-
}
|
22 |
-
|
23 |
-
// wowslider in pages/posts
|
24 |
-
function wowslider_injection($output){
|
25 |
-
if (preg_match_all('/\[wowslider id="(\d+)"\]/', $output, $matches)){
|
26 |
-
$ids = array_unique($matches[1]);
|
27 |
-
foreach ($ids as $id)
|
28 |
-
$output = str_replace('[wowslider id="' . $id . '"]', wowslider($id, false), $output);
|
29 |
-
}
|
30 |
-
return $output;
|
31 |
}
|
32 |
|
33 |
// initialization
|
34 |
define('WOWSLIDER_PLUGIN_URL', plugin_dir_url(__FILE__));
|
35 |
define('WOWSLIDER_PLUGIN_PATH', str_replace('\\', '/', dirname(__FILE__)) . '/');
|
36 |
-
|
37 |
require_once WOWSLIDER_PLUGIN_PATH . 'admin-bar.php';
|
38 |
require_once WOWSLIDER_PLUGIN_PATH . 'api.php';
|
39 |
require_once WOWSLIDER_PLUGIN_PATH . 'helpers.php';
|
3 |
Plugin Name: WOW Slider
|
4 |
Description: This module easily adds image sliders created with WOWSlider app.
|
5 |
Author: WOWSlider.com
|
6 |
+
Version: 3.1
|
7 |
Author URI: http://wowslider.com/
|
8 |
*/
|
9 |
|
10 |
+
/* Copyright (C) 2013 WOWSlider.com. All rights reserved. */
|
11 |
|
12 |
// template tag
|
13 |
function wowslider($id = 0, $write = true){
|
14 |
+
if (is_array($id)){ // shortcodes
|
15 |
+
$write = false;
|
16 |
+
if (isset($id['id'])) $id = (int)$id['id'];
|
17 |
+
else if (isset($id['title'])) $id = array('name' => $id['title']);
|
18 |
+
else return '';
|
19 |
+
} else if (substr($id, 0, 6) == 'title:') $id = array('name' => substr($id, 6));
|
20 |
+
else $id = (int)$id;
|
21 |
$out = wowslider_get($id);
|
22 |
+
if (!$write) return $out;
|
23 |
+
echo $out;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
}
|
25 |
|
26 |
// initialization
|
27 |
define('WOWSLIDER_PLUGIN_URL', plugin_dir_url(__FILE__));
|
28 |
define('WOWSLIDER_PLUGIN_PATH', str_replace('\\', '/', dirname(__FILE__)) . '/');
|
29 |
+
add_shortcode('wowslider' , 'wowslider');
|
30 |
require_once WOWSLIDER_PLUGIN_PATH . 'admin-bar.php';
|
31 |
require_once WOWSLIDER_PLUGIN_PATH . 'api.php';
|
32 |
require_once WOWSLIDER_PLUGIN_PATH . 'helpers.php';
|