bdxix
Forum Replies Created
-
Forum: Plugins
In reply to: [Shrinkwrap Images] Possibility to exclude images?I forgot to say that indeed it is not the <div> itself that creates the line break but the associated css “display: flex;”.
When I replaced it by “display: inline”, this removed the line break but the effect was lost hence the above solution.- This reply was modified 5 years, 8 months ago by bdxix.
Forum: Plugins
In reply to: [Shrinkwrap Images] Possibility to exclude images?Thank you very much for your reply.
I just found a solution (I’m not sure it’s the best solution, but it works). I have made some changes in shrinkwrap_images.js:
// Get directory path of plugin directory
var plugindir = php_vars.plugindir;//
var gifpath = ‘‘;
// Use jQuery to wrap each img tag in the shrinkwrap div
jQuery( document ).on( ‘ready’, function() {
jQuery( ‘img’ ).each(function() {
if (!jQuery(this).attr(‘src’).startsWith(‘data’)) {jQuery(this).wrap( ‘<div class=”eol_si_shrink”></div>’ ).after( gifpath );}
});
} );// Run shrinkwrap when lightbox openend
document.arrive( ‘img’, function() {
if ( ! jQuery( this ).closest( ‘.eol_si_shrink’ ).length ) {
jQuery( this )
.wrap( ‘<div class=”eol_si_shrink”></div>’ )
.after( gifpath );
}
} );The adding tests if the src of the image starts with the word ‘data’.
Thanks!
Forum: Plugins
In reply to: [LuckyWP Cookie Notice (GDPR)] Added language partially recognizedThanks!
Forum: Plugins
In reply to: [LuckyWP Cookie Notice (GDPR)] Added language partially recognizedNo, I use Polylang.
Forum: Plugins
In reply to: [LuckyWP Cookie Notice (GDPR)] Added language partially recognizedHello LuckyWP,
Thank you for your reply.
Maybe I am missing something but if in enter values in the fields of the General tab I can of course have the message and buttons in French, my need was to have these texts in French for the French part of my website and in English for the English part. The modifications I made in widget.php allowed me to do that knowing that I am only using the default strings.
For the translation into French I made yesterday I will validate them as a “editor” ASAP.
Great weekend.
BDXIX
Forum: Plugins
In reply to: [LuckyWP Cookie Notice (GDPR)] Added language partially recognizedFinally I found a solution: I added several esc_html__() in the corresponding variables of /front/widgets/notice/views/widget.php and now the cookies notice bar is displayed in English or in French, and the “Read More” link also.
Forum: Plugins
In reply to: [LuckyWP Cookie Notice (GDPR)] Added language partially recognizedI completed the translation
Forum: Plugins
In reply to: [LuckyWP Cookie Notice (GDPR)] Added language partially recognizedYes, please add me as french translate editor and I will add my translation of your plugin.
Concerning the reason for the contents by default of the fields (Message, Accept, Reject, Read More…) are not translated, do you know why?Forum: Plugins
In reply to: [LuckyWP Cookie Notice (GDPR)] Added language partially recognizedFor the two strings “Before the closing HEAD tag. Example,” and “Before the closing BODY tag. Example,”, the non-translation is due to strings which are different in /config/settings.php and in luckywp-cookie-notice-gdpr.pot (final space missing).
For the fields’ contents I am still looking.