Carousel Slider - Version 1.6.1

Version Description

Download this release

Release Info

Developer sayful
Plugin Icon Carousel Slider
Version 1.6.1
Comparing to
See all releases

Code changes from version 1.6.0 to 1.6.1

assets/css/style.css CHANGED
@@ -36,16 +36,13 @@
36
  .carousel-slider .owl-video-frame { position: relative; z-index: 1; height: 100%; width: 100%; }
37
 
38
  .carousel-slider { position: relative; }
39
- .carousel-slider .owl-nav [class*='owl-'] { background-image: url("../img/arrows.png"); background-color: #f1f1f1; display: inline-block; text-indent: -1e+7px; height: 25px; width: 25px; border-radius: 25px; position: absolute; top: 50%; transform: translateY(-50%); opacity: 0; margin: 0; padding: 0; transition: all .3s ease-in-out; }
40
- .carousel-slider .owl-nav [class*='owl-']:hover { background-color: #4caf50; }
41
- .carousel-slider .owl-nav [class*='owl-']:first-child { background-position: 0 45px; margin-right: 3px; left: -30px; }
42
- .carousel-slider .owl-nav [class*='owl-']:last-child { background-position: 2px 2px; margin-left: 3px; right: -30px; }
43
- .carousel-slider .owl-nav [class*='owl-']:first-child:hover { background-position: 0 24px; }
44
- .carousel-slider .owl-nav [class*='owl-']:last-child:hover { background-position: 2px -20px; }
45
  .carousel-slider .owl-nav .disabled { opacity: 0.5; cursor: default; }
46
  .carousel-slider .owl-dots { text-align: center; -webkit-tap-highlight-color: transparent; margin-top: 10px; }
47
  .carousel-slider .owl-dots .owl-dot { display: inline-block; zoom: 1; *display: inline; }
48
- .carousel-slider .owl-dots .owl-dot span { width: 10px; height: 10px; margin: 4px 8px; background-color: #f1f1f1; display: block; -webkit-backface-visibility: visible; transition: opacity 200ms ease; border-radius: 30px; }
49
  .carousel-slider .owl-dots .owl-dot.active span, .carousel-slider .owl-dots .owl-dot:hover span { background-color: #4caf50; }
50
  .carousel-slider .carousel-slider__item { position: relative; }
51
  .carousel-slider .carousel-slider__item img { display: block; margin-left: auto; margin-right: auto; max-width: 100%; height: auto; }
36
  .carousel-slider .owl-video-frame { position: relative; z-index: 1; height: 100%; width: 100%; }
37
 
38
  .carousel-slider { position: relative; }
39
+ .carousel-slider .owl-nav [class*='owl-'] { height: 48px; width: 20px; display: inline-block; position: absolute; top: 50%; transform: translateY(-50%); opacity: 0; margin: 0; padding: 0; transition: all .3s ease-in-out; }
40
+ .carousel-slider .owl-nav [class*='owl-']:first-child { left: -25px; }
41
+ .carousel-slider .owl-nav [class*='owl-']:last-child { right: -25px; }
 
 
 
42
  .carousel-slider .owl-nav .disabled { opacity: 0.5; cursor: default; }
43
  .carousel-slider .owl-dots { text-align: center; -webkit-tap-highlight-color: transparent; margin-top: 10px; }
44
  .carousel-slider .owl-dots .owl-dot { display: inline-block; zoom: 1; *display: inline; }
45
+ .carousel-slider .owl-dots .owl-dot span { width: 10px; height: 10px; margin: 4px 8px; background-color: #9e9e9e; display: block; -webkit-backface-visibility: visible; transition: opacity 200ms ease; }
46
  .carousel-slider .owl-dots .owl-dot.active span, .carousel-slider .owl-dots .owl-dot:hover span { background-color: #4caf50; }
47
  .carousel-slider .carousel-slider__item { position: relative; }
48
  .carousel-slider .carousel-slider__item img { display: block; margin-left: auto; margin-right: auto; max-width: 100%; height: auto; }
assets/img/icon-images.svg CHANGED
File without changes
assets/js/jquery.livequery.js CHANGED
File without changes
assets/js/select2.min.js CHANGED
File without changes
assets/sass/admin/_datepicker.scss CHANGED
File without changes
assets/sass/admin/_meta-box.scss CHANGED
File without changes
assets/sass/admin/_model.scss CHANGED
File without changes
assets/sass/admin/_select2.scss CHANGED
File without changes
assets/sass/admin/_toggle.scss CHANGED
File without changes
assets/sass/admin/_widget.scss CHANGED
File without changes
assets/sass/public/_post-carousel.scss CHANGED
File without changes
assets/sass/public/_theme.scss CHANGED
@@ -4,14 +4,9 @@
4
  // Styling Next and Prev buttons
5
  .owl-nav {
6
  [class*='owl-'] {
7
- background-image: url( $nav-arrows-url );
8
- background-color: $background-color;
9
- // background-color: #4dc7a0;
10
  display: inline-block;
11
- text-indent: -1e+7px;
12
- height: 25px;
13
- width: 25px;
14
- border-radius: 25px;
15
  position: absolute;
16
  top: 50%;
17
  transform: translateY(-50%);
@@ -20,24 +15,11 @@
20
  padding: 0;
21
  transition:all .3s ease-in-out;
22
 
23
- &:hover {
24
- background-color: $background-hover-color;
25
- }
26
  &:first-child {
27
- background-position: 0 45px;
28
- margin-right: 3px;
29
- left: -30px;
30
  }
31
  &:last-child {
32
- background-position: 2px 2px;
33
- margin-left: 3px;
34
- right: -30px;
35
- }
36
- &:first-child:hover {
37
- background-position: 0 24px;
38
- }
39
- &:last-child:hover {
40
- background-position: 2px -20px;
41
  }
42
  }
43
 
@@ -66,7 +48,6 @@
66
  display: block;
67
  -webkit-backface-visibility: visible;
68
  transition: opacity 200ms ease;
69
- border-radius: 30px;
70
  }
71
 
72
  &.active,
4
  // Styling Next and Prev buttons
5
  .owl-nav {
6
  [class*='owl-'] {
7
+ height: 48px;
8
+ width: 20px;
 
9
  display: inline-block;
 
 
 
 
10
  position: absolute;
11
  top: 50%;
12
  transform: translateY(-50%);
15
  padding: 0;
16
  transition:all .3s ease-in-out;
17
 
 
 
 
18
  &:first-child {
19
+ left: -25px;
 
 
20
  }
21
  &:last-child {
22
+ right: -25px;
 
 
 
 
 
 
 
 
23
  }
24
  }
25
 
48
  display: block;
49
  -webkit-backface-visibility: visible;
50
  transition: opacity 200ms ease;
 
51
  }
52
 
53
  &.active,
assets/sass/public/_variables.scss CHANGED
@@ -1,5 +1,5 @@
1
  // Variables
2
- $background-color : #f1f1f1;
3
  $background-hover-color : #4caf50;
4
  $nav-arrows-url : "../img/arrows.png";
5
  $owl-video-play-icon : "../img/play.svg";
1
  // Variables
2
+ $background-color : #9e9e9e;
3
  $background-hover-color : #4caf50;
4
  $nav-arrows-url : "../img/arrows.png";
5
  $owl-video-play-icon : "../img/play.svg";
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.0
7
  Author: Sayful Islam
8
  Author URI: http://sayfulit.com
9
  Text Domain: carousel-slider
@@ -48,7 +48,7 @@ class Carousel_Slider
48
  public function __construct()
49
  {
50
  $this->plugin_name = 'carousel-slider';
51
- $this->plugin_version = '1.6.0';
52
 
53
  add_action('wp_enqueue_scripts', array( $this, 'frontend_scripts' ), 15 );
54
  add_action('admin_enqueue_scripts', array( $this, 'admin_scripts' ), 10 );
@@ -218,6 +218,7 @@ class Carousel_Slider
218
  videoWidth: videoWidth,
219
  videoHeight: videoHeight,
220
  autoWidth: autoWidth,
 
221
  responsive: {
222
  320:{ items: _this.data('colums-mobile') },
223
  600:{ items: _this.data('colums-small-tablet') },
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.1
7
  Author: Sayful Islam
8
  Author URI: http://sayfulit.com
9
  Text Domain: carousel-slider
48
  public function __construct()
49
  {
50
  $this->plugin_name = 'carousel-slider';
51
+ $this->plugin_version = '1.6.1';
52
 
53
  add_action('wp_enqueue_scripts', array( $this, 'frontend_scripts' ), 15 );
54
  add_action('admin_enqueue_scripts', array( $this, 'admin_scripts' ), 10 );
218
  videoWidth: videoWidth,
219
  videoHeight: videoHeight,
220
  autoWidth: autoWidth,
221
+ navText: [ _this.data('nav-previous-icon'), _this.data('nav-next-icon') ],
222
  responsive: {
223
  320:{ items: _this.data('colums-mobile') },
224
  600:{ items: _this.data('colums-small-tablet') },
dummy-data/carousel-slider.xml ADDED
@@ -0,0 +1,739 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+
3
+ <rss version="2.0"
4
+ xmlns:excerpt="http://wordpress.org/export/1.2/excerpt/"
5
+ xmlns:content="http://purl.org/rss/1.0/modules/content/"
6
+ xmlns:wfw="http://wellformedweb.org/CommentAPI/"
7
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
8
+ xmlns:wp="http://wordpress.org/export/1.2/"
9
+ >
10
+
11
+ <channel>
12
+ <title>WordPress</title>
13
+ <link>http://wordpress.dev</link>
14
+ <description>Just another WordPress site</description>
15
+ <pubDate>Thu, 12 Jan 2017 15:03:49 +0000</pubDate>
16
+ <language>en-US</language>
17
+ <wp:wxr_version>1.2</wp:wxr_version>
18
+ <wp:base_site_url>http://wordpress.dev</wp:base_site_url>
19
+ <wp:base_blog_url>http://wordpress.dev</wp:base_blog_url>
20
+
21
+ <wp:author><wp:author_id>1</wp:author_id><wp:author_login><![CDATA[sayful]]></wp:author_login><wp:author_email><![CDATA[sayful@gmail.com]]></wp:author_email><wp:author_display_name><![CDATA[sayful]]></wp:author_display_name><wp:author_first_name><![CDATA[]]></wp:author_first_name><wp:author_last_name><![CDATA[]]></wp:author_last_name></wp:author>
22
+
23
+
24
+ <generator>https://wordpress.org/?v=4.7.2-alpha-39883</generator>
25
+
26
+ <item>
27
+ <title>Image carousel example from URL</title>
28
+ <link>http://wordpress.dev/?carousels=image-carousel-from-url-example</link>
29
+ <pubDate>Thu, 12 Jan 2017 14:51:13 +0000</pubDate>
30
+ <dc:creator><![CDATA[sayful]]></dc:creator>
31
+ <guid isPermaLink="false">http://wordpress.dev/?post_type=carousels&#038;p=1717</guid>
32
+ <description></description>
33
+ <content:encoded><![CDATA[]]></content:encoded>
34
+ <excerpt:encoded><![CDATA[]]></excerpt:encoded>
35
+ <wp:post_id>1717</wp:post_id>
36
+ <wp:post_date><![CDATA[2017-01-12 14:51:13]]></wp:post_date>
37
+ <wp:post_date_gmt><![CDATA[2017-01-12 14:51:13]]></wp:post_date_gmt>
38
+ <wp:comment_status><![CDATA[closed]]></wp:comment_status>
39
+ <wp:ping_status><![CDATA[closed]]></wp:ping_status>
40
+ <wp:post_name><![CDATA[image-carousel-from-url-example]]></wp:post_name>
41
+ <wp:status><![CDATA[publish]]></wp:status>
42
+ <wp:post_parent>0</wp:post_parent>
43
+ <wp:menu_order>0</wp:menu_order>
44
+ <wp:post_type><![CDATA[carousels]]></wp:post_type>
45
+ <wp:post_password><![CDATA[]]></wp:post_password>
46
+ <wp:is_sticky>0</wp:is_sticky>
47
+ <wp:postmeta>
48
+ <wp:meta_key><![CDATA[_edit_last]]></wp:meta_key>
49
+ <wp:meta_value><![CDATA[1]]></wp:meta_value>
50
+ </wp:postmeta>
51
+ <wp:postmeta>
52
+ <wp:meta_key><![CDATA[_slide_type]]></wp:meta_key>
53
+ <wp:meta_value><![CDATA[image-carousel-url]]></wp:meta_value>
54
+ </wp:postmeta>
55
+ <wp:postmeta>
56
+ <wp:meta_key><![CDATA[_wpdh_image_ids]]></wp:meta_key>
57
+ <wp:meta_value><![CDATA[]]></wp:meta_value>
58
+ </wp:postmeta>
59
+ <wp:postmeta>
60
+ <wp:meta_key><![CDATA[_post_query_type]]></wp:meta_key>
61
+ <wp:meta_value><![CDATA[latest_posts]]></wp:meta_value>
62
+ </wp:postmeta>
63
+ <wp:postmeta>
64
+ <wp:meta_key><![CDATA[_post_date_after]]></wp:meta_key>
65
+ <wp:meta_value><![CDATA[]]></wp:meta_value>
66
+ </wp:postmeta>
67
+ <wp:postmeta>
68
+ <wp:meta_key><![CDATA[_post_date_before]]></wp:meta_key>
69
+ <wp:meta_value><![CDATA[]]></wp:meta_value>
70
+ </wp:postmeta>
71
+ <wp:postmeta>
72
+ <wp:meta_key><![CDATA[_posts_per_page]]></wp:meta_key>
73
+ <wp:meta_value><![CDATA[12]]></wp:meta_value>
74
+ </wp:postmeta>
75
+ <wp:postmeta>
76
+ <wp:meta_key><![CDATA[_post_order]]></wp:meta_key>
77
+ <wp:meta_value><![CDATA[DESC]]></wp:meta_value>
78
+ </wp:postmeta>
79
+ <wp:postmeta>
80
+ <wp:meta_key><![CDATA[_post_orderby]]></wp:meta_key>
81
+ <wp:meta_value><![CDATA[ID]]></wp:meta_value>
82
+ </wp:postmeta>
83
+ <wp:postmeta>
84
+ <wp:meta_key><![CDATA[_post_height]]></wp:meta_key>
85
+ <wp:meta_value><![CDATA[450]]></wp:meta_value>
86
+ </wp:postmeta>
87
+ <wp:postmeta>
88
+ <wp:meta_key><![CDATA[_video_url]]></wp:meta_key>
89
+ <wp:meta_value><![CDATA[]]></wp:meta_value>
90
+ </wp:postmeta>
91
+ <wp:postmeta>
92
+ <wp:meta_key><![CDATA[_video_width]]></wp:meta_key>
93
+ <wp:meta_value><![CDATA[560]]></wp:meta_value>
94
+ </wp:postmeta>
95
+ <wp:postmeta>
96
+ <wp:meta_key><![CDATA[_video_height]]></wp:meta_key>
97
+ <wp:meta_value><![CDATA[315]]></wp:meta_value>
98
+ </wp:postmeta>
99
+ <wp:postmeta>
100
+ <wp:meta_key><![CDATA[_slide_by]]></wp:meta_key>
101
+ <wp:meta_value><![CDATA[1]]></wp:meta_value>
102
+ </wp:postmeta>
103
+ <wp:postmeta>
104
+ <wp:meta_key><![CDATA[_margin_right]]></wp:meta_key>
105
+ <wp:meta_value><![CDATA[10]]></wp:meta_value>
106
+ </wp:postmeta>
107
+ <wp:postmeta>
108
+ <wp:meta_key><![CDATA[_inifnity_loop]]></wp:meta_key>
109
+ <wp:meta_value><![CDATA[on]]></wp:meta_value>
110
+ </wp:postmeta>
111
+ <wp:postmeta>
112
+ <wp:meta_key><![CDATA[_lazy_load_image]]></wp:meta_key>
113
+ <wp:meta_value><![CDATA[on]]></wp:meta_value>
114
+ </wp:postmeta>
115
+ <wp:postmeta>
116
+ <wp:meta_key><![CDATA[_show_attachment_title]]></wp:meta_key>
117
+ <wp:meta_value><![CDATA[off]]></wp:meta_value>
118
+ </wp:postmeta>
119
+ <wp:postmeta>
120
+ <wp:meta_key><![CDATA[_show_attachment_caption]]></wp:meta_key>
121
+ <wp:meta_value><![CDATA[off]]></wp:meta_value>
122
+ </wp:postmeta>
123
+ <wp:postmeta>
124
+ <wp:meta_key><![CDATA[_image_size]]></wp:meta_key>
125
+ <wp:meta_value><![CDATA[thumbnail]]></wp:meta_value>
126
+ </wp:postmeta>
127
+ <wp:postmeta>
128
+ <wp:meta_key><![CDATA[_image_target]]></wp:meta_key>
129
+ <wp:meta_value><![CDATA[_blank]]></wp:meta_value>
130
+ </wp:postmeta>
131
+ <wp:postmeta>
132
+ <wp:meta_key><![CDATA[_nav_button]]></wp:meta_key>
133
+ <wp:meta_value><![CDATA[on]]></wp:meta_value>
134
+ </wp:postmeta>
135
+ <wp:postmeta>
136
+ <wp:meta_key><![CDATA[_dot_nav]]></wp:meta_key>
137
+ <wp:meta_value><![CDATA[on]]></wp:meta_value>
138
+ </wp:postmeta>
139
+ <wp:postmeta>
140
+ <wp:meta_key><![CDATA[_nav_color]]></wp:meta_key>
141
+ <wp:meta_value><![CDATA[#9e9e9e]]></wp:meta_value>
142
+ </wp:postmeta>
143
+ <wp:postmeta>
144
+ <wp:meta_key><![CDATA[_nav_active_color]]></wp:meta_key>
145
+ <wp:meta_value><![CDATA[#4caf50]]></wp:meta_value>
146
+ </wp:postmeta>
147
+ <wp:postmeta>
148
+ <wp:meta_key><![CDATA[_autoplay]]></wp:meta_key>
149
+ <wp:meta_value><![CDATA[on]]></wp:meta_value>
150
+ </wp:postmeta>
151
+ <wp:postmeta>
152
+ <wp:meta_key><![CDATA[_autoplay_timeout]]></wp:meta_key>
153
+ <wp:meta_value><![CDATA[5000]]></wp:meta_value>
154
+ </wp:postmeta>
155
+ <wp:postmeta>
156
+ <wp:meta_key><![CDATA[_autoplay_speed]]></wp:meta_key>
157
+ <wp:meta_value><![CDATA[500]]></wp:meta_value>
158
+ </wp:postmeta>
159
+ <wp:postmeta>
160
+ <wp:meta_key><![CDATA[_autoplay_pause]]></wp:meta_key>
161
+ <wp:meta_value><![CDATA[on]]></wp:meta_value>
162
+ </wp:postmeta>
163
+ <wp:postmeta>
164
+ <wp:meta_key><![CDATA[_items]]></wp:meta_key>
165
+ <wp:meta_value><![CDATA[4]]></wp:meta_value>
166
+ </wp:postmeta>
167
+ <wp:postmeta>
168
+ <wp:meta_key><![CDATA[_items_desktop]]></wp:meta_key>
169
+ <wp:meta_value><![CDATA[4]]></wp:meta_value>
170
+ </wp:postmeta>
171
+ <wp:postmeta>
172
+ <wp:meta_key><![CDATA[_items_small_desktop]]></wp:meta_key>
173
+ <wp:meta_value><![CDATA[4]]></wp:meta_value>
174
+ </wp:postmeta>
175
+ <wp:postmeta>
176
+ <wp:meta_key><![CDATA[_items_portrait_tablet]]></wp:meta_key>
177
+ <wp:meta_value><![CDATA[3]]></wp:meta_value>
178
+ </wp:postmeta>
179
+ <wp:postmeta>
180
+ <wp:meta_key><![CDATA[_items_small_portrait_tablet]]></wp:meta_key>
181
+ <wp:meta_value><![CDATA[2]]></wp:meta_value>
182
+ </wp:postmeta>
183
+ <wp:postmeta>
184
+ <wp:meta_key><![CDATA[_items_portrait_mobile]]></wp:meta_key>
185
+ <wp:meta_value><![CDATA[1]]></wp:meta_value>
186
+ </wp:postmeta>
187
+ <wp:postmeta>
188
+ <wp:meta_key><![CDATA[_post_categories]]></wp:meta_key>
189
+ <wp:meta_value><![CDATA[]]></wp:meta_value>
190
+ </wp:postmeta>
191
+ <wp:postmeta>
192
+ <wp:meta_key><![CDATA[_post_tags]]></wp:meta_key>
193
+ <wp:meta_value><![CDATA[]]></wp:meta_value>
194
+ </wp:postmeta>
195
+ <wp:postmeta>
196
+ <wp:meta_key><![CDATA[_post_in]]></wp:meta_key>
197
+ <wp:meta_value><![CDATA[]]></wp:meta_value>
198
+ </wp:postmeta>
199
+ <wp:postmeta>
200
+ <wp:meta_key><![CDATA[_images_urls]]></wp:meta_key>
201
+ <wp:meta_value><![CDATA[a:9:{i:0;a:5:{s:3:"url";s:39:"http://lorempixel.com/400/400/sports/1/";s:5:"title";s:27:"Lorempixel Sports Image one";s:7:"caption";s:27:"Lorempixel Sports Image one";s:3:"alt";s:27:"Lorempixel Sports Image one";s:8:"link_url";s:39:"http://lorempixel.com/400/400/sports/1/";}i:1;a:5:{s:3:"url";s:36:"http://lorempixel.com/400/400/city/2";s:5:"title";s:27:"Lorempixel Sports Image two";s:7:"caption";s:0:"";s:3:"alt";s:0:"";s:8:"link_url";s:37:"http://lorempixel.com/400/400/city/1/";}i:2;a:5:{s:3:"url";s:38:"http://lorempixel.com/400/400/sports/3";s:5:"title";s:29:"Lorempixel Sports Image three";s:7:"caption";s:29:"Lorempixel Sports Image three";s:3:"alt";s:29:"Lorempixel Sports Image three";s:8:"link_url";s:0:"";}i:3;a:5:{s:3:"url";s:39:"http://lorempixel.com/400/400/sports/1/";s:5:"title";s:0:"";s:7:"caption";s:0:"";s:3:"alt";s:0:"";s:8:"link_url";s:0:"";}i:4;a:5:{s:3:"url";s:38:"http://lorempixel.com/400/400/sports/2";s:5:"title";s:0:"";s:7:"caption";s:0:"";s:3:"alt";s:0:"";s:8:"link_url";s:0:"";}i:5;a:5:{s:3:"url";s:38:"http://lorempixel.com/400/400/sports/3";s:5:"title";s:0:"";s:7:"caption";s:0:"";s:3:"alt";s:0:"";s:8:"link_url";s:0:"";}i:6;a:5:{s:3:"url";s:39:"http://lorempixel.com/400/400/sports/1/";s:5:"title";s:0:"";s:7:"caption";s:0:"";s:3:"alt";s:0:"";s:8:"link_url";s:0:"";}i:7;a:5:{s:3:"url";s:38:"http://lorempixel.com/400/400/sports/2";s:5:"title";s:0:"";s:7:"caption";s:0:"";s:3:"alt";s:0:"";s:8:"link_url";s:0:"";}i:8;a:5:{s:3:"url";s:38:"http://lorempixel.com/400/400/sports/3";s:5:"title";s:0:"";s:7:"caption";s:0:"";s:3:"alt";s:0:"";s:8:"link_url";s:0:"";}}]]></wp:meta_value>
202
+ </wp:postmeta>
203
+ </item>
204
+ <item>
205
+ <title>Post Carousel Example</title>
206
+ <link>http://wordpress.dev/?carousels=post-carousel-example</link>
207
+ <pubDate>Thu, 12 Jan 2017 15:00:08 +0000</pubDate>
208
+ <dc:creator><![CDATA[sayful]]></dc:creator>
209
+ <guid isPermaLink="false">http://wordpress.dev/?post_type=carousels&#038;p=1720</guid>
210
+ <description></description>
211
+ <content:encoded><![CDATA[]]></content:encoded>
212
+ <excerpt:encoded><![CDATA[]]></excerpt:encoded>
213
+ <wp:post_id>1720</wp:post_id>
214
+ <wp:post_date><![CDATA[2017-01-12 15:00:08]]></wp:post_date>
215
+ <wp:post_date_gmt><![CDATA[2017-01-12 15:00:08]]></wp:post_date_gmt>
216
+ <wp:comment_status><![CDATA[closed]]></wp:comment_status>
217
+ <wp:ping_status><![CDATA[closed]]></wp:ping_status>
218
+ <wp:post_name><![CDATA[post-carousel-example]]></wp:post_name>
219
+ <wp:status><![CDATA[publish]]></wp:status>
220
+ <wp:post_parent>0</wp:post_parent>
221
+ <wp:menu_order>0</wp:menu_order>
222
+ <wp:post_type><![CDATA[carousels]]></wp:post_type>
223
+ <wp:post_password><![CDATA[]]></wp:post_password>
224
+ <wp:is_sticky>0</wp:is_sticky>
225
+ <wp:postmeta>
226
+ <wp:meta_key><![CDATA[_edit_last]]></wp:meta_key>
227
+ <wp:meta_value><![CDATA[1]]></wp:meta_value>
228
+ </wp:postmeta>
229
+ <wp:postmeta>
230
+ <wp:meta_key><![CDATA[_slide_type]]></wp:meta_key>
231
+ <wp:meta_value><![CDATA[post-carousel]]></wp:meta_value>
232
+ </wp:postmeta>
233
+ <wp:postmeta>
234
+ <wp:meta_key><![CDATA[_wpdh_image_ids]]></wp:meta_key>
235
+ <wp:meta_value><![CDATA[]]></wp:meta_value>
236
+ </wp:postmeta>
237
+ <wp:postmeta>
238
+ <wp:meta_key><![CDATA[_post_query_type]]></wp:meta_key>
239
+ <wp:meta_value><![CDATA[latest_posts]]></wp:meta_value>
240
+ </wp:postmeta>
241
+ <wp:postmeta>
242
+ <wp:meta_key><![CDATA[_post_date_after]]></wp:meta_key>
243
+ <wp:meta_value><![CDATA[]]></wp:meta_value>
244
+ </wp:postmeta>
245
+ <wp:postmeta>
246
+ <wp:meta_key><![CDATA[_post_date_before]]></wp:meta_key>
247
+ <wp:meta_value><![CDATA[]]></wp:meta_value>
248
+ </wp:postmeta>
249
+ <wp:postmeta>
250
+ <wp:meta_key><![CDATA[_posts_per_page]]></wp:meta_key>
251
+ <wp:meta_value><![CDATA[20]]></wp:meta_value>
252
+ </wp:postmeta>
253
+ <wp:postmeta>
254
+ <wp:meta_key><![CDATA[_post_order]]></wp:meta_key>
255
+ <wp:meta_value><![CDATA[DESC]]></wp:meta_value>
256
+ </wp:postmeta>
257
+ <wp:postmeta>
258
+ <wp:meta_key><![CDATA[_post_orderby]]></wp:meta_key>
259
+ <wp:meta_value><![CDATA[ID]]></wp:meta_value>
260
+ </wp:postmeta>
261
+ <wp:postmeta>
262
+ <wp:meta_key><![CDATA[_post_height]]></wp:meta_key>
263
+ <wp:meta_value><![CDATA[500]]></wp:meta_value>
264
+ </wp:postmeta>
265
+ <wp:postmeta>
266
+ <wp:meta_key><![CDATA[_video_url]]></wp:meta_key>
267
+ <wp:meta_value><![CDATA[]]></wp:meta_value>
268
+ </wp:postmeta>
269
+ <wp:postmeta>
270
+ <wp:meta_key><![CDATA[_video_width]]></wp:meta_key>
271
+ <wp:meta_value><![CDATA[560]]></wp:meta_value>
272
+ </wp:postmeta>
273
+ <wp:postmeta>
274
+ <wp:meta_key><![CDATA[_video_height]]></wp:meta_key>
275
+ <wp:meta_value><![CDATA[315]]></wp:meta_value>
276
+ </wp:postmeta>
277
+ <wp:postmeta>
278
+ <wp:meta_key><![CDATA[_slide_by]]></wp:meta_key>
279
+ <wp:meta_value><![CDATA[1]]></wp:meta_value>
280
+ </wp:postmeta>
281
+ <wp:postmeta>
282
+ <wp:meta_key><![CDATA[_margin_right]]></wp:meta_key>
283
+ <wp:meta_value><![CDATA[10]]></wp:meta_value>
284
+ </wp:postmeta>
285
+ <wp:postmeta>
286
+ <wp:meta_key><![CDATA[_inifnity_loop]]></wp:meta_key>
287
+ <wp:meta_value><![CDATA[on]]></wp:meta_value>
288
+ </wp:postmeta>
289
+ <wp:postmeta>
290
+ <wp:meta_key><![CDATA[_lazy_load_image]]></wp:meta_key>
291
+ <wp:meta_value><![CDATA[on]]></wp:meta_value>
292
+ </wp:postmeta>
293
+ <wp:postmeta>
294
+ <wp:meta_key><![CDATA[_show_attachment_title]]></wp:meta_key>
295
+ <wp:meta_value><![CDATA[off]]></wp:meta_value>
296
+ </wp:postmeta>
297
+ <wp:postmeta>
298
+ <wp:meta_key><![CDATA[_show_attachment_caption]]></wp:meta_key>
299
+ <wp:meta_value><![CDATA[off]]></wp:meta_value>
300
+ </wp:postmeta>
301
+ <wp:postmeta>
302
+ <wp:meta_key><![CDATA[_image_size]]></wp:meta_key>
303
+ <wp:meta_value><![CDATA[medium]]></wp:meta_value>
304
+ </wp:postmeta>
305
+ <wp:postmeta>
306
+ <wp:meta_key><![CDATA[_image_target]]></wp:meta_key>
307
+ <wp:meta_value><![CDATA[_self]]></wp:meta_value>
308
+ </wp:postmeta>
309
+ <wp:postmeta>
310
+ <wp:meta_key><![CDATA[_nav_button]]></wp:meta_key>
311
+ <wp:meta_value><![CDATA[on]]></wp:meta_value>
312
+ </wp:postmeta>
313
+ <wp:postmeta>
314
+ <wp:meta_key><![CDATA[_dot_nav]]></wp:meta_key>
315
+ <wp:meta_value><![CDATA[on]]></wp:meta_value>
316
+ </wp:postmeta>
317
+ <wp:postmeta>
318
+ <wp:meta_key><![CDATA[_nav_color]]></wp:meta_key>
319
+ <wp:meta_value><![CDATA[#b7b7b7]]></wp:meta_value>
320
+ </wp:postmeta>
321
+ <wp:postmeta>
322
+ <wp:meta_key><![CDATA[_nav_active_color]]></wp:meta_key>
323
+ <wp:meta_value><![CDATA[#4caf50]]></wp:meta_value>
324
+ </wp:postmeta>
325
+ <wp:postmeta>
326
+ <wp:meta_key><![CDATA[_autoplay]]></wp:meta_key>
327
+ <wp:meta_value><![CDATA[on]]></wp:meta_value>
328
+ </wp:postmeta>
329
+ <wp:postmeta>
330
+ <wp:meta_key><![CDATA[_autoplay_timeout]]></wp:meta_key>
331
+ <wp:meta_value><![CDATA[5000]]></wp:meta_value>
332
+ </wp:postmeta>
333
+ <wp:postmeta>
334
+ <wp:meta_key><![CDATA[_autoplay_speed]]></wp:meta_key>
335
+ <wp:meta_value><![CDATA[500]]></wp:meta_value>
336
+ </wp:postmeta>
337
+ <wp:postmeta>
338
+ <wp:meta_key><![CDATA[_autoplay_pause]]></wp:meta_key>
339
+ <wp:meta_value><![CDATA[on]]></wp:meta_value>
340
+ </wp:postmeta>
341
+ <wp:postmeta>
342
+ <wp:meta_key><![CDATA[_items]]></wp:meta_key>
343
+ <wp:meta_value><![CDATA[4]]></wp:meta_value>
344
+ </wp:postmeta>
345
+ <wp:postmeta>
346
+ <wp:meta_key><![CDATA[_items_desktop]]></wp:meta_key>
347
+ <wp:meta_value><![CDATA[4]]></wp:meta_value>
348
+ </wp:postmeta>
349
+ <wp:postmeta>
350
+ <wp:meta_key><![CDATA[_items_small_desktop]]></wp:meta_key>
351
+ <wp:meta_value><![CDATA[4]]></wp:meta_value>
352
+ </wp:postmeta>
353
+ <wp:postmeta>
354
+ <wp:meta_key><![CDATA[_items_portrait_tablet]]></wp:meta_key>
355
+ <wp:meta_value><![CDATA[3]]></wp:meta_value>
356
+ </wp:postmeta>
357
+ <wp:postmeta>
358
+ <wp:meta_key><![CDATA[_items_small_portrait_tablet]]></wp:meta_key>
359
+ <wp:meta_value><![CDATA[2]]></wp:meta_value>
360
+ </wp:postmeta>
361
+ <wp:postmeta>
362
+ <wp:meta_key><![CDATA[_items_portrait_mobile]]></wp:meta_key>
363
+ <wp:meta_value><![CDATA[1]]></wp:meta_value>
364
+ </wp:postmeta>
365
+ <wp:postmeta>
366
+ <wp:meta_key><![CDATA[_post_categories]]></wp:meta_key>
367
+ <wp:meta_value><![CDATA[]]></wp:meta_value>
368
+ </wp:postmeta>
369
+ <wp:postmeta>
370
+ <wp:meta_key><![CDATA[_post_tags]]></wp:meta_key>
371
+ <wp:meta_value><![CDATA[]]></wp:meta_value>
372
+ </wp:postmeta>
373
+ <wp:postmeta>
374
+ <wp:meta_key><![CDATA[_post_in]]></wp:meta_key>
375
+ <wp:meta_value><![CDATA[]]></wp:meta_value>
376
+ </wp:postmeta>
377
+ <wp:postmeta>
378
+ <wp:meta_key><![CDATA[_images_urls]]></wp:meta_key>
379
+ <wp:meta_value><![CDATA[a:1:{i:0;a:5:{s:3:"url";s:0:"";s:5:"title";s:0:"";s:7:"caption";s:0:"";s:3:"alt";s:0:"";s:8:"link_url";s:0:"";}}]]></wp:meta_value>
380
+ </wp:postmeta>
381
+ </item>
382
+ <item>
383
+ <title>Video Carousel Example</title>
384
+ <link>http://wordpress.dev/?carousels=video-carousel-example</link>
385
+ <pubDate>Thu, 12 Jan 2017 15:01:44 +0000</pubDate>
386
+ <dc:creator><![CDATA[sayful]]></dc:creator>
387
+ <guid isPermaLink="false">http://wordpress.dev/?post_type=carousels&#038;p=1721</guid>
388
+ <description></description>
389
+ <content:encoded><![CDATA[]]></content:encoded>
390
+ <excerpt:encoded><![CDATA[]]></excerpt:encoded>
391
+ <wp:post_id>1721</wp:post_id>
392
+ <wp:post_date><![CDATA[2017-01-12 15:01:44]]></wp:post_date>
393
+ <wp:post_date_gmt><![CDATA[2017-01-12 15:01:44]]></wp:post_date_gmt>
394
+ <wp:comment_status><![CDATA[closed]]></wp:comment_status>
395
+ <wp:ping_status><![CDATA[closed]]></wp:ping_status>
396
+ <wp:post_name><![CDATA[video-carousel-example]]></wp:post_name>
397
+ <wp:status><![CDATA[publish]]></wp:status>
398
+ <wp:post_parent>0</wp:post_parent>
399
+ <wp:menu_order>0</wp:menu_order>
400
+ <wp:post_type><![CDATA[carousels]]></wp:post_type>
401
+ <wp:post_password><![CDATA[]]></wp:post_password>
402
+ <wp:is_sticky>0</wp:is_sticky>
403
+ <wp:postmeta>
404
+ <wp:meta_key><![CDATA[_edit_last]]></wp:meta_key>
405
+ <wp:meta_value><![CDATA[1]]></wp:meta_value>
406
+ </wp:postmeta>
407
+ <wp:postmeta>
408
+ <wp:meta_key><![CDATA[_slide_type]]></wp:meta_key>
409
+ <wp:meta_value><![CDATA[video-carousel]]></wp:meta_value>
410
+ </wp:postmeta>
411
+ <wp:postmeta>
412
+ <wp:meta_key><![CDATA[_wpdh_image_ids]]></wp:meta_key>
413
+ <wp:meta_value><![CDATA[]]></wp:meta_value>
414
+ </wp:postmeta>
415
+ <wp:postmeta>
416
+ <wp:meta_key><![CDATA[_post_query_type]]></wp:meta_key>
417
+ <wp:meta_value><![CDATA[latest_posts]]></wp:meta_value>
418
+ </wp:postmeta>
419
+ <wp:postmeta>
420
+ <wp:meta_key><![CDATA[_post_date_after]]></wp:meta_key>
421
+ <wp:meta_value><![CDATA[]]></wp:meta_value>
422
+ </wp:postmeta>
423
+ <wp:postmeta>
424
+ <wp:meta_key><![CDATA[_post_date_before]]></wp:meta_key>
425
+ <wp:meta_value><![CDATA[]]></wp:meta_value>
426
+ </wp:postmeta>
427
+ <wp:postmeta>
428
+ <wp:meta_key><![CDATA[_posts_per_page]]></wp:meta_key>
429
+ <wp:meta_value><![CDATA[12]]></wp:meta_value>
430
+ </wp:postmeta>
431
+ <wp:postmeta>
432
+ <wp:meta_key><![CDATA[_post_order]]></wp:meta_key>
433
+ <wp:meta_value><![CDATA[DESC]]></wp:meta_value>
434
+ </wp:postmeta>
435
+ <wp:postmeta>
436
+ <wp:meta_key><![CDATA[_post_orderby]]></wp:meta_key>
437
+ <wp:meta_value><![CDATA[ID]]></wp:meta_value>
438
+ </wp:postmeta>
439
+ <wp:postmeta>
440
+ <wp:meta_key><![CDATA[_post_height]]></wp:meta_key>
441
+ <wp:meta_value><![CDATA[450]]></wp:meta_value>
442
+ </wp:postmeta>
443
+ <wp:postmeta>
444
+ <wp:meta_key><![CDATA[_video_url]]></wp:meta_key>
445
+ <wp:meta_value><![CDATA[https://www.youtube.com/watch?v=O4-EM32h7b4,https://www.youtube.com/watch?v=72IO4gzB8mU,https://vimeo.com/193773669,https://vimeo.com/193517656,https://www.youtube.com/watch?v=O4-EM32h7b4,https://www.youtube.com/watch?v=72IO4gzB8mU,https://vimeo.com/193773669,https://vimeo.com/193517656]]></wp:meta_value>
446
+ </wp:postmeta>
447
+ <wp:postmeta>
448
+ <wp:meta_key><![CDATA[_video_width]]></wp:meta_key>
449
+ <wp:meta_value><![CDATA[560]]></wp:meta_value>
450
+ </wp:postmeta>
451
+ <wp:postmeta>
452
+ <wp:meta_key><![CDATA[_video_height]]></wp:meta_key>
453
+ <wp:meta_value><![CDATA[315]]></wp:meta_value>
454
+ </wp:postmeta>
455
+ <wp:postmeta>
456
+ <wp:meta_key><![CDATA[_slide_by]]></wp:meta_key>
457
+ <wp:meta_value><![CDATA[1]]></wp:meta_value>
458
+ </wp:postmeta>
459
+ <wp:postmeta>
460
+ <wp:meta_key><![CDATA[_margin_right]]></wp:meta_key>
461
+ <wp:meta_value><![CDATA[10]]></wp:meta_value>
462
+ </wp:postmeta>
463
+ <wp:postmeta>
464
+ <wp:meta_key><![CDATA[_inifnity_loop]]></wp:meta_key>
465
+ <wp:meta_value><![CDATA[on]]></wp:meta_value>
466
+ </wp:postmeta>
467
+ <wp:postmeta>
468
+ <wp:meta_key><![CDATA[_lazy_load_image]]></wp:meta_key>
469
+ <wp:meta_value><![CDATA[off]]></wp:meta_value>
470
+ </wp:postmeta>
471
+ <wp:postmeta>
472
+ <wp:meta_key><![CDATA[_show_attachment_title]]></wp:meta_key>
473
+ <wp:meta_value><![CDATA[off]]></wp:meta_value>
474
+ </wp:postmeta>
475
+ <wp:postmeta>
476
+ <wp:meta_key><![CDATA[_show_attachment_caption]]></wp:meta_key>
477
+ <wp:meta_value><![CDATA[off]]></wp:meta_value>
478
+ </wp:postmeta>
479
+ <wp:postmeta>
480
+ <wp:meta_key><![CDATA[_image_size]]></wp:meta_key>
481
+ <wp:meta_value><![CDATA[thumbnail]]></wp:meta_value>
482
+ </wp:postmeta>
483
+ <wp:postmeta>
484
+ <wp:meta_key><![CDATA[_image_target]]></wp:meta_key>
485
+ <wp:meta_value><![CDATA[_self]]></wp:meta_value>
486
+ </wp:postmeta>
487
+ <wp:postmeta>
488
+ <wp:meta_key><![CDATA[_nav_button]]></wp:meta_key>
489
+ <wp:meta_value><![CDATA[on]]></wp:meta_value>
490
+ </wp:postmeta>
491
+ <wp:postmeta>
492
+ <wp:meta_key><![CDATA[_dot_nav]]></wp:meta_key>
493
+ <wp:meta_value><![CDATA[on]]></wp:meta_value>
494
+ </wp:postmeta>
495
+ <wp:postmeta>
496
+ <wp:meta_key><![CDATA[_nav_color]]></wp:meta_key>
497
+ <wp:meta_value><![CDATA[#f1f1f1]]></wp:meta_value>
498
+ </wp:postmeta>
499
+ <wp:postmeta>
500
+ <wp:meta_key><![CDATA[_nav_active_color]]></wp:meta_key>
501
+ <wp:meta_value><![CDATA[#4caf50]]></wp:meta_value>
502
+ </wp:postmeta>
503
+ <wp:postmeta>
504
+ <wp:meta_key><![CDATA[_autoplay]]></wp:meta_key>
505
+ <wp:meta_value><![CDATA[on]]></wp:meta_value>
506
+ </wp:postmeta>
507
+ <wp:postmeta>
508
+ <wp:meta_key><![CDATA[_autoplay_timeout]]></wp:meta_key>
509
+ <wp:meta_value><![CDATA[5000]]></wp:meta_value>
510
+ </wp:postmeta>
511
+ <wp:postmeta>
512
+ <wp:meta_key><![CDATA[_autoplay_speed]]></wp:meta_key>
513
+ <wp:meta_value><![CDATA[500]]></wp:meta_value>
514
+ </wp:postmeta>
515
+ <wp:postmeta>
516
+ <wp:meta_key><![CDATA[_autoplay_pause]]></wp:meta_key>
517
+ <wp:meta_value><![CDATA[off]]></wp:meta_value>
518
+ </wp:postmeta>
519
+ <wp:postmeta>
520
+ <wp:meta_key><![CDATA[_items]]></wp:meta_key>
521
+ <wp:meta_value><![CDATA[4]]></wp:meta_value>
522
+ </wp:postmeta>
523
+ <wp:postmeta>
524
+ <wp:meta_key><![CDATA[_items_desktop]]></wp:meta_key>
525
+ <wp:meta_value><![CDATA[4]]></wp:meta_value>
526
+ </wp:postmeta>
527
+ <wp:postmeta>
528
+ <wp:meta_key><![CDATA[_items_small_desktop]]></wp:meta_key>
529
+ <wp:meta_value><![CDATA[4]]></wp:meta_value>
530
+ </wp:postmeta>
531
+ <wp:postmeta>
532
+ <wp:meta_key><![CDATA[_items_portrait_tablet]]></wp:meta_key>
533
+ <wp:meta_value><![CDATA[3]]></wp:meta_value>
534
+ </wp:postmeta>
535
+ <wp:postmeta>
536
+ <wp:meta_key><![CDATA[_items_small_portrait_tablet]]></wp:meta_key>
537
+ <wp:meta_value><![CDATA[2]]></wp:meta_value>
538
+ </wp:postmeta>
539
+ <wp:postmeta>
540
+ <wp:meta_key><![CDATA[_items_portrait_mobile]]></wp:meta_key>
541
+ <wp:meta_value><![CDATA[1]]></wp:meta_value>
542
+ </wp:postmeta>
543
+ <wp:postmeta>
544
+ <wp:meta_key><![CDATA[_post_categories]]></wp:meta_key>
545
+ <wp:meta_value><![CDATA[]]></wp:meta_value>
546
+ </wp:postmeta>
547
+ <wp:postmeta>
548
+ <wp:meta_key><![CDATA[_post_tags]]></wp:meta_key>
549
+ <wp:meta_value><![CDATA[]]></wp:meta_value>
550
+ </wp:postmeta>
551
+ <wp:postmeta>
552
+ <wp:meta_key><![CDATA[_post_in]]></wp:meta_key>
553
+ <wp:meta_value><![CDATA[]]></wp:meta_value>
554
+ </wp:postmeta>
555
+ <wp:postmeta>
556
+ <wp:meta_key><![CDATA[_images_urls]]></wp:meta_key>
557
+ <wp:meta_value><![CDATA[a:1:{i:0;a:5:{s:3:"url";s:0:"";s:5:"title";s:0:"";s:7:"caption";s:0:"";s:3:"alt";s:0:"";s:8:"link_url";s:0:"";}}]]></wp:meta_value>
558
+ </wp:postmeta>
559
+ </item>
560
+ <item>
561
+ <title>Image carousel from media gallery</title>
562
+ <link>http://wordpress.dev/?carousels=image-carousel-from-media-gallery</link>
563
+ <pubDate>Thu, 12 Jan 2017 15:03:10 +0000</pubDate>
564
+ <dc:creator><![CDATA[sayful]]></dc:creator>
565
+ <guid isPermaLink="false">http://wordpress.dev/?post_type=carousels&#038;p=1722</guid>
566
+ <description></description>
567
+ <content:encoded><![CDATA[]]></content:encoded>
568
+ <excerpt:encoded><![CDATA[]]></excerpt:encoded>
569
+ <wp:post_id>1722</wp:post_id>
570
+ <wp:post_date><![CDATA[2017-01-12 15:03:10]]></wp:post_date>
571
+ <wp:post_date_gmt><![CDATA[2017-01-12 15:03:10]]></wp:post_date_gmt>
572
+ <wp:comment_status><![CDATA[closed]]></wp:comment_status>
573
+ <wp:ping_status><![CDATA[closed]]></wp:ping_status>
574
+ <wp:post_name><![CDATA[image-carousel-from-media-gallery]]></wp:post_name>
575
+ <wp:status><![CDATA[publish]]></wp:status>
576
+ <wp:post_parent>0</wp:post_parent>
577
+ <wp:menu_order>0</wp:menu_order>
578
+ <wp:post_type><![CDATA[carousels]]></wp:post_type>
579
+ <wp:post_password><![CDATA[]]></wp:post_password>
580
+ <wp:is_sticky>0</wp:is_sticky>
581
+ <wp:postmeta>
582
+ <wp:meta_key><![CDATA[_edit_last]]></wp:meta_key>
583
+ <wp:meta_value><![CDATA[1]]></wp:meta_value>
584
+ </wp:postmeta>
585
+ <wp:postmeta>
586
+ <wp:meta_key><![CDATA[_wpdh_image_ids]]></wp:meta_key>
587
+ <wp:meta_value><![CDATA[1710,1692,1691,1687,1686,1628,1027,1022,1045,]]></wp:meta_value>
588
+ </wp:postmeta>
589
+ <wp:postmeta>
590
+ <wp:meta_key><![CDATA[_slide_type]]></wp:meta_key>
591
+ <wp:meta_value><![CDATA[image-carousel]]></wp:meta_value>
592
+ </wp:postmeta>
593
+ <wp:postmeta>
594
+ <wp:meta_key><![CDATA[_post_query_type]]></wp:meta_key>
595
+ <wp:meta_value><![CDATA[latest_posts]]></wp:meta_value>
596
+ </wp:postmeta>
597
+ <wp:postmeta>
598
+ <wp:meta_key><![CDATA[_post_date_after]]></wp:meta_key>
599
+ <wp:meta_value><![CDATA[]]></wp:meta_value>
600
+ </wp:postmeta>
601
+ <wp:postmeta>
602
+ <wp:meta_key><![CDATA[_post_date_before]]></wp:meta_key>
603
+ <wp:meta_value><![CDATA[]]></wp:meta_value>
604
+ </wp:postmeta>
605
+ <wp:postmeta>
606
+ <wp:meta_key><![CDATA[_posts_per_page]]></wp:meta_key>
607
+ <wp:meta_value><![CDATA[12]]></wp:meta_value>
608
+ </wp:postmeta>
609
+ <wp:postmeta>
610
+ <wp:meta_key><![CDATA[_post_order]]></wp:meta_key>
611
+ <wp:meta_value><![CDATA[DESC]]></wp:meta_value>
612
+ </wp:postmeta>
613
+ <wp:postmeta>
614
+ <wp:meta_key><![CDATA[_post_orderby]]></wp:meta_key>
615
+ <wp:meta_value><![CDATA[ID]]></wp:meta_value>
616
+ </wp:postmeta>
617
+ <wp:postmeta>
618
+ <wp:meta_key><![CDATA[_post_height]]></wp:meta_key>
619
+ <wp:meta_value><![CDATA[450]]></wp:meta_value>
620
+ </wp:postmeta>
621
+ <wp:postmeta>
622
+ <wp:meta_key><![CDATA[_video_url]]></wp:meta_key>
623
+ <wp:meta_value><![CDATA[]]></wp:meta_value>
624
+ </wp:postmeta>
625
+ <wp:postmeta>
626
+ <wp:meta_key><![CDATA[_video_width]]></wp:meta_key>
627
+ <wp:meta_value><![CDATA[560]]></wp:meta_value>
628
+ </wp:postmeta>
629
+ <wp:postmeta>
630
+ <wp:meta_key><![CDATA[_video_height]]></wp:meta_key>
631
+ <wp:meta_value><![CDATA[315]]></wp:meta_value>
632
+ </wp:postmeta>
633
+ <wp:postmeta>
634
+ <wp:meta_key><![CDATA[_slide_by]]></wp:meta_key>
635
+ <wp:meta_value><![CDATA[1]]></wp:meta_value>
636
+ </wp:postmeta>
637
+ <wp:postmeta>
638
+ <wp:meta_key><![CDATA[_margin_right]]></wp:meta_key>
639
+ <wp:meta_value><![CDATA[10]]></wp:meta_value>
640
+ </wp:postmeta>
641
+ <wp:postmeta>
642
+ <wp:meta_key><![CDATA[_inifnity_loop]]></wp:meta_key>
643
+ <wp:meta_value><![CDATA[on]]></wp:meta_value>
644
+ </wp:postmeta>
645
+ <wp:postmeta>
646
+ <wp:meta_key><![CDATA[_lazy_load_image]]></wp:meta_key>
647
+ <wp:meta_value><![CDATA[on]]></wp:meta_value>
648
+ </wp:postmeta>
649
+ <wp:postmeta>
650
+ <wp:meta_key><![CDATA[_show_attachment_title]]></wp:meta_key>
651
+ <wp:meta_value><![CDATA[on]]></wp:meta_value>
652
+ </wp:postmeta>
653
+ <wp:postmeta>
654
+ <wp:meta_key><![CDATA[_show_attachment_caption]]></wp:meta_key>
655
+ <wp:meta_value><![CDATA[on]]></wp:meta_value>
656
+ </wp:postmeta>
657
+ <wp:postmeta>
658
+ <wp:meta_key><![CDATA[_image_size]]></wp:meta_key>
659
+ <wp:meta_value><![CDATA[medium]]></wp:meta_value>
660
+ </wp:postmeta>
661
+ <wp:postmeta>
662
+ <wp:meta_key><![CDATA[_image_target]]></wp:meta_key>
663
+ <wp:meta_value><![CDATA[_self]]></wp:meta_value>
664
+ </wp:postmeta>
665
+ <wp:postmeta>
666
+ <wp:meta_key><![CDATA[_nav_button]]></wp:meta_key>
667
+ <wp:meta_value><![CDATA[on]]></wp:meta_value>
668
+ </wp:postmeta>
669
+ <wp:postmeta>
670
+ <wp:meta_key><![CDATA[_dot_nav]]></wp:meta_key>
671
+ <wp:meta_value><![CDATA[on]]></wp:meta_value>
672
+ </wp:postmeta>
673
+ <wp:postmeta>
674
+ <wp:meta_key><![CDATA[_nav_color]]></wp:meta_key>
675
+ <wp:meta_value><![CDATA[#f1f1f1]]></wp:meta_value>
676
+ </wp:postmeta>
677
+ <wp:postmeta>
678
+ <wp:meta_key><![CDATA[_nav_active_color]]></wp:meta_key>
679
+ <wp:meta_value><![CDATA[#4caf50]]></wp:meta_value>
680
+ </wp:postmeta>
681
+ <wp:postmeta>
682
+ <wp:meta_key><![CDATA[_autoplay]]></wp:meta_key>
683
+ <wp:meta_value><![CDATA[on]]></wp:meta_value>
684
+ </wp:postmeta>
685
+ <wp:postmeta>
686
+ <wp:meta_key><![CDATA[_autoplay_timeout]]></wp:meta_key>
687
+ <wp:meta_value><![CDATA[5000]]></wp:meta_value>
688
+ </wp:postmeta>
689
+ <wp:postmeta>
690
+ <wp:meta_key><![CDATA[_autoplay_speed]]></wp:meta_key>
691
+ <wp:meta_value><![CDATA[500]]></wp:meta_value>
692
+ </wp:postmeta>
693
+ <wp:postmeta>
694
+ <wp:meta_key><![CDATA[_autoplay_pause]]></wp:meta_key>
695
+ <wp:meta_value><![CDATA[off]]></wp:meta_value>
696
+ </wp:postmeta>
697
+ <wp:postmeta>
698
+ <wp:meta_key><![CDATA[_items]]></wp:meta_key>
699
+ <wp:meta_value><![CDATA[4]]></wp:meta_value>
700
+ </wp:postmeta>
701
+ <wp:postmeta>
702
+ <wp:meta_key><![CDATA[_items_desktop]]></wp:meta_key>
703
+ <wp:meta_value><![CDATA[4]]></wp:meta_value>
704
+ </wp:postmeta>
705
+ <wp:postmeta>
706
+ <wp:meta_key><![CDATA[_items_small_desktop]]></wp:meta_key>
707
+ <wp:meta_value><![CDATA[4]]></wp:meta_value>
708
+ </wp:postmeta>
709
+ <wp:postmeta>
710
+ <wp:meta_key><![CDATA[_items_portrait_tablet]]></wp:meta_key>
711
+ <wp:meta_value><![CDATA[3]]></wp:meta_value>
712
+ </wp:postmeta>
713
+ <wp:postmeta>
714
+ <wp:meta_key><![CDATA[_items_small_portrait_tablet]]></wp:meta_key>
715
+ <wp:meta_value><![CDATA[2]]></wp:meta_value>
716
+ </wp:postmeta>
717
+ <wp:postmeta>
718
+ <wp:meta_key><![CDATA[_items_portrait_mobile]]></wp:meta_key>
719
+ <wp:meta_value><![CDATA[1]]></wp:meta_value>
720
+ </wp:postmeta>
721
+ <wp:postmeta>
722
+ <wp:meta_key><![CDATA[_post_categories]]></wp:meta_key>
723
+ <wp:meta_value><![CDATA[]]></wp:meta_value>
724
+ </wp:postmeta>
725
+ <wp:postmeta>
726
+ <wp:meta_key><![CDATA[_post_tags]]></wp:meta_key>
727
+ <wp:meta_value><![CDATA[]]></wp:meta_value>
728
+ </wp:postmeta>
729
+ <wp:postmeta>
730
+ <wp:meta_key><![CDATA[_post_in]]></wp:meta_key>
731
+ <wp:meta_value><![CDATA[]]></wp:meta_value>
732
+ </wp:postmeta>
733
+ <wp:postmeta>
734
+ <wp:meta_key><![CDATA[_images_urls]]></wp:meta_key>
735
+ <wp:meta_value><![CDATA[a:1:{i:0;a:5:{s:3:"url";s:0:"";s:5:"title";s:0:"";s:7:"caption";s:0:"";s:3:"alt";s:0:"";s:8:"link_url";s:0:"";}}]]></wp:meta_value>
736
+ </wp:postmeta>
737
+ </item>
738
+ </channel>
739
+ </rss>
includes/Carousel_Slider_Activation.php CHANGED
File without changes
includes/Carousel_Slider_Admin.php CHANGED
@@ -222,12 +222,25 @@ class Carousel_Slider_Admin
222
  if (is_array($val)) {
223
  $val = implode(',', $val);
224
  }
 
225
  if ($key == '_margin_right' && $val == 0) {
226
  $val = 'zero';
227
  }
228
  update_post_meta( $post_id, $key, sanitize_text_field( $val ) );
229
  }
230
 
 
 
 
 
 
 
 
 
 
 
 
 
231
  if (isset($_POST['_images_urls'])) {
232
  $this->save_images_urls( $post_id );
233
  }
222
  if (is_array($val)) {
223
  $val = implode(',', $val);
224
  }
225
+
226
  if ($key == '_margin_right' && $val == 0) {
227
  $val = 'zero';
228
  }
229
  update_post_meta( $post_id, $key, sanitize_text_field( $val ) );
230
  }
231
 
232
+ if ( ! isset($_POST['carousel_slider']['_post_categories'])) {
233
+ update_post_meta( $post_id, '_post_categories', '');
234
+ }
235
+
236
+ if ( ! isset($_POST['carousel_slider']['_post_tags'])) {
237
+ update_post_meta( $post_id, '_post_tags', '');
238
+ }
239
+
240
+ if ( ! isset($_POST['carousel_slider']['_post_in'])) {
241
+ update_post_meta( $post_id, '_post_in', '');
242
+ }
243
+
244
  if (isset($_POST['_images_urls'])) {
245
  $this->save_images_urls( $post_id );
246
  }
includes/Carousel_Slider_Form.php CHANGED
@@ -220,6 +220,39 @@ trait Carousel_Slider_Form
220
  echo $this->field_after();
221
  }
222
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
223
  private function field_common( $args )
224
  {
225
  global $post;
220
  echo $this->field_after();
221
  }
222
 
223
+ public function post_terms( array $args )
224
+ {
225
+ global $wp_version;
226
+
227
+ if( ! isset( $args['id'], $args['name'] ) ) return;
228
+ list($name, $value) = $this->field_common( $args );
229
+
230
+ $value = explode(',', strip_tags(rtrim($value, ',') ) );
231
+ $multiple = isset($args['multiple']) ? 'multiple' : '';
232
+ $taxonomy = isset($args['taxonomy']) ? $args['taxonomy'] : 'category';
233
+
234
+ if ( version_compare( $wp_version, '4.5.0', '>=' ) ) {
235
+ $terms = get_terms( array( 'taxonomy' => $taxonomy ) );
236
+ } else {
237
+ $terms = get_terms( $taxonomy );
238
+ }
239
+
240
+ // var_dump($terms);
241
+
242
+ echo $this->field_before( $args );
243
+
244
+ echo sprintf('<select name="%1$s" id="%2$s" class="select2 sp-input-text" %3$s>',$name, $args['id'], $multiple);
245
+
246
+ foreach( $terms as $term ){
247
+ $title = sprintf('%s (%s)', $term->name, $term->count);
248
+ $selected = in_array($term->term_id, $value) ? ' selected="selected"' : '';
249
+ echo sprintf('<option value="%1$s" %3$s>%2$s</option>',$term->term_id, $title, $selected);
250
+ }
251
+ echo'</select>';
252
+
253
+ echo $this->field_after();
254
+ }
255
+
256
  private function field_common( $args )
257
  {
258
  global $post;
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: widget, shortcode, images, carousel, carousel slider, image carousel, slid
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
7
- Stable tag: 1.6.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -20,7 +20,7 @@ Carousel Slider is a touch enabled WordPress plugin that lets you create highly
20
  = Full Feature Set =
21
 
22
  * **Multiple types carousel**, images from media gallery, images from URL, videos from youtube and vimeo, and posts carousel
23
- * **Posts carousel**, support Specific posts, Posts per page, Date range query and ordering
24
  * **Video carousel**, support custom height and width (Currently only support video from Youtube and Vimeo)
25
  * **Fully responsive**, configure the number of items to display for desktop, small desktop, tablet and mobile devices
26
  * **Lightweight**, only loads stuff when carousel is used
@@ -77,6 +77,13 @@ Do you have questions or issues with Carousel Slider? [Ask for support here](htt
77
 
78
  == Changelog ==
79
 
 
 
 
 
 
 
 
80
  = version 1.6.0 - 2016-12-22 =
81
  * Added - "Link to URL" field at WordPress media uploader for linking carousel image.
82
  * Added - Video carousel slider with custom height and width.
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
7
+ Stable tag: 1.6.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
20
  = Full Feature Set =
21
 
22
  * **Multiple types carousel**, images from media gallery, images from URL, videos from youtube and vimeo, and posts carousel
23
+ * **Posts carousel**, support Specific posts, Post Categories, Post Tags, Posts per page, Date range query and ordering
24
  * **Video carousel**, support custom height and width (Currently only support video from Youtube and Vimeo)
25
  * **Fully responsive**, configure the number of items to display for desktop, small desktop, tablet and mobile devices
26
  * **Lightweight**, only loads stuff when carousel is used
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.
83
+ * Added - Added option to set link target for image carousel when click on image.
84
+ * Fixed - Fixed issue for not saving value from multiple select when no/empty value.
85
+ * Updated - Pre and Next Navigation buttons has been changed by inline SVG images.
86
+
87
  = version 1.6.0 - 2016-12-22 =
88
  * Added - "Link to URL" field at WordPress media uploader for linking carousel image.
89
  * Added - Video carousel slider with custom height and width.
screenshot-1.jpg CHANGED
File without changes
screenshot-2.jpg CHANGED
File without changes
screenshot-3.jpg CHANGED
File without changes
screenshot-4.jpg CHANGED
File without changes
shortcodes/Carousel_Slider_Deprecated_Shortcode.php CHANGED
File without changes
shortcodes/Carousel_Slider_Shortcode.php CHANGED
@@ -77,6 +77,9 @@ class Carousel_Slider_Shortcode
77
 
78
  private function carousel_options( $id )
79
  {
 
 
 
80
  $options_array = array(
81
  'id' => 'id-' . $id,
82
  'class' => 'owl-carousel carousel-slider',
@@ -87,8 +90,10 @@ class Carousel_Slider_Shortcode
87
  'data-loop' => $this->get_meta( $id, '_inifnity_loop', 'true' ),
88
  'data-lazy-load' => $this->get_meta( $id, '_lazy_load_image', 'false' ),
89
  // Navigation
90
- 'data-nav' => $this->get_meta( $id, '_nav_button', 'false' ),
91
  'data-dots' => $this->get_meta( $id, '_dot_nav', 'false' ),
 
 
 
92
  // Video
93
  'data-video-width' => $this->get_meta( $id, '_video_width', 'false' ),
94
  'data-video-height' => $this->get_meta( $id, '_video_height', 'false' ),
@@ -188,6 +193,16 @@ class Carousel_Slider_Shortcode
188
  return;
189
  }
190
 
 
 
 
 
 
 
 
 
 
 
191
  public function filter_posts( $posts )
192
  {
193
  if ( ! is_array( $posts ) ) {
77
 
78
  private function carousel_options( $id )
79
  {
80
+ $_nav_color = get_post_meta( $id, '_nav_color', true );
81
+ $_nav_active_color = get_post_meta( $id, '_nav_active_color', true );
82
+
83
  $options_array = array(
84
  'id' => 'id-' . $id,
85
  'class' => 'owl-carousel carousel-slider',
90
  'data-loop' => $this->get_meta( $id, '_inifnity_loop', 'true' ),
91
  'data-lazy-load' => $this->get_meta( $id, '_lazy_load_image', 'false' ),
92
  // Navigation
 
93
  'data-dots' => $this->get_meta( $id, '_dot_nav', 'false' ),
94
+ 'data-nav' => $this->get_meta( $id, '_nav_button', 'false' ),
95
+ 'data-nav-previous-icon' => $this->nav_previous_icon(),
96
+ 'data-nav-next-icon' => $this->nav_next_icon(),
97
  // Video
98
  'data-video-width' => $this->get_meta( $id, '_video_width', 'false' ),
99
  'data-video-height' => $this->get_meta( $id, '_video_height', 'false' ),
193
  return;
194
  }
195
 
196
+ public function nav_previous_icon()
197
+ {
198
+ return '<svg class="carousel-slider-nav-icon" xmlns="http://www.w3.org/2000/svg" width="20" height="48" viewBox="0 0 11 28"><path d="M9.8 8.5c0 0.1-0.1 0.3-0.2 0.4l-6.1 6.1 6.1 6.1c0.1 0.1 0.2 0.2 0.2 0.4s-0.1 0.3-0.2 0.4l-0.8 0.8c-0.1 0.1-0.2 0.2-0.4 0.2s-0.3-0.1-0.4-0.2l-7.3-7.3c-0.1-0.1-0.2-0.2-0.2-0.4s0.1-0.3 0.2-0.4l7.3-7.3c0.1-0.1 0.2-0.2 0.4-0.2s0.3 0.1 0.4 0.2l0.8 0.8c0.1 0.1 0.2 0.2 0.2 0.4z"/></svg>';
199
+ }
200
+
201
+ public function nav_next_icon()
202
+ {
203
+ return '<svg class="carousel-slider-nav-icon" xmlns="http://www.w3.org/2000/svg" width="20" height="48" viewBox="0 0 9 28"><path d="M9.3 15c0 0.1-0.1 0.3-0.2 0.4l-7.3 7.3c-0.1 0.1-0.2 0.2-0.4 0.2s-0.3-0.1-0.4-0.2l-0.8-0.8c-0.1-0.1-0.2-0.2-0.2-0.4 0-0.1 0.1-0.3 0.2-0.4l6.1-6.1-6.1-6.1c-0.1-0.1-0.2-0.2-0.2-0.4s0.1-0.3 0.2-0.4l0.8-0.8c0.1-0.1 0.2-0.2 0.4-0.2s0.3 0.1 0.4 0.2l7.3 7.3c0.1 0.1 0.2 0.2 0.2 0.4z"/></svg>';
204
+ }
205
+
206
  public function filter_posts( $posts )
207
  {
208
  if ( ! is_array( $posts ) ) {
templates/admin/autoplay.php CHANGED
File without changes
templates/admin/general.php CHANGED
@@ -50,6 +50,16 @@
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
  ?>
54
  </div>
55
  </div>
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'),
57
+ 'std' => '_self',
58
+ 'options' => array(
59
+ '_self' => __('Open in the same frame as it was clicked', 'carousel-slider'),
60
+ '_blank' => __('Open in a new window or tab', 'carousel-slider'),
61
+ ),
62
+ ));
63
  ?>
64
  </div>
65
  </div>
templates/admin/images-carousel-url.php CHANGED
File without changes
templates/admin/images.php CHANGED
File without changes
templates/admin/navigation.php CHANGED
File without changes
templates/admin/post-carousel.php CHANGED
@@ -5,6 +5,54 @@
5
  <div class="shapla-toggle-inner">
6
  <div class="shapla-toggle-content">
7
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  $this->select(array(
9
  'id' => '_post_order',
10
  'name' => __('Order', 'carousel-slider'),
@@ -28,28 +76,6 @@
28
  'comment_count' => __('Number of comments', 'carousel-slider'),
29
  ),
30
  ));
31
- $this->date(array(
32
- 'id' => '_post_date_after',
33
- 'name' => __('Date from', 'carousel-slider'),
34
- 'desc' => sprintf(__('Example: %s', 'carousel-slider'), date('F d, Y', strtotime('-3 months'))),
35
- ));
36
- $this->date(array(
37
- 'id' => '_post_date_before',
38
- 'name' => __('Date to', 'carousel-slider'),
39
- 'desc' => sprintf(__('Example: %s', 'carousel-slider'), date('F d, Y', strtotime('-7 days'))),
40
- ));
41
- $this->number(array(
42
- 'id' => '_posts_per_page',
43
- 'name' => __('Posts per page', 'carousel-slider'),
44
- 'std' => 12,
45
- 'desc' => __('How many post you want to show on carousel slide', 'carousel-slider'),
46
- ));
47
- $this->posts_list(array(
48
- 'id' => '_post_in',
49
- 'multiple' => true,
50
- 'name' => __('Specific posts', 'carousel-slider'),
51
- 'desc' => __('Select posts that you want to show as slider.', 'carousel-slider'),
52
- ));
53
  $this->number(array(
54
  'id' => '_post_height',
55
  'name' => __('Colums Height', 'carousel-slider'),
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',
12
+ 'options' => array(
13
+ 'latest_posts' => __('Latest Posts', 'carousel-slider'),
14
+ 'date_range' => __('Date Range', 'carousel-slider'),
15
+ 'post_categories' => __('Post Categories', 'carousel-slider'),
16
+ 'post_tags' => __('Post Tags', 'carousel-slider'),
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'),
76
  'comment_count' => __('Number of comments', 'carousel-slider'),
77
  ),
78
  ));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
79
  $this->number(array(
80
  'id' => '_post_height',
81
  'name' => __('Colums Height', 'carousel-slider'),
templates/admin/responsive.php CHANGED
File without changes
templates/admin/types.php CHANGED
File without changes
templates/admin/video-carousel.php CHANGED
File without changes
templates/carousel.php CHANGED
@@ -16,6 +16,8 @@ $options_array = array(
16
  // Navigation
17
  'data-nav' => $navigation,
18
  'data-dots' => $pagination,
 
 
19
  // Video
20
  'data-video-width' => 'false',
21
  'data-video-height' => 'false',
@@ -34,15 +36,19 @@ $options_array = array(
34
  );
35
  ?>
36
  <style>
37
- #id-<?php echo $id; ?> .owl-nav [class*='owl-'],
38
  #id-<?php echo $id; ?> .owl-dots .owl-dot span {
39
  background-color: <?php echo $nav_color; ?>
40
  }
41
- #id-<?php echo $id; ?> .owl-nav [class*='owl-']:hover,
42
  #id-<?php echo $id; ?> .owl-dots .owl-dot.active span,
43
  #id-<?php echo $id; ?> .owl-dots .owl-dot:hover span {
44
  background-color: <?php echo $nav_active_color; ?>
45
  }
 
 
 
 
 
 
46
  </style>
47
  <div <?php echo $this->array_to_data( $options_array ); ?>>
48
  <?php echo do_shortcode($content); ?>
16
  // Navigation
17
  'data-nav' => $navigation,
18
  'data-dots' => $pagination,
19
+ 'data-nav-previous-icon' => '<svg class="carousel-slider-nav-icon" xmlns="http://www.w3.org/2000/svg" width="20" height="48" viewBox="0 0 11 28"><path d="M9.8 8.5c0 0.1-0.1 0.3-0.2 0.4l-6.1 6.1 6.1 6.1c0.1 0.1 0.2 0.2 0.2 0.4s-0.1 0.3-0.2 0.4l-0.8 0.8c-0.1 0.1-0.2 0.2-0.4 0.2s-0.3-0.1-0.4-0.2l-7.3-7.3c-0.1-0.1-0.2-0.2-0.2-0.4s0.1-0.3 0.2-0.4l7.3-7.3c0.1-0.1 0.2-0.2 0.4-0.2s0.3 0.1 0.4 0.2l0.8 0.8c0.1 0.1 0.2 0.2 0.2 0.4z"/></svg>',
20
+ 'data-nav-next-icon' => '<svg class="carousel-slider-nav-icon" xmlns="http://www.w3.org/2000/svg" width="20" height="48" viewBox="0 0 9 28"><path d="M9.3 15c0 0.1-0.1 0.3-0.2 0.4l-7.3 7.3c-0.1 0.1-0.2 0.2-0.4 0.2s-0.3-0.1-0.4-0.2l-0.8-0.8c-0.1-0.1-0.2-0.2-0.2-0.4 0-0.1 0.1-0.3 0.2-0.4l6.1-6.1-6.1-6.1c-0.1-0.1-0.2-0.2-0.2-0.4s0.1-0.3 0.2-0.4l0.8-0.8c0.1-0.1 0.2-0.2 0.4-0.2s0.3 0.1 0.4 0.2l7.3 7.3c0.1 0.1 0.2 0.2 0.2 0.4z"/></svg>',
21
  // Video
22
  'data-video-width' => 'false',
23
  'data-video-height' => 'false',
36
  );
37
  ?>
38
  <style>
 
39
  #id-<?php echo $id; ?> .owl-dots .owl-dot span {
40
  background-color: <?php echo $nav_color; ?>
41
  }
 
42
  #id-<?php echo $id; ?> .owl-dots .owl-dot.active span,
43
  #id-<?php echo $id; ?> .owl-dots .owl-dot:hover span {
44
  background-color: <?php echo $nav_active_color; ?>
45
  }
46
+ #id-<?php echo $id; ?> .carousel-slider-nav-icon {
47
+ fill: <?php echo $nav_color; ?>;
48
+ }
49
+ #id-<?php echo $id; ?> .carousel-slider-nav-icon:hover {
50
+ fill: <?php echo $nav_active_color; ?>;
51
+ }
52
  </style>
53
  <div <?php echo $this->array_to_data( $options_array ); ?>>
54
  <?php echo do_shortcode($content); ?>
templates/images-carousel-url.php CHANGED
@@ -4,7 +4,8 @@ if ( ! defined( 'WPINC' ) ) {
4
  die;
5
  }
6
 
7
- // $_image_size = get_post_meta( $id, '_image_size', true );
 
8
  $_nav_color = get_post_meta( $id, '_nav_color', true );
9
  $_nav_active_color = get_post_meta( $id, '_nav_active_color', true );
10
  $_lazy_load_image = get_post_meta( $id, '_lazy_load_image', true );
@@ -13,15 +14,19 @@ $_show_attachment_caption = get_post_meta( $id, '_show_attachment_caption', tru
13
  $_images_urls = get_post_meta( $id, '_images_urls', true );
14
  ?>
15
  <style>
16
- #id-<?php echo $id; ?> .owl-nav [class*='owl-'],
17
  #id-<?php echo $id; ?> .owl-dots .owl-dot span {
18
  background-color: <?php echo $_nav_color; ?>
19
  }
20
- #id-<?php echo $id; ?> .owl-nav [class*='owl-']:hover,
21
  #id-<?php echo $id; ?> .owl-dots .owl-dot.active span,
22
  #id-<?php echo $id; ?> .owl-dots .owl-dot:hover span {
23
  background-color: <?php echo $_nav_active_color; ?>
24
  }
 
 
 
 
 
 
25
  </style>
26
  <div <?php echo join(" ", $this->carousel_options($id)); ?>>
27
  <?php
@@ -58,7 +63,7 @@ $_images_urls = get_post_meta( $id, '_images_urls', true );
58
 
59
  if ( filter_var( $imageInfo['link_url'], FILTER_VALIDATE_URL) ) {
60
 
61
- echo sprintf('<a href="%s">%s%s</a>', $imageInfo['link_url'], $image, $full_caption);
62
 
63
  } else {
64
 
4
  die;
5
  }
6
 
7
+ $_image_target = get_post_meta( $id, '_image_target', true );
8
+ $_image_target = empty($_image_target) ? '_self' : $_image_target;
9
  $_nav_color = get_post_meta( $id, '_nav_color', true );
10
  $_nav_active_color = get_post_meta( $id, '_nav_active_color', true );
11
  $_lazy_load_image = get_post_meta( $id, '_lazy_load_image', true );
14
  $_images_urls = get_post_meta( $id, '_images_urls', true );
15
  ?>
16
  <style>
 
17
  #id-<?php echo $id; ?> .owl-dots .owl-dot span {
18
  background-color: <?php echo $_nav_color; ?>
19
  }
 
20
  #id-<?php echo $id; ?> .owl-dots .owl-dot.active span,
21
  #id-<?php echo $id; ?> .owl-dots .owl-dot:hover span {
22
  background-color: <?php echo $_nav_active_color; ?>
23
  }
24
+ #id-<?php echo $id; ?> .carousel-slider-nav-icon {
25
+ fill: <?php echo $_nav_color; ?>;
26
+ }
27
+ #id-<?php echo $id; ?> .carousel-slider-nav-icon:hover {
28
+ fill: <?php echo $_nav_active_color; ?>;
29
+ }
30
  </style>
31
  <div <?php echo join(" ", $this->carousel_options($id)); ?>>
32
  <?php
63
 
64
  if ( filter_var( $imageInfo['link_url'], FILTER_VALIDATE_URL) ) {
65
 
66
+ echo sprintf('<a href="%1$s" target="%4$s">%2$s %3$s</a>', $imageInfo['link_url'], $image, $full_caption, $_image_target);
67
 
68
  } else {
69
 
templates/images-carousel.php CHANGED
@@ -8,6 +8,8 @@ $images_ids = array_filter( explode( ',', get_post_meta( $id, '_wpdh_image_ids',
8
  if (count( $images_ids ) < 1 ) {
9
  return;
10
  }
 
 
11
  $_image_size = get_post_meta( $id, '_image_size', true );
12
  $_nav_color = get_post_meta( $id, '_nav_color', true );
13
  $_nav_active_color = get_post_meta( $id, '_nav_active_color', true );
@@ -16,15 +18,19 @@ $_show_attachment_title = get_post_meta( $id, '_show_attachment_title', true );
16
  $_show_attachment_caption = get_post_meta( $id, '_show_attachment_caption', true );
17
  ?>
18
  <style>
19
- #id-<?php echo $id; ?> .owl-nav [class*='owl-'],
20
  #id-<?php echo $id; ?> .owl-dots .owl-dot span {
21
  background-color: <?php echo $_nav_color; ?>
22
  }
23
- #id-<?php echo $id; ?> .owl-nav [class*='owl-']:hover,
24
  #id-<?php echo $id; ?> .owl-dots .owl-dot.active span,
25
  #id-<?php echo $id; ?> .owl-dots .owl-dot:hover span {
26
  background-color: <?php echo $_nav_active_color; ?>
27
  }
 
 
 
 
 
 
28
  </style>
29
  <div <?php echo join(" ", $this->carousel_options($id)); ?>>
30
  <?php
@@ -75,7 +81,7 @@ $_show_attachment_caption = get_post_meta( $id, '_show_attachment_caption', tru
75
 
76
  if ( filter_var( $image_link_url, FILTER_VALIDATE_URL) ) {
77
 
78
- echo sprintf('<a href="%s">%s%s</a>', esc_url($image_link_url), $image, $full_caption);
79
 
80
  } else {
81
 
8
  if (count( $images_ids ) < 1 ) {
9
  return;
10
  }
11
+ $_image_target = get_post_meta( $id, '_image_target', true );
12
+ $_image_target = empty($_image_target) ? '_self' : $_image_target;
13
  $_image_size = get_post_meta( $id, '_image_size', true );
14
  $_nav_color = get_post_meta( $id, '_nav_color', true );
15
  $_nav_active_color = get_post_meta( $id, '_nav_active_color', true );
18
  $_show_attachment_caption = get_post_meta( $id, '_show_attachment_caption', true );
19
  ?>
20
  <style>
 
21
  #id-<?php echo $id; ?> .owl-dots .owl-dot span {
22
  background-color: <?php echo $_nav_color; ?>
23
  }
 
24
  #id-<?php echo $id; ?> .owl-dots .owl-dot.active span,
25
  #id-<?php echo $id; ?> .owl-dots .owl-dot:hover span {
26
  background-color: <?php echo $_nav_active_color; ?>
27
  }
28
+ #id-<?php echo $id; ?> .carousel-slider-nav-icon {
29
+ fill: <?php echo $_nav_color; ?>;
30
+ }
31
+ #id-<?php echo $id; ?> .carousel-slider-nav-icon:hover {
32
+ fill: <?php echo $_nav_active_color; ?>;
33
+ }
34
  </style>
35
  <div <?php echo join(" ", $this->carousel_options($id)); ?>>
36
  <?php
81
 
82
  if ( filter_var( $image_link_url, FILTER_VALIDATE_URL) ) {
83
 
84
+ echo sprintf('<a href="%1$s" target="%4$s">%2$s%3$s</a>', esc_url($image_link_url), $image, $full_caption, $_image_target);
85
 
86
  } else {
87
 
templates/post-carousel.php CHANGED
@@ -9,13 +9,35 @@ $args = array(
9
  'post_status' => 'publish',
10
  'order' => get_post_meta( $id, '_post_order', true ),
11
  'orderby' => get_post_meta( $id, '_post_orderby', true ),
 
12
  );
13
 
14
- $post_in = explode(',', get_post_meta( $id, '_post_in', true ));
15
- if ( count( $post_in ) > 10) {
 
 
 
 
16
  $post_in = array_map(function($value){ return intval($value);}, $post_in);
 
17
  $args = array_merge($args, array('post__in' => $post_in ));
18
- } else {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
 
20
  $post_date_after = get_post_meta( $id, '_post_date_after', true );
21
  $post_date_before = get_post_meta( $id, '_post_date_before', true );
@@ -49,10 +71,6 @@ if ( count( $post_in ) > 10) {
49
  ),
50
  ));
51
  }
52
-
53
- $args = array_merge($args, array(
54
- 'posts_per_page' => intval(get_post_meta( $id, '_posts_per_page', true ))
55
- ));
56
  }
57
 
58
  $posts = get_posts( $args );
@@ -65,15 +83,19 @@ $_lazy_load_image = get_post_meta( $id, '_lazy_load_image', true );
65
  $_post_height = get_post_meta( $id, '_post_height', true );
66
  ?>
67
  <style>
68
- #id-<?php echo $id; ?> .owl-nav [class*='owl-'],
69
  #id-<?php echo $id; ?> .owl-dots .owl-dot span {
70
  background-color: <?php echo $_nav_color; ?>
71
  }
72
- #id-<?php echo $id; ?> .owl-nav [class*='owl-']:hover,
73
  #id-<?php echo $id; ?> .owl-dots .owl-dot.active span,
74
  #id-<?php echo $id; ?> .owl-dots .owl-dot:hover span {
75
  background-color: <?php echo $_nav_active_color; ?>
76
  }
 
 
 
 
 
 
77
  #id-<?php echo $id; ?> .carousel-slider__post {
78
  height: <?php echo $_post_height; ?>px;
79
  }
9
  'post_status' => 'publish',
10
  'order' => get_post_meta( $id, '_post_order', true ),
11
  'orderby' => get_post_meta( $id, '_post_orderby', true ),
12
+ 'posts_per_page' => intval(get_post_meta( $id, '_posts_per_page', true ))
13
  );
14
 
15
+ $query_type = get_post_meta( $id, '_post_query_type', true );
16
+ $query_type = empty($query_type) ? 'latest_posts' : $query_type;
17
+
18
+ // Get posts by post IDs
19
+ if ( $query_type == 'specific_posts' ) {
20
+ $post_in = explode(',', get_post_meta( $id, '_post_in', true ));
21
  $post_in = array_map(function($value){ return intval($value);}, $post_in);
22
+ unset($args['posts_per_page']);
23
  $args = array_merge($args, array('post__in' => $post_in ));
24
+ }
25
+
26
+ // Get posts by post catagories IDs
27
+ if ( $query_type == 'post_categories' ) {
28
+ $post_categories = get_post_meta( $id, '_post_categories', true );
29
+ $args = array_merge($args, array('cat' => $post_categories));
30
+ }
31
+
32
+ // Get posts by post tags IDs
33
+ if ( $query_type == 'post_tags' ) {
34
+ $post_tags = get_post_meta( $id, '_post_tags', true );
35
+ $post_tags = array_map('intval', explode(',', $post_tags));
36
+ $args = array_merge( $args, array( 'tag__in' => $post_tags ) );
37
+ }
38
+
39
+ // Get posts by date range
40
+ if( $query_type == 'date_range' ){
41
 
42
  $post_date_after = get_post_meta( $id, '_post_date_after', true );
43
  $post_date_before = get_post_meta( $id, '_post_date_before', true );
71
  ),
72
  ));
73
  }
 
 
 
 
74
  }
75
 
76
  $posts = get_posts( $args );
83
  $_post_height = get_post_meta( $id, '_post_height', true );
84
  ?>
85
  <style>
 
86
  #id-<?php echo $id; ?> .owl-dots .owl-dot span {
87
  background-color: <?php echo $_nav_color; ?>
88
  }
 
89
  #id-<?php echo $id; ?> .owl-dots .owl-dot.active span,
90
  #id-<?php echo $id; ?> .owl-dots .owl-dot:hover span {
91
  background-color: <?php echo $_nav_active_color; ?>
92
  }
93
+ #id-<?php echo $id; ?> .carousel-slider-nav-icon {
94
+ fill: <?php echo $_nav_color; ?>;
95
+ }
96
+ #id-<?php echo $id; ?> .carousel-slider-nav-icon:hover {
97
+ fill: <?php echo $_nav_active_color; ?>;
98
+ }
99
  #id-<?php echo $id; ?> .carousel-slider__post {
100
  height: <?php echo $_post_height; ?>px;
101
  }
templates/video-carousel.php CHANGED
@@ -4,14 +4,31 @@ if ( ! defined( 'WPINC' ) ) {
4
  die;
5
  }
6
 
7
- $_video_width = $this->get_meta( $id, '_video_width' );
8
- $_video_height = $this->get_meta( $id, '_video_height' );
9
- $_video_urls = array_filter( explode( ',', $this->get_meta( $id, '_video_url' )));
 
 
10
 
11
  if ( count($_video_urls) < 1 ) {
12
  return;
13
  }
14
  ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  <div <?php echo join(" ", $this->carousel_options($id)); ?>>
16
  <?php
17
  foreach ($_video_urls as $url) {
4
  die;
5
  }
6
 
7
+ $_nav_color = get_post_meta( $id, '_nav_color', true );
8
+ $_nav_active_color = get_post_meta( $id, '_nav_active_color', true );
9
+ $_video_width = $this->get_meta( $id, '_video_width' );
10
+ $_video_height = $this->get_meta( $id, '_video_height' );
11
+ $_video_urls = array_filter( explode( ',', $this->get_meta( $id, '_video_url' )));
12
 
13
  if ( count($_video_urls) < 1 ) {
14
  return;
15
  }
16
  ?>
17
+ <style>
18
+ #id-<?php echo $id; ?> .owl-dots .owl-dot span {
19
+ background-color: <?php echo $_nav_color; ?>
20
+ }
21
+ #id-<?php echo $id; ?> .owl-dots .owl-dot.active span,
22
+ #id-<?php echo $id; ?> .owl-dots .owl-dot:hover span {
23
+ background-color: <?php echo $_nav_active_color; ?>
24
+ }
25
+ #id-<?php echo $id; ?> .carousel-slider-nav-icon {
26
+ fill: <?php echo $_nav_color; ?>;
27
+ }
28
+ #id-<?php echo $id; ?> .carousel-slider-nav-icon:hover {
29
+ fill: <?php echo $_nav_active_color; ?>;
30
+ }
31
+ </style>
32
  <div <?php echo join(" ", $this->carousel_options($id)); ?>>
33
  <?php
34
  foreach ($_video_urls as $url) {