Version Description
Download this release
Release Info
Developer | sayful |
Plugin | Carousel Slider |
Version | 1.6.2 |
Comparing to | |
See all releases |
Code changes from version 1.6.1 to 1.6.2
- carousel-slider.php +15 -10
- dummy-data/carousel-slider.xml +0 -0
- includes/{Carousel_Slider_Activation.php → class-carousel-slider-activation.php} +6 -2
- includes/{Carousel_Slider_Admin.php → class-carousel-slider-admin.php} +3 -1
- includes/{Carousel_Slider_Documentation.php → class-carousel-slider-documentation.php} +0 -0
- includes/{Carousel_Slider_Form.php → class-carousel-slider-form.php} +2 -2
- includes/{Carousel_Slider_VC_Element.php → class-carousel-slider-vc-element.php} +0 -0
- readme.txt +6 -5
- shortcodes/{Carousel_Slider_Deprecated_Shortcode.php → class-carousel-slider-deprecated-shortcode.php} +0 -0
- shortcodes/{Carousel_Slider_Shortcode.php → class-carousel-slider-shortcode.php} +0 -0
- templates/admin/autoplay.php +4 -4
- templates/admin/general.php +8 -8
- templates/admin/images-carousel-url.php +1 -1
- templates/admin/images.php +1 -1
- templates/admin/navigation.php +4 -4
- templates/admin/post-carousel.php +10 -10
- templates/admin/responsive.php +6 -6
- templates/admin/video-carousel.php +3 -3
carousel-slider.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Carousel Slider
|
4 |
Plugin URI: http://wordpress.org/plugins/carousel-slider
|
5 |
Description: Touch enabled WordPress plugin that lets you create beautiful responsive carousel slider.
|
6 |
-
Version: 1.6.
|
7 |
Author: Sayful Islam
|
8 |
Author URI: http://sayfulit.com
|
9 |
Text Domain: carousel-slider
|
@@ -17,6 +17,11 @@ if ( ! defined( 'WPINC' ) ) {
|
|
17 |
die;
|
18 |
}
|
19 |
|
|
|
|
|
|
|
|
|
|
|
20 |
if( ! class_exists('Carousel_Slider') ):
|
21 |
|
22 |
class Carousel_Slider
|
@@ -48,7 +53,7 @@ class Carousel_Slider
|
|
48 |
public function __construct()
|
49 |
{
|
50 |
$this->plugin_name = 'carousel-slider';
|
51 |
-
$this->plugin_version =
|
52 |
|
53 |
add_action('wp_enqueue_scripts', array( $this, 'frontend_scripts' ), 15 );
|
54 |
add_action('admin_enqueue_scripts', array( $this, 'admin_scripts' ), 10 );
|
@@ -97,18 +102,18 @@ class Carousel_Slider
|
|
97 |
|
98 |
public function admin_includes()
|
99 |
{
|
100 |
-
require_once $this->plugin_path() . '/includes/
|
101 |
-
require_once $this->plugin_path() . '/includes/
|
102 |
-
require_once $this->plugin_path() . '/includes/
|
103 |
-
require_once $this->plugin_path() . '/includes/
|
104 |
-
|
105 |
new Carousel_Slider_Admin( $this->plugin_path(), $this->plugin_url() );
|
106 |
}
|
107 |
|
108 |
public function frontend_includes()
|
109 |
{
|
110 |
-
require_once $this->plugin_path() . '/shortcodes/
|
111 |
-
require_once $this->plugin_path() . '/shortcodes/
|
112 |
|
113 |
new Carousel_Slider_Shortcode( $this->plugin_path(), $this->plugin_url() );
|
114 |
new Carousel_Slider_Deprecated_Shortcode( $this->plugin_path() );
|
@@ -300,7 +305,7 @@ register_deactivation_hook( __FILE__, 'carousel_slider_deactivation' );
|
|
300 |
*/
|
301 |
function carousel_slider_activation()
|
302 |
{
|
303 |
-
require_once plugin_dir_path( __FILE__ ) . 'includes/
|
304 |
Carousel_Slider_Activation::activate();
|
305 |
}
|
306 |
register_activation_hook( __FILE__, 'carousel_slider_activation' );
|
3 |
Plugin Name: Carousel Slider
|
4 |
Plugin URI: http://wordpress.org/plugins/carousel-slider
|
5 |
Description: Touch enabled WordPress plugin that lets you create beautiful responsive carousel slider.
|
6 |
+
Version: 1.6.2
|
7 |
Author: Sayful Islam
|
8 |
Author URI: http://sayfulit.com
|
9 |
Text Domain: carousel-slider
|
17 |
die;
|
18 |
}
|
19 |
|
20 |
+
// Define Carousel Slider Version
|
21 |
+
if ( ! defined( 'CAROUSEL_SLIDER_VERSION' ) ) {
|
22 |
+
define( 'CAROUSEL_SLIDER_VERSION', '1.6.2' );
|
23 |
+
}
|
24 |
+
|
25 |
if( ! class_exists('Carousel_Slider') ):
|
26 |
|
27 |
class Carousel_Slider
|
53 |
public function __construct()
|
54 |
{
|
55 |
$this->plugin_name = 'carousel-slider';
|
56 |
+
$this->plugin_version = CAROUSEL_SLIDER_VERSION;
|
57 |
|
58 |
add_action('wp_enqueue_scripts', array( $this, 'frontend_scripts' ), 15 );
|
59 |
add_action('admin_enqueue_scripts', array( $this, 'admin_scripts' ), 10 );
|
102 |
|
103 |
public function admin_includes()
|
104 |
{
|
105 |
+
require_once $this->plugin_path() . '/includes/class-carousel-slider-vc-element.php';
|
106 |
+
require_once $this->plugin_path() . '/includes/class-carousel-slider-documentation.php';
|
107 |
+
require_once $this->plugin_path() . '/includes/class-carousel-slider-form.php';
|
108 |
+
require_once $this->plugin_path() . '/includes/class-carousel-slider-admin.php';
|
109 |
+
|
110 |
new Carousel_Slider_Admin( $this->plugin_path(), $this->plugin_url() );
|
111 |
}
|
112 |
|
113 |
public function frontend_includes()
|
114 |
{
|
115 |
+
require_once $this->plugin_path() . '/shortcodes/class-carousel-slider-shortcode.php';
|
116 |
+
require_once $this->plugin_path() . '/shortcodes/class-carousel-slider-deprecated-shortcode.php';
|
117 |
|
118 |
new Carousel_Slider_Shortcode( $this->plugin_path(), $this->plugin_url() );
|
119 |
new Carousel_Slider_Deprecated_Shortcode( $this->plugin_path() );
|
305 |
*/
|
306 |
function carousel_slider_activation()
|
307 |
{
|
308 |
+
require_once plugin_dir_path( __FILE__ ) . 'includes/class-carousel-slider-activation.php';
|
309 |
Carousel_Slider_Activation::activate();
|
310 |
}
|
311 |
register_activation_hook( __FILE__, 'carousel_slider_activation' );
|
dummy-data/carousel-slider.xml
CHANGED
File without changes
|
includes/{Carousel_Slider_Activation.php → class-carousel-slider-activation.php}
RENAMED
@@ -6,10 +6,14 @@ class Carousel_Slider_Activation
|
|
6 |
{
|
7 |
public static function activate()
|
8 |
{
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
11 |
// Add plugin version to database
|
12 |
-
update_option( 'carousel_slider_version',
|
13 |
|
14 |
// Flush the rewrite rules on activation
|
15 |
flush_rewrite_rules();
|
6 |
{
|
7 |
public static function activate()
|
8 |
{
|
9 |
+
$version = get_option( 'carousel_slider_version' );
|
10 |
+
|
11 |
+
if ( $version == false ) {
|
12 |
+
self::update_meta_160();
|
13 |
+
}
|
14 |
|
15 |
// Add plugin version to database
|
16 |
+
update_option( 'carousel_slider_version', CAROUSEL_SLIDER_VERSION );
|
17 |
|
18 |
// Flush the rewrite rules on activation
|
19 |
flush_rewrite_rules();
|
includes/{Carousel_Slider_Admin.php → class-carousel-slider-admin.php}
RENAMED
@@ -8,15 +8,17 @@ if( ! class_exists('Carousel_Slider_Admin') ):
|
|
8 |
|
9 |
class Carousel_Slider_Admin
|
10 |
{
|
11 |
-
use Carousel_Slider_Form;
|
12 |
|
13 |
private $plugin_path;
|
14 |
private $plugin_url;
|
|
|
15 |
|
16 |
public function __construct( $plugin_path, $plugin_url )
|
17 |
{
|
18 |
$this->plugin_path = $plugin_path;
|
19 |
$this->plugin_url = $plugin_url;
|
|
|
20 |
|
21 |
add_action('init', array( $this, 'carousel_post_type' ) );
|
22 |
add_action('add_meta_boxes', array( $this, 'add_meta_boxes' ) );
|
8 |
|
9 |
class Carousel_Slider_Admin
|
10 |
{
|
11 |
+
// use Carousel_Slider_Form;
|
12 |
|
13 |
private $plugin_path;
|
14 |
private $plugin_url;
|
15 |
+
private $form;
|
16 |
|
17 |
public function __construct( $plugin_path, $plugin_url )
|
18 |
{
|
19 |
$this->plugin_path = $plugin_path;
|
20 |
$this->plugin_url = $plugin_url;
|
21 |
+
$this->form = new Carousel_Slider_Form();
|
22 |
|
23 |
add_action('init', array( $this, 'carousel_post_type' ) );
|
24 |
add_action('add_meta_boxes', array( $this, 'add_meta_boxes' ) );
|
includes/{Carousel_Slider_Documentation.php → class-carousel-slider-documentation.php}
RENAMED
File without changes
|
includes/{Carousel_Slider_Form.php → class-carousel-slider-form.php}
RENAMED
@@ -4,9 +4,9 @@ if ( ! defined( 'WPINC' ) ) {
|
|
4 |
die;
|
5 |
}
|
6 |
|
7 |
-
if( !
|
8 |
|
9 |
-
|
10 |
{
|
11 |
public function text( array $args )
|
12 |
{
|
4 |
die;
|
5 |
}
|
6 |
|
7 |
+
if( ! class_exists('Carousel_Slider_Form') ):
|
8 |
|
9 |
+
class Carousel_Slider_Form
|
10 |
{
|
11 |
public function text( array $args )
|
12 |
{
|
includes/{Carousel_Slider_VC_Element.php → class-carousel-slider-vc-element.php}
RENAMED
File without changes
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: sayful
|
|
3 |
Tags: widget, shortcode, images, carousel, carousel slider, image carousel, slider, owl carousel
|
4 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3LZWQTHEVYWCY
|
5 |
Requires at least: 3.5
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.6.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -51,9 +51,6 @@ https://www.youtube.com/watch?v=4LhDXH81whk
|
|
51 |
= Using as a Widget =
|
52 |
https://www.youtube.com/watch?v=kYgp6wp27lM
|
53 |
|
54 |
-
= Full video instruction on Youtube =
|
55 |
-
https://www.youtube.com/playlist?list=PL9GiQPpTzMv6aMEq449a7RPzjSVRf1bsc
|
56 |
-
|
57 |
== Installation ==
|
58 |
|
59 |
* From your WordPress dashboard go to **Plugins > Add New**.
|
@@ -77,6 +74,10 @@ Do you have questions or issues with Carousel Slider? [Ask for support here](htt
|
|
77 |
|
78 |
== Changelog ==
|
79 |
|
|
|
|
|
|
|
|
|
80 |
= version 1.6.1 - 2017-01-12 =
|
81 |
* Added - Show posts by Post Categories, Post Tags.
|
82 |
* Added - Option to choose query type - Latest Posts, Date Range, Post Categories, Post Tags or Specific Posts.
|
3 |
Tags: widget, shortcode, images, carousel, carousel slider, image carousel, slider, owl carousel
|
4 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3LZWQTHEVYWCY
|
5 |
Requires at least: 3.5
|
6 |
+
Tested up to: 4.8
|
7 |
+
Stable tag: 1.6.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
51 |
= Using as a Widget =
|
52 |
https://www.youtube.com/watch?v=kYgp6wp27lM
|
53 |
|
|
|
|
|
|
|
54 |
== Installation ==
|
55 |
|
56 |
* From your WordPress dashboard go to **Plugins > Add New**.
|
74 |
|
75 |
== Changelog ==
|
76 |
|
77 |
+
= version 1.6.2 - 2017-01-27 =
|
78 |
+
* Fixed - Removed PHP trait to add support to PHP 5.3 as some users still use PHP 5.3
|
79 |
+
* Fixed - Fixed issue to make all carousel slider type to **Image Carousel** on activation.
|
80 |
+
|
81 |
= version 1.6.1 - 2017-01-12 =
|
82 |
* Added - Show posts by Post Categories, Post Tags.
|
83 |
* Added - Option to choose query type - Latest Posts, Date Range, Post Categories, Post Tags or Specific Posts.
|
shortcodes/{Carousel_Slider_Deprecated_Shortcode.php → class-carousel-slider-deprecated-shortcode.php}
RENAMED
File without changes
|
shortcodes/{Carousel_Slider_Shortcode.php → class-carousel-slider-shortcode.php}
RENAMED
File without changes
|
templates/admin/autoplay.php
CHANGED
@@ -5,27 +5,27 @@
|
|
5 |
<div class="shapla-toggle-inner">
|
6 |
<div class="shapla-toggle-content">
|
7 |
<?php
|
8 |
-
$this->checkbox( array(
|
9 |
'id' => '_autoplay',
|
10 |
'name' => __('Autoplay', 'carousel-slider'),
|
11 |
'label' => __('Autoplay.', 'carousel-slider'),
|
12 |
'desc' => __('Check to enable autoplay', 'carousel-slider'),
|
13 |
'std' => 'on'
|
14 |
));
|
15 |
-
$this->number( array(
|
16 |
'id' => '_autoplay_timeout',
|
17 |
'name' => __('Autoplay Timeout', 'carousel-slider'),
|
18 |
'desc' => __('Autoplay interval timeout in millisecond. Default: 5000', 'carousel-slider'),
|
19 |
'std' => 5000
|
20 |
));
|
21 |
|
22 |
-
$this->number( array(
|
23 |
'id' => '_autoplay_speed',
|
24 |
'name' => __('Autoplay Speed', 'carousel-slider'),
|
25 |
'desc' => __('Autoplay speen in millisecond. Default: 500', 'carousel-slider'),
|
26 |
'std' => 500
|
27 |
));
|
28 |
-
$this->checkbox( array(
|
29 |
'id' => '_autoplay_pause',
|
30 |
'name' => __('Autoplay Hover Pause', 'carousel-slider'),
|
31 |
'label' => __('Pause on mouse hover.', 'carousel-slider'),
|
5 |
<div class="shapla-toggle-inner">
|
6 |
<div class="shapla-toggle-content">
|
7 |
<?php
|
8 |
+
$this->form->checkbox( array(
|
9 |
'id' => '_autoplay',
|
10 |
'name' => __('Autoplay', 'carousel-slider'),
|
11 |
'label' => __('Autoplay.', 'carousel-slider'),
|
12 |
'desc' => __('Check to enable autoplay', 'carousel-slider'),
|
13 |
'std' => 'on'
|
14 |
));
|
15 |
+
$this->form->number( array(
|
16 |
'id' => '_autoplay_timeout',
|
17 |
'name' => __('Autoplay Timeout', 'carousel-slider'),
|
18 |
'desc' => __('Autoplay interval timeout in millisecond. Default: 5000', 'carousel-slider'),
|
19 |
'std' => 5000
|
20 |
));
|
21 |
|
22 |
+
$this->form->number( array(
|
23 |
'id' => '_autoplay_speed',
|
24 |
'name' => __('Autoplay Speed', 'carousel-slider'),
|
25 |
'desc' => __('Autoplay speen in millisecond. Default: 500', 'carousel-slider'),
|
26 |
'std' => 500
|
27 |
));
|
28 |
+
$this->form->checkbox( array(
|
29 |
'id' => '_autoplay_pause',
|
30 |
'name' => __('Autoplay Hover Pause', 'carousel-slider'),
|
31 |
'label' => __('Pause on mouse hover.', 'carousel-slider'),
|
templates/admin/general.php
CHANGED
@@ -5,52 +5,52 @@
|
|
5 |
<div class="shapla-toggle-inner">
|
6 |
<div class="shapla-toggle-content">
|
7 |
<?php
|
8 |
-
$this->text( array(
|
9 |
'id' => '_slide_by',
|
10 |
'name' => __('Slide By', 'carousel-slider'),
|
11 |
'desc' => __('Navigation slide by x number. Write "page" with inverted comma to slide by page. Default value is 1.', 'carousel-slider'),
|
12 |
'std' => 1
|
13 |
));
|
14 |
-
$this->number( array(
|
15 |
'id' => '_margin_right',
|
16 |
'name' => __('Margin Right(px) on item.', 'carousel-slider'),
|
17 |
'desc' => __('margin-right(px) on item. Default value is 10. Example: 20', 'carousel-slider'),
|
18 |
'std' => 10
|
19 |
));
|
20 |
-
$this->checkbox( array(
|
21 |
'id' => '_inifnity_loop',
|
22 |
'name' => __('Inifnity loop', 'carousel-slider'),
|
23 |
'label' => __('Inifnity loop.', 'carousel-slider'),
|
24 |
'desc' => __('Check to show inifnity loop. Duplicate last and first items to get loop illusion', 'carousel-slider'),
|
25 |
'std' => 'on'
|
26 |
));
|
27 |
-
$this->checkbox(array(
|
28 |
'id' => '_lazy_load_image',
|
29 |
'name' => __('Lazy load image', 'carousel-slider'),
|
30 |
'label' => __('Lazy load image.', 'carousel-slider'),
|
31 |
'desc' => __('Check to enable image lazy load.', 'carousel-slider'),
|
32 |
'std' => 'off'
|
33 |
));
|
34 |
-
$this->checkbox(array(
|
35 |
'id' => '_show_attachment_title',
|
36 |
'name' => __('Show Image Title', 'carousel-slider'),
|
37 |
'label' => __('Show Image Title', 'carousel-slider'),
|
38 |
'desc' => __('Check to show title below image. Only works with image carousel.', 'carousel-slider'),
|
39 |
'std' => 'off'
|
40 |
));
|
41 |
-
$this->checkbox(array(
|
42 |
'id' => '_show_attachment_caption',
|
43 |
'name' => __('Show Image Caption', 'carousel-slider'),
|
44 |
'label' => __('Show Image Caption', 'carousel-slider'),
|
45 |
'desc' => __('Check to show caption below image. Only works with image carousel.', 'carousel-slider'),
|
46 |
'std' => 'off'
|
47 |
));
|
48 |
-
$this->image_sizes(array(
|
49 |
'id' => __('_image_size', 'carousel-slider'),
|
50 |
'name' => __('Carousel Image size', 'carousel-slider'),
|
51 |
'desc' => sprintf(__( 'Select "original uploaded image" for full size image or your desired image size for carousel image. You can change the default size for thumbnail, medium and large from %1$s Settings >> Media %2$s.', 'carousel-slider' ),'<a target="_blank" href="'.get_admin_url().'options-media.php">','</a>'),
|
52 |
));
|
53 |
-
$this->select(array(
|
54 |
'id' => '_image_target',
|
55 |
'name' => __('Image Target', 'carousel-slider'),
|
56 |
'desc' => __('Choose where to open the linked image. (For Image Carousel)', 'carousel-slider'),
|
5 |
<div class="shapla-toggle-inner">
|
6 |
<div class="shapla-toggle-content">
|
7 |
<?php
|
8 |
+
$this->form->text( array(
|
9 |
'id' => '_slide_by',
|
10 |
'name' => __('Slide By', 'carousel-slider'),
|
11 |
'desc' => __('Navigation slide by x number. Write "page" with inverted comma to slide by page. Default value is 1.', 'carousel-slider'),
|
12 |
'std' => 1
|
13 |
));
|
14 |
+
$this->form->number( array(
|
15 |
'id' => '_margin_right',
|
16 |
'name' => __('Margin Right(px) on item.', 'carousel-slider'),
|
17 |
'desc' => __('margin-right(px) on item. Default value is 10. Example: 20', 'carousel-slider'),
|
18 |
'std' => 10
|
19 |
));
|
20 |
+
$this->form->checkbox( array(
|
21 |
'id' => '_inifnity_loop',
|
22 |
'name' => __('Inifnity loop', 'carousel-slider'),
|
23 |
'label' => __('Inifnity loop.', 'carousel-slider'),
|
24 |
'desc' => __('Check to show inifnity loop. Duplicate last and first items to get loop illusion', 'carousel-slider'),
|
25 |
'std' => 'on'
|
26 |
));
|
27 |
+
$this->form->checkbox(array(
|
28 |
'id' => '_lazy_load_image',
|
29 |
'name' => __('Lazy load image', 'carousel-slider'),
|
30 |
'label' => __('Lazy load image.', 'carousel-slider'),
|
31 |
'desc' => __('Check to enable image lazy load.', 'carousel-slider'),
|
32 |
'std' => 'off'
|
33 |
));
|
34 |
+
$this->form->checkbox(array(
|
35 |
'id' => '_show_attachment_title',
|
36 |
'name' => __('Show Image Title', 'carousel-slider'),
|
37 |
'label' => __('Show Image Title', 'carousel-slider'),
|
38 |
'desc' => __('Check to show title below image. Only works with image carousel.', 'carousel-slider'),
|
39 |
'std' => 'off'
|
40 |
));
|
41 |
+
$this->form->checkbox(array(
|
42 |
'id' => '_show_attachment_caption',
|
43 |
'name' => __('Show Image Caption', 'carousel-slider'),
|
44 |
'label' => __('Show Image Caption', 'carousel-slider'),
|
45 |
'desc' => __('Check to show caption below image. Only works with image carousel.', 'carousel-slider'),
|
46 |
'std' => 'off'
|
47 |
));
|
48 |
+
$this->form->image_sizes(array(
|
49 |
'id' => __('_image_size', 'carousel-slider'),
|
50 |
'name' => __('Carousel Image size', 'carousel-slider'),
|
51 |
'desc' => sprintf(__( 'Select "original uploaded image" for full size image or your desired image size for carousel image. You can change the default size for thumbnail, medium and large from %1$s Settings >> Media %2$s.', 'carousel-slider' ),'<a target="_blank" href="'.get_admin_url().'options-media.php">','</a>'),
|
52 |
));
|
53 |
+
$this->form->select(array(
|
54 |
'id' => '_image_target',
|
55 |
'name' => __('Image Target', 'carousel-slider'),
|
56 |
'desc' => __('Choose where to open the linked image. (For Image Carousel)', 'carousel-slider'),
|
templates/admin/images-carousel-url.php
CHANGED
@@ -9,7 +9,7 @@ $btn_text = $_images_urls ? 'Edit URLs' : 'Add URLs';
|
|
9 |
<div class="shapla-toggle-inner">
|
10 |
<div class="shapla-toggle-content">
|
11 |
<?php
|
12 |
-
$this->images_url( array(
|
13 |
'id' => '_images_urls',
|
14 |
'name' => __('Images URLs', 'carousel-slider'),
|
15 |
'desc' => __('Enter external images URLs.', 'carousel-slider'),
|
9 |
<div class="shapla-toggle-inner">
|
10 |
<div class="shapla-toggle-content">
|
11 |
<?php
|
12 |
+
$this->form->images_url( array(
|
13 |
'id' => '_images_urls',
|
14 |
'name' => __('Images URLs', 'carousel-slider'),
|
15 |
'desc' => __('Enter external images URLs.', 'carousel-slider'),
|
templates/admin/images.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
<div class="shapla-toggle-inner">
|
6 |
<div class="shapla-toggle-content">
|
7 |
<?php
|
8 |
-
$this->images_gallery(array(
|
9 |
'id' => '_wpdh_image_ids',
|
10 |
'name' => __('Carousel Images', 'carousel-slider'),
|
11 |
'desc' => __('Choose carousel images from media library.', 'carousel-slider'),
|
5 |
<div class="shapla-toggle-inner">
|
6 |
<div class="shapla-toggle-content">
|
7 |
<?php
|
8 |
+
$this->form->images_gallery(array(
|
9 |
'id' => '_wpdh_image_ids',
|
10 |
'name' => __('Carousel Images', 'carousel-slider'),
|
11 |
'desc' => __('Choose carousel images from media library.', 'carousel-slider'),
|
templates/admin/navigation.php
CHANGED
@@ -5,26 +5,26 @@
|
|
5 |
<div class="shapla-toggle-inner">
|
6 |
<div class="shapla-toggle-content">
|
7 |
<?php
|
8 |
-
$this->checkbox(array(
|
9 |
'id' => '_nav_button',
|
10 |
'name' => __('Navigation', 'carousel-slider'),
|
11 |
'label' => __('Navigation', 'carousel-slider'),
|
12 |
'desc' => __('Check to show next/prev icons.', 'carousel-slider'),
|
13 |
));
|
14 |
-
$this->checkbox(array(
|
15 |
'id' => '_dot_nav',
|
16 |
'name' => __('Dots', 'carousel-slider'),
|
17 |
'label' => __('Dots', 'carousel-slider'),
|
18 |
'desc' => __('Check to show dots navigation.', 'carousel-slider'),
|
19 |
));
|
20 |
-
$this->color(array(
|
21 |
'id' => '_nav_color',
|
22 |
'type' => 'color',
|
23 |
'name' => __('Navigation & Dots Color ', 'carousel-slider'),
|
24 |
'desc' => __('Pick a color for navigation and dots.', 'carousel-slider'),
|
25 |
'std' => '#f1f1f1'
|
26 |
));
|
27 |
-
$this->color(array(
|
28 |
'id' => '_nav_active_color',
|
29 |
'name' => __('Navigation & Dots Color: Hover & Active', 'carousel-slider'),
|
30 |
'desc' => __('Pick a color for navigation and dots for active and hover effect.', 'carousel-slider'),
|
5 |
<div class="shapla-toggle-inner">
|
6 |
<div class="shapla-toggle-content">
|
7 |
<?php
|
8 |
+
$this->form->checkbox(array(
|
9 |
'id' => '_nav_button',
|
10 |
'name' => __('Navigation', 'carousel-slider'),
|
11 |
'label' => __('Navigation', 'carousel-slider'),
|
12 |
'desc' => __('Check to show next/prev icons.', 'carousel-slider'),
|
13 |
));
|
14 |
+
$this->form->checkbox(array(
|
15 |
'id' => '_dot_nav',
|
16 |
'name' => __('Dots', 'carousel-slider'),
|
17 |
'label' => __('Dots', 'carousel-slider'),
|
18 |
'desc' => __('Check to show dots navigation.', 'carousel-slider'),
|
19 |
));
|
20 |
+
$this->form->color(array(
|
21 |
'id' => '_nav_color',
|
22 |
'type' => 'color',
|
23 |
'name' => __('Navigation & Dots Color ', 'carousel-slider'),
|
24 |
'desc' => __('Pick a color for navigation and dots.', 'carousel-slider'),
|
25 |
'std' => '#f1f1f1'
|
26 |
));
|
27 |
+
$this->form->color(array(
|
28 |
'id' => '_nav_active_color',
|
29 |
'name' => __('Navigation & Dots Color: Hover & Active', 'carousel-slider'),
|
30 |
'desc' => __('Pick a color for navigation and dots for active and hover effect.', 'carousel-slider'),
|
templates/admin/post-carousel.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
<div class="shapla-toggle-inner">
|
6 |
<div class="shapla-toggle-content">
|
7 |
<?php
|
8 |
-
$this->select(array(
|
9 |
'id' => '_post_query_type',
|
10 |
'name' => __('Query Type', 'carousel-slider'),
|
11 |
'std' => 'latest_posts',
|
@@ -17,43 +17,43 @@
|
|
17 |
'specific_posts' => __('Specific posts', 'carousel-slider'),
|
18 |
),
|
19 |
));
|
20 |
-
$this->date(array(
|
21 |
'id' => '_post_date_after',
|
22 |
'name' => __('Date from', 'carousel-slider'),
|
23 |
'desc' => sprintf(__('Example: %s', 'carousel-slider'), date('F d, Y', strtotime('-3 months'))),
|
24 |
));
|
25 |
-
$this->date(array(
|
26 |
'id' => '_post_date_before',
|
27 |
'name' => __('Date to', 'carousel-slider'),
|
28 |
'desc' => sprintf(__('Example: %s', 'carousel-slider'), date('F d, Y', strtotime('-7 days'))),
|
29 |
));
|
30 |
-
$this->post_terms(array(
|
31 |
'id' => '_post_categories',
|
32 |
'taxonomy' => 'category',
|
33 |
'multiple' => true,
|
34 |
'name' => __('Post Categories', 'carousel-slider'),
|
35 |
'desc' => __('Show posts associated with selected categories.', 'carousel-slider'),
|
36 |
));
|
37 |
-
$this->post_terms(array(
|
38 |
'id' => '_post_tags',
|
39 |
'taxonomy' => 'post_tag',
|
40 |
'multiple' => true,
|
41 |
'name' => __('Post Tags', 'carousel-slider'),
|
42 |
'desc' => __('Show posts associated with selected tags.', 'carousel-slider'),
|
43 |
));
|
44 |
-
$this->posts_list(array(
|
45 |
'id' => '_post_in',
|
46 |
'multiple' => true,
|
47 |
'name' => __('Specific posts', 'carousel-slider'),
|
48 |
'desc' => __('Select posts that you want to show as slider. Select at least 5 posts', 'carousel-slider'),
|
49 |
));
|
50 |
-
$this->number(array(
|
51 |
'id' => '_posts_per_page',
|
52 |
'name' => __('Posts per page', 'carousel-slider'),
|
53 |
'std' => 12,
|
54 |
'desc' => __('How many post you want to show on carousel slide (Disabled for Specific posts)', 'carousel-slider'),
|
55 |
));
|
56 |
-
$this->select(array(
|
57 |
'id' => '_post_order',
|
58 |
'name' => __('Order', 'carousel-slider'),
|
59 |
'std' => 'DESC',
|
@@ -62,7 +62,7 @@
|
|
62 |
'DESC' => __('Descending Order', 'carousel-slider'),
|
63 |
),
|
64 |
));
|
65 |
-
$this->select(array(
|
66 |
'id' => '_post_orderby',
|
67 |
'name' => __('Order by', 'carousel-slider'),
|
68 |
'std' => 'ID',
|
@@ -76,7 +76,7 @@
|
|
76 |
'comment_count' => __('Number of comments', 'carousel-slider'),
|
77 |
),
|
78 |
));
|
79 |
-
$this->number(array(
|
80 |
'id' => '_post_height',
|
81 |
'name' => __('Colums Height', 'carousel-slider'),
|
82 |
'std' => 450,
|
5 |
<div class="shapla-toggle-inner">
|
6 |
<div class="shapla-toggle-content">
|
7 |
<?php
|
8 |
+
$this->form->select(array(
|
9 |
'id' => '_post_query_type',
|
10 |
'name' => __('Query Type', 'carousel-slider'),
|
11 |
'std' => 'latest_posts',
|
17 |
'specific_posts' => __('Specific posts', 'carousel-slider'),
|
18 |
),
|
19 |
));
|
20 |
+
$this->form->date(array(
|
21 |
'id' => '_post_date_after',
|
22 |
'name' => __('Date from', 'carousel-slider'),
|
23 |
'desc' => sprintf(__('Example: %s', 'carousel-slider'), date('F d, Y', strtotime('-3 months'))),
|
24 |
));
|
25 |
+
$this->form->date(array(
|
26 |
'id' => '_post_date_before',
|
27 |
'name' => __('Date to', 'carousel-slider'),
|
28 |
'desc' => sprintf(__('Example: %s', 'carousel-slider'), date('F d, Y', strtotime('-7 days'))),
|
29 |
));
|
30 |
+
$this->form->post_terms(array(
|
31 |
'id' => '_post_categories',
|
32 |
'taxonomy' => 'category',
|
33 |
'multiple' => true,
|
34 |
'name' => __('Post Categories', 'carousel-slider'),
|
35 |
'desc' => __('Show posts associated with selected categories.', 'carousel-slider'),
|
36 |
));
|
37 |
+
$this->form->post_terms(array(
|
38 |
'id' => '_post_tags',
|
39 |
'taxonomy' => 'post_tag',
|
40 |
'multiple' => true,
|
41 |
'name' => __('Post Tags', 'carousel-slider'),
|
42 |
'desc' => __('Show posts associated with selected tags.', 'carousel-slider'),
|
43 |
));
|
44 |
+
$this->form->posts_list(array(
|
45 |
'id' => '_post_in',
|
46 |
'multiple' => true,
|
47 |
'name' => __('Specific posts', 'carousel-slider'),
|
48 |
'desc' => __('Select posts that you want to show as slider. Select at least 5 posts', 'carousel-slider'),
|
49 |
));
|
50 |
+
$this->form->number(array(
|
51 |
'id' => '_posts_per_page',
|
52 |
'name' => __('Posts per page', 'carousel-slider'),
|
53 |
'std' => 12,
|
54 |
'desc' => __('How many post you want to show on carousel slide (Disabled for Specific posts)', 'carousel-slider'),
|
55 |
));
|
56 |
+
$this->form->select(array(
|
57 |
'id' => '_post_order',
|
58 |
'name' => __('Order', 'carousel-slider'),
|
59 |
'std' => 'DESC',
|
62 |
'DESC' => __('Descending Order', 'carousel-slider'),
|
63 |
),
|
64 |
));
|
65 |
+
$this->form->select(array(
|
66 |
'id' => '_post_orderby',
|
67 |
'name' => __('Order by', 'carousel-slider'),
|
68 |
'std' => 'ID',
|
76 |
'comment_count' => __('Number of comments', 'carousel-slider'),
|
77 |
),
|
78 |
));
|
79 |
+
$this->form->number(array(
|
80 |
'id' => '_post_height',
|
81 |
'name' => __('Colums Height', 'carousel-slider'),
|
82 |
'std' => 450,
|
templates/admin/responsive.php
CHANGED
@@ -5,40 +5,40 @@
|
|
5 |
<div class="shapla-toggle-inner">
|
6 |
<div class="shapla-toggle-content">
|
7 |
<?php
|
8 |
-
$this->number(array(
|
9 |
'id' => '_items',
|
10 |
'type' => 'number',
|
11 |
'name' => __('Colums', 'carousel-slider'),
|
12 |
'desc' => __('The number of items you want to see on the Extra Large Desktop Layout (Screens size greater than 1921 pixels DP)', 'carousel-slider'),
|
13 |
'std' => 4
|
14 |
));
|
15 |
-
$this->number(array(
|
16 |
'id' => '_items_desktop',
|
17 |
'type' => 'number',
|
18 |
'name' => __('Colums : Desktop', 'carousel-slider'),
|
19 |
'desc' => __('The number of items you want to see on the Desktop Layout (Screens size from 1200 pixels DP to 1920 pixels DP)', 'carousel-slider'),
|
20 |
'std' => 4
|
21 |
));
|
22 |
-
$this->number(array(
|
23 |
'id' => '_items_small_desktop',
|
24 |
'type' => 'number',
|
25 |
'name' => __('Colums : Small Desktop', 'carousel-slider'),
|
26 |
'desc' => __('The number of items you want to see on the Small Desktop Layout (Screens size from 993 pixels DP to 1199 pixels DP)', 'carousel-slider'),
|
27 |
'std' => 4
|
28 |
));
|
29 |
-
$this->number(array(
|
30 |
'id' => '_items_portrait_tablet',
|
31 |
'name' => __('Colums : Tablet', 'carousel-slider'),
|
32 |
'desc' => __('The number of items you want to see on the Tablet Layout (Screens size from 768 pixels DP to 992 pixels DP)', 'carousel-slider'),
|
33 |
'std' => 3
|
34 |
));
|
35 |
-
$this->number(array(
|
36 |
'id' => '_items_small_portrait_tablet',
|
37 |
'name' => __('Colums : Small Tablet', 'carousel-slider'),
|
38 |
'desc' => __('The number of items you want to see on the Small Tablet Layout(Screens size from 600 pixels DP to 767 pixels DP)', 'carousel-slider'),
|
39 |
'std' => 2
|
40 |
));
|
41 |
-
$this->number(array(
|
42 |
'id' => '_items_portrait_mobile',
|
43 |
'name' => __('Colums : Mobile', 'carousel-slider'),
|
44 |
'desc' => __('The number of items you want to see on the Mobile Layout (Screens size from 320 pixels DP to 599 pixels DP)', 'carousel-slider'),
|
5 |
<div class="shapla-toggle-inner">
|
6 |
<div class="shapla-toggle-content">
|
7 |
<?php
|
8 |
+
$this->form->number(array(
|
9 |
'id' => '_items',
|
10 |
'type' => 'number',
|
11 |
'name' => __('Colums', 'carousel-slider'),
|
12 |
'desc' => __('The number of items you want to see on the Extra Large Desktop Layout (Screens size greater than 1921 pixels DP)', 'carousel-slider'),
|
13 |
'std' => 4
|
14 |
));
|
15 |
+
$this->form->number(array(
|
16 |
'id' => '_items_desktop',
|
17 |
'type' => 'number',
|
18 |
'name' => __('Colums : Desktop', 'carousel-slider'),
|
19 |
'desc' => __('The number of items you want to see on the Desktop Layout (Screens size from 1200 pixels DP to 1920 pixels DP)', 'carousel-slider'),
|
20 |
'std' => 4
|
21 |
));
|
22 |
+
$this->form->number(array(
|
23 |
'id' => '_items_small_desktop',
|
24 |
'type' => 'number',
|
25 |
'name' => __('Colums : Small Desktop', 'carousel-slider'),
|
26 |
'desc' => __('The number of items you want to see on the Small Desktop Layout (Screens size from 993 pixels DP to 1199 pixels DP)', 'carousel-slider'),
|
27 |
'std' => 4
|
28 |
));
|
29 |
+
$this->form->number(array(
|
30 |
'id' => '_items_portrait_tablet',
|
31 |
'name' => __('Colums : Tablet', 'carousel-slider'),
|
32 |
'desc' => __('The number of items you want to see on the Tablet Layout (Screens size from 768 pixels DP to 992 pixels DP)', 'carousel-slider'),
|
33 |
'std' => 3
|
34 |
));
|
35 |
+
$this->form->number(array(
|
36 |
'id' => '_items_small_portrait_tablet',
|
37 |
'name' => __('Colums : Small Tablet', 'carousel-slider'),
|
38 |
'desc' => __('The number of items you want to see on the Small Tablet Layout(Screens size from 600 pixels DP to 767 pixels DP)', 'carousel-slider'),
|
39 |
'std' => 2
|
40 |
));
|
41 |
+
$this->form->number(array(
|
42 |
'id' => '_items_portrait_mobile',
|
43 |
'name' => __('Colums : Mobile', 'carousel-slider'),
|
44 |
'desc' => __('The number of items you want to see on the Mobile Layout (Screens size from 320 pixels DP to 599 pixels DP)', 'carousel-slider'),
|
templates/admin/video-carousel.php
CHANGED
@@ -5,18 +5,18 @@
|
|
5 |
<div class="shapla-toggle-inner">
|
6 |
<div class="shapla-toggle-content">
|
7 |
<?php
|
8 |
-
$this->textarea(array(
|
9 |
'id' => '_video_url',
|
10 |
'name' => __('Video URLs', 'carousel-slider'),
|
11 |
'desc' => sprintf('%s<br><br>Example: %s', __('Only support youtube and vimeo. Enter video URL from youtube or vimeo separating each by comma', 'carousel-slider'), __('https://www.youtube.com/watch?v=O4-EM32h7b4,https://www.youtube.com/watch?v=72IO4gzB8mU,https://vimeo.com/193773669,https://vimeo.com/193517656', 'carousel-slider')),
|
12 |
));
|
13 |
-
$this->number(array(
|
14 |
'id' => '_video_width',
|
15 |
'name' => __('Video Width', 'carousel-slider'),
|
16 |
'std' => 560,
|
17 |
'desc' => __('Enter video width in numbers.', 'carousel-slider'),
|
18 |
));
|
19 |
-
$this->number(array(
|
20 |
'id' => '_video_height',
|
21 |
'name' => __('Video Height', 'carousel-slider'),
|
22 |
'std' => 315,
|
5 |
<div class="shapla-toggle-inner">
|
6 |
<div class="shapla-toggle-content">
|
7 |
<?php
|
8 |
+
$this->form->textarea(array(
|
9 |
'id' => '_video_url',
|
10 |
'name' => __('Video URLs', 'carousel-slider'),
|
11 |
'desc' => sprintf('%s<br><br>Example: %s', __('Only support youtube and vimeo. Enter video URL from youtube or vimeo separating each by comma', 'carousel-slider'), __('https://www.youtube.com/watch?v=O4-EM32h7b4,https://www.youtube.com/watch?v=72IO4gzB8mU,https://vimeo.com/193773669,https://vimeo.com/193517656', 'carousel-slider')),
|
12 |
));
|
13 |
+
$this->form->number(array(
|
14 |
'id' => '_video_width',
|
15 |
'name' => __('Video Width', 'carousel-slider'),
|
16 |
'std' => 560,
|
17 |
'desc' => __('Enter video width in numbers.', 'carousel-slider'),
|
18 |
));
|
19 |
+
$this->form->number(array(
|
20 |
'id' => '_video_height',
|
21 |
'name' => __('Video Height', 'carousel-slider'),
|
22 |
'std' => 315,
|