Version Description
Jun 11, 2022 = * Improved: Move Gutenberg assets to the assets folder from src. * Fix: The premium page warnings. * Fix: The popup video position on the premium page.
Download this release
Release Info
Developer | Shamimmiashuhagh |
Plugin | Carousel, Slider, Gallery by WP Carousel – Image Carousel & Photo Gallery, Post Carousel & Post Grid, Product Carousel & Product Grid for WooCommerce |
Version | 2.4.8 |
Comparing to | |
See all releases |
Code changes from version 2.4.7 to 2.4.8
- admin/GutenbergBlock/{src → assets}/wp-carousel-icon.svg +0 -0
- admin/GutenbergBlock/{src → assets}/wpc-block-preview.svg +0 -0
- admin/GutenbergBlock/build/index.asset.php +0 -1
- admin/GutenbergBlock/build/index.js +365 -1
- admin/css/modal-video.min.css +1 -1
- admin/views/premium.php +30 -13
- languages/wp-carousel-free.pot +0 -0
- public/css/wp-carousel-free-public.css +14 -1
- public/css/wp-carousel-free-public.min.css +1 -1
- readme.txt +6 -1
- wp-carousel-free.php +2 -2
admin/GutenbergBlock/{src → assets}/wp-carousel-icon.svg
RENAMED
File without changes
|
admin/GutenbergBlock/{src → assets}/wpc-block-preview.svg
RENAMED
File without changes
|
admin/GutenbergBlock/build/index.asset.php
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-escape-html', 'wp-i18n'), 'version' => '2fc517e69f34a6ebfeaf');
|
|
admin/GutenbergBlock/build/index.js
CHANGED
@@ -1 +1,365 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/******/ (function() { // webpackBootstrap
|
2 |
+
/******/ "use strict";
|
3 |
+
/******/ var __webpack_modules__ = ({
|
4 |
+
|
5 |
+
/***/ "./src/shortcode/blockIcon.js":
|
6 |
+
/*!************************************!*\
|
7 |
+
!*** ./src/shortcode/blockIcon.js ***!
|
8 |
+
\************************************/
|
9 |
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
10 |
+
|
11 |
+
__webpack_require__.r(__webpack_exports__);
|
12 |
+
/* harmony import */ var _wordpress_escape_html__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/escape-html */ "@wordpress/escape-html");
|
13 |
+
/* harmony import */ var _wordpress_escape_html__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_0__);
|
14 |
+
|
15 |
+
const el = wp.element.createElement;
|
16 |
+
const icons = {};
|
17 |
+
icons.spwpcfIcon = el('img', {
|
18 |
+
src: (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_0__.escapeAttribute)(sp_wp_carousel_free.url + 'admin/GutenbergBlock/assets/wp-carousel-icon.svg')
|
19 |
+
});
|
20 |
+
/* harmony default export */ __webpack_exports__["default"] = (icons);
|
21 |
+
|
22 |
+
/***/ }),
|
23 |
+
|
24 |
+
/***/ "./src/shortcode/dynamicShortcode.js":
|
25 |
+
/*!*******************************************!*\
|
26 |
+
!*** ./src/shortcode/dynamicShortcode.js ***!
|
27 |
+
\*******************************************/
|
28 |
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
29 |
+
|
30 |
+
__webpack_require__.r(__webpack_exports__);
|
31 |
+
/* harmony import */ var _wordpress_escape_html__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/escape-html */ "@wordpress/escape-html");
|
32 |
+
/* harmony import */ var _wordpress_escape_html__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_0__);
|
33 |
+
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
|
34 |
+
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
|
35 |
+
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
|
36 |
+
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__);
|
37 |
+
/**
|
38 |
+
* Shortcode select component.
|
39 |
+
*/
|
40 |
+
|
41 |
+
|
42 |
+
|
43 |
+
const el = _wordpress_element__WEBPACK_IMPORTED_MODULE_2__.createElement;
|
44 |
+
|
45 |
+
const DynamicShortcodeInput = _ref => {
|
46 |
+
let {
|
47 |
+
attributes: {
|
48 |
+
shortcode
|
49 |
+
},
|
50 |
+
shortCodeList,
|
51 |
+
shortcodeUpdate
|
52 |
+
} = _ref;
|
53 |
+
return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.Fragment, null, el('div', {
|
54 |
+
className: 'spwpcf-gutenberg-shortcode editor-styles-wrapper'
|
55 |
+
}, el('select', {
|
56 |
+
className: 'spwpcf-shortcode-selector',
|
57 |
+
onChange: e => shortcodeUpdate(e),
|
58 |
+
value: (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_0__.escapeAttribute)(shortcode)
|
59 |
+
}, el('option', {
|
60 |
+
value: (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_0__.escapeAttribute)('0')
|
61 |
+
}, (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_0__.escapeHTML)((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('-- Select a shortcode --', 'wp-carousel-free'))), shortCodeList.map(shortcode => {
|
62 |
+
var title = shortcode.title.length > 35 ? shortcode.title.substring(0, 30) + '.... #(' + shortcode.id + ')' : shortcode.title + ' #(' + shortcode.id + ')';
|
63 |
+
return el('option', {
|
64 |
+
value: (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_0__.escapeAttribute)(shortcode.id.toString()),
|
65 |
+
key: (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_0__.escapeAttribute)(shortcode.id.toString())
|
66 |
+
}, (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_0__.escapeHTML)(title));
|
67 |
+
}))));
|
68 |
+
};
|
69 |
+
|
70 |
+
/* harmony default export */ __webpack_exports__["default"] = (DynamicShortcodeInput);
|
71 |
+
|
72 |
+
/***/ }),
|
73 |
+
|
74 |
+
/***/ "@wordpress/block-editor":
|
75 |
+
/*!*************************************!*\
|
76 |
+
!*** external ["wp","blockEditor"] ***!
|
77 |
+
\*************************************/
|
78 |
+
/***/ (function(module) {
|
79 |
+
|
80 |
+
module.exports = window["wp"]["blockEditor"];
|
81 |
+
|
82 |
+
/***/ }),
|
83 |
+
|
84 |
+
/***/ "@wordpress/blocks":
|
85 |
+
/*!********************************!*\
|
86 |
+
!*** external ["wp","blocks"] ***!
|
87 |
+
\********************************/
|
88 |
+
/***/ (function(module) {
|
89 |
+
|
90 |
+
module.exports = window["wp"]["blocks"];
|
91 |
+
|
92 |
+
/***/ }),
|
93 |
+
|
94 |
+
/***/ "@wordpress/components":
|
95 |
+
/*!************************************!*\
|
96 |
+
!*** external ["wp","components"] ***!
|
97 |
+
\************************************/
|
98 |
+
/***/ (function(module) {
|
99 |
+
|
100 |
+
module.exports = window["wp"]["components"];
|
101 |
+
|
102 |
+
/***/ }),
|
103 |
+
|
104 |
+
/***/ "@wordpress/element":
|
105 |
+
/*!*********************************!*\
|
106 |
+
!*** external ["wp","element"] ***!
|
107 |
+
\*********************************/
|
108 |
+
/***/ (function(module) {
|
109 |
+
|
110 |
+
module.exports = window["wp"]["element"];
|
111 |
+
|
112 |
+
/***/ }),
|
113 |
+
|
114 |
+
/***/ "@wordpress/escape-html":
|
115 |
+
/*!************************************!*\
|
116 |
+
!*** external ["wp","escapeHtml"] ***!
|
117 |
+
\************************************/
|
118 |
+
/***/ (function(module) {
|
119 |
+
|
120 |
+
module.exports = window["wp"]["escapeHtml"];
|
121 |
+
|
122 |
+
/***/ }),
|
123 |
+
|
124 |
+
/***/ "@wordpress/i18n":
|
125 |
+
/*!******************************!*\
|
126 |
+
!*** external ["wp","i18n"] ***!
|
127 |
+
\******************************/
|
128 |
+
/***/ (function(module) {
|
129 |
+
|
130 |
+
module.exports = window["wp"]["i18n"];
|
131 |
+
|
132 |
+
/***/ })
|
133 |
+
|
134 |
+
/******/ });
|
135 |
+
/************************************************************************/
|
136 |
+
/******/ // The module cache
|
137 |
+
/******/ var __webpack_module_cache__ = {};
|
138 |
+
/******/
|
139 |
+
/******/ // The require function
|
140 |
+
/******/ function __webpack_require__(moduleId) {
|
141 |
+
/******/ // Check if module is in cache
|
142 |
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
143 |
+
/******/ if (cachedModule !== undefined) {
|
144 |
+
/******/ return cachedModule.exports;
|
145 |
+
/******/ }
|
146 |
+
/******/ // Create a new module (and put it into the cache)
|
147 |
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
148 |
+
/******/ // no module.id needed
|
149 |
+
/******/ // no module.loaded needed
|
150 |
+
/******/ exports: {}
|
151 |
+
/******/ };
|
152 |
+
/******/
|
153 |
+
/******/ // Execute the module function
|
154 |
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
155 |
+
/******/
|
156 |
+
/******/ // Return the exports of the module
|
157 |
+
/******/ return module.exports;
|
158 |
+
/******/ }
|
159 |
+
/******/
|
160 |
+
/************************************************************************/
|
161 |
+
/******/ /* webpack/runtime/compat get default export */
|
162 |
+
/******/ !function() {
|
163 |
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
164 |
+
/******/ __webpack_require__.n = function(module) {
|
165 |
+
/******/ var getter = module && module.__esModule ?
|
166 |
+
/******/ function() { return module['default']; } :
|
167 |
+
/******/ function() { return module; };
|
168 |
+
/******/ __webpack_require__.d(getter, { a: getter });
|
169 |
+
/******/ return getter;
|
170 |
+
/******/ };
|
171 |
+
/******/ }();
|
172 |
+
/******/
|
173 |
+
/******/ /* webpack/runtime/define property getters */
|
174 |
+
/******/ !function() {
|
175 |
+
/******/ // define getter functions for harmony exports
|
176 |
+
/******/ __webpack_require__.d = function(exports, definition) {
|
177 |
+
/******/ for(var key in definition) {
|
178 |
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
179 |
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
180 |
+
/******/ }
|
181 |
+
/******/ }
|
182 |
+
/******/ };
|
183 |
+
/******/ }();
|
184 |
+
/******/
|
185 |
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
186 |
+
/******/ !function() {
|
187 |
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
188 |
+
/******/ }();
|
189 |
+
/******/
|
190 |
+
/******/ /* webpack/runtime/make namespace object */
|
191 |
+
/******/ !function() {
|
192 |
+
/******/ // define __esModule on exports
|
193 |
+
/******/ __webpack_require__.r = function(exports) {
|
194 |
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
195 |
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
196 |
+
/******/ }
|
197 |
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
198 |
+
/******/ };
|
199 |
+
/******/ }();
|
200 |
+
/******/
|
201 |
+
/************************************************************************/
|
202 |
+
var __webpack_exports__ = {};
|
203 |
+
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
204 |
+
!function() {
|
205 |
+
/*!**********************!*\
|
206 |
+
!*** ./src/index.js ***!
|
207 |
+
\**********************/
|
208 |
+
__webpack_require__.r(__webpack_exports__);
|
209 |
+
/* harmony import */ var _shortcode_blockIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./shortcode/blockIcon */ "./src/shortcode/blockIcon.js");
|
210 |
+
/* harmony import */ var _shortcode_dynamicShortcode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./shortcode/dynamicShortcode */ "./src/shortcode/dynamicShortcode.js");
|
211 |
+
/* harmony import */ var _wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/escape-html */ "@wordpress/escape-html");
|
212 |
+
/* harmony import */ var _wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__);
|
213 |
+
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
|
214 |
+
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__);
|
215 |
+
/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
|
216 |
+
/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__);
|
217 |
+
/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
|
218 |
+
/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__);
|
219 |
+
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
|
220 |
+
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__);
|
221 |
+
/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor");
|
222 |
+
/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7__);
|
223 |
+
|
224 |
+
|
225 |
+
|
226 |
+
|
227 |
+
|
228 |
+
|
229 |
+
|
230 |
+
|
231 |
+
const ServerSideRender = wp.serverSideRender;
|
232 |
+
const el = _wordpress_element__WEBPACK_IMPORTED_MODULE_6__.createElement;
|
233 |
+
/**
|
234 |
+
* Register: WP Carousel Free Gutenberg Block.
|
235 |
+
*/
|
236 |
+
|
237 |
+
(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_4__.registerBlockType)("sp-wp-carousel-pro/shortcode", {
|
238 |
+
title: (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__.escapeHTML)((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("WP Carousel", "wp-carousel-free")),
|
239 |
+
description: (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__.escapeHTML)((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Use WP Carousel to insert a carousel or gallery in your page.", "wp-carousel-free")),
|
240 |
+
icon: _shortcode_blockIcon__WEBPACK_IMPORTED_MODULE_0__["default"].spwpcfIcon,
|
241 |
+
category: "common",
|
242 |
+
supports: {
|
243 |
+
html: true
|
244 |
+
},
|
245 |
+
edit: props => {
|
246 |
+
const {
|
247 |
+
attributes,
|
248 |
+
setAttributes
|
249 |
+
} = props;
|
250 |
+
var shortCodeList = sp_wp_carousel_free.shortCodeList;
|
251 |
+
|
252 |
+
let scriptLoad = shortcodeId => {
|
253 |
+
let spwpcfBlockLoaded = false;
|
254 |
+
let spwpcfBlockLoadedInterval = setInterval(function () {
|
255 |
+
let uniqId = jQuery(".wpcp-wrapper-" + shortcodeId).parents().attr('id');
|
256 |
+
|
257 |
+
if (document.getElementById(uniqId)) {
|
258 |
+
//Actual functions goes here
|
259 |
+
jQuery.getScript(sp_wp_carousel_free.loadScript);
|
260 |
+
jQuery('#wpcp-preloader-' + shortcodeId).animate({
|
261 |
+
opacity: 0
|
262 |
+
}, 600).remove();
|
263 |
+
jQuery('#sp-wp-carousel-free-id-' + shortcodeId).animate({
|
264 |
+
opacity: 1
|
265 |
+
}, 600);
|
266 |
+
spwpcfBlockLoaded = true;
|
267 |
+
uniqId = '';
|
268 |
+
}
|
269 |
+
|
270 |
+
if (spwpcfBlockLoaded) {
|
271 |
+
clearInterval(spwpcfBlockLoadedInterval);
|
272 |
+
}
|
273 |
+
|
274 |
+
if (0 == shortcodeId) {
|
275 |
+
clearInterval(spwpcfBlockLoadedInterval);
|
276 |
+
}
|
277 |
+
}, 10);
|
278 |
+
};
|
279 |
+
|
280 |
+
let updateShortcode = updateShortcode => {
|
281 |
+
setAttributes({
|
282 |
+
shortcode: (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__.escapeAttribute)(updateShortcode.target.value)
|
283 |
+
});
|
284 |
+
};
|
285 |
+
|
286 |
+
let shortcodeUpdate = e => {
|
287 |
+
updateShortcode(e);
|
288 |
+
let shortcodeId = (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__.escapeAttribute)(e.target.value);
|
289 |
+
scriptLoad(shortcodeId);
|
290 |
+
};
|
291 |
+
|
292 |
+
document.addEventListener('readystatechange', event => {
|
293 |
+
if (event.target.readyState === "complete") {
|
294 |
+
let shortcodeId = (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__.escapeAttribute)(attributes.shortcode);
|
295 |
+
scriptLoad(shortcodeId);
|
296 |
+
}
|
297 |
+
});
|
298 |
+
|
299 |
+
if (attributes.preview) {
|
300 |
+
return el('div', {
|
301 |
+
className: 'spwpcf_shortcode_block_preview_image'
|
302 |
+
}, el('img', {
|
303 |
+
src: (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__.escapeAttribute)(sp_wp_carousel_free.url + "admin/GutenbergBlock/assets/wpc-block-preview.svg")
|
304 |
+
}));
|
305 |
+
}
|
306 |
+
|
307 |
+
if (shortCodeList.length === 0) {
|
308 |
+
return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_6__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__.Fragment, null, el('div', {
|
309 |
+
className: 'components-placeholder components-placeholder is-large'
|
310 |
+
}, el('div', {
|
311 |
+
className: 'components-placeholder__label'
|
312 |
+
}, el('img', {
|
313 |
+
className: 'block-editor-block-icon',
|
314 |
+
src: (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__.escapeAttribute)(sp_wp_carousel_free.url + 'admin/GutenbergBlock/assets/wp-carousel-icon.svg')
|
315 |
+
}), (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__.escapeHTML)((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("WP Carousel", "wp-carousel-free"))), el('div', {
|
316 |
+
className: 'components-placeholder__instructions'
|
317 |
+
}, (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__.escapeHTML)((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("No shortcode found. ", "wp-carousel-free")), el('a', {
|
318 |
+
href: (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__.escapeAttribute)(sp_wp_carousel_free.link)
|
319 |
+
}, (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__.escapeHTML)((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Create a shortcode now!", "wp-carousel-free"))))));
|
320 |
+
}
|
321 |
+
|
322 |
+
if (!attributes.shortcode || attributes.shortcode == 0) {
|
323 |
+
return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_6__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_6__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7__.InspectorControls, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_6__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.PanelBody, {
|
324 |
+
title: "Select a shortcode"
|
325 |
+
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_6__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.PanelRow, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_6__.createElement)(_shortcode_dynamicShortcode__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
326 |
+
attributes: attributes,
|
327 |
+
shortCodeList: shortCodeList,
|
328 |
+
shortcodeUpdate: shortcodeUpdate
|
329 |
+
})))), el('div', {
|
330 |
+
className: 'components-placeholder components-placeholder is-large'
|
331 |
+
}, el('div', {
|
332 |
+
className: 'components-placeholder__label'
|
333 |
+
}, el('img', {
|
334 |
+
className: 'block-editor-block-icon',
|
335 |
+
src: (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__.escapeAttribute)(sp_wp_carousel_free.url + "admin/GutenbergBlock/assets/wp-carousel-icon.svg")
|
336 |
+
}), (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__.escapeHTML)((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("WP Carousel", "wp-carousel-free"))), el('div', {
|
337 |
+
className: 'components-placeholder__instructions'
|
338 |
+
}, (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_2__.escapeHTML)((0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Select a shortcode", "wp-carousel-free"))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_6__.createElement)(_shortcode_dynamicShortcode__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
339 |
+
attributes: attributes,
|
340 |
+
shortCodeList: shortCodeList,
|
341 |
+
shortcodeUpdate: shortcodeUpdate
|
342 |
+
})));
|
343 |
+
}
|
344 |
+
|
345 |
+
return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_6__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_6__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7__.InspectorControls, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_6__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.PanelBody, {
|
346 |
+
title: "Select a shortcode"
|
347 |
+
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_6__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.PanelRow, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_6__.createElement)(_shortcode_dynamicShortcode__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
348 |
+
attributes: attributes,
|
349 |
+
shortCodeList: shortCodeList,
|
350 |
+
shortcodeUpdate: shortcodeUpdate
|
351 |
+
})))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_6__.createElement)(ServerSideRender, {
|
352 |
+
block: "sp-wp-carousel-pro/shortcode",
|
353 |
+
attributes: attributes
|
354 |
+
}));
|
355 |
+
},
|
356 |
+
|
357 |
+
save() {
|
358 |
+
// Rendering in PHP
|
359 |
+
return null;
|
360 |
+
}
|
361 |
+
|
362 |
+
});
|
363 |
+
}();
|
364 |
+
/******/ })()
|
365 |
+
;
|
admin/css/modal-video.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
@keyframes modal-video{from{opacity:0}to{opacity:1}}@keyframes modal-video-inner{from{transform:translate(0, 100px)}to{transform:translate(0, 0)}}.modal-video{position:fixed;top:0;left:auto;right:0;width: calc(100% - 160px);height:100%;background-color:rgba(0,0,0,0.5);z-index:1000000;cursor:pointer;opacity:1;animation-timing-function:ease-out;animation-duration:.3s;animation-name:modal-video;-webkit-transition:opacity .3s ease-out;-moz-transition:opacity .3s ease-out;-ms-transition:opacity .3s ease-out;-o-transition:opacity .3s ease-out;transition:opacity .3s ease-out}.modal-video-close{opacity:0}.modal-video-close .modal-video-movie-wrap{-webkit-transform:translate(0, 100px);-moz-transform:translate(0, 100px);-ms-transform:translate(0, 100px);-o-transform:translate(0, 100px);transform:translate(0, 100px)}.modal-video-body{max-width:1800px;width:100%;height:100%;margin:0 auto; box-sizing: border-box; display: table; padding: 10%;}.modal-video-inner{display:table-cell;vertical-align:middle;width:100%;height:100%}.modal-video-movie-wrap{width:100%;height:0;position:relative;padding-bottom:56.25%;background-color:#333;animation-timing-function:ease-out;animation-duration:.3s;animation-name:modal-video-inner;-webkit-transform:translate(0, 0);-moz-transform:translate(0, 0);-ms-transform:translate(0, 0);-o-transform:translate(0, 0);transform:translate(0, 0);-webkit-transition:-webkit-transform .3s ease-out;-moz-transition:-moz-transform .3s ease-out;-ms-transition:-ms-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out}.modal-video-movie-wrap iframe{position:absolute;top:0;left:0;width:100%;height:100%}.modal-video-close-btn{position:absolute;z-index:2;top:-35px;right:-35px;display:inline-block;width:35px;height:35px;overflow:hidden;border:none;background:transparent;cursor: pointer}.modal-video-close-btn:before{transform:rotate(45deg)}.modal-video-close-btn:after{transform:rotate(-45deg)}.modal-video-close-btn:before,.modal-video-close-btn:after{content:'';position:absolute;height:2px;width:100%;top:50%;left:0;margin-top:-1px;background:#fff;border-radius:5px;margin-top:-6px}.modal-video *:focus{outline:0;}@media screen and (max-width: 996px){.modal-video{width: calc(100% - 36px);}}@media screen and (max-width: 782px){.modal-video {width:100%;}}
|
1 |
+
@keyframes modal-video{from{opacity:0}to{opacity:1}}@keyframes modal-video-inner{from{transform:translate(0, 100px)}to{transform:translate(0, 0)}}.modal-video{position:fixed;top:0;left:auto;right:0;width: calc(100% - 160px);height:100%;background-color:rgba(0,0,0,0.5);z-index:1000000;cursor:pointer;opacity:1;animation-timing-function:ease-out;animation-duration:.3s;animation-name:modal-video;-webkit-transition:opacity .3s ease-out;-moz-transition:opacity .3s ease-out;-ms-transition:opacity .3s ease-out;-o-transition:opacity .3s ease-out;transition:opacity .3s ease-out}.modal-video-close{opacity:0}.modal-video-close .modal-video-movie-wrap{-webkit-transform:translate(0, 100px);-moz-transform:translate(0, 100px);-ms-transform:translate(0, 100px);-o-transform:translate(0, 100px);transform:translate(0, 100px)}.modal-video-body{max-width:1800px;width:100%;height:100%;margin:0 auto; box-sizing: border-box; display: table; padding: 5% 10%;}.modal-video-inner{display:table-cell;vertical-align:middle;width:100%;height:100%}.modal-video-movie-wrap{width:100%;height:0;position:relative;padding-bottom:56.25%;background-color:#333;animation-timing-function:ease-out;animation-duration:.3s;animation-name:modal-video-inner;-webkit-transform:translate(0, 0);-moz-transform:translate(0, 0);-ms-transform:translate(0, 0);-o-transform:translate(0, 0);transform:translate(0, 0);-webkit-transition:-webkit-transform .3s ease-out;-moz-transition:-moz-transform .3s ease-out;-ms-transition:-ms-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out}.modal-video-movie-wrap iframe{position:absolute;top:0;left:0;width:100%;height:100%}.modal-video-close-btn{position:absolute;z-index:2;top:-35px;right:-35px;display:inline-block;width:35px;height:35px;overflow:hidden;border:none;background:transparent;cursor: pointer}.modal-video-close-btn:before{transform:rotate(45deg)}.modal-video-close-btn:after{transform:rotate(-45deg)}.modal-video-close-btn:before,.modal-video-close-btn:after{content:'';position:absolute;height:2px;width:100%;top:50%;left:0;margin-top:-1px;background:#fff;border-radius:5px;margin-top:-6px}.modal-video *:focus{outline:0;}@media screen and (max-width: 996px){.modal-video{width: calc(100% - 36px);}}@media screen and (max-width: 782px){.modal-video {width:100%;}}
|
admin/views/premium.php
CHANGED
@@ -50,10 +50,10 @@ class WP_Carousel_Free_Upgrade {
|
|
50 |
'sslverify' => false,
|
51 |
);
|
52 |
|
53 |
-
$raw = wp_remote_retrieve_body( wp_remote_get( '
|
54 |
$raw = json_decode( $raw, true );
|
55 |
|
56 |
-
if ( array_key_exists( 'error', $raw ) ) {
|
57 |
$data = array(
|
58 |
'error' => $raw['error'],
|
59 |
);
|
@@ -112,11 +112,16 @@ class WP_Carousel_Free_Upgrade {
|
|
112 |
<div class="count-item">
|
113 |
<h3 class="sp-wpc__font-24">
|
114 |
<?php
|
115 |
-
$plugin_data
|
116 |
-
|
117 |
|
118 |
-
|
119 |
-
|
|
|
|
|
|
|
|
|
|
|
120 |
?>
|
121 |
</h3>
|
122 |
<span class="sp-wpc__font-weight-400">Active Installations</span>
|
@@ -124,8 +129,12 @@ class WP_Carousel_Free_Upgrade {
|
|
124 |
<div class="count-item">
|
125 |
<h3 class="sp-wpc__font-24">
|
126 |
<?php
|
127 |
-
|
128 |
-
|
|
|
|
|
|
|
|
|
129 |
?>
|
130 |
</h3>
|
131 |
<span class="sp-wpc__font-weight-400">all time downloads</span>
|
@@ -133,8 +142,12 @@ class WP_Carousel_Free_Upgrade {
|
|
133 |
<div class="count-item">
|
134 |
<h3 class="sp-wpc__font-24">
|
135 |
<?php
|
136 |
-
|
137 |
-
|
|
|
|
|
|
|
|
|
138 |
?>
|
139 |
</h3>
|
140 |
<span class="sp-wpc__font-weight-400">user reviews</span>
|
@@ -393,10 +406,14 @@ class WP_Carousel_Free_Upgrade {
|
|
393 |
<h2 class="sp-wpc__font-28">Join
|
394 |
<?php
|
395 |
$install = 0;
|
396 |
-
|
397 |
-
$
|
|
|
|
|
|
|
|
|
|
|
398 |
}
|
399 |
-
echo esc_attr( $install + '15000' ) . '+';
|
400 |
?>
|
401 |
Happy Users in 160+ Countries </h2>
|
402 |
<p class="sp-wpc__font-16 sp-wpc__mt-25 sp-wpc__line-height-22">98% of customers are happy with <b>ShapedPlugin's</b> products and support. <br>
|
50 |
'sslverify' => false,
|
51 |
);
|
52 |
|
53 |
+
$raw = wp_remote_retrieve_body( wp_remote_get( 'https://wptally.com/api/' . $username, $params ) );
|
54 |
$raw = json_decode( $raw, true );
|
55 |
|
56 |
+
if ( is_array( $raw ) && array_key_exists( 'error', $raw ) ) {
|
57 |
$data = array(
|
58 |
'error' => $raw['error'],
|
59 |
);
|
112 |
<div class="count-item">
|
113 |
<h3 class="sp-wpc__font-24">
|
114 |
<?php
|
115 |
+
$plugin_data = $this->happy_users();
|
116 |
+
if ( isset( $plugin_data['plugins'] ) ) {
|
117 |
|
118 |
+
$plugin_names = array_values( $plugin_data['plugins'] );
|
119 |
+
|
120 |
+
$active_installations = array_column( $plugin_names, 'installs', 'url' );
|
121 |
+
echo esc_attr( $active_installations['http://wordpress.org/plugins/wp-carousel-free'] ) . '+';
|
122 |
+
} else {
|
123 |
+
echo '50000+';
|
124 |
+
}
|
125 |
?>
|
126 |
</h3>
|
127 |
<span class="sp-wpc__font-weight-400">Active Installations</span>
|
129 |
<div class="count-item">
|
130 |
<h3 class="sp-wpc__font-24">
|
131 |
<?php
|
132 |
+
if ( isset( $plugin_data['plugins'] ) ) {
|
133 |
+
$active_installations = array_column( $plugin_names, 'downloads', 'url' );
|
134 |
+
echo esc_attr( $active_installations['http://wordpress.org/plugins/wp-carousel-free'] );
|
135 |
+
} else {
|
136 |
+
echo '753358';
|
137 |
+
}
|
138 |
?>
|
139 |
</h3>
|
140 |
<span class="sp-wpc__font-weight-400">all time downloads</span>
|
142 |
<div class="count-item">
|
143 |
<h3 class="sp-wpc__font-24">
|
144 |
<?php
|
145 |
+
if ( isset( $plugin_data['plugins'] ) ) {
|
146 |
+
$active_installations = array_column( $plugin_names, 'rating', 'url' );
|
147 |
+
echo esc_attr( $active_installations['http://wordpress.org/plugins/wp-carousel-free'] ) . '/5';
|
148 |
+
} else {
|
149 |
+
echo '4.7/5';
|
150 |
+
}
|
151 |
?>
|
152 |
</h3>
|
153 |
<span class="sp-wpc__font-weight-400">user reviews</span>
|
406 |
<h2 class="sp-wpc__font-28">Join
|
407 |
<?php
|
408 |
$install = 0;
|
409 |
+
if ( isset( $plugin_data['plugins'] ) ) {
|
410 |
+
foreach ( $plugin_names as &$plugin_name ) {
|
411 |
+
$install += $plugin_name['installs'];
|
412 |
+
}
|
413 |
+
echo esc_attr( $install + '15000' ) . '+';
|
414 |
+
} else {
|
415 |
+
echo '242000+';
|
416 |
}
|
|
|
417 |
?>
|
418 |
Happy Users in 160+ Countries </h2>
|
419 |
<p class="sp-wpc__font-16 sp-wpc__mt-25 sp-wpc__line-height-22">98% of customers are happy with <b>ShapedPlugin's</b> products and support. <br>
|
languages/wp-carousel-free.pot
CHANGED
File without changes
|
public/css/wp-carousel-free-public.css
CHANGED
@@ -526,6 +526,19 @@ html[dir="rtl"] .wpcp-single-item {
|
|
526 |
direction: rtl;
|
527 |
}
|
528 |
|
529 |
-
.wpcp-
|
530 |
font-size: 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
531 |
}
|
526 |
direction: rtl;
|
527 |
}
|
528 |
|
529 |
+
.wpcp-carousel-section .wpcp-slide-image {
|
530 |
font-size: 0;
|
531 |
+
}
|
532 |
+
|
533 |
+
.wpcp-standard:not(.slick-initialized) {
|
534 |
+
display: flex;
|
535 |
+
justify-content: space-between;
|
536 |
+
padding: 0;
|
537 |
+
margin-left: -20px;
|
538 |
+
}
|
539 |
+
|
540 |
+
.wpcp-standard:not(.slick-initialized)>div:not(.slick-slide) {
|
541 |
+
width: calc(100% / 4);
|
542 |
+
min-width: calc(100% / 4);
|
543 |
+
padding-left: 20px;
|
544 |
}
|
public/css/wp-carousel-free-public.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.wpcp-carousel-wrapper *{word-break:break-word;word-wrap:break-word;box-sizing:border-box}.wpcp-carousel-section.wpcp-standard:not(.wpcp-preloader){display:none}.wpcp-carousel-section.wpcp-standard.slick-initialized:not(.wpcp-preloader){display:block}.wpcp-carousel-wrapper{position:relative}.wpcp-carousel-section.wpcp-preloader{opacity:0}.wpcp-carousel-preloader{position:absolute;left:0;top:0;height:100%;width:100%;text-align:center;display:flex;align-items:center;justify-content:center}.sp-wpcp-wrapper{margin-bottom:0}.wpcp-carousel-section.wpcp-standard,.wpcp-carousel-section.wpcp-standard .slick-list{overflow:hidden}.wpcp-carousel-section.wpcp-standard{overflow:hidden;padding-right:2px}.wpcp-carousel-section.wpcp-standard.slick-initialized{position:relative}.wpcp-carousel-section .wpcp-single-item{overflow:hidden;display:inline-block;vertical-align:middle;float:none;max-width:100%}.wpcp-all-captions li{list-style:none;margin:0}.wpcp-carousel-section p,.wpcp-carousel-section ul,.wpcp-image-carousel .wpcp-single-item .wpcp-all-captions h2{margin:0}.wpcp-carousel-section.wpcp-video-carousel .wpcp-single-item .wpcp-slide-image{position:relative}.wpcp-carousel-section.wpcp-content-carousel .wpcp-single-item{padding-left:15px;padding-right:15px}.wpcp-carousel-section .wpcp-single-item img[data-lazy]{width:32px}.wpcp-carousel-section .wpcp-single-item img{margin:0 auto;max-width:100%;height:auto;box-shadow:none}.wpcp-carousel-section.wpcp-image-carousel .wpcp-single-item .wpcp-all-captions{padding:10px 20px 15px}.wpcp-carousel-section .wpcp-single-item .wpcp-all-captions .wpcp-image-description{margin:6px 0 0}.wpcp-carousel-section .wpcp-single-item .wpcp-slide-image a:focus{outline:0}.wpcp-carousel-section .slick-slide:focus{outline:0}.wpcp-carousel-section.slick-initialized .slick-slide{margin-right:20px;float:none;display:inline-block;vertical-align:middle}.wpcp-carousel-section .slick-list{margin-right:-20px}.wpcp-carousel-section .wpcp-all-captions a,.wpcp-carousel-section a,.wpcp-carousel-section a:hover{text-decoration:none}.wpcp-post-carousel .wpcp-single-item .wpcp-all-captions{padding:15px 20px 0;overflow:hidden}#poststuff h2,.wpcp-post-carousel .wpcp-single-item .wpcp-all-captions h2{font-size:16px;font-weight:600;margin:0 0 10px}.wpcp-single-item h2 a{color:#444;text-decoration:none}.wpcp-post-carousel .wpcp-single-item .wpcp-all-captions .post-categories{margin:0 0 7px;padding:0;display:block}.wpcp-post-carousel .wpcp-all-captions p{margin-bottom:15px}.wpcp_readmore{border:1px solid;display:inline-block;background:#22afba;margin:0 0 14px;line-height:32px;padding:5px 14px;font-weight:600}.wpcp_readmore,.wpcp_readmore:focus,.wpcp_readmore:hover{color:#fff}.wpcp-single-item .wpcp-all-captions .wpcp-post-meta{margin:0 0 20px;padding:0}.wpcp-post-carousel .wpcp-post-meta li{display:inline-block;margin-right:5px}.wpcp-post-carousel .wpcp-post-meta li:last-child{margin-right:0}.wpcp-post-meta li,.wpcp-post-meta li a{color:#999}.wpcp-carousel-section.detail-on-right .wpcp-single-item .wpcp-all-captions,.wpcp-carousel-section.detail-on-right .wpcp-single-item .wpcp-slide-image{float:left;width:50%;box-sizing:border-box}.wpcp-carousel-section.detail-with-overlay .wpcp-all-captions{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;justify-content:center;height:100%}.wpcp-carousel-section.detail-with-overlay.overlay-lower .wpcp-all-captions{top:auto;display:block;height:auto}.wpcp-carousel-section.detail-with-overlay.overlay-on-hover .wpcp-all-captions{visibility:hidden;opacity:0;transition:visibility .3s linear,opacity .3s linear}.wpcp-carousel-section.detail-with-overlay.overlay-on-hover .wpcp-single-item:hover .wpcp-all-captions{visibility:visible;opacity:1}.wpcp-carousel-section.detail-with-overlay .wpcp-single-item{position:relative}.wpcp-carousel-section .wpcp-single-item:focus{outline:0}.wpcp-product-carousel .wpcp-single-item .wpcp-all-captions{padding:15px 20px 0;overflow:hidden;text-align:center}.wpcp-product-carousel .wpcp-single-item .wpcp-product-title{margin:0;font-size:16px;line-height:23px;font-weight:600}.wpcp-product-price{margin-top:5px}.wpcp-carousel-section.wpcp-product-carousel .wpcp-cart-button{margin-top:12px}.wpcp-carousel-section.wpcp-product-carousel .wpcp-cart-button a.button{background:#ebebeb;color:#545454;border:1px solid #d1d1d1;font-weight:500;padding:0 20px;line-height:38px;display:inline-block;font-size:14px}.wpcp-carousel-section.wpcp-product-carousel .wpcp-all-captions .wpcp-cart-button a.add_to_cart_button.added{display:none}.wpcp-carousel-section.wpcp-product-carousel .wpcp-all-captions .wpcp-cart-button .added_to_cart{font-size:100%;margin:0;line-height:38px;cursor:pointer;position:relative;text-decoration:none;overflow:visible;padding:0 20px;font-weight:600;border-radius:3px;left:auto;color:#515151;background-color:#ebe9eb;border:0;display:inline-block;background-image:none;box-shadow:none;text-shadow:none;border:1px solid}.wpcp-carousel-section.wpcp-product-carousel .wpcp-all-captions .wpcp-cart-button a.button:hover{background:#3f3f3f;border-color:#d1d1d1;color:#fff}.wpcp-carousel-section.wpcp-product-carousel .wpcp-all-captions .wpcp-cart-button .wc-forward::after{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-style:normal;font-variant:normal;font-weight:400;line-height:1;vertical-align:-.125em;font:normal normal normal 14px/1 FontAwesome;font-weight:900;line-height:inherit;vertical-align:baseline;content:"\f178";margin-left:.5407911001em}.wpcp-carousel-section .woocommerce-product-rating .star-rating{margin:4px auto;float:none}.wpcp-product-price span{font-weight:700;font-size:14px}.wpcp-carousel-section .slick-next:after,.wpcp-carousel-section .slick-next:before,.wpcp-carousel-section .slick-prev:after,.wpcp-carousel-section .slick-prev:before{display:none}.wpcp-carousel-section .slick-prev{left:0;right:auto}.wpcp-carousel-section .slick-next{right:0;left:auto}.wpcp-carousel-section .slick-next,.wpcp-carousel-section .slick-prev{width:30px;height:30px;line-height:30px;position:absolute;z-index:22;left:auto;top:auto;font-size:30px;-webkit-transition:ease all .3s;-moz-transition:ease all .3s;-ms-transition:ease all .3s;-o-transition:ease all .3s;transition:ease all .3s;margin-top:-15px;cursor:pointer}.wpcp-carousel-section.nav-vertical-center{padding:0 25px}.wpcp-carousel-section .slick-next,.wpcp-carousel-section .slick-next i,.wpcp-carousel-section .slick-prev,.wpcp-carousel-section .slick-prev i{line-height:28px;font-family:fontawesome;color:#000}.wpcp-carousel-section.nav-vertical-center .slick-next,.wpcp-carousel-section.nav-vertical-center .slick-prev{top:50%}.wpcp-carousel-section.nav-vertical-center .slick-prev{left:0;right:auto;text-align:left}.wpcp-carousel-section.nav-vertical-center .slick-next,.wpcp-carousel-section.nav-vertical-center .slick-prev{margin-top:-15px}.wpcp-carousel-section.nav-vertical-center.slick-dotted .slick-next,.wpcp-carousel-section.nav-vertical-center.slick-dotted .slick-prev{margin-top:-35px}.wpcp-carousel-section.nav-vertical-center .slick-next{right:0;text-align:right}.wpcp-carousel-section ul.slick-dots{list-style:none;padding:0!important;margin:0;text-align:center;margin-top:18px;position:relative}.wpcp-carousel-section ul.slick-dots li{display:inline;margin:0}.wpcp-carousel-section ul.slick-dots li button{background-color:#ccc;border:0 solid;border-radius:50%;font-size:0;margin:3px;overflow:hidden;padding:0;text-indent:-999px;width:12px;height:12px;cursor:pointer}.wpcp-carousel-section ul.slick-dots,.wpcp-carousel-section ul.slick-dots li,.wpcp-carousel-section ul.slick-dots li button{line-height:1!important}.wpcp-carousel-section ul.slick-dots li button:focus{outline:0}.wpcp-carousel-section ul.slick-dots li.slick-active button{background-color:#666}.wpcpro-row.no-gutters>[class*=wpcpro-col-]{padding-right:0;padding-left:0}.wpcpro-row>[class*=wpcpro-col-]{padding:0 10px;padding-bottom:20px}.wpcpro-row{display:flex;flex-wrap:wrap;margin-right:-10px;margin-left:-10px}.wpcpro-post-pagination .ajax-page-numbers,.wpcpro-post-pagination .page-numbers{background:#fff;color:#5e5e5e;border:2px solid #bbb;width:38px;height:38px;line-height:38px;font-size:16px;text-align:center;display:inline-block;margin-right:4px;text-decoration:none;font-weight:700;border-radius:3px;-webkit-transition:all .33s;transition:all .33s;-webkit-box-sizing:content-box;box-sizing:content-box}.wpcpro-post-pagination .ajax-page-numbers.current,.wpcpro-post-pagination .page-numbers.current{cursor:auto;color:#fff;background:#178087;border-color:#178087}.wpcpro-post-pagination-number{margin-top:20px}.wpcpro-post-pagination a.page-numbers:hover,.wpcpro-post-pagination span.current,.wpcpro-post-pagination span:hover{color:#fff;background:#178087;border-color:#178087}.wpcp-single-item{direction:ltr}html[dir=rtl] .wpcp-single-item{direction:rtl}.wpcp-
|
1 |
+
.wpcp-carousel-wrapper *{word-break:break-word;word-wrap:break-word;box-sizing:border-box}.wpcp-carousel-section.wpcp-standard:not(.wpcp-preloader){display:none}.wpcp-carousel-section.wpcp-standard.slick-initialized:not(.wpcp-preloader){display:block}.wpcp-carousel-wrapper{position:relative}.wpcp-carousel-section.wpcp-preloader{opacity:0}.wpcp-carousel-preloader{position:absolute;left:0;top:0;height:100%;width:100%;text-align:center;display:flex;align-items:center;justify-content:center}.sp-wpcp-wrapper{margin-bottom:0}.wpcp-carousel-section.wpcp-standard,.wpcp-carousel-section.wpcp-standard .slick-list{overflow:hidden}.wpcp-carousel-section.wpcp-standard{overflow:hidden;padding-right:2px}.wpcp-carousel-section.wpcp-standard.slick-initialized{position:relative}.wpcp-carousel-section .wpcp-single-item{overflow:hidden;display:inline-block;vertical-align:middle;float:none;max-width:100%}.wpcp-all-captions li{list-style:none;margin:0}.wpcp-carousel-section p,.wpcp-carousel-section ul,.wpcp-image-carousel .wpcp-single-item .wpcp-all-captions h2{margin:0}.wpcp-carousel-section.wpcp-video-carousel .wpcp-single-item .wpcp-slide-image{position:relative}.wpcp-carousel-section.wpcp-content-carousel .wpcp-single-item{padding-left:15px;padding-right:15px}.wpcp-carousel-section .wpcp-single-item img[data-lazy]{width:32px}.wpcp-carousel-section .wpcp-single-item img{margin:0 auto;max-width:100%;height:auto;box-shadow:none}.wpcp-carousel-section.wpcp-image-carousel .wpcp-single-item .wpcp-all-captions{padding:10px 20px 15px}.wpcp-carousel-section .wpcp-single-item .wpcp-all-captions .wpcp-image-description{margin:6px 0 0}.wpcp-carousel-section .wpcp-single-item .wpcp-slide-image a:focus{outline:0}.wpcp-carousel-section .slick-slide:focus{outline:0}.wpcp-carousel-section.slick-initialized .slick-slide{margin-right:20px;float:none;display:inline-block;vertical-align:middle}.wpcp-carousel-section .slick-list{margin-right:-20px}.wpcp-carousel-section .wpcp-all-captions a,.wpcp-carousel-section a,.wpcp-carousel-section a:hover{text-decoration:none}.wpcp-post-carousel .wpcp-single-item .wpcp-all-captions{padding:15px 20px 0;overflow:hidden}#poststuff h2,.wpcp-post-carousel .wpcp-single-item .wpcp-all-captions h2{font-size:16px;font-weight:600;margin:0 0 10px}.wpcp-single-item h2 a{color:#444;text-decoration:none}.wpcp-post-carousel .wpcp-single-item .wpcp-all-captions .post-categories{margin:0 0 7px;padding:0;display:block}.wpcp-post-carousel .wpcp-all-captions p{margin-bottom:15px}.wpcp_readmore{border:1px solid;display:inline-block;background:#22afba;margin:0 0 14px;line-height:32px;padding:5px 14px;font-weight:600}.wpcp_readmore,.wpcp_readmore:focus,.wpcp_readmore:hover{color:#fff}.wpcp-single-item .wpcp-all-captions .wpcp-post-meta{margin:0 0 20px;padding:0}.wpcp-post-carousel .wpcp-post-meta li{display:inline-block;margin-right:5px}.wpcp-post-carousel .wpcp-post-meta li:last-child{margin-right:0}.wpcp-post-meta li,.wpcp-post-meta li a{color:#999}.wpcp-carousel-section.detail-on-right .wpcp-single-item .wpcp-all-captions,.wpcp-carousel-section.detail-on-right .wpcp-single-item .wpcp-slide-image{float:left;width:50%;box-sizing:border-box}.wpcp-carousel-section.detail-with-overlay .wpcp-all-captions{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;justify-content:center;height:100%}.wpcp-carousel-section.detail-with-overlay.overlay-lower .wpcp-all-captions{top:auto;display:block;height:auto}.wpcp-carousel-section.detail-with-overlay.overlay-on-hover .wpcp-all-captions{visibility:hidden;opacity:0;transition:visibility .3s linear,opacity .3s linear}.wpcp-carousel-section.detail-with-overlay.overlay-on-hover .wpcp-single-item:hover .wpcp-all-captions{visibility:visible;opacity:1}.wpcp-carousel-section.detail-with-overlay .wpcp-single-item{position:relative}.wpcp-carousel-section .wpcp-single-item:focus{outline:0}.wpcp-product-carousel .wpcp-single-item .wpcp-all-captions{padding:15px 20px 0;overflow:hidden;text-align:center}.wpcp-product-carousel .wpcp-single-item .wpcp-product-title{margin:0;font-size:16px;line-height:23px;font-weight:600}.wpcp-product-price{margin-top:5px}.wpcp-carousel-section.wpcp-product-carousel .wpcp-cart-button{margin-top:12px}.wpcp-carousel-section.wpcp-product-carousel .wpcp-cart-button a.button{background:#ebebeb;color:#545454;border:1px solid #d1d1d1;font-weight:500;padding:0 20px;line-height:38px;display:inline-block;font-size:14px}.wpcp-carousel-section.wpcp-product-carousel .wpcp-all-captions .wpcp-cart-button a.add_to_cart_button.added{display:none}.wpcp-carousel-section.wpcp-product-carousel .wpcp-all-captions .wpcp-cart-button .added_to_cart{font-size:100%;margin:0;line-height:38px;cursor:pointer;position:relative;text-decoration:none;overflow:visible;padding:0 20px;font-weight:600;border-radius:3px;left:auto;color:#515151;background-color:#ebe9eb;border:0;display:inline-block;background-image:none;box-shadow:none;text-shadow:none;border:1px solid}.wpcp-carousel-section.wpcp-product-carousel .wpcp-all-captions .wpcp-cart-button a.button:hover{background:#3f3f3f;border-color:#d1d1d1;color:#fff}.wpcp-carousel-section.wpcp-product-carousel .wpcp-all-captions .wpcp-cart-button .wc-forward::after{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-style:normal;font-variant:normal;font-weight:400;line-height:1;vertical-align:-.125em;font:normal normal normal 14px/1 FontAwesome;font-weight:900;line-height:inherit;vertical-align:baseline;content:"\f178";margin-left:.5407911001em}.wpcp-carousel-section .woocommerce-product-rating .star-rating{margin:4px auto;float:none}.wpcp-product-price span{font-weight:700;font-size:14px}.wpcp-carousel-section .slick-next:after,.wpcp-carousel-section .slick-next:before,.wpcp-carousel-section .slick-prev:after,.wpcp-carousel-section .slick-prev:before{display:none}.wpcp-carousel-section .slick-prev{left:0;right:auto}.wpcp-carousel-section .slick-next{right:0;left:auto}.wpcp-carousel-section .slick-next,.wpcp-carousel-section .slick-prev{width:30px;height:30px;line-height:30px;position:absolute;z-index:22;left:auto;top:auto;font-size:30px;-webkit-transition:ease all .3s;-moz-transition:ease all .3s;-ms-transition:ease all .3s;-o-transition:ease all .3s;transition:ease all .3s;margin-top:-15px;cursor:pointer}.wpcp-carousel-section.nav-vertical-center{padding:0 25px}.wpcp-carousel-section .slick-next,.wpcp-carousel-section .slick-next i,.wpcp-carousel-section .slick-prev,.wpcp-carousel-section .slick-prev i{line-height:28px;font-family:fontawesome;color:#000}.wpcp-carousel-section.nav-vertical-center .slick-next,.wpcp-carousel-section.nav-vertical-center .slick-prev{top:50%}.wpcp-carousel-section.nav-vertical-center .slick-prev{left:0;right:auto;text-align:left}.wpcp-carousel-section.nav-vertical-center .slick-next,.wpcp-carousel-section.nav-vertical-center .slick-prev{margin-top:-15px}.wpcp-carousel-section.nav-vertical-center.slick-dotted .slick-next,.wpcp-carousel-section.nav-vertical-center.slick-dotted .slick-prev{margin-top:-35px}.wpcp-carousel-section.nav-vertical-center .slick-next{right:0;text-align:right}.wpcp-carousel-section ul.slick-dots{list-style:none;padding:0!important;margin:0;text-align:center;margin-top:18px;position:relative}.wpcp-carousel-section ul.slick-dots li{display:inline;margin:0}.wpcp-carousel-section ul.slick-dots li button{background-color:#ccc;border:0 solid;border-radius:50%;font-size:0;margin:3px;overflow:hidden;padding:0;text-indent:-999px;width:12px;height:12px;cursor:pointer}.wpcp-carousel-section ul.slick-dots,.wpcp-carousel-section ul.slick-dots li,.wpcp-carousel-section ul.slick-dots li button{line-height:1!important}.wpcp-carousel-section ul.slick-dots li button:focus{outline:0}.wpcp-carousel-section ul.slick-dots li.slick-active button{background-color:#666}.wpcpro-row.no-gutters>[class*=wpcpro-col-]{padding-right:0;padding-left:0}.wpcpro-row>[class*=wpcpro-col-]{padding:0 10px;padding-bottom:20px}.wpcpro-row{display:flex;flex-wrap:wrap;margin-right:-10px;margin-left:-10px}.wpcpro-post-pagination .ajax-page-numbers,.wpcpro-post-pagination .page-numbers{background:#fff;color:#5e5e5e;border:2px solid #bbb;width:38px;height:38px;line-height:38px;font-size:16px;text-align:center;display:inline-block;margin-right:4px;text-decoration:none;font-weight:700;border-radius:3px;-webkit-transition:all .33s;transition:all .33s;-webkit-box-sizing:content-box;box-sizing:content-box}.wpcpro-post-pagination .ajax-page-numbers.current,.wpcpro-post-pagination .page-numbers.current{cursor:auto;color:#fff;background:#178087;border-color:#178087}.wpcpro-post-pagination-number{margin-top:20px}.wpcpro-post-pagination a.page-numbers:hover,.wpcpro-post-pagination span.current,.wpcpro-post-pagination span:hover{color:#fff;background:#178087;border-color:#178087}.wpcp-single-item{direction:ltr}html[dir=rtl] .wpcp-single-item{direction:rtl}.wpcp-carousel-section .wpcp-slide-image{font-size:0}.wpcp-standard:not(.slick-initialized){display:flex;justify-content:space-between;padding:0;margin-left:-20px}.wpcp-standard:not(.slick-initialized)>div:not(.slick-slide){width:calc(100% / 4);min-width:calc(100% / 4);padding-left:20px}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://shapedplugin.com/donate
|
|
4 |
Tags: wordpress carousel, best carousel plugin, image carousel, image slider, post carousel, custom post carousel, custom taxonomy carousel, woocommerce product carousel, content carousel, video carousel, video slider, video lightbox, youtube carousel, video gallery, carousel, slider, responsive slider, responsive carousel, carousel slider, ticker carousel, center mode carousel, slide anything, image gallery, image lightbox, wordpress image gallery, photo gallery, gallery slider, wordpress gallery plugin, gallery, post slider, vimeo slider, self hosted video carousel, content slider, wordpress slider, featured content slider, html slider, horizontal carousel slider, posts content slider, product carousel, woocommerce slider, woocommerce product slider
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 6.0
|
7 |
-
Stable tag: 2.4.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -327,6 +327,11 @@ Thank you!
|
|
327 |
|
328 |
== Changelog ==
|
329 |
|
|
|
|
|
|
|
|
|
|
|
330 |
= 2.4.7 – May 21, 2022 =
|
331 |
* Tested: WordPress 6.0 compatibility.
|
332 |
* Fix: CSS warning if the margin-bottom of section title leaves empty.
|
4 |
Tags: wordpress carousel, best carousel plugin, image carousel, image slider, post carousel, custom post carousel, custom taxonomy carousel, woocommerce product carousel, content carousel, video carousel, video slider, video lightbox, youtube carousel, video gallery, carousel, slider, responsive slider, responsive carousel, carousel slider, ticker carousel, center mode carousel, slide anything, image gallery, image lightbox, wordpress image gallery, photo gallery, gallery slider, wordpress gallery plugin, gallery, post slider, vimeo slider, self hosted video carousel, content slider, wordpress slider, featured content slider, html slider, horizontal carousel slider, posts content slider, product carousel, woocommerce slider, woocommerce product slider
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 6.0
|
7 |
+
Stable tag: 2.4.8
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
327 |
|
328 |
== Changelog ==
|
329 |
|
330 |
+
= 2.4.8 – Jun 11, 2022 =
|
331 |
+
* Improved: Move Gutenberg assets to the assets folder from src.
|
332 |
+
* Fix: The premium page warnings.
|
333 |
+
* Fix: The popup video position on the premium page.
|
334 |
+
|
335 |
= 2.4.7 – May 21, 2022 =
|
336 |
* Tested: WordPress 6.0 compatibility.
|
337 |
* Fix: CSS warning if the margin-bottom of section title leaves empty.
|
wp-carousel-free.php
CHANGED
@@ -9,7 +9,7 @@
|
|
9 |
* Plugin Name: WordPress Carousel
|
10 |
* Plugin URI: https://shapedplugin.com/plugin/wordpress-carousel-pro/?ref=1
|
11 |
* Description: The Most Powerful and User-friendly WordPress Carousel Plugin. Create beautiful carousels in minutes using Images, Posts, WooCommerce Products etc.
|
12 |
-
* Version: 2.4.
|
13 |
* Author: ShapedPlugin
|
14 |
* Author URI: https://shapedplugin.com/
|
15 |
* License: GPL-2.0+
|
@@ -119,7 +119,7 @@ class SP_WP_Carousel_Free {
|
|
119 |
*/
|
120 |
public function setup() {
|
121 |
$this->plugin_name = 'wp-carousel-free';
|
122 |
-
$this->version = '2.4.
|
123 |
$this->define_constants();
|
124 |
$this->includes();
|
125 |
$this->load_dependencies();
|
9 |
* Plugin Name: WordPress Carousel
|
10 |
* Plugin URI: https://shapedplugin.com/plugin/wordpress-carousel-pro/?ref=1
|
11 |
* Description: The Most Powerful and User-friendly WordPress Carousel Plugin. Create beautiful carousels in minutes using Images, Posts, WooCommerce Products etc.
|
12 |
+
* Version: 2.4.8
|
13 |
* Author: ShapedPlugin
|
14 |
* Author URI: https://shapedplugin.com/
|
15 |
* License: GPL-2.0+
|
119 |
*/
|
120 |
public function setup() {
|
121 |
$this->plugin_name = 'wp-carousel-free';
|
122 |
+
$this->version = '2.4.8';
|
123 |
$this->define_constants();
|
124 |
$this->includes();
|
125 |
$this->load_dependencies();
|