-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #99 from oceanwp/rc-2.2.9
Rc 2.2.9
- Loading branch information
Showing
9 changed files
with
122 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
(function($) { | ||
function loadFlickrPhotos($scope) { | ||
var $container = $scope.find('.oceanwp-flickr-container'); | ||
if (!$container.length) { | ||
return; | ||
} | ||
|
||
$container.each(function() { | ||
var $this = $(this); | ||
var userId = $this.data('user-id'); | ||
var maxPhotos = $this.data('max-photos'); | ||
var containerId = $this.attr('id'); | ||
var callbackName = 'jsonFlickrFeed_' + containerId; | ||
var feedUrl = 'https://www.flickr.com/services/feeds/photos_public.gne?id=' + userId + '&format=json&jsoncallback=' + callbackName; | ||
|
||
function getPhotoUrl(photo) { | ||
return photo.media.m.replace('_m.jpg', '_q.jpg'); | ||
} | ||
|
||
window[callbackName] = function(data) { | ||
var counter = 0; | ||
$.each(data.items, function(i, item) { | ||
if (counter < maxPhotos) { | ||
var photoUrl = getPhotoUrl(item); | ||
$this.append('<img src="' + photoUrl + '" alt="' + item.title + '">'); | ||
counter++; | ||
} | ||
}); | ||
}; | ||
|
||
var script = document.createElement('script'); | ||
script.src = feedUrl; | ||
document.head.appendChild(script); | ||
}); | ||
} | ||
|
||
// Execute when the document is ready | ||
$(document).ready(function() { | ||
loadFlickrPhotos($(document)); | ||
}); | ||
|
||
// Execute when Elementor previews are loaded | ||
$(window).on('elementor/frontend/init', function() { | ||
elementorFrontend.hooks.addAction('frontend/element_ready/widget', function($scope) { | ||
loadFlickrPhotos($scope); | ||
}); | ||
}); | ||
})(jQuery); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,14 +2,14 @@ | |
# This file is distributed under the same license as the Ocean Extra plugin. | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Ocean Extra 2.2.8\n" | ||
"Project-Id-Version: Ocean Extra 2.2.9\n" | ||
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/ocean-extra\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"POT-Creation-Date: 2024-05-22T07:02:04+00:00\n" | ||
"POT-Creation-Date: 2024-06-05T07:21:26+00:00\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"X-Generator: WP-CLI 2.9.0\n" | ||
"X-Domain: ocean-extra\n" | ||
|
@@ -6157,7 +6157,7 @@ msgstr "" | |
#: includes/widgets/custom-links.php:139 | ||
#: includes/widgets/custom-menu.php:290 | ||
#: includes/widgets/facebook.php:185 | ||
#: includes/widgets/flickr.php:112 | ||
#: includes/widgets/flickr.php:114 | ||
#: includes/widgets/instagram.php:135 | ||
#: includes/widgets/mailchimp.php:250 | ||
#: includes/widgets/recent-posts.php:223 | ||
|
@@ -8248,27 +8248,27 @@ msgstr "" | |
msgid "Pulls in images from your flickr account." | ||
msgstr "" | ||
|
||
#: includes/widgets/flickr.php:59 | ||
#: includes/widgets/flickr.php:61 | ||
msgid "View stream on flickr" | ||
msgstr "" | ||
|
||
#: includes/widgets/flickr.php:100 | ||
#: includes/widgets/flickr.php:102 | ||
msgid "Flickr Photos" | ||
msgstr "" | ||
|
||
#: includes/widgets/flickr.php:117 | ||
#: includes/widgets/flickr.php:119 | ||
msgid "Flickr ID" | ||
msgstr "" | ||
|
||
#: includes/widgets/flickr.php:119 | ||
#: includes/widgets/flickr.php:121 | ||
msgid "Enter the url of your Flickr page on this site: idgettr.com." | ||
msgstr "" | ||
|
||
#: includes/widgets/flickr.php:123 | ||
#: includes/widgets/flickr.php:125 | ||
msgid "Number:" | ||
msgstr "" | ||
|
||
#: includes/widgets/flickr.php:125 | ||
#: includes/widgets/flickr.php:127 | ||
msgid "The maximum is 10 images." | ||
msgstr "" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters