Version Description
Upgrade the plugin to get more features and better performance.
Download this release
Release Info
Developer | sayful |
Plugin | Carousel Slider |
Version | 1.2 |
Comparing to | |
See all releases |
Code changes from version 1.1 to 1.2
- carousel-img-type.php +17 -18
- carousel-options.php +58 -58
- carousel.php +40 -29
- index.php +2 -0
- js/carousel-button.js +1 -1
- languages/carouselslider.pot +293 -0
- readme.txt +18 -8
carousel-img-type.php
CHANGED
@@ -3,19 +3,19 @@
|
|
3 |
function sis_carousel_custom_post_type() {
|
4 |
|
5 |
$labels = array(
|
6 |
-
'name' => _x( 'Carousels', 'Post Type General Name', '
|
7 |
-
'singular_name' => _x( 'Carousel', 'Post Type Singular Name', '
|
8 |
-
'menu_name' => __( 'Carousels', '
|
9 |
-
'parent_item_colon' => __( 'Parent Carousel:', '
|
10 |
-
'all_items' => __( 'All Carousels', '
|
11 |
-
'view_item' => __( 'View Carousel', '
|
12 |
-
'add_new_item' => __( 'Add New Carousel', '
|
13 |
-
'add_new' => __( 'Add New', '
|
14 |
-
'edit_item' => __( 'Edit Carousel', '
|
15 |
-
'update_item' => __( 'Update Carousel', '
|
16 |
-
'search_items' => __( 'Search Carousel', '
|
17 |
-
'not_found' => __( 'Not found', '
|
18 |
-
'not_found_in_trash' => __( 'Not found in Trash', '
|
19 |
);
|
20 |
$rewrite = array(
|
21 |
'slug' => 'carousel',
|
@@ -24,11 +24,10 @@ function sis_carousel_custom_post_type() {
|
|
24 |
'feeds' => true,
|
25 |
);
|
26 |
$args = array(
|
27 |
-
'label' => __( '
|
28 |
-
'description' => __( '
|
29 |
'labels' => $labels,
|
30 |
-
'supports' => array( 'title', 'thumbnail', ),
|
31 |
-
'taxonomies' => array( 'category', 'post_tag' ),
|
32 |
'hierarchical' => false,
|
33 |
'public' => true,
|
34 |
'show_ui' => true,
|
@@ -55,7 +54,7 @@ add_action( 'init', 'sis_carousel_custom_post_type', 0 );
|
|
55 |
function sis_carousel_img_box()
|
56 |
{
|
57 |
remove_meta_box( 'postimagediv', 'carousel', 'side' );
|
58 |
-
add_meta_box('postimagediv', __('Upload Carousel Image'), 'post_thumbnail_meta_box', 'carousel', 'normal', 'high');
|
59 |
}
|
60 |
add_action('do_meta_boxes', 'sis_carousel_img_box');
|
61 |
|
3 |
function sis_carousel_custom_post_type() {
|
4 |
|
5 |
$labels = array(
|
6 |
+
'name' => _x( 'Carousels', 'Post Type General Name', 'carouselslider' ),
|
7 |
+
'singular_name' => _x( 'Carousel', 'Post Type Singular Name', 'carouselslider' ),
|
8 |
+
'menu_name' => __( 'Carousels', 'carouselslider' ),
|
9 |
+
'parent_item_colon' => __( 'Parent Carousel:', 'carouselslider' ),
|
10 |
+
'all_items' => __( 'All Carousels', 'carouselslider' ),
|
11 |
+
'view_item' => __( 'View Carousel', 'carouselslider' ),
|
12 |
+
'add_new_item' => __( 'Add New Carousel', 'carouselslider' ),
|
13 |
+
'add_new' => __( 'Add New', 'carouselslider' ),
|
14 |
+
'edit_item' => __( 'Edit Carousel', 'carouselslider' ),
|
15 |
+
'update_item' => __( 'Update Carousel', 'carouselslider' ),
|
16 |
+
'search_items' => __( 'Search Carousel', 'carouselslider' ),
|
17 |
+
'not_found' => __( 'Not found', 'carouselslider' ),
|
18 |
+
'not_found_in_trash' => __( 'Not found in Trash', 'carouselslider' ),
|
19 |
);
|
20 |
$rewrite = array(
|
21 |
'slug' => 'carousel',
|
24 |
'feeds' => true,
|
25 |
);
|
26 |
$args = array(
|
27 |
+
'label' => __( 'Carousel', 'carouselslider' ),
|
28 |
+
'description' => __( 'Carousel', 'carouselslider' ),
|
29 |
'labels' => $labels,
|
30 |
+
'supports' => array( 'title', 'editor', 'thumbnail', ),
|
|
|
31 |
'hierarchical' => false,
|
32 |
'public' => true,
|
33 |
'show_ui' => true,
|
54 |
function sis_carousel_img_box()
|
55 |
{
|
56 |
remove_meta_box( 'postimagediv', 'carousel', 'side' );
|
57 |
+
add_meta_box('postimagediv', __('Upload Carousel Image', 'carouselslider'), 'post_thumbnail_meta_box', 'carousel', 'normal', 'high');
|
58 |
}
|
59 |
add_action('do_meta_boxes', 'sis_carousel_img_box');
|
60 |
|
carousel-options.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<div id="wpbody">
|
2 |
<div class="wrap">
|
3 |
-
<h2
|
4 |
<form action="options.php" method="post">
|
5 |
<?php
|
6 |
settings_fields( 'sis_carousel_settings' );
|
@@ -10,198 +10,198 @@
|
|
10 |
<tbody>
|
11 |
<tr valign="top">
|
12 |
<th scope="row">
|
13 |
-
<label for="sis_carousel_settings[max_items]"
|
14 |
</th>
|
15 |
<td>
|
16 |
<input type="number" min="1" max="10" name="sis_carousel_settings[max_items]" id="" value="<?php esc_attr_e($options['max_items']); ?>">
|
17 |
-
<p class="description"
|
18 |
</td>
|
19 |
</tr>
|
20 |
<tr valign="top">
|
21 |
<th scope="row">
|
22 |
-
<label for=""
|
23 |
</th>
|
24 |
<td>
|
25 |
<input type="number" min="1" max="10" name="sis_carousel_settings[items_desktop]" id="" value="<?php esc_attr_e($options['items_desktop']); ?>">
|
26 |
-
<p class="description"
|
27 |
</td>
|
28 |
</tr>
|
29 |
<tr valign="top">
|
30 |
<th scope="row">
|
31 |
-
<label for=""
|
32 |
</th>
|
33 |
<td>
|
34 |
<input type="number" min="1" max="10" name="sis_carousel_settings[items_desktop_small]" id="" value="<?php esc_attr_e($options['items_desktop_small']); ?>">
|
35 |
-
<p class="description"
|
36 |
</td>
|
37 |
</tr>
|
38 |
<tr valign="top">
|
39 |
<th scope="row">
|
40 |
-
<label for=""
|
41 |
</th>
|
42 |
<td>
|
43 |
<input type="number" min="1" max="10" name="sis_carousel_settings[items_tablet]" id="" value="<?php esc_attr_e($options['items_tablet']); ?>">
|
44 |
-
<p class="description"
|
45 |
</td>
|
46 |
</tr>
|
47 |
<tr valign="top">
|
48 |
<th scope="row">
|
49 |
-
<label for=""
|
50 |
</th>
|
51 |
<td>
|
52 |
<input type="number" min="1" max="10" name="sis_carousel_settings[items_mobile]" id="" value="<?php esc_attr_e($options['items_mobile']); ?>">
|
53 |
-
<p class="description"
|
54 |
</td>
|
55 |
</tr>
|
56 |
<tr valign="top">
|
57 |
<th scope="row">
|
58 |
-
<label for="sis_carousel_settings[items_single]"
|
59 |
</th>
|
60 |
<td>
|
61 |
-
<input type='radio' name='sis_carousel_settings[items_single]' value='false' <?php if ( 'false' == $options['items_single'] ) echo 'checked="checked"'; ?> /> NO
|
62 |
-
<input type='radio' name='sis_carousel_settings[items_single]' value='true' <?php if ( 'true' == $options['items_single'] ) echo 'checked="checked"'; ?> /> Yes
|
63 |
-
<p class="description"
|
64 |
</td>
|
65 |
</tr>
|
66 |
<tr valign="top">
|
67 |
<th scope="row">
|
68 |
-
<label for="sis_carousel_settings[transitionstyle]"
|
69 |
</th>
|
70 |
<td>
|
71 |
<select name="sis_carousel_settings[transitionstyle]">
|
72 |
-
<option value="fade" <?php selected( $options['transitionstyle'], 'fade' );
|
73 |
-
<option value="backSlide" <?php selected( $options['transitionstyle'], 'backSlide' );
|
74 |
-
<option value="goDown" <?php selected( $options['transitionstyle'], 'goDown' );
|
75 |
-
<option value="scaleUp" <?php selected( $options['transitionstyle'], 'scaleUp' );
|
76 |
</select>
|
77 |
-
<p class="description"
|
78 |
</td>
|
79 |
</tr>
|
80 |
<tr valign="top">
|
81 |
<th scope="row">
|
82 |
-
<label for=""
|
83 |
</th>
|
84 |
<td>
|
85 |
<input type="number" name="sis_carousel_settings[slide_speed]" id="" value="<?php esc_attr_e($options['slide_speed']); ?>">
|
86 |
-
<p class="description"
|
87 |
</td>
|
88 |
</tr>
|
89 |
<tr valign="top">
|
90 |
<th scope="row">
|
91 |
-
<label for=""
|
92 |
</th>
|
93 |
<td>
|
94 |
<input type="number" name="sis_carousel_settings[pagination_speed]" id="" value="<?php esc_attr_e($options['pagination_speed']); ?>">
|
95 |
-
<p class="description"
|
96 |
</td>
|
97 |
</tr>
|
98 |
<tr valign="top">
|
99 |
<th scope="row">
|
100 |
-
<label for=""
|
101 |
</th>
|
102 |
<td>
|
103 |
<input type="number" name="sis_carousel_settings[rewind_speed]" id="" value="<?php esc_attr_e($options['rewind_speed']); ?>">
|
104 |
-
<p class="description"
|
105 |
</td>
|
106 |
</tr>
|
107 |
<tr valign="top">
|
108 |
<th scope="row">
|
109 |
-
<label for="sis_carousel_autoplay"
|
110 |
</th>
|
111 |
<td>
|
112 |
<input type="text" name="sis_carousel_settings[autoplay]" id="" value="<?php esc_attr_e($options['autoplay']); ?>">
|
113 |
-
<p class="description"
|
114 |
</td>
|
115 |
</tr>
|
116 |
<tr valign="top">
|
117 |
<th scope="row">
|
118 |
-
<label for=""
|
119 |
</th>
|
120 |
<td>
|
121 |
-
<input type='radio' name='sis_carousel_settings[stoponhover]' value='false' <?php if ( 'false' == $options['stoponhover'] ) echo 'checked="checked"'; ?> /> NO
|
122 |
-
<input type='radio' name='sis_carousel_settings[stoponhover]' value='true' <?php if ( 'true' == $options['stoponhover'] ) echo 'checked="checked"'; ?> /> Yes
|
123 |
-
<p class="description"
|
124 |
</td>
|
125 |
</tr>
|
126 |
<tr valign="top">
|
127 |
<th scope="row">
|
128 |
-
<label for=""
|
129 |
</th>
|
130 |
<td>
|
131 |
-
<input type='radio' name='sis_carousel_settings[navigation]' value='false' <?php if ( 'false' == $options['navigation'] ) echo 'checked="checked"'; ?> /> NO
|
132 |
-
<input type='radio' name='sis_carousel_settings[navigation]' value='true' <?php if ( 'true' == $options['navigation'] ) echo 'checked="checked"'; ?> /> Yes
|
133 |
-
<p class="description"
|
134 |
</td>
|
135 |
</tr>
|
136 |
<tr valign="top">
|
137 |
<th scope="row">
|
138 |
-
<label for="sis_carousel_settings[navigation_bg_color]"
|
139 |
</th>
|
140 |
<td>
|
141 |
<input type="text" name="sis_carousel_settings[navigation_bg_color]" id="navigation_bg_color" value="<?php esc_attr_e($options['navigation_bg_color']); ?>">
|
142 |
-
<p class="description"
|
143 |
</td>
|
144 |
</tr>
|
145 |
<tr valign="top">
|
146 |
<th scope="row">
|
147 |
-
<label for="sis_carousel_settings[navigation_arrow_color]"
|
148 |
</th>
|
149 |
<td>
|
150 |
<input type="text" name="sis_carousel_settings[navigation_arrow_color]" id="navigation_arrow_color" value="<?php esc_attr_e($options['navigation_arrow_color']); ?>">
|
151 |
-
<p class="description"
|
152 |
</td>
|
153 |
</tr>
|
154 |
<tr valign="top">
|
155 |
<th scope="row">
|
156 |
-
<label for=""
|
157 |
</th>
|
158 |
<td>
|
159 |
-
<input type='radio' name='sis_carousel_settings[scrollperpage]' value='false' <?php if ( 'false' == $options['scrollperpage'] ) echo 'checked="checked"'; ?> /> NO
|
160 |
-
<input type='radio' name='sis_carousel_settings[scrollperpage]' value='true' <?php if ( 'true' == $options['scrollperpage'] ) echo 'checked="checked"'; ?> /> Yes
|
161 |
-
<p class="description"
|
162 |
</td>
|
163 |
</tr>
|
164 |
<tr valign="top">
|
165 |
<th scope="row">
|
166 |
-
<label for=""
|
167 |
</th>
|
168 |
<td>
|
169 |
-
<input type='radio' name='sis_carousel_settings[pagination]' value='false' <?php if ( 'false' == $options['pagination'] ) echo 'checked="checked"'; ?> /> NO
|
170 |
-
<input type='radio' name='sis_carousel_settings[pagination]' value='true' <?php if ( 'true' == $options['pagination'] ) echo 'checked="checked"'; ?> /> Yes
|
171 |
-
<p class="description"
|
172 |
</td>
|
173 |
</tr>
|
174 |
<tr valign="top">
|
175 |
<th scope="row">
|
176 |
-
<label for=""
|
177 |
</th>
|
178 |
<td>
|
179 |
<input type="text" name="sis_carousel_settings[pagination_bg_color]" id="pagination_bg_color" value="<?php esc_attr_e($options['pagination_bg_color']); ?>">
|
180 |
-
<p class="description"
|
181 |
</td>
|
182 |
</tr>
|
183 |
<tr valign="top">
|
184 |
<th scope="row">
|
185 |
-
<label for=""
|
186 |
</th>
|
187 |
<td>
|
188 |
-
<input type='radio' name='sis_carousel_settings[paginationnumbers]' value='false' <?php if ( 'false' == $options['paginationnumbers'] ) echo 'checked="checked"'; ?> /> NO
|
189 |
-
<input type='radio' name='sis_carousel_settings[paginationnumbers]' value='true' <?php if ( 'true' == $options['paginationnumbers'] ) echo 'checked="checked"'; ?> /> Yes
|
190 |
-
<p class="description"
|
191 |
</td>
|
192 |
</tr>
|
193 |
<tr valign="top">
|
194 |
<th scope="row">
|
195 |
-
<label for=""
|
196 |
</th>
|
197 |
<td>
|
198 |
<input type="text" name="sis_carousel_settings[pagination_num_color]" id="pagination_num_color" value="<?php esc_attr_e($options['pagination_num_color']); ?>">
|
199 |
-
<p class="description"
|
200 |
</td>
|
201 |
</tr>
|
202 |
</tbody>
|
203 |
</table>
|
204 |
-
<p class="submit"><input type="submit" value="<?php _e('Save Changes') ?>" class="button button-primary" id="submit" name="submit"></p>
|
205 |
</form>
|
206 |
</div>
|
207 |
<div class="clear"></div>
|
1 |
<div id="wpbody">
|
2 |
<div class="wrap">
|
3 |
+
<h2><?php _e('Carousel Settings' ,'carouselslider'); ?></h2>
|
4 |
<form action="options.php" method="post">
|
5 |
<?php
|
6 |
settings_fields( 'sis_carousel_settings' );
|
10 |
<tbody>
|
11 |
<tr valign="top">
|
12 |
<th scope="row">
|
13 |
+
<label for="sis_carousel_settings[max_items]"><?php _e('Maximum Items' ,'carouselslider'); ?></label>
|
14 |
</th>
|
15 |
<td>
|
16 |
<input type="number" min="1" max="10" name="sis_carousel_settings[max_items]" id="" value="<?php esc_attr_e($options['max_items']); ?>">
|
17 |
+
<p class="description"><?php _e('This variable allows you to set the maximum amount of items displayed at a time with the widest browser width (window >= 1200)' ,'carouselslider'); ?></p>
|
18 |
</td>
|
19 |
</tr>
|
20 |
<tr valign="top">
|
21 |
<th scope="row">
|
22 |
+
<label for=""><?php _e('Items Desktop' ,'carouselslider'); ?></label>
|
23 |
</th>
|
24 |
<td>
|
25 |
<input type="number" min="1" max="10" name="sis_carousel_settings[items_desktop]" id="" value="<?php esc_attr_e($options['items_desktop']); ?>">
|
26 |
+
<p class="description"><?php _e('This allows you to preset the number of slides visible with (window <= 1199) browser width' ,'carouselslider'); ?></p>
|
27 |
</td>
|
28 |
</tr>
|
29 |
<tr valign="top">
|
30 |
<th scope="row">
|
31 |
+
<label for=""><?php _e('Items Desktop Small' ,'carouselslider'); ?></label>
|
32 |
</th>
|
33 |
<td>
|
34 |
<input type="number" min="1" max="10" name="sis_carousel_settings[items_desktop_small]" id="" value="<?php esc_attr_e($options['items_desktop_small']); ?>">
|
35 |
+
<p class="description"><?php _e('This allows you to preset the number of slides visible with (window <= 979) browser width' ,'carouselslider'); ?></p>
|
36 |
</td>
|
37 |
</tr>
|
38 |
<tr valign="top">
|
39 |
<th scope="row">
|
40 |
+
<label for=""><?php _e('Items Tablet' ,'carouselslider'); ?></label>
|
41 |
</th>
|
42 |
<td>
|
43 |
<input type="number" min="1" max="10" name="sis_carousel_settings[items_tablet]" id="" value="<?php esc_attr_e($options['items_tablet']); ?>">
|
44 |
+
<p class="description"><?php _e('This allows you to preset the number of slides visible with (window <= 768) browser width' ,'carouselslider'); ?></p>
|
45 |
</td>
|
46 |
</tr>
|
47 |
<tr valign="top">
|
48 |
<th scope="row">
|
49 |
+
<label for=""><?php _e('Items Mobile' ,'carouselslider'); ?></label>
|
50 |
</th>
|
51 |
<td>
|
52 |
<input type="number" min="1" max="10" name="sis_carousel_settings[items_mobile]" id="" value="<?php esc_attr_e($options['items_mobile']); ?>">
|
53 |
+
<p class="description"><?php _e('This allows you to preset the number of slides visible with (window <= 479) browser width' ,'carouselslider'); ?></p>
|
54 |
</td>
|
55 |
</tr>
|
56 |
<tr valign="top">
|
57 |
<th scope="row">
|
58 |
+
<label for="sis_carousel_settings[items_single]"><?php _e('Single Item' ,'carouselslider'); ?></label>
|
59 |
</th>
|
60 |
<td>
|
61 |
+
<input type='radio' name='sis_carousel_settings[items_single]' value='false' <?php if ( 'false' == $options['items_single'] ) echo 'checked="checked"'; ?> /> <?php _e('NO' ,'carouselslider'); ?>
|
62 |
+
<input type='radio' name='sis_carousel_settings[items_single]' value='true' <?php if ( 'true' == $options['items_single'] ) echo 'checked="checked"'; ?> /> <?php _e('Yes' ,'carouselslider'); ?>
|
63 |
+
<p class="description"><?php _e('If you select "Yes", it will display only one item and top five options will be automatically stopped.' ,'carouselslider'); ?></p>
|
64 |
</td>
|
65 |
</tr>
|
66 |
<tr valign="top">
|
67 |
<th scope="row">
|
68 |
+
<label for="sis_carousel_settings[transitionstyle]"><?php _e('Transition Style' ,'carouselslider'); ?></label>
|
69 |
</th>
|
70 |
<td>
|
71 |
<select name="sis_carousel_settings[transitionstyle]">
|
72 |
+
<option value="fade" <?php selected( $options['transitionstyle'], 'fade' ); ?>><?php _e('fade' ,'carouselslider'); ?></option>
|
73 |
+
<option value="backSlide" <?php selected( $options['transitionstyle'], 'backSlide' ); ?>><?php _e('backSlide' ,'carouselslider'); ?></option>
|
74 |
+
<option value="goDown" <?php selected( $options['transitionstyle'], 'goDown' ); ?>><?php _e('goDown' ,'carouselslider'); ?></option>
|
75 |
+
<option value="scaleUp" <?php selected( $options['transitionstyle'], 'scaleUp' ); ?>><?php _e('scaleUp' ,'carouselslider'); ?></option>
|
76 |
</select>
|
77 |
+
<p class="description"><?php _e('Transition style works only in modern browsers that support CSS3 translate3d methods and only with single item on screen.' ,'carouselslider'); ?></p>
|
78 |
</td>
|
79 |
</tr>
|
80 |
<tr valign="top">
|
81 |
<th scope="row">
|
82 |
+
<label for=""><?php _e('Slide Speed' ,'carouselslider'); ?></label>
|
83 |
</th>
|
84 |
<td>
|
85 |
<input type="number" name="sis_carousel_settings[slide_speed]" id="" value="<?php esc_attr_e($options['slide_speed']); ?>">
|
86 |
+
<p class="description"><?php _e('Slide speed in milliseconds. Default speed is ‘200’ milliseconds.' ,'carouselslider'); ?></p>
|
87 |
</td>
|
88 |
</tr>
|
89 |
<tr valign="top">
|
90 |
<th scope="row">
|
91 |
+
<label for=""><?php _e('Pagination Speed' ,'carouselslider'); ?></label>
|
92 |
</th>
|
93 |
<td>
|
94 |
<input type="number" name="sis_carousel_settings[pagination_speed]" id="" value="<?php esc_attr_e($options['pagination_speed']); ?>">
|
95 |
+
<p class="description"><?php _e('Pagination speed in milliseconds. Default speed is ‘800’ milliseconds.' ,'carouselslider'); ?></p>
|
96 |
</td>
|
97 |
</tr>
|
98 |
<tr valign="top">
|
99 |
<th scope="row">
|
100 |
+
<label for=""><?php _e('Rewind Speed' ,'carouselslider'); ?></label>
|
101 |
</th>
|
102 |
<td>
|
103 |
<input type="number" name="sis_carousel_settings[rewind_speed]" id="" value="<?php esc_attr_e($options['rewind_speed']); ?>">
|
104 |
+
<p class="description"><?php _e('Rewind speed in milliseconds. Default speed is ‘1000’ milliseconds.' ,'carouselslider'); ?></p>
|
105 |
</td>
|
106 |
</tr>
|
107 |
<tr valign="top">
|
108 |
<th scope="row">
|
109 |
+
<label for="sis_carousel_autoplay"><?php _e('AutoPlay' ,'carouselslider'); ?></label>
|
110 |
</th>
|
111 |
<td>
|
112 |
<input type="text" name="sis_carousel_settings[autoplay]" id="" value="<?php esc_attr_e($options['autoplay']); ?>">
|
113 |
+
<p class="description"><?php _e('Change to any integrer for example ‘autoPlay : 5000’ to play every 5 seconds. If you set ‘autoPlay: true’ default speed will be 5 seconds.' ,'carouselslider'); ?></p>
|
114 |
</td>
|
115 |
</tr>
|
116 |
<tr valign="top">
|
117 |
<th scope="row">
|
118 |
+
<label for=""><?php _e('Stop On Hover' ,'carouselslider'); ?></label>
|
119 |
</th>
|
120 |
<td>
|
121 |
+
<input type='radio' name='sis_carousel_settings[stoponhover]' value='false' <?php if ( 'false' == $options['stoponhover'] ) echo 'checked="checked"'; ?> /> <?php _e('NO' ,'carouselslider'); ?>
|
122 |
+
<input type='radio' name='sis_carousel_settings[stoponhover]' value='true' <?php if ( 'true' == $options['stoponhover'] ) echo 'checked="checked"'; ?> /> <?php _e('Yes' ,'carouselslider'); ?>
|
123 |
+
<p class="description"><?php _e('Stop autoplay on mouse hover.' ,'carouselslider'); ?></p>
|
124 |
</td>
|
125 |
</tr>
|
126 |
<tr valign="top">
|
127 |
<th scope="row">
|
128 |
+
<label for=""><?php _e('Navigation' ,'carouselslider'); ?></label>
|
129 |
</th>
|
130 |
<td>
|
131 |
+
<input type='radio' name='sis_carousel_settings[navigation]' value='false' <?php if ( 'false' == $options['navigation'] ) echo 'checked="checked"'; ?> /> <?php _e('NO' ,'carouselslider'); ?>
|
132 |
+
<input type='radio' name='sis_carousel_settings[navigation]' value='true' <?php if ( 'true' == $options['navigation'] ) echo 'checked="checked"'; ?> /> <?php _e('Yes' ,'carouselslider'); ?>
|
133 |
+
<p class="description"><?php _e('Display ‘next’ and ‘prev’ buttons.' ,'carouselslider'); ?></p>
|
134 |
</td>
|
135 |
</tr>
|
136 |
<tr valign="top">
|
137 |
<th scope="row">
|
138 |
+
<label for="sis_carousel_settings[navigation_bg_color]"><?php _e('Navigation Color' ,'carouselslider'); ?></label>
|
139 |
</th>
|
140 |
<td>
|
141 |
<input type="text" name="sis_carousel_settings[navigation_bg_color]" id="navigation_bg_color" value="<?php esc_attr_e($options['navigation_bg_color']); ?>">
|
142 |
+
<p class="description"><?php _e('Choose color for Navigation Background.' ,'carouselslider'); ?></p>
|
143 |
</td>
|
144 |
</tr>
|
145 |
<tr valign="top">
|
146 |
<th scope="row">
|
147 |
+
<label for="sis_carousel_settings[navigation_arrow_color]"><?php _e('Navigation Arrow Color' ,'carouselslider'); ?></label>
|
148 |
</th>
|
149 |
<td>
|
150 |
<input type="text" name="sis_carousel_settings[navigation_arrow_color]" id="navigation_arrow_color" value="<?php esc_attr_e($options['navigation_arrow_color']); ?>">
|
151 |
+
<p class="description"><?php _e('Choose color for Navigation Arrow.' ,'carouselslider'); ?></p>
|
152 |
</td>
|
153 |
</tr>
|
154 |
<tr valign="top">
|
155 |
<th scope="row">
|
156 |
+
<label for=""><?php _e('Scroll Per Page' ,'carouselslider'); ?></label>
|
157 |
</th>
|
158 |
<td>
|
159 |
+
<input type='radio' name='sis_carousel_settings[scrollperpage]' value='false' <?php if ( 'false' == $options['scrollperpage'] ) echo 'checked="checked"'; ?> /> <?php _e('NO' ,'carouselslider'); ?>
|
160 |
+
<input type='radio' name='sis_carousel_settings[scrollperpage]' value='true' <?php if ( 'true' == $options['scrollperpage'] ) echo 'checked="checked"'; ?> /> <?php _e('Yes' ,'carouselslider'); ?>
|
161 |
+
<p class="description"><?php _e('Scroll per page not per item. This affect next/prev buttons and mouse/touch dragging.' ,'carouselslider'); ?></p>
|
162 |
</td>
|
163 |
</tr>
|
164 |
<tr valign="top">
|
165 |
<th scope="row">
|
166 |
+
<label for=""><?php _e('Pagination' ,'carouselslider'); ?></label>
|
167 |
</th>
|
168 |
<td>
|
169 |
+
<input type='radio' name='sis_carousel_settings[pagination]' value='false' <?php if ( 'false' == $options['pagination'] ) echo 'checked="checked"'; ?> /> <?php _e('NO' ,'carouselslider'); ?>
|
170 |
+
<input type='radio' name='sis_carousel_settings[pagination]' value='true' <?php if ( 'true' == $options['pagination'] ) echo 'checked="checked"'; ?> /> <?php _e('Yes' ,'carouselslider'); ?>
|
171 |
+
<p class="description"><?php _e('Show pagination.' ,'carouselslider'); ?></p>
|
172 |
</td>
|
173 |
</tr>
|
174 |
<tr valign="top">
|
175 |
<th scope="row">
|
176 |
+
<label for=""><?php _e('Pagination Color' ,'carouselslider'); ?></label>
|
177 |
</th>
|
178 |
<td>
|
179 |
<input type="text" name="sis_carousel_settings[pagination_bg_color]" id="pagination_bg_color" value="<?php esc_attr_e($options['pagination_bg_color']); ?>">
|
180 |
+
<p class="description"><?php _e('Choose color for Pagination Background.' ,'carouselslider'); ?></p>
|
181 |
</td>
|
182 |
</tr>
|
183 |
<tr valign="top">
|
184 |
<th scope="row">
|
185 |
+
<label for=""><?php _e('Pagination Numbers' ,'carouselslider'); ?></label>
|
186 |
</th>
|
187 |
<td>
|
188 |
+
<input type='radio' name='sis_carousel_settings[paginationnumbers]' value='false' <?php if ( 'false' == $options['paginationnumbers'] ) echo 'checked="checked"'; ?> /> <?php _e('NO' ,'carouselslider'); ?>
|
189 |
+
<input type='radio' name='sis_carousel_settings[paginationnumbers]' value='true' <?php if ( 'true' == $options['paginationnumbers'] ) echo 'checked="checked"'; ?> /> <?php _e('Yes' ,'carouselslider'); ?>
|
190 |
+
<p class="description"><?php _e('Show numbers inside pagination buttons' ,'carouselslider'); ?></p>
|
191 |
</td>
|
192 |
</tr>
|
193 |
<tr valign="top">
|
194 |
<th scope="row">
|
195 |
+
<label for=""><?php _e('Pagination Number Color' ,'carouselslider'); ?></label>
|
196 |
</th>
|
197 |
<td>
|
198 |
<input type="text" name="sis_carousel_settings[pagination_num_color]" id="pagination_num_color" value="<?php esc_attr_e($options['pagination_num_color']); ?>">
|
199 |
+
<p class="description"><?php _e('Choose color for Pagination Number.' ,'carouselslider'); ?></p>
|
200 |
</td>
|
201 |
</tr>
|
202 |
</tbody>
|
203 |
</table>
|
204 |
+
<p class="submit"><input type="submit" value="<?php _e('Save Changes' ,'carouselslider') ?>" class="button button-primary" id="submit" name="submit"></p>
|
205 |
</form>
|
206 |
</div>
|
207 |
<div class="clear"></div>
|
carousel.php
CHANGED
@@ -3,9 +3,11 @@
|
|
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.
|
7 |
Author: Sayful Islam
|
8 |
Author URI: http://sayful.net
|
|
|
|
|
9 |
License: GPLv2 or later
|
10 |
*/
|
11 |
|
@@ -50,6 +52,14 @@ function sis_carousel_check_WP_ver()
|
|
50 |
}
|
51 |
register_activation_hook( __FILE__, 'sis_carousel_check_WP_ver' );
|
52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
//register settings
|
54 |
function sis_carousel_settings_init(){
|
55 |
register_setting( 'sis_carousel_settings', 'sis_carousel_settings' );
|
@@ -78,7 +88,7 @@ add_action('init', 'sis_carousel_plugin_scripts');
|
|
78 |
/*Plugin options page */
|
79 |
|
80 |
function sis_carousel_custom_menu_page(){
|
81 |
-
add_options_page( 'Carousel Settings', 'Carousels', 'manage_options', 'carousel-slider/carousel-options.php');
|
82 |
}
|
83 |
add_action( 'admin_menu', 'sis_carousel_custom_menu_page' );
|
84 |
|
@@ -149,44 +159,44 @@ function sis_carousel_wrapper_shortcode( $atts, $content = null ) {
|
|
149 |
extract(shortcode_atts(array(
|
150 |
'id' =>'carouselsc',
|
151 |
'items' =>'4',
|
152 |
-
'
|
153 |
-
'
|
154 |
-
'
|
155 |
-
'
|
156 |
-
'
|
157 |
-
'
|
158 |
-
'
|
159 |
-
'
|
160 |
-
'
|
161 |
-
'
|
162 |
'navigation' =>'false',
|
163 |
-
'
|
164 |
'pagination' =>'false',
|
165 |
-
'
|
166 |
-
'
|
167 |
), $atts));
|
168 |
return '<div id="'.$id.'" class="owl-carousel">'.do_shortcode($content).'</div>
|
169 |
<script type="text/javascript">
|
170 |
jQuery(document).ready(function() {
|
171 |
jQuery("#'.$id.'").owlCarousel({
|
172 |
items : '.$items.',
|
173 |
-
itemsDesktop : [1199,'.$
|
174 |
-
itemsDesktopSmall : [980,'.$
|
175 |
-
itemsTablet: [768,'.$
|
176 |
-
itemsMobile : [479,'.$
|
177 |
-
singleItem : '.$
|
178 |
-
slideSpeed : '.$
|
179 |
-
paginationSpeed : '.$
|
180 |
-
rewindSpeed : '.$
|
181 |
-
autoPlay : '.$
|
182 |
-
stopOnHover : '.$
|
183 |
navigation : '.$navigation.',
|
184 |
navigationText : ["<",">"],
|
185 |
rewindNav : true,
|
186 |
-
scrollPerPage : '.$
|
187 |
pagination : '.$pagination.',
|
188 |
-
paginationNumbers: '.$
|
189 |
-
transitionStyle : "'.$
|
190 |
});
|
191 |
});
|
192 |
</script>';
|
@@ -196,8 +206,9 @@ add_shortcode( 'carousel', 'sis_carousel_wrapper_shortcode' );
|
|
196 |
function sis_carousel_shortcode( $atts, $content = null ) {
|
197 |
extract(shortcode_atts(array(
|
198 |
'img_link' =>'',
|
|
|
199 |
), $atts));
|
200 |
-
return '<div class=""><img src="'.$img_link.'"></div>';
|
201 |
}
|
202 |
add_shortcode( 'item', 'sis_carousel_shortcode' );
|
203 |
|
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.2
|
7 |
Author: Sayful Islam
|
8 |
Author URI: http://sayful.net
|
9 |
+
Text Domain: carouselslider
|
10 |
+
Domain Path: /languages/
|
11 |
License: GPLv2 or later
|
12 |
*/
|
13 |
|
52 |
}
|
53 |
register_activation_hook( __FILE__, 'sis_carousel_check_WP_ver' );
|
54 |
|
55 |
+
/**
|
56 |
+
* Load plugin textdomain.
|
57 |
+
*/
|
58 |
+
function sis_carousel_load_textdomain() {
|
59 |
+
load_plugin_textdomain( 'carouselslider', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
60 |
+
}
|
61 |
+
add_action( 'plugins_loaded', 'sis_carousel_load_textdomain' );
|
62 |
+
|
63 |
//register settings
|
64 |
function sis_carousel_settings_init(){
|
65 |
register_setting( 'sis_carousel_settings', 'sis_carousel_settings' );
|
88 |
/*Plugin options page */
|
89 |
|
90 |
function sis_carousel_custom_menu_page(){
|
91 |
+
add_options_page( __('Carousel Settings', 'carouselslider'), __('Carousels', 'carouselslider'), 'manage_options', 'carousel-slider/carousel-options.php');
|
92 |
}
|
93 |
add_action( 'admin_menu', 'sis_carousel_custom_menu_page' );
|
94 |
|
159 |
extract(shortcode_atts(array(
|
160 |
'id' =>'carouselsc',
|
161 |
'items' =>'4',
|
162 |
+
'itemsdesktop' =>'4',
|
163 |
+
'itemsdesktopsmall' =>'4',
|
164 |
+
'itemstablet' =>'3',
|
165 |
+
'itemsmobile' =>'2',
|
166 |
+
'singleitem' =>'false',
|
167 |
+
'slidespeed' =>'200',
|
168 |
+
'paginationspeed' =>'800',
|
169 |
+
'rewindspeed' =>'1000',
|
170 |
+
'autoplay' =>'true',
|
171 |
+
'stoponhover' =>'true',
|
172 |
'navigation' =>'false',
|
173 |
+
'scrollperpage' =>'false',
|
174 |
'pagination' =>'false',
|
175 |
+
'paginationnumbers' =>'false',
|
176 |
+
'transitionstyle' =>'fade',
|
177 |
), $atts));
|
178 |
return '<div id="'.$id.'" class="owl-carousel">'.do_shortcode($content).'</div>
|
179 |
<script type="text/javascript">
|
180 |
jQuery(document).ready(function() {
|
181 |
jQuery("#'.$id.'").owlCarousel({
|
182 |
items : '.$items.',
|
183 |
+
itemsDesktop : [1199,'.$itemsdesktop.'],
|
184 |
+
itemsDesktopSmall : [980,'.$itemsdesktopsmall.'],
|
185 |
+
itemsTablet: [768,'.$itemstablet.'],
|
186 |
+
itemsMobile : [479,'.$itemsmobile.'],
|
187 |
+
singleItem : '.$singleitem.',
|
188 |
+
slideSpeed : '.$slidespeed.',
|
189 |
+
paginationSpeed : '.$paginationspeed.',
|
190 |
+
rewindSpeed : '.$rewindspeed.',
|
191 |
+
autoPlay : '.$autoplay.',
|
192 |
+
stopOnHover : '.$stoponhover.',
|
193 |
navigation : '.$navigation.',
|
194 |
navigationText : ["<",">"],
|
195 |
rewindNav : true,
|
196 |
+
scrollPerPage : '.$scrollperpage.',
|
197 |
pagination : '.$pagination.',
|
198 |
+
paginationNumbers: '.$paginationnumbers.',
|
199 |
+
transitionStyle : "'.$transitionstyle.'",
|
200 |
});
|
201 |
});
|
202 |
</script>';
|
206 |
function sis_carousel_shortcode( $atts, $content = null ) {
|
207 |
extract(shortcode_atts(array(
|
208 |
'img_link' =>'',
|
209 |
+
'href' =>'#',
|
210 |
), $atts));
|
211 |
+
return '<div class=""><a href="'.$href.'"><img src="'.$img_link.'"></a></div>';
|
212 |
}
|
213 |
add_shortcode( 'item', 'sis_carousel_shortcode' );
|
214 |
|
index.php
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
1 |
+
<?php
|
2 |
+
//Silence is gold
|
js/carousel-button.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
|
4 |
init : function(ed, url) {
|
5 |
ed.addCommand('siscarouseltriger', function() {
|
6 |
-
return_text = '[carousel id=""][item img_link=""][item img_link=""][item img_link=""][item img_link=""][item img_link=""][/carousel]';
|
7 |
ed.execCommand('mceInsertContent', 0, return_text);
|
8 |
});
|
9 |
|
3 |
|
4 |
init : function(ed, url) {
|
5 |
ed.addCommand('siscarouseltriger', function() {
|
6 |
+
return_text = '[carousel id=""][item href="" img_link=""][item href="" img_link=""][item href="" img_link=""][item href="" img_link=""][item href="" img_link=""][/carousel]';
|
7 |
ed.execCommand('mceInsertContent', 0, return_text);
|
8 |
});
|
9 |
|
languages/carouselslider.pot
ADDED
@@ -0,0 +1,293 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Copyright (C) 2014
|
2 |
+
# This file is distributed under the same license as the package.
|
3 |
+
msgid ""
|
4 |
+
msgstr ""
|
5 |
+
"Project-Id-Version: \n"
|
6 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/carousel-slider\n"
|
7 |
+
"POT-Creation-Date: 2014-09-07 13:41:21+00:00\n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"PO-Revision-Date: 2014-MO-DA HO:MI+ZONE\n"
|
12 |
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
+
|
15 |
+
#: carousel-img-type.php:6
|
16 |
+
msgctxt "Post Type General Name"
|
17 |
+
msgid "Carousels"
|
18 |
+
msgstr ""
|
19 |
+
|
20 |
+
#: carousel-img-type.php:7
|
21 |
+
msgctxt "Post Type Singular Name"
|
22 |
+
msgid "Carousel"
|
23 |
+
msgstr ""
|
24 |
+
|
25 |
+
#: carousel-img-type.php:8 carousel.php:81
|
26 |
+
msgid "Carousels"
|
27 |
+
msgstr ""
|
28 |
+
|
29 |
+
#: carousel-img-type.php:9
|
30 |
+
msgid "Parent Carousel:"
|
31 |
+
msgstr ""
|
32 |
+
|
33 |
+
#: carousel-img-type.php:10
|
34 |
+
msgid "All Carousels"
|
35 |
+
msgstr ""
|
36 |
+
|
37 |
+
#: carousel-img-type.php:11
|
38 |
+
msgid "View Carousel"
|
39 |
+
msgstr ""
|
40 |
+
|
41 |
+
#: carousel-img-type.php:12
|
42 |
+
msgid "Add New Carousel"
|
43 |
+
msgstr ""
|
44 |
+
|
45 |
+
#: carousel-img-type.php:13
|
46 |
+
msgid "Add New"
|
47 |
+
msgstr ""
|
48 |
+
|
49 |
+
#: carousel-img-type.php:14
|
50 |
+
msgid "Edit Carousel"
|
51 |
+
msgstr ""
|
52 |
+
|
53 |
+
#: carousel-img-type.php:15
|
54 |
+
msgid "Update Carousel"
|
55 |
+
msgstr ""
|
56 |
+
|
57 |
+
#: carousel-img-type.php:16
|
58 |
+
msgid "Search Carousel"
|
59 |
+
msgstr ""
|
60 |
+
|
61 |
+
#: carousel-img-type.php:17
|
62 |
+
msgid "Not found"
|
63 |
+
msgstr ""
|
64 |
+
|
65 |
+
#: carousel-img-type.php:18
|
66 |
+
msgid "Not found in Trash"
|
67 |
+
msgstr ""
|
68 |
+
|
69 |
+
#: carousel-img-type.php:27 carousel-img-type.php:28
|
70 |
+
msgid "Carousel"
|
71 |
+
msgstr ""
|
72 |
+
|
73 |
+
#: carousel-img-type.php:57
|
74 |
+
msgid "Upload Carousel Image"
|
75 |
+
msgstr ""
|
76 |
+
|
77 |
+
#: carousel-options.php:3 carousel.php:81
|
78 |
+
msgid "Carousel Settings"
|
79 |
+
msgstr ""
|
80 |
+
|
81 |
+
#: carousel-options.php:13
|
82 |
+
msgid "Maximum Items"
|
83 |
+
msgstr ""
|
84 |
+
|
85 |
+
#: carousel-options.php:17
|
86 |
+
msgid ""
|
87 |
+
"This variable allows you to set the maximum amount of items displayed at a "
|
88 |
+
"time with the widest browser width (window >= 1200)"
|
89 |
+
msgstr ""
|
90 |
+
|
91 |
+
#: carousel-options.php:22
|
92 |
+
msgid "Items Desktop"
|
93 |
+
msgstr ""
|
94 |
+
|
95 |
+
#: carousel-options.php:26
|
96 |
+
msgid ""
|
97 |
+
"This allows you to preset the number of slides visible with (window <"
|
98 |
+
"= 1199) browser width"
|
99 |
+
msgstr ""
|
100 |
+
|
101 |
+
#: carousel-options.php:31
|
102 |
+
msgid "Items Desktop Small"
|
103 |
+
msgstr ""
|
104 |
+
|
105 |
+
#: carousel-options.php:35
|
106 |
+
msgid ""
|
107 |
+
"This allows you to preset the number of slides visible with (window <"
|
108 |
+
"= 979) browser width"
|
109 |
+
msgstr ""
|
110 |
+
|
111 |
+
#: carousel-options.php:40
|
112 |
+
msgid "Items Tablet"
|
113 |
+
msgstr ""
|
114 |
+
|
115 |
+
#: carousel-options.php:44
|
116 |
+
msgid ""
|
117 |
+
"This allows you to preset the number of slides visible with (window <"
|
118 |
+
"= 768) browser width"
|
119 |
+
msgstr ""
|
120 |
+
|
121 |
+
#: carousel-options.php:49
|
122 |
+
msgid "Items Mobile"
|
123 |
+
msgstr ""
|
124 |
+
|
125 |
+
#: carousel-options.php:53
|
126 |
+
msgid ""
|
127 |
+
"This allows you to preset the number of slides visible with (window <"
|
128 |
+
"= 479) browser width"
|
129 |
+
msgstr ""
|
130 |
+
|
131 |
+
#: carousel-options.php:58
|
132 |
+
msgid "Single Item"
|
133 |
+
msgstr ""
|
134 |
+
|
135 |
+
#: carousel-options.php:61 carousel-options.php:121 carousel-options.php:131
|
136 |
+
#: carousel-options.php:159 carousel-options.php:169 carousel-options.php:188
|
137 |
+
msgid "NO"
|
138 |
+
msgstr ""
|
139 |
+
|
140 |
+
#: carousel-options.php:62 carousel-options.php:122 carousel-options.php:132
|
141 |
+
#: carousel-options.php:160 carousel-options.php:170 carousel-options.php:189
|
142 |
+
msgid "Yes"
|
143 |
+
msgstr ""
|
144 |
+
|
145 |
+
#: carousel-options.php:63
|
146 |
+
msgid ""
|
147 |
+
"If you select \"Yes\", it will display only one item and top five options "
|
148 |
+
"will be automatically stopped."
|
149 |
+
msgstr ""
|
150 |
+
|
151 |
+
#: carousel-options.php:68
|
152 |
+
msgid "Transition Style"
|
153 |
+
msgstr ""
|
154 |
+
|
155 |
+
#: carousel-options.php:72
|
156 |
+
msgid "fade"
|
157 |
+
msgstr ""
|
158 |
+
|
159 |
+
#: carousel-options.php:73
|
160 |
+
msgid "backSlide"
|
161 |
+
msgstr ""
|
162 |
+
|
163 |
+
#: carousel-options.php:74
|
164 |
+
msgid "goDown"
|
165 |
+
msgstr ""
|
166 |
+
|
167 |
+
#: carousel-options.php:75
|
168 |
+
msgid "scaleUp"
|
169 |
+
msgstr ""
|
170 |
+
|
171 |
+
#: carousel-options.php:77
|
172 |
+
msgid ""
|
173 |
+
"Transition style works only in modern browsers that support CSS3 translate3d "
|
174 |
+
"methods and only with single item on screen."
|
175 |
+
msgstr ""
|
176 |
+
|
177 |
+
#: carousel-options.php:82
|
178 |
+
msgid "Slide Speed"
|
179 |
+
msgstr ""
|
180 |
+
|
181 |
+
#: carousel-options.php:86
|
182 |
+
msgid ""
|
183 |
+
"Slide speed in milliseconds. Default speed is ‘200’ milliseconds."
|
184 |
+
msgstr ""
|
185 |
+
|
186 |
+
#: carousel-options.php:91
|
187 |
+
msgid "Pagination Speed"
|
188 |
+
msgstr ""
|
189 |
+
|
190 |
+
#: carousel-options.php:95
|
191 |
+
msgid ""
|
192 |
+
"Pagination speed in milliseconds. Default speed is ‘800’ "
|
193 |
+
"milliseconds."
|
194 |
+
msgstr ""
|
195 |
+
|
196 |
+
#: carousel-options.php:100
|
197 |
+
msgid "Rewind Speed"
|
198 |
+
msgstr ""
|
199 |
+
|
200 |
+
#: carousel-options.php:104
|
201 |
+
msgid ""
|
202 |
+
"Rewind speed in milliseconds. Default speed is ‘1000’ "
|
203 |
+
"milliseconds."
|
204 |
+
msgstr ""
|
205 |
+
|
206 |
+
#: carousel-options.php:109
|
207 |
+
msgid "AutoPlay"
|
208 |
+
msgstr ""
|
209 |
+
|
210 |
+
#: carousel-options.php:113
|
211 |
+
msgid ""
|
212 |
+
"Change to any integrer for example ‘autoPlay : 5000’ to play "
|
213 |
+
"every 5 seconds. If you set ‘autoPlay: true’ default speed will "
|
214 |
+
"be 5 seconds."
|
215 |
+
msgstr ""
|
216 |
+
|
217 |
+
#: carousel-options.php:118
|
218 |
+
msgid "Stop On Hover"
|
219 |
+
msgstr ""
|
220 |
+
|
221 |
+
#: carousel-options.php:123
|
222 |
+
msgid "Stop autoplay on mouse hover."
|
223 |
+
msgstr ""
|
224 |
+
|
225 |
+
#: carousel-options.php:128
|
226 |
+
msgid "Navigation"
|
227 |
+
msgstr ""
|
228 |
+
|
229 |
+
#: carousel-options.php:133
|
230 |
+
msgid "Display ‘next’ and ‘prev’ buttons."
|
231 |
+
msgstr ""
|
232 |
+
|
233 |
+
#: carousel-options.php:138
|
234 |
+
msgid "Navigation Color"
|
235 |
+
msgstr ""
|
236 |
+
|
237 |
+
#: carousel-options.php:142
|
238 |
+
msgid "Choose color for Navigation Background."
|
239 |
+
msgstr ""
|
240 |
+
|
241 |
+
#: carousel-options.php:147
|
242 |
+
msgid "Navigation Arrow Color"
|
243 |
+
msgstr ""
|
244 |
+
|
245 |
+
#: carousel-options.php:151
|
246 |
+
msgid "Choose color for Navigation Arrow."
|
247 |
+
msgstr ""
|
248 |
+
|
249 |
+
#: carousel-options.php:156
|
250 |
+
msgid "Scroll Per Page"
|
251 |
+
msgstr ""
|
252 |
+
|
253 |
+
#: carousel-options.php:161
|
254 |
+
msgid ""
|
255 |
+
"Scroll per page not per item. This affect next/prev buttons and mouse/touch "
|
256 |
+
"dragging."
|
257 |
+
msgstr ""
|
258 |
+
|
259 |
+
#: carousel-options.php:166
|
260 |
+
msgid "Pagination"
|
261 |
+
msgstr ""
|
262 |
+
|
263 |
+
#: carousel-options.php:171
|
264 |
+
msgid "Show pagination."
|
265 |
+
msgstr ""
|
266 |
+
|
267 |
+
#: carousel-options.php:176
|
268 |
+
msgid "Pagination Color"
|
269 |
+
msgstr ""
|
270 |
+
|
271 |
+
#: carousel-options.php:180
|
272 |
+
msgid "Choose color for Pagination Background."
|
273 |
+
msgstr ""
|
274 |
+
|
275 |
+
#: carousel-options.php:185
|
276 |
+
msgid "Pagination Numbers"
|
277 |
+
msgstr ""
|
278 |
+
|
279 |
+
#: carousel-options.php:190
|
280 |
+
msgid "Show numbers inside pagination buttons"
|
281 |
+
msgstr ""
|
282 |
+
|
283 |
+
#: carousel-options.php:195
|
284 |
+
msgid "Pagination Number Color"
|
285 |
+
msgstr ""
|
286 |
+
|
287 |
+
#: carousel-options.php:199
|
288 |
+
msgid "Choose color for Pagination Number."
|
289 |
+
msgstr ""
|
290 |
+
|
291 |
+
#: carousel-options.php:204
|
292 |
+
msgid "Save Changes"
|
293 |
+
msgstr ""
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: sayful
|
3 |
Tags: carousel, carousel slider, image carousel, slider, responsive slider,
|
4 |
Requires at least: 3.0
|
5 |
-
Tested up to:
|
6 |
-
Stable tag: 1.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -21,19 +21,19 @@ Or you can paste following to add carousel slider to your theme:
|
|
21 |
|
22 |
`<?php echo do_shortcode('[all-carousels]'); ?>`
|
23 |
|
24 |
-
If you want to use multiple carousel slider at diffrent page or post click on "Add Carousel Slider" button from WordPress visual editor [view screenshot](http://s.w.org/plugins/carousel-slider/screenshot-3.png?r=943201) and inside `img_link=''` put you image link.
|
25 |
|
26 |
or write the following code:
|
27 |
|
28 |
-
`[carousel id="unique-id"][item img_link=""][/carousel]`
|
29 |
|
30 |
To change default options, you can add the following attributes:
|
31 |
|
32 |
`[carousel id="" items="" itemsDesktop="" itemsDesktopSmall="" itemsTablet="" itemsMobile="" slideSpeed="" paginationSpeed="" rewindSpeed="" singleItem="false|true" autoPlay="false|true" stopOnHover="false|true" navigation="false|true" scrollPerPage="false|true" pagination="false|true" paginationNumbers="false|true" transitionStyle="fade|backSlide|goDown|scaleUp"][/carousel]`
|
33 |
|
34 |
-
Repeat `[item img_link=""]` as many image as you want. Inside `img_link=''` put you image link like
|
35 |
|
36 |
-
`img_link='http://lorempixel.com/400/200/sports/1'`
|
37 |
|
38 |
To get image from your WordPress Media, go to Media >> Library and click on image which one you want to insert and copy URL and paste it into `img_link=''` like this:
|
39 |
|
@@ -41,7 +41,7 @@ To get image from your WordPress Media, go to Media >> Library and click on imag
|
|
41 |
|
42 |
Here is a complete example of code of carousel slider with ten image:
|
43 |
|
44 |
-
`[carousel id="carousel-1"][item img_link="http://lorempixel.com/400/200/sports/1"][item img_link="http://lorempixel.com/400/200/sports/2"][item img_link="http://lorempixel.com/400/200/sports/3"][item img_link="http://lorempixel.com/400/200/sports/4"][item img_link="http://lorempixel.com/400/200/sports/5"][item img_link="http://lorempixel.com/400/200/sports/6"][item img_link="http://lorempixel.com/400/200/sports/7"][item img_link="http://lorempixel.com/400/200/sports/8"][item img_link="http://lorempixel.com/400/200/sports/9"][item img_link="http://lorempixel.com/400/200/sports/10"][/carousel]`
|
45 |
|
46 |
<h1>Features</h1>
|
47 |
|
@@ -89,8 +89,18 @@ Do you have questions or issues with Carousel Slider? [Ask for support here](htt
|
|
89 |
|
90 |
== Changelog ==
|
91 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
= version 1.0 =
|
93 |
-
|
|
|
94 |
|
95 |
== Upgrade Notice ==
|
96 |
Upgrade the plugin to get more features and better performance.
|
2 |
Contributors: sayful
|
3 |
Tags: carousel, carousel slider, image carousel, slider, responsive slider,
|
4 |
Requires at least: 3.0
|
5 |
+
Tested up to: 4.0
|
6 |
+
Stable tag: 1.2
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
21 |
|
22 |
`<?php echo do_shortcode('[all-carousels]'); ?>`
|
23 |
|
24 |
+
If you want to use multiple carousel slider at diffrent page or post click on "Add Carousel Slider" button from WordPress visual editor [view screenshot](http://s.w.org/plugins/carousel-slider/screenshot-3.png?r=943201) and inside `img_link=''` put you image link and inside href="" put post, page or media link.
|
25 |
|
26 |
or write the following code:
|
27 |
|
28 |
+
`[carousel id="unique-id"][item href="" img_link=""][/carousel]`
|
29 |
|
30 |
To change default options, you can add the following attributes:
|
31 |
|
32 |
`[carousel id="" items="" itemsDesktop="" itemsDesktopSmall="" itemsTablet="" itemsMobile="" slideSpeed="" paginationSpeed="" rewindSpeed="" singleItem="false|true" autoPlay="false|true" stopOnHover="false|true" navigation="false|true" scrollPerPage="false|true" pagination="false|true" paginationNumbers="false|true" transitionStyle="fade|backSlide|goDown|scaleUp"][/carousel]`
|
33 |
|
34 |
+
Repeat `[item href="" img_link=""]` as many image as you want. Inside `img_link=''` put you image link like
|
35 |
|
36 |
+
`img_link='http://lorempixel.com/400/200/sports/1'` and inside `href=""` put post, page or media link
|
37 |
|
38 |
To get image from your WordPress Media, go to Media >> Library and click on image which one you want to insert and copy URL and paste it into `img_link=''` like this:
|
39 |
|
41 |
|
42 |
Here is a complete example of code of carousel slider with ten image:
|
43 |
|
44 |
+
`[carousel id="carousel-1"][item href="http://sayful.net" img_link="http://lorempixel.com/400/200/sports/1"][item img_link="http://lorempixel.com/400/200/sports/2"][item img_link="http://lorempixel.com/400/200/sports/3"][item img_link="http://lorempixel.com/400/200/sports/4"][item img_link="http://lorempixel.com/400/200/sports/5"][item img_link="http://lorempixel.com/400/200/sports/6"][item img_link="http://lorempixel.com/400/200/sports/7"][item img_link="http://lorempixel.com/400/200/sports/8"][item img_link="http://lorempixel.com/400/200/sports/9"][item img_link="http://lorempixel.com/400/200/sports/10"][/carousel]`
|
45 |
|
46 |
<h1>Features</h1>
|
47 |
|
89 |
|
90 |
== Changelog ==
|
91 |
|
92 |
+
= version 1.2 =
|
93 |
+
|
94 |
+
* Fixed bugs regarding shortcode.
|
95 |
+
* Translation ready
|
96 |
+
|
97 |
+
= version 1.1 =
|
98 |
+
|
99 |
+
* Fixed some bugs.
|
100 |
+
|
101 |
= version 1.0 =
|
102 |
+
|
103 |
+
* Implementation of basic functionality.
|
104 |
|
105 |
== Upgrade Notice ==
|
106 |
Upgrade the plugin to get more features and better performance.
|