Version Description
- Fix. Instagram video source
Download this release
Release Info
Developer | quadlayers |
Plugin | Instagram Gallery |
Version | 3.2.0 |
Comparing to | |
See all releases |
Code changes from version 3.1.9 to 3.2.0
- assets/backend/js/gutenberg.asset.php +1 -1
- assets/frontend/js/frontend.asset.php +1 -1
- assets/frontend/js/frontend.js.map +1 -1
- includes/api/apiFeed.php +13 -73
- includes/view/backend/pages/accounts.php +2 -2
- includes/view/backend/pages/modals/feed/panel-feed.php +1 -1
- insta-gallery.php +2 -2
- readme.txt +4 -1
assets/backend/js/gutenberg.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('jquery', 'lodash', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('jquery', 'lodash', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => '60109119739d549ee4b75907e38e51ce');
|
assets/frontend/js/frontend.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('jquery'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('jquery'), 'version' => '3cdb22ea051a2fae380a7ecc49f25308');
|
assets/frontend/js/frontend.js.map
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/frontend/index.js","webpack:///./src/frontend/scss/style.scss","webpack:///external {\"this\":\"jQuery\"}"],"names":["swiper_index","$swipers","qligg_load_item_images","$item","next_max_id","$wrap","$","$spinner","feed","data","ajax","url","qligg","ajax_url","type","timeout","action","JSON","stringify","beforeSend","show","success","response","append","hide","$images","trigger","complete","error","jqXHR","textStatus","qligg_init","on","e","images","delegateTarget","$button","options","total","length","loaded","find","target","prop","limit","setTimeout","fadeOut","addClass","each","i","item","$swiper","carousel","slides","slidespv","Swiper","loop","autoHeight","observer","observeParents","slidesPerView","spaceBetween","autoplay","delay","parseInt","autoplay_interval","pagination","el","dynamicBullets","clickable","navigation","nextEl","prevEl","breakpoints","spacing","Math","min","masonry","itemSelector","isResizable","isAnimated","transitionDuration","percentPosition","columnWidth","items","element","stopPropagation","popup","display","magnificPopup","callbacks","beforeOpen","st","mainClass","elementParse","media","profile","counter","caption","info","likes","date","comments","file_type","videos","standard","index","link","profile_picture_url","username","name","src","align","gallery","enabled","preventDefault","hasClass","navigator","appVersion","indexOf","document","body","className"],"mappings":";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;AClFA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAEA;;AACA;;AAEA,IAAIA,YAAY,GAAG,CAAnB;AAAA,IAAsBC,QAAQ,GAAG,EAAjC,C,CAEA;AACA;;AAEA,SAASC,sBAAT,CAAgCC,KAAhC,EAAuCC,WAAvC,EAAoD;AAElD,MAAIC,KAAK,GAAGC,6CAAC,CAAC,qBAAD,EAAwBH,KAAxB,CAAb;AAAA,MACEI,QAAQ,GAAGD,6CAAC,CAAC,wBAAD,EAA2BH,KAA3B,CADd;AAAA,MAEEK,IAAI,GAAGL,KAAK,CAACM,IAAN,CAAW,MAAX,CAFT;AAIAH,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js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./src/frontend/index.js\");\n","import $ from 'jquery';\r\nimport './scss/style.scss';\r\n\r\n/* (function ($) { */\r\n\"use strict\";\r\n\r\nvar swiper_index = 0, $swipers = {};\r\n\r\n// Ajax load\r\n// ---------------------------------------------------------------------------\r\n\r\nfunction qligg_load_item_images($item, next_max_id) {\r\n\r\n var $wrap = $('.insta-gallery-list', $item),\r\n $spinner = $('.insta-gallery-spinner', $item),\r\n feed = $item.data('feed');\r\n\r\n $.ajax({\r\n url: qligg.ajax_url,\r\n type: 'post',\r\n timeout: 30000,\r\n data: {\r\n action: 'qligg_load_item_images',\r\n next_max_id: next_max_id,\r\n feed: JSON.stringify(feed)\r\n },\r\n beforeSend: function () {\r\n $spinner.show();\r\n },\r\n success: function (response) {\r\n\r\n if (response.success !== true) {\r\n $wrap.append($(response.data));\r\n $spinner.hide();\r\n return;\r\n }\r\n var $images = $(response.data);\r\n\r\n $wrap.append($images).trigger('qligg.loaded', [$images]);\r\n\r\n },\r\n complete: function () {\r\n },\r\n error: function (jqXHR, textStatus) {\r\n $spinner.hide();\r\n }\r\n });\r\n\r\n}\r\n\r\nqligg_init()\r\n\r\nexport function qligg_init() {\r\n\r\n\r\n // Images\r\n // ---------------------------------------------------------------------------\r\n\r\n $('.insta-gallery-feed').on('qligg.loaded', function (e, images) {\r\n\r\n var $item = $(e.delegateTarget),\r\n $wrap = $('.insta-gallery-list', $item),\r\n $spinner = $('.insta-gallery-spinner', $item),\r\n $button = $('.insta-gallery-button.load', $item),\r\n options = $item.data('feed'),\r\n total = $(images).length,\r\n loaded = 0;\r\n\r\n\r\n ////// this breaks masonry layout \r\n ///$wrap.trigger('qligg.imagesLoaded', [images]);\r\n\r\n if (total) {\r\n $wrap.find('.insta-gallery-image').on('load loadstart', (e) => {\r\n if (e.type == 'loadstart' && $(e.target).prop('tagName') == 'VIDEO') {\r\n loaded++;\r\n } else\r\n if (e.type == 'load' && $(e.target).prop('tagName') == 'IMG') {\r\n loaded++;\r\n\r\n }\r\n if (loaded >= total) {\r\n $wrap.trigger('qligg.imagesLoaded', [images]);\r\n }\r\n });\r\n }\r\n\r\n if (total < options.limit) {\r\n $spinner.hide();\r\n setTimeout(function () {\r\n $button.fadeOut();\r\n }, 300);\r\n }\r\n\r\n });\r\n\r\n // Spinner\r\n // ---------------------------------------------------------------------------\r\n\r\n $('.insta-gallery-feed').on('qligg.imagesLoaded', function (e) {\r\n\r\n var $item = $(e.delegateTarget),\r\n $spinner = $('.insta-gallery-spinner', $item);\r\n\r\n $spinner.hide();\r\n\r\n });\r\n\r\n // Gallery\r\n // ---------------------------------------------------------------------------\r\n\r\n $('.insta-gallery-feed[data-feed_layout=gallery]').on('qligg.imagesLoaded', function (e, images) {\r\n\r\n var $item = $(e.delegateTarget);\r\n\r\n $item.addClass('loaded');\r\n\r\n $(images).each(function (i, item) {\r\n setTimeout(function () {\r\n $(item).addClass('ig-image-loaded');\r\n }, 150 + (i * 30));\r\n\r\n });\r\n });\r\n\r\n // Carousel\r\n // ---------------------------------------------------------------------------\r\n\r\n $('.insta-gallery-feed[data-feed_layout=carousel]').on('qligg.imagesLoaded', function (e, images) {\r\n\r\n var $item = $(e.delegateTarget);\r\n\r\n $item.addClass('loaded');\r\n\r\n $(images).each(function (i, item) {\r\n //setTimeout(function () {\r\n $(item).addClass('ig-image-loaded');\r\n //}, 500 + (i * 50));\r\n\r\n });\r\n });\r\n\r\n $('.insta-gallery-feed[data-feed_layout=carousel]').on('qligg.imagesLoaded', function (e, images) {\r\n\r\n var $item = $(e.delegateTarget),\r\n $swiper = $('.swiper-container', $item),\r\n options = $item.data('feed');\r\n options.carousel.slides = options.carousel.slidespv;\r\n /// options.carousel.interval = options.carousel.autoplay_interval;\r\n swiper_index++;\r\n\r\n $swipers[swiper_index] = new Swiper($swiper, {\r\n //direction: 'vertical',\r\n //wrapperClass: 'insta-gallery-list',\r\n //slideClass: 'insta-gallery-item',\r\n loop: true,\r\n autoHeight: true,\r\n observer: true,\r\n observeParents: true,\r\n slidesPerView: 1,\r\n spaceBetween: 2,\r\n autoplay: options.carousel.autoplay ? {\r\n delay: parseInt(options.carousel.autoplay_interval),\r\n } : false,\r\n pagination: {\r\n el: '.swiper-pagination',\r\n dynamicBullets: true,\r\n clickable: true,\r\n type: 'bullets',\r\n },\r\n navigation: {\r\n nextEl: '.swiper-button-next',\r\n prevEl: '.swiper-button-prev',\r\n },\r\n breakpoints: {\r\n 320: {\r\n slidesPerView: 1,\r\n spaceBetween: 1,\r\n },\r\n 480: {\r\n spaceBetween: parseInt(options.spacing),\r\n slidesPerView: Math.min(2, parseInt(options.carousel.slides))\r\n },\r\n 768: {\r\n spaceBetween: parseInt(options.spacing),\r\n slidesPerView: Math.min(3, parseInt(options.carousel.slides))\r\n },\r\n 1024: {\r\n spaceBetween: parseInt(options.spacing),\r\n slidesPerView: parseInt(options.carousel.slides)\r\n },\r\n }\r\n });\r\n });\r\n\r\n // Masonry\r\n // ---------------------------------------------------------------------------\r\n\r\n $('.insta-gallery-feed[data-feed_layout=masonry]').on('qligg.imagesLoaded', function (e, images) {\r\n\r\n var $item = $(e.delegateTarget),\r\n $wrap = $('.insta-gallery-list', $item);\r\n\r\n if (!$wrap.data('masonry')) {\r\n $wrap.masonry({\r\n itemSelector: '.insta-gallery-item',\r\n isResizable: true,\r\n isAnimated: false,\r\n transitionDuration: 0,\r\n percentPosition: true,\r\n columnWidth: '.insta-gallery-item:last-child'\r\n });\r\n } else {\r\n $wrap.masonry('appended', images, false);\r\n }\r\n });\r\n\r\n\r\n $('.insta-gallery-feed[data-feed_layout=masonry]').on('layoutComplete', function (e, items) {\r\n\r\n var $item = $(e.delegateTarget);\r\n\r\n $item.addClass('loaded');\r\n\r\n $(items).each(function (i, item) {\r\n // setTimeout(function () {\r\n $(item.element).addClass('ig-image-loaded');\r\n // }, 500 + (i * 50));\r\n\r\n });\r\n });\r\n\r\n // Popup\r\n // ---------------------------------------------------------------------------\r\n $('.insta-gallery-feed').on('qligg.loaded', function (e) {\r\n\r\n var $item = $(e.delegateTarget),\r\n $wrap = $('.insta-gallery-list', $item),\r\n options = $item.data('feed');\r\n\r\n // Redirect\r\n // -------------------------------------------------------------------------\r\n $('.insta-gallery-item .insta-gallery-icon.qligg-icon-instagram', $wrap).on('click', function (e) {\r\n e.stopPropagation();\r\n });\r\n\r\n // Carousel\r\n // -------------------------------------------------------------------------\r\n //$('.insta-gallery-item', $wrap).on('mfpOpen', function (e) {\r\n //});\r\n\r\n if (!options.popup.display) {\r\n return;\r\n }\r\n\r\n $('.insta-gallery-item', $wrap).magnificPopup({\r\n type: 'inline',\r\n callbacks: {\r\n beforeOpen: function () {\r\n this.st.mainClass = this.st.mainClass + ' ' + 'qligg-mfp-wrap';\r\n },\r\n elementParse: function (item) {\r\n\r\n var media = '', profile = '', counter = '', caption = '', info = '', likes = '', date = '', comments = '';\r\n\r\n if (item.el.data('item').type && (item.el.data('item').type == 'video' || item.el.data('item').file_type == 'video')) {\r\n media = '\\n\\\r\n <video autoplay>\\n\\\r\n <source src=\"' + item.el.data('item').videos.standard + '\" type=\"video/mp4\">\\n\\\r\n </video>'\r\n } else {\r\n media = '<img src=\"' + item.el.data('item').images.standard + '\"/>'\r\n }\r\n counter = '<div class=\"mfp-icons\"><div class=\"mfp-counter\">' + (item.index + 1) + ' / ' + $('.insta-gallery-item', $wrap).length + '</div><a class=\"mfp-link\" href=\"' + item.el.data('item').link + '\" target=\"_blank\" rel=\"noopener\"><i class=\"qligg-icon-instagram\"></i>Instagram</a></div>';\r\n\r\n if (options.popup.profile) {\r\n profile = '<div class=\"mfp-user\"><img src=\"' + options.profile.profile_picture_url + '\"><a href=\"https://www.instagram.com/' + options.profile.username + '\" title=\"' + options.profile.name + '\" target=\"_blank\" rel=\"noopener\">' + options.profile.username + '</a></div>';\r\n }\r\n\r\n if (options.popup.caption) {\r\n caption = '<div class=\"mfp-caption\">' + item.el.data('item').caption + '</div>';\r\n }\r\n\r\n if (item.el.data('item').date) {\r\n date = '<div class=\"mfp-date\">' + item.el.data('item').date + '</div>';\r\n }\r\n\r\n if (item.el.data('item').comments && options.popup.comments) {\r\n comments = '<div class=\"mfp-comments\"><i class=\"qligg-icon-comment\"></i>' + item.el.data('item').comments + '</div>';\r\n }\r\n\r\n if (item.el.data('item').likes && options.popup.likes) {\r\n likes = '<div class=\"mfp-likes\"><i class=\"qligg-icon-heart\"></i>' + item.el.data('item').likes + '</div>';\r\n }\r\n\r\n if (options.popup.likes || options.popup.comments) {\r\n info = '<div class=\"mfp-info\">' + likes + comments + date + '</div>';\r\n }\r\n\r\n item.src = '<div class=\"mfp-figure ' + options.popup.align + '\">' + media + '<div class=\"mfp-close\"></div><div class=\"mfp-bottom-bar\"><div class=\"mfp-title\">' + profile + counter + caption + info + '</div></div></div>';\r\n }\r\n },\r\n gallery: {\r\n enabled: true\r\n }\r\n });\r\n\r\n });\r\n\r\n // Init\r\n // ---------------------------------------------------------------------------\r\n\r\n $('.insta-gallery-feed').on('click', '.insta-gallery-button.load', function (e) {\r\n e.preventDefault();\r\n\r\n var $item = $(e.delegateTarget);\r\n\r\n if (!$item.hasClass('loaded')) {\r\n return false;\r\n }\r\n\r\n var next_max_id = $('.insta-gallery-list .insta-gallery-item:last-child', $item).data('item').i;\r\n\r\n qligg_load_item_images($item, next_max_id);\r\n\r\n });\r\n\r\n $('.insta-gallery-feed').each(function (index, item) {\r\n\r\n var $item = $(item);\r\n\r\n if ($item.hasClass('loaded')) {\r\n return false;\r\n }\r\n\r\n qligg_load_item_images($item, 0);\r\n\r\n });\r\n\r\n // IE8\r\n // ---------------------------------------------------------------------------\r\n\r\n}\r\n\r\nif (navigator.appVersion.indexOf(\"MSIE 8.\") != -1) {\r\n document.body.className += ' ' + 'instagal-ie-8';\r\n}\r\nif (navigator.appVersion.indexOf(\"MSIE 9.\") != -1) {\r\n document.body.className += ' ' + 'instagal-ie-9';\r\n}\r\n\r\n///// })(jQuery); \r\n","// removed by extract-text-webpack-plugin","(function() { module.exports = this[\"jQuery\"]; }());"],"sourceRoot":""}
|
1 |
+
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/frontend/index.js","webpack:///./src/frontend/scss/style.scss","webpack:///external {\"this\":\"jQuery\"}"],"names":["swiper_index","$swipers","qligg_load_item_images","$item","next_max_id","$wrap","$","$spinner","feed","data","ajax","url","qligg","ajax_url","type","timeout","action","JSON","stringify","beforeSend","show","success","response","append","hide","$images","trigger","complete","error","jqXHR","textStatus","qligg_init","on","e","images","delegateTarget","$button","options","total","length","loaded","find","limit","setTimeout","fadeOut","addClass","each","i","item","$swiper","carousel","slides","slidespv","Swiper","loop","autoHeight","observer","observeParents","slidesPerView","spaceBetween","autoplay","delay","parseInt","autoplay_interval","pagination","el","dynamicBullets","clickable","navigation","nextEl","prevEl","breakpoints","spacing","Math","min","masonry","itemSelector","isResizable","isAnimated","transitionDuration","percentPosition","columnWidth","items","element","stopPropagation","popup","display","magnificPopup","callbacks","beforeOpen","st","mainClass","elementParse","media","profile","counter","caption","info","likes","date","comments","file_type","videos","standard","index","link","profile_picture_url","username","name","src","align","gallery","enabled","preventDefault","hasClass","navigator","appVersion","indexOf","document","body","className"],"mappings":";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gC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AQ,CAAR,CAAtB;AAED,GAVD,EAnR2B,CA+R3B;AACA;AAED;;AAED,IAAIgH,SAAS,CAACC,UAAV,CAAqBC,OAArB,CAA6B,SAA7B,KAA2C,CAAC,CAAhD,EAAmD;AACjDC,UAAQ,CAACC,IAAT,CAAcC,SAAd,IAA2B,MAAM,eAAjC;AACD;;AACD,IAAIL,SAAS,CAACC,UAAV,CAAqBC,OAArB,CAA6B,SAA7B,KAA2C,CAAC,CAAhD,EAAmD;AACjDC,UAAQ,CAACC,IAAT,CAAcC,SAAd,IAA2B,MAAM,eAAjC;AACD,C,CAED,iB;;;;;;;;;;;AC/VA,yC;;;;;;;;;;;ACAA,aAAa,iCAAiC,EAAE,I","file":"frontend.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./src/frontend/index.js\");\n","import $ from 'jquery';\r\nimport './scss/style.scss';\r\n\r\n/* (function ($) { */\r\n\"use strict\";\r\n\r\nvar swiper_index = 0, $swipers = {};\r\n\r\n// Ajax load\r\n// ---------------------------------------------------------------------------\r\n\r\nfunction qligg_load_item_images($item, next_max_id) {\r\n\r\n var $wrap = $('.insta-gallery-list', $item),\r\n $spinner = $('.insta-gallery-spinner', $item),\r\n feed = $item.data('feed');\r\n\r\n $.ajax({\r\n url: qligg.ajax_url,\r\n type: 'post',\r\n timeout: 30000,\r\n data: {\r\n action: 'qligg_load_item_images',\r\n next_max_id: next_max_id,\r\n feed: JSON.stringify(feed)\r\n },\r\n beforeSend: function () {\r\n $spinner.show();\r\n },\r\n success: function (response) {\r\n\r\n if (response.success !== true) {\r\n $wrap.append($(response.data));\r\n $spinner.hide();\r\n return;\r\n }\r\n var $images = $(response.data);\r\n\r\n $wrap.append($images).trigger('qligg.loaded', [$images]);\r\n\r\n },\r\n complete: function () {\r\n },\r\n error: function (jqXHR, textStatus) {\r\n $spinner.hide();\r\n }\r\n });\r\n\r\n}\r\n\r\nqligg_init()\r\n\r\nexport function qligg_init() {\r\n\r\n\r\n // Images\r\n // ---------------------------------------------------------------------------\r\n\r\n $('.insta-gallery-feed').on('qligg.loaded', function (e, images) {\r\n\r\n var $item = $(e.delegateTarget),\r\n $wrap = $('.insta-gallery-list', $item),\r\n $spinner = $('.insta-gallery-spinner', $item),\r\n $button = $('.insta-gallery-button.load', $item),\r\n options = $item.data('feed'),\r\n total = $(images).length,\r\n loaded = 0;\r\n\r\n\r\n ////// this breaks masonry layout \r\n ///$wrap.trigger('qligg.imagesLoaded', [images]);\r\n\r\n if (total) {\r\n $wrap.find('.insta-gallery-image').on('load loadstart', (e) => {\r\n /*if (e.type == 'loadstart' && $(e.target).prop('tagName') == 'VIDEO') {\r\n loaded++;\r\n } else\r\n if (e.type == 'load' && $(e.target).prop('tagName') == 'IMG') {\r\n loaded++;\r\n } */\r\n loaded++;\r\n if (loaded >= total) {\r\n $wrap.trigger('qligg.imagesLoaded', [images]);\r\n }\r\n });\r\n }\r\n\r\n if (total < options.limit) {\r\n $spinner.hide();\r\n setTimeout(function () {\r\n $button.fadeOut();\r\n }, 300);\r\n }\r\n\r\n });\r\n\r\n // Spinner\r\n // ---------------------------------------------------------------------------\r\n\r\n $('.insta-gallery-feed').on('qligg.imagesLoaded', function (e) {\r\n\r\n var $item = $(e.delegateTarget),\r\n $spinner = $('.insta-gallery-spinner', $item);\r\n\r\n $spinner.hide();\r\n\r\n });\r\n\r\n // Gallery\r\n // ---------------------------------------------------------------------------\r\n\r\n $('.insta-gallery-feed[data-feed_layout=gallery]').on('qligg.imagesLoaded', function (e, images) {\r\n\r\n var $item = $(e.delegateTarget);\r\n\r\n $item.addClass('loaded');\r\n\r\n $(images).each(function (i, item) {\r\n setTimeout(function () {\r\n $(item).addClass('ig-image-loaded');\r\n }, 150 + (i * 30));\r\n\r\n });\r\n });\r\n\r\n // Carousel\r\n // ---------------------------------------------------------------------------\r\n\r\n $('.insta-gallery-feed[data-feed_layout=carousel]').on('qligg.imagesLoaded', function (e, images) {\r\n\r\n var $item = $(e.delegateTarget);\r\n\r\n $item.addClass('loaded');\r\n\r\n $(images).each(function (i, item) {\r\n //setTimeout(function () {\r\n $(item).addClass('ig-image-loaded');\r\n //}, 500 + (i * 50));\r\n\r\n });\r\n });\r\n\r\n $('.insta-gallery-feed[data-feed_layout=carousel]').on('qligg.imagesLoaded', function (e, images) {\r\n\r\n var $item = $(e.delegateTarget),\r\n $swiper = $('.swiper-container', $item),\r\n options = $item.data('feed');\r\n options.carousel.slides = options.carousel.slidespv;\r\n /// options.carousel.interval = options.carousel.autoplay_interval;\r\n swiper_index++;\r\n\r\n $swipers[swiper_index] = new Swiper($swiper, {\r\n //direction: 'vertical',\r\n //wrapperClass: 'insta-gallery-list',\r\n //slideClass: 'insta-gallery-item',\r\n loop: true,\r\n autoHeight: true,\r\n observer: true,\r\n observeParents: true,\r\n slidesPerView: 1,\r\n spaceBetween: 2,\r\n autoplay: options.carousel.autoplay ? {\r\n delay: parseInt(options.carousel.autoplay_interval),\r\n } : false,\r\n pagination: {\r\n el: '.swiper-pagination',\r\n dynamicBullets: true,\r\n clickable: true,\r\n type: 'bullets',\r\n },\r\n navigation: {\r\n nextEl: '.swiper-button-next',\r\n prevEl: '.swiper-button-prev',\r\n },\r\n breakpoints: {\r\n 320: {\r\n slidesPerView: 1,\r\n spaceBetween: 1,\r\n },\r\n 480: {\r\n spaceBetween: parseInt(options.spacing),\r\n slidesPerView: Math.min(2, parseInt(options.carousel.slides))\r\n },\r\n 768: {\r\n spaceBetween: parseInt(options.spacing),\r\n slidesPerView: Math.min(3, parseInt(options.carousel.slides))\r\n },\r\n 1024: {\r\n spaceBetween: parseInt(options.spacing),\r\n slidesPerView: parseInt(options.carousel.slides)\r\n },\r\n }\r\n });\r\n });\r\n\r\n // Masonry\r\n // ---------------------------------------------------------------------------\r\n\r\n $('.insta-gallery-feed[data-feed_layout=masonry]').on('qligg.imagesLoaded', function (e, images) {\r\n\r\n var $item = $(e.delegateTarget),\r\n $wrap = $('.insta-gallery-list', $item);\r\n\r\n if (!$wrap.data('masonry')) {\r\n $wrap.masonry({\r\n itemSelector: '.insta-gallery-item',\r\n isResizable: true,\r\n isAnimated: false,\r\n transitionDuration: 0,\r\n percentPosition: true,\r\n columnWidth: '.insta-gallery-item:last-child'\r\n });\r\n } else {\r\n $wrap.masonry('appended', images, false);\r\n }\r\n });\r\n\r\n\r\n $('.insta-gallery-feed[data-feed_layout=masonry]').on('layoutComplete', function (e, items) {\r\n\r\n var $item = $(e.delegateTarget);\r\n\r\n $item.addClass('loaded');\r\n\r\n $(items).each(function (i, item) {\r\n // setTimeout(function () {\r\n $(item.element).addClass('ig-image-loaded');\r\n // }, 500 + (i * 50));\r\n\r\n });\r\n });\r\n\r\n // Popup\r\n // ---------------------------------------------------------------------------\r\n $('.insta-gallery-feed').on('qligg.loaded', function (e) {\r\n\r\n var $item = $(e.delegateTarget),\r\n $wrap = $('.insta-gallery-list', $item),\r\n options = $item.data('feed');\r\n\r\n // Redirect\r\n // -------------------------------------------------------------------------\r\n $('.insta-gallery-item .insta-gallery-icon.qligg-icon-instagram', $wrap).on('click', function (e) {\r\n e.stopPropagation();\r\n });\r\n\r\n // Carousel\r\n // -------------------------------------------------------------------------\r\n //$('.insta-gallery-item', $wrap).on('mfpOpen', function (e) {\r\n //});\r\n\r\n if (!options.popup.display) {\r\n return;\r\n }\r\n\r\n $('.insta-gallery-item', $wrap).magnificPopup({\r\n type: 'inline',\r\n callbacks: {\r\n beforeOpen: function () {\r\n this.st.mainClass = this.st.mainClass + ' ' + 'qligg-mfp-wrap';\r\n },\r\n elementParse: function (item) {\r\n\r\n var media = '', profile = '', counter = '', caption = '', info = '', likes = '', date = '', comments = '';\r\n\r\n if (item.el.data('item').type && (item.el.data('item').type == 'video' || item.el.data('item').file_type == 'video')) {\r\n media = '\\n\\\r\n <video autoplay>\\n\\\r\n <source src=\"' + item.el.data('item').videos.standard + '\" type=\"video/mp4\">\\n\\\r\n </video>'\r\n } else {\r\n media = '<img src=\"' + item.el.data('item').images.standard + '\"/>'\r\n }\r\n counter = '<div class=\"mfp-icons\"><div class=\"mfp-counter\">' + (item.index + 1) + ' / ' + $('.insta-gallery-item', $wrap).length + '</div><a class=\"mfp-link\" href=\"' + item.el.data('item').link + '\" target=\"_blank\" rel=\"noopener\"><i class=\"qligg-icon-instagram\"></i>Instagram</a></div>';\r\n\r\n if (options.popup.profile) {\r\n profile = '<div class=\"mfp-user\"><img src=\"' + options.profile.profile_picture_url + '\"><a href=\"https://www.instagram.com/' + options.profile.username + '\" title=\"' + options.profile.name + '\" target=\"_blank\" rel=\"noopener\">' + options.profile.username + '</a></div>';\r\n }\r\n\r\n if (options.popup.caption) {\r\n caption = '<div class=\"mfp-caption\">' + item.el.data('item').caption + '</div>';\r\n }\r\n\r\n if (item.el.data('item').date) {\r\n date = '<div class=\"mfp-date\">' + item.el.data('item').date + '</div>';\r\n }\r\n\r\n if (item.el.data('item').comments && options.popup.comments) {\r\n comments = '<div class=\"mfp-comments\"><i class=\"qligg-icon-comment\"></i>' + item.el.data('item').comments + '</div>';\r\n }\r\n\r\n if (item.el.data('item').likes && options.popup.likes) {\r\n likes = '<div class=\"mfp-likes\"><i class=\"qligg-icon-heart\"></i>' + item.el.data('item').likes + '</div>';\r\n }\r\n\r\n if (options.popup.likes || options.popup.comments) {\r\n info = '<div class=\"mfp-info\">' + likes + comments + date + '</div>';\r\n }\r\n\r\n item.src = '<div class=\"mfp-figure ' + options.popup.align + '\">' + media + '<div class=\"mfp-close\"></div><div class=\"mfp-bottom-bar\"><div class=\"mfp-title\">' + profile + counter + caption + info + '</div></div></div>';\r\n }\r\n },\r\n gallery: {\r\n enabled: true\r\n }\r\n });\r\n\r\n });\r\n\r\n // Init\r\n // ---------------------------------------------------------------------------\r\n\r\n $('.insta-gallery-feed').on('click', '.insta-gallery-button.load', function (e) {\r\n e.preventDefault();\r\n\r\n var $item = $(e.delegateTarget);\r\n\r\n if (!$item.hasClass('loaded')) {\r\n return false;\r\n }\r\n\r\n var next_max_id = $('.insta-gallery-list .insta-gallery-item:last-child', $item).data('item').i;\r\n\r\n qligg_load_item_images($item, next_max_id);\r\n\r\n });\r\n\r\n $('.insta-gallery-feed').each(function (index, item) {\r\n\r\n var $item = $(item);\r\n\r\n if ($item.hasClass('loaded')) {\r\n return false;\r\n }\r\n\r\n qligg_load_item_images($item, 0);\r\n\r\n });\r\n\r\n // IE8\r\n // ---------------------------------------------------------------------------\r\n\r\n}\r\n\r\nif (navigator.appVersion.indexOf(\"MSIE 8.\") != -1) {\r\n document.body.className += ' ' + 'instagal-ie-8';\r\n}\r\nif (navigator.appVersion.indexOf(\"MSIE 9.\") != -1) {\r\n document.body.className += ' ' + 'instagal-ie-9';\r\n}\r\n\r\n///// })(jQuery); \r\n","// removed by extract-text-webpack-plugin","(function() { module.exports = this[\"jQuery\"]; }());"],"sourceRoot":""}
|
includes/api/apiFeed.php
CHANGED
@@ -39,24 +39,22 @@ class QLIGG_API_Feed
|
|
39 |
|
40 |
$hashtags = $this->getItemHashtags($item);
|
41 |
|
42 |
-
$image_url = $this->getItemImageURL($item);
|
43 |
-
|
44 |
$media_url = $this->getItemMediaURL($item);
|
45 |
|
46 |
$date = $this->getItemDate($item);
|
47 |
|
48 |
$file_type = $this->getFileType($media_url);
|
49 |
-
|
50 |
$instagram_items[] = array(
|
51 |
'i' => $i,
|
52 |
'id' => $item['id'],
|
53 |
-
'type' => strtolower(str_replace('_ALBUM', '', $item['media_type'])),
|
54 |
'file_type' => $file_type,
|
55 |
'media' => $media_url,
|
56 |
'images' => array(
|
57 |
-
'standard' => $
|
58 |
-
'medium' => $
|
59 |
-
'small' => $
|
60 |
),
|
61 |
'videos' => array(
|
62 |
'standard' => $media_url,
|
@@ -83,78 +81,18 @@ class QLIGG_API_Feed
|
|
83 |
return $instagram_items;
|
84 |
}
|
85 |
|
86 |
-
function getFileType($
|
87 |
{
|
88 |
-
$type = parse_url($
|
89 |
|
90 |
$file_type = pathinfo($type['path'], PATHINFO_EXTENSION);
|
91 |
|
92 |
-
if($file_type == 'mp4'){
|
93 |
return 'video';
|
94 |
}
|
95 |
return 'image';
|
96 |
}
|
97 |
|
98 |
-
/* function setupPersonalMediaItems($data, $last_id = null)
|
99 |
-
{
|
100 |
-
|
101 |
-
static $load = false;
|
102 |
-
static $i = 1;
|
103 |
-
|
104 |
-
if (!$last_id) {
|
105 |
-
$load = true;
|
106 |
-
}
|
107 |
-
|
108 |
-
$instagram_items = array();
|
109 |
-
|
110 |
-
if (is_array($data) && !empty($data)) {
|
111 |
-
|
112 |
-
foreach ($data as $item) {
|
113 |
-
|
114 |
-
if ($load) {
|
115 |
-
|
116 |
-
$hashtags = $this->getItemHashtags($item);
|
117 |
-
|
118 |
-
$image_url = $this->getItemImageURL($item);
|
119 |
-
|
120 |
-
$media_url = $this->getItemMediaURL($item);
|
121 |
-
|
122 |
-
$date = $this->getItemDate($item);
|
123 |
-
$instagram_items[] = array(
|
124 |
-
'i' => $i,
|
125 |
-
'id' => $item['id'],
|
126 |
-
'type' => strtolower(str_replace('_ALBUM', '', $item['media_type'])),
|
127 |
-
'media' => $media_url,
|
128 |
-
'images' => array(
|
129 |
-
'standard' => $image_url,
|
130 |
-
'medium' => $image_url,
|
131 |
-
'small' => $image_url,
|
132 |
-
),
|
133 |
-
'videos' => array(
|
134 |
-
'standard' => $media_url,
|
135 |
-
'medium' => $media_url,
|
136 |
-
'small' => $media_url,
|
137 |
-
),
|
138 |
-
'likes' => isset($item['like_count']) ? $item['like_count'] : false,
|
139 |
-
'comments' => isset($item['comments_count']) ? $item['comments_count'] : false,
|
140 |
-
'caption' => preg_replace('/(?<!\S)#([0-9a-zA-Z]+)/', "<a href=\"{$this->instagram_url}/explore/tags/$1\">#$1</a>", htmlspecialchars(@$item['caption'])),
|
141 |
-
'hashtags' => $hashtags, //array_map('utf8_encode', (array) @$hashtags[1]), // issue with uft 8 encode breakes json_encode
|
142 |
-
'link' => $item['permalink'],
|
143 |
-
'date' => $date
|
144 |
-
);
|
145 |
-
}
|
146 |
-
|
147 |
-
if ($last_id && ($last_id == $i)) {
|
148 |
-
$i = $last_id;
|
149 |
-
$load = true;
|
150 |
-
}
|
151 |
-
$i++;
|
152 |
-
}
|
153 |
-
}
|
154 |
-
|
155 |
-
return $instagram_items;
|
156 |
-
}
|
157 |
-
*/
|
158 |
function getItemMediaURL(array $item = [])
|
159 |
{
|
160 |
if (isset($item['media_type'])) {
|
@@ -163,7 +101,9 @@ class QLIGG_API_Feed
|
|
163 |
$image = @$item['media_url'];
|
164 |
break;
|
165 |
case 'VIDEO':
|
166 |
-
|
|
|
|
|
167 |
break;
|
168 |
case 'CAROUSEL_ALBUM':
|
169 |
$image = @$item['children']['data'][0]['media_url'];
|
@@ -174,7 +114,7 @@ class QLIGG_API_Feed
|
|
174 |
return $image;
|
175 |
}
|
176 |
|
177 |
-
function getItemImageURL(array $item = [])
|
178 |
{
|
179 |
|
180 |
if (isset($item['media_type'])) {
|
@@ -197,7 +137,7 @@ class QLIGG_API_Feed
|
|
197 |
|
198 |
|
199 |
return $image;
|
200 |
-
}
|
201 |
|
202 |
function getItemDate(array $item = [])
|
203 |
{
|
39 |
|
40 |
$hashtags = $this->getItemHashtags($item);
|
41 |
|
|
|
|
|
42 |
$media_url = $this->getItemMediaURL($item);
|
43 |
|
44 |
$date = $this->getItemDate($item);
|
45 |
|
46 |
$file_type = $this->getFileType($media_url);
|
47 |
+
|
48 |
$instagram_items[] = array(
|
49 |
'i' => $i,
|
50 |
'id' => $item['id'],
|
51 |
+
'type' => ucwords($file_type),//strtolower(str_replace('_ALBUM', '', $item['media_type'])),
|
52 |
'file_type' => $file_type,
|
53 |
'media' => $media_url,
|
54 |
'images' => array(
|
55 |
+
'standard' => $media_url,
|
56 |
+
'medium' => $media_url,
|
57 |
+
'small' => $media_url,
|
58 |
),
|
59 |
'videos' => array(
|
60 |
'standard' => $media_url,
|
81 |
return $instagram_items;
|
82 |
}
|
83 |
|
84 |
+
function getFileType($media_url)
|
85 |
{
|
86 |
+
$type = parse_url($media_url);
|
87 |
|
88 |
$file_type = pathinfo($type['path'], PATHINFO_EXTENSION);
|
89 |
|
90 |
+
if ($file_type == 'mp4') {
|
91 |
return 'video';
|
92 |
}
|
93 |
return 'image';
|
94 |
}
|
95 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
function getItemMediaURL(array $item = [])
|
97 |
{
|
98 |
if (isset($item['media_type'])) {
|
101 |
$image = @$item['media_url'];
|
102 |
break;
|
103 |
case 'VIDEO':
|
104 |
+
if (!$image = @$item['media_url']) {
|
105 |
+
$image = @$item['thumbnail_url'];
|
106 |
+
}
|
107 |
break;
|
108 |
case 'CAROUSEL_ALBUM':
|
109 |
$image = @$item['children']['data'][0]['media_url'];
|
114 |
return $image;
|
115 |
}
|
116 |
|
117 |
+
/* function getItemImageURL(array $item = [])
|
118 |
{
|
119 |
|
120 |
if (isset($item['media_type'])) {
|
137 |
|
138 |
|
139 |
return $image;
|
140 |
+
} */
|
141 |
|
142 |
function getItemDate(array $item = [])
|
143 |
{
|
includes/view/backend/pages/accounts.php
CHANGED
@@ -16,8 +16,8 @@
|
|
16 |
</a>
|
17 |
<!-- <span style="float: none; margin-top: 0;" class="spinner"></span> -->
|
18 |
<a style="margin: 0 30px" target="_blank" href="https://quadlayers.com/documentation/instagram-feed-gallery/api/business/?utm_source=qligg_admin"><?php esc_html_e('Create business account', 'insta-gallery'); ?></a>
|
19 |
-
|
20 |
-
|
21 |
<span class="description hidden"><small><?php esc_html_e('Multiple feeds are only allowed in the premium version.', 'insta-gallery'); ?></small></span>
|
22 |
</span>
|
23 |
</p>
|
16 |
</a>
|
17 |
<!-- <span style="float: none; margin-top: 0;" class="spinner"></span> -->
|
18 |
<a style="margin: 0 30px" target="_blank" href="https://quadlayers.com/documentation/instagram-feed-gallery/api/business/?utm_source=qligg_admin"><?php esc_html_e('Create business account', 'insta-gallery'); ?></a>
|
19 |
+
<a id="qligg-add-token" href="javascript:;"><?php esc_html_e('Button not working?', 'insta-gallery'); ?></a>
|
20 |
+
<span class="qligg-premium-field">
|
21 |
<span class="description hidden"><small><?php esc_html_e('Multiple feeds are only allowed in the premium version.', 'insta-gallery'); ?></small></span>
|
22 |
</span>
|
23 |
</p>
|
includes/view/backend/pages/modals/feed/panel-feed.php
CHANGED
@@ -131,7 +131,7 @@
|
|
131 |
</p>
|
132 |
</div>
|
133 |
|
134 |
-
<div class="options_group qligg-premium-field <# if(!_.contains(['highlight'
|
135 |
<p class="form-field">
|
136 |
<label><?php esc_html_e('Highlight by tag', 'insta-gallery'); ?></label>
|
137 |
<textarea name="highlight[tag]" placeholder="tag1, tag2, tag3">{{data.highlight.tag}}</textarea>
|
131 |
</p>
|
132 |
</div>
|
133 |
|
134 |
+
<div class="options_group qligg-premium-field <# if(!_.contains(['highlight'], data.layout)) { #>hidden<# } #>">
|
135 |
<p class="form-field">
|
136 |
<label><?php esc_html_e('Highlight by tag', 'insta-gallery'); ?></label>
|
137 |
<textarea name="highlight[tag]" placeholder="tag1, tag2, tag3">{{data.highlight.tag}}</textarea>
|
insta-gallery.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Social Feed Gallery
|
5 |
* Plugin URI: https://quadlayers.com/portfolio/instagram-feed-gallery/
|
6 |
* Description: Display beautiful and responsive galleries on your website from your Instagram feed account.
|
7 |
-
* Version: 3.
|
8 |
* Author: QuadLayers
|
9 |
* Author URI: https://quadlayers.com
|
10 |
* License: GPLv3
|
@@ -19,7 +19,7 @@ if (!defined('QLIGG_PLUGIN_NAME')) {
|
|
19 |
define('QLIGG_PLUGIN_NAME', 'Social Feed Gallery');
|
20 |
}
|
21 |
if (!defined('QLIGG_PLUGIN_VERSION')) {
|
22 |
-
define('QLIGG_PLUGIN_VERSION', '3.
|
23 |
}
|
24 |
if (!defined('QLIGG_PLUGIN_FILE')) {
|
25 |
define('QLIGG_PLUGIN_FILE', __FILE__);
|
4 |
* Plugin Name: Social Feed Gallery
|
5 |
* Plugin URI: https://quadlayers.com/portfolio/instagram-feed-gallery/
|
6 |
* Description: Display beautiful and responsive galleries on your website from your Instagram feed account.
|
7 |
+
* Version: 3.2.0
|
8 |
* Author: QuadLayers
|
9 |
* Author URI: https://quadlayers.com
|
10 |
* License: GPLv3
|
19 |
define('QLIGG_PLUGIN_NAME', 'Social Feed Gallery');
|
20 |
}
|
21 |
if (!defined('QLIGG_PLUGIN_VERSION')) {
|
22 |
+
define('QLIGG_PLUGIN_VERSION', '3.2.0');
|
23 |
}
|
24 |
if (!defined('QLIGG_PLUGIN_FILE')) {
|
25 |
define('QLIGG_PLUGIN_FILE', __FILE__);
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://quadlayers.com/portfolio/instagram-gallery/
|
|
4 |
Tags: Instagram, Instagram feed, Instagram gallery, Instagram photos, Instagram widget, Instagram pictures
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 5.6
|
7 |
-
Stable tag: 3.
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -105,6 +105,9 @@ There may be some other plugins(like: fancybox, elementor) which also uses image
|
|
105 |
|
106 |
== Changelog ==
|
107 |
|
|
|
|
|
|
|
108 |
= 3.1.9 =
|
109 |
* Fix. Instagram account feed video
|
110 |
* Fix. firefox masonry
|
4 |
Tags: Instagram, Instagram feed, Instagram gallery, Instagram photos, Instagram widget, Instagram pictures
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 5.6
|
7 |
+
Stable tag: 3.2.0
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
105 |
|
106 |
== Changelog ==
|
107 |
|
108 |
+
= 3.2.0 =
|
109 |
+
* Fix. Instagram video source
|
110 |
+
|
111 |
= 3.1.9 =
|
112 |
* Fix. Instagram account feed video
|
113 |
* Fix. firefox masonry
|