Skip to content

Commit

Permalink
1.2.12
Browse files Browse the repository at this point in the history
  • Loading branch information
Stiofan committed Jul 4, 2024
1 parent 99c2fb9 commit 15e822c
Show file tree
Hide file tree
Showing 10 changed files with 72 additions and 36 deletions.
2 changes: 1 addition & 1 deletion includes/class-import-export.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public function process_users_export(){

if ( $done >= 100 ) {
$this->step = 'done';
$new_filename = 'uwp-users-export-' . date( 'y-m-d-H-i' ) . '.csv';
$new_filename = 'uwp-users-export-' . date( 'y-m-d-H-i' ) . '-' . wp_generate_password(12, false ) . '.csv';
$new_file = $this->export_dir . $new_filename;

if ( file_exists( $this->file ) ) {
Expand Down
10 changes: 7 additions & 3 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
=== UsersWP - Front-end login form, User Registration, User Profile & Members Directory plugin for WordPress ===
=== UsersWP - Front-end login form, User Registration, User Profile & Members Directory plugin for WP ===
Contributors: stiofansisland, paoltaia, ayecode, ismiaini
Donate link: https://www.ko-fi.com/stiofan
Tags: login form, registration, registration form, user profile, user registration, members, membership
Requires at least: 4.9
Tested up to: 6.5
Stable tag: 1.2.11
Tested up to: 6.6
Stable tag: 1.2.12
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -146,6 +146,10 @@ Yes, you can customize it with Elementor, but also with Gutenberg, Divi, Beaver

== Changelog ==

= 1.2.12 - 2024-07-04 =
* Added random element to export filenames - ADDED
* AyeCode UI package updated to latest - CHANGED

= 1.2.11 - 2024-06-24 =
* Profile shows incorrect listings count for GD post types - FIXED
* Security hardening for user uwp_sort_by query and first check user provide key exists - SECURITY
Expand Down
6 changes: 3 additions & 3 deletions userswp.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
Plugin Name: UsersWP
Plugin URI: https://userswp.io/
Description: The only lightweight user profile plugin for WordPress. UsersWP features front end user profile, users directory, a registration and a login form.
Version: 1.2.11
Version: 1.2.12
Author: AyeCode Ltd
Author URI: https://userswp.io
License: GPL-2.0+
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
Text Domain: userswp
Domain Path: /languages
Requires at least: 4.9
Tested up to: 6.5
Tested up to: 6.6
*/

// If this file is called directly, abort.
Expand All @@ -24,7 +24,7 @@
}

if ( ! defined( 'USERSWP_VERSION' ) ) {
define( 'USERSWP_VERSION', '1.2.11' );
define( 'USERSWP_VERSION', '1.2.12' );
}

if ( ! defined( 'USERSWP_PATH' ) ) {
Expand Down
2 changes: 1 addition & 1 deletion vendor/ayecode/wp-ayecode-ui/ayecode-ui-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
add_action('after_setup_theme', function () {
global $ayecode_ui_version,$ayecode_ui_file_key;
$this_version = "0.2.17";
$this_version = "0.2.18";
if(empty($ayecode_ui_version) || version_compare($this_version , $ayecode_ui_version, '>')){
$ayecode_ui_version = $this_version ;
$ayecode_ui_file_key = wp_hash( __FILE__ );
Expand Down
7 changes: 7 additions & 0 deletions vendor/ayecode/wp-ayecode-ui/change-log.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
= 0.2.19 - 2024-07-04 =
* Video in lightbox is not working - FIXED
* Stop video playing in slideshow on move to next slide - FIXED

= 0.2.18 - 2024-06-27 =
* Pagination style conflict on Hello Elementor theme - FIXED

= 0.2.17 - 2024-06-20 =
* Carousel slide swipe in BS modal is not working on touch device - FIXED

Expand Down
12 changes: 6 additions & 6 deletions vendor/ayecode/wp-ayecode-ui/includes/ayecode-ui-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class AyeCode_UI_Settings {
*
* @var string
*/
public $version = '0.2.17';
public $version = '0.2.19';

/**
* Class textdomain.
Expand Down Expand Up @@ -1265,13 +1265,15 @@ public static function custom_css($compatibility = true) {
echo esc_attr( $bep . $hn ) . '{'.esc_attr( $h_css ).'}';
}
}
}

// Pagination on Hello Elementor theme.
if ( function_exists( 'hello_elementor_setup' ) ) {
echo '.aui-nav-links .pagination{justify-content:inherit}';
}
?>
?>
</style>
<?php


/*
* We only add the <script> tags for code highlighting, so we strip them from the output.
*/
Expand All @@ -1281,8 +1283,6 @@ public static function custom_css($compatibility = true) {
), '', self::minify_css( ob_get_clean() ) );
}



/**
* Check if we should add booststrap 3 compatibility changes.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ function aui_bs_convert_sd_output( $output, $instance = '', $args = '', $sd = ''
'-16by9' => '-16x9',
'-21by9' => '-21x9',
'geodir-lightbox-image' => 'aui-lightbox-image',
'geodir-lightbox-iframe' => 'aui-lightbox-iframe',
' badge-' => ' text-bg-',
'form-group' => 'mb-3',
'custom-select' => 'form-select',
Expand Down
44 changes: 34 additions & 10 deletions vendor/ayecode/wp-ayecode-ui/includes/inc/bs5-js.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ function aui_modal_iframe($title,$url,$footer,$dismissible,$class,$dialog_class,
var sStyle = '';
var $body = "", sClass = "w-100 p-0 m-0";
if (responsive) {
$body += '<div class="embed-responsive embed-responsive-16by9">';
$body += '<div class="embed-responsive embed-responsive-16by9 ratio ratio-16x9">';
wClass += ' h-100';
sClass += ' embed-responsive-item';
} else {
Expand All @@ -291,15 +291,14 @@ function aui_modal_iframe($title,$url,$footer,$dismissible,$class,$dialog_class,
if (responsive) {
$body += '</div>';
}
console.log('b4-show-modal');
$m = aui_modal($title,$body,$footer,$dismissible,$class,$dialog_class,$body_class);

// myModalEl.addEventListener('hidden.bs.modal', event => {
// jQuery(".aui-carousel-modal iframe").attr('src', '');
// });

const auiModal = document.getElementById('aui-modal');
auiModal.addEventListener( 'shown.bs.modal', function ( e ) {console.log('show-modal');
auiModal.addEventListener( 'shown.bs.modal', function ( e ) {
iFrame = jQuery( '#embedModal-iframe') ;

jQuery('.ac-preview-loading').addClass('d-flex');
Expand All @@ -315,7 +314,6 @@ function aui_modal_iframe($title,$url,$footer,$dismissible,$class,$dialog_class,
});

return $m;

}

function aui_modal($title,$body,$footer,$dismissible,$class,$dialog_class,$body_class) {
Expand Down Expand Up @@ -611,7 +609,7 @@ function aui_lightbox_embed($link,ele){

$clicked_href = jQuery($link).attr('href');
$images = [];
$container.find('.aui-lightbox-image').each(function() {
$container.find('.aui-lightbox-image, .aui-lightbox-iframe').each(function() {
var a = this;
var href = jQuery(a).attr('href');
if (href) {
Expand All @@ -626,7 +624,7 @@ function aui_lightbox_embed($link,ele){
if($images.length > 1){
$i = 0;
$carousel += '<ol class="carousel-indicators position-fixed">';
$container.find('.aui-lightbox-image').each(function() {
$container.find('.aui-lightbox-image, .aui-lightbox-iframe').each(function() {
$active = $clicked_href == jQuery(this).attr('href') ? 'active' : '';
$carousel += '<li data-bs-target="#aui-embed-slider-modal" data-bs-slide-to="'+$i+'" class="'+$active+'"></li>';
$i++;
Expand Down Expand Up @@ -676,7 +674,7 @@ function aui_lightbox_embed($link,ele){
}


var img = href ? jQuery(a).find('img').clone().attr('src', href ).attr('sizes', sizes ).removeClass().addClass('mx-auto d-block w-auto mw-100 rounded').css('max-height',css_height).get(0).outerHTML : jQuery(a).find('img').clone().removeClass().addClass('mx-auto d-block w-auto mw-100 rounded').css('max-height',css_height).get(0).outerHTML;
var img = href ? jQuery(a).find('img').clone().attr('src', href ).attr('sizes', sizes ).removeClass().addClass('mx-auto d-block w-auto rounded').css({'max-height':css_height,'max-width':'98%'}).get(0).outerHTML : jQuery(a).find('img').clone().removeClass().addClass('mx-auto d-block w-auto rounded').css({'max-height':css_height,'max-width':'98%'}).get(0).outerHTML;
$carousel += img;
// captions
if(jQuery(a).parent().find('.carousel-caption').length ){
Expand All @@ -690,14 +688,16 @@ function aui_lightbox_embed($link,ele){

$container.find('.aui-lightbox-iframe').each(function() {
var a = this;
var css_height = window.innerWidth > window.innerHeight ? '90vh;' : 'auto;';
var styleWidth = $images.length > 1 ? 'max-width:70%;' : '';

$active = $clicked_href == jQuery(this).attr('href') ? 'active' : '';
$carousel += '<div class="carousel-item '+ $active+'"><div class="modal-xl mx-auto embed-responsive embed-responsive-16by9">';
$carousel += '<div class="carousel-item '+ $active+'"><div class="modal-xl mx-auto ratio ratio-16x9" style="max-height:'+css_height+styleWidth+'">';

// iframe
var css_height = window.innerWidth > window.innerHeight ? '95vh' : 'auto';
var url = jQuery(a).attr('href');
var iframe = '<iframe class="embed-responsive-item" style="height:'+css_height +'" src="'+url+'?rel=0&amp;showinfo=0&amp;modestbranding=1&amp;autoplay=1" id="video" allow="autoplay"></iframe>';
var iframe = '<div class="ac-preview-loading text-light d-none" style="left:0;top:0;height:'+css_height +'"><div class="spinner-border m-auto" role="status"></div></div>';
iframe += '<iframe class="aui-carousel-iframe" style="height:'+css_height +'" src="" data-src="'+url+'?rel=0&amp;showinfo=0&amp;modestbranding=1&amp;autoplay=1" allow="autoplay"></iframe>';
var img = iframe ;//.css('height',css_height).get(0).outerHTML;
$carousel += img;

Expand Down Expand Up @@ -957,6 +957,30 @@ function aui_init(){
window.scrollTo(0, pS);
});
}

$(document).on('slide.bs.carousel', function(el) {
var $_modal = $(el.relatedTarget).closest('.aui-carousel-modal:visible').length ? $(el.relatedTarget).closest('.aui-carousel-modal:visible') : '';
if ($_modal.find('.carousel-item iframe.aui-carousel-iframe').length) {
/* Unset iframe src */
$_modal.find('.carousel-item.active iframe.aui-carousel-iframe').each(function(){
if ($(this).attr('src')) {
$(this).data('src', $(this).attr('src'));
$(this).attr('src', '');
}
});
/* Set iframe src */
if ($(el.relatedTarget).find('iframe.aui-carousel-iframe').length) {
$(el.relatedTarget).find('.ac-preview-loading').removeClass('d-none').addClass('d-flex');
var $cIframe = $(el.relatedTarget).find('iframe.aui-carousel-iframe');
if (! $cIframe.attr('src') && $cIframe.data('src')) {
$cIframe.attr('src', $cIframe.data('src'));
}
$cIframe.on('load', function(){
setTimeout(function(){$_modal.find('.ac-preview-loading').removeClass('d-flex').addClass('d-none');},1250);
});
}
}
});
});

/**
Expand Down
14 changes: 7 additions & 7 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,20 +59,20 @@
},
{
"name": "ayecode/wp-ayecode-ui",
"version": "0.2.17",
"version_normalized": "0.2.17.0",
"version": "0.2.19",
"version_normalized": "0.2.19.0",
"source": {
"type": "git",
"url": "https://github.com/AyeCode/wp-ayecode-ui.git",
"reference": "e190368ae7aa838b9c0b92d2de35f871fbd389b2"
"reference": "2844e9c9a4767d1f91f4532b75a82bd9a07c560e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/AyeCode/wp-ayecode-ui/zipball/e190368ae7aa838b9c0b92d2de35f871fbd389b2",
"reference": "e190368ae7aa838b9c0b92d2de35f871fbd389b2",
"url": "https://api.github.com/repos/AyeCode/wp-ayecode-ui/zipball/2844e9c9a4767d1f91f4532b75a82bd9a07c560e",
"reference": "2844e9c9a4767d1f91f4532b75a82bd9a07c560e",
"shasum": ""
},
"time": "2024-06-20T10:53:24+00:00",
"time": "2024-07-04T12:43:43+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
Expand Down Expand Up @@ -101,7 +101,7 @@
],
"support": {
"issues": "https://github.com/AyeCode/wp-ayecode-ui/issues",
"source": "https://github.com/AyeCode/wp-ayecode-ui/tree/0.2.17"
"source": "https://github.com/AyeCode/wp-ayecode-ui/tree/0.2.19"
},
"install-path": "../ayecode/wp-ayecode-ui"
},
Expand Down
10 changes: 5 additions & 5 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
'name' => 'uswerwp/userswp',
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => '481f40136cb9fdc3107b91f08bca979cc09211d6',
'reference' => '99c2fb9b4aa868c7f563db76c36f53f5708a281c',
'type' => 'project',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand All @@ -20,9 +20,9 @@
'dev_requirement' => false,
),
'ayecode/wp-ayecode-ui' => array(
'pretty_version' => '0.2.17',
'version' => '0.2.17.0',
'reference' => 'e190368ae7aa838b9c0b92d2de35f871fbd389b2',
'pretty_version' => '0.2.19',
'version' => '0.2.19.0',
'reference' => '2844e9c9a4767d1f91f4532b75a82bd9a07c560e',
'type' => 'library',
'install_path' => __DIR__ . '/../ayecode/wp-ayecode-ui',
'aliases' => array(),
Expand Down Expand Up @@ -79,7 +79,7 @@
'uswerwp/userswp' => array(
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => '481f40136cb9fdc3107b91f08bca979cc09211d6',
'reference' => '99c2fb9b4aa868c7f563db76c36f53f5708a281c',
'type' => 'project',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand Down

0 comments on commit 15e822c

Please sign in to comment.