Plugin Directory

Changeset 3014851


Ignore:
Timestamp:
12/27/2023 09:32:27 PM (2 years ago)
Author:
elemailer
Message:

Update to version 2.1 from GitHub

Location:
elemailer-lite
Files:
24 edited
1 copied

Legend:

Unmodified
Added
Removed
  • elemailer-lite/tags/2.1/app/form-template/view/default-elementor-style.php

    r2957801 r3014851  
    1 <style>h1,h2,h3,h4,h5,h6,p,div,a,span{font-family: Arial, Helvetica, sans-serif;margin: 0px;}h1 {font-size: 36px;line-height: 70px;font-weight: 600;letter-spacing: 1px;margin-bottom: 0px;}h2 {font-size: 24px;line-height: 30px;font-weight: 600;margin-bottom: 0px;}h3 {font-size: 22px;line-height: 24px;font-weight: 600;margin-bottom: 0px;}h4 {font-size: 20px;line-height: 27px;font-weight: 600;}h5 {font-size: 16px;line-height: 24px;font-weight: 600;}h6 {font-size: 14px;line-height: 24px;font-weight: 600;}p {font-size: 14px;line-height: 24px;}img {width: 100%;}a{text-decoration: unset;text-decoration: none;font-weight: 600;line-height: initial;box-shadow: none;cursor: pointer;}.void-section-text p,.void-section-text h1,.void-section-text h2,.void-section-text h3,.void-section-text h4,.void-section-text h5,.void-section-text h6 {margin: 0px auto;display: block;font-family: Arial,Helvetica,sans-serif;color: #000;}h1:before,h2:before {display: none !important;}.elementor *, .elementor {-webkit-box-sizing: border-box;box-sizing: border-box;overflow: auto;}ul li,ol li,ul,ol{font-family: Arial, Helvetica, sans-serif;font-size: 14px;line-height: 20px;margin-left: 0px;overflow: visible!important;}.elementor .elementor-inner, .elementor-section,.elementor-section-wrap{max-width: 600px;margin: 0 auto;}.elementor-widget:not(:last-child) {margin: 0px !important;}.elementor-section .elementor-container {margin-right: auto;margin-left: auto;}.elementor-column-wrap {width: 100%;}.elementor-column-gap-default>.elementor-row>.elementor-column>.elementor-element-populated {padding: 0px;}.elementor-column .elementor-element-populated .elementor-widget-wrap,.elementor-column .elementor-element-populated.elementor-widget-wrap{padding: 10px;}.elementor-widget-wrap {width: 100%;}.elementor:not(.elementor-bc-flex-widget) .elementor-widget-wrap {width: 100%;}.elementor-widget {width: 100%;}.elementor-widget-wrap>.elementor-element {width: 100%;}.elementor-col-100 {width: 100%;}.elementor-col-50 {width: 50%;}.elementor-col-33{width: 33.333%;}.elementor-col-25{width: 25%;}.elementor-col-66{width: 66.666%;}.elementor-col-20{width: 20%;}.elementor-column {float: left;display: inline-block;}.elementor-row {width: 100%;display: block;}.elemailer-play-icon{height: 100%;width: 100%;}.void-email-image-box h3,.void-email-image-box p, .ele-footer-text p, .ele-unsubscribe a{line-height: initial;}.ele-unsubscribe a{text-decoration: underline;}
     1<style>h1,h2,h3,h4,h5,h6,p,div,a,span{font-family: Arial, Helvetica, sans-serif;margin: 0px;}h1 {font-size: 36px;line-height: 70px;font-weight: 600;letter-spacing: 1px;margin-bottom: 0px;}h2 {font-size: 24px;line-height: 30px;font-weight: 600;margin-bottom: 0px;}h3 {font-size: 22px;line-height: 24px;font-weight: 600;margin-bottom: 0px;}h4 {font-size: 20px;line-height: 27px;font-weight: 600;}h5 {font-size: 16px;line-height: 24px;font-weight: 600;}h6 {font-size: 14px;line-height: 24px;font-weight: 600;}p {font-size: 14px;line-height: 24px;}img {width: 100%;}a{text-decoration: unset;text-decoration: none;font-weight: 600;line-height: initial;box-shadow: none;cursor: pointer;}.void-section-text p,.void-section-text h1,.void-section-text h2,.void-section-text h3,.void-section-text h4,.void-section-text h5,.void-section-text h6 {margin: 0px auto;display: block;font-family: Arial,Helvetica,sans-serif;color: #000;}h1:before,h2:before {display: none !important;}.elementor *, .elementor {-webkit-box-sizing: border-box;box-sizing: border-box;}ul li,ol li,ul,ol{font-family: Arial, Helvetica, sans-serif;font-size: 14px;line-height: 20px;margin-left: 0px;overflow: visible!important;}.elementor .elementor-inner, .elementor-section,.elementor-section-wrap{max-width: 600px;margin: 0 auto;}.elementor-widget:not(:last-child) {margin: 0px !important;}.elementor-section .elementor-container {margin-right: auto;margin-left: auto;}.elementor-column-wrap {width: 100%;}.elementor-column-gap-default>.elementor-row>.elementor-column>.elementor-element-populated {padding: 0px;}.elementor-column .elementor-element-populated .elementor-widget-wrap,.elementor-column .elementor-element-populated.elementor-widget-wrap{padding: 10px;}.elementor-widget-wrap {width: 100%;}.elementor:not(.elementor-bc-flex-widget) .elementor-widget-wrap {width: 100%;}.elementor-widget {width: 100%;}.elementor-widget-wrap>.elementor-element {width: 100%;}.elementor-col-100 {width: 100%;}.elementor-col-50 {width: 50%;}.elementor-col-33{width: 33.333%;}.elementor-col-25{width: 25%;}.elementor-col-66{width: 66.666%;}.elementor-col-20{width: 20%;}.elementor-column {float: left;display: inline-block;}.elementor-row {width: 100%;display: block;overflow: auto;}.elemailer-play-icon{height: 100%;width: 100%;}.void-email-image-box h3,.void-email-image-box p, .ele-footer-text p, .ele-unsubscribe a{line-height: initial;}.ele-unsubscribe a{text-decoration: underline;}@media screen and (max-width:600px) {.elementor-column {display: block !important;width: 100% !important;}}
  • elemailer-lite/tags/2.1/core/global.php

    r2716849 r3014851  
    6868            wp_die('You are not allowed!');
    6969        }
    70         $taxonomy_type = sanitize_text_field(isset($_POST['taxonomy_type']) ? $_POST['taxonomy_type'] : '');
     70        //$taxonomy_type = sanitize_text_field(isset($_POST['taxonomy_type']) ? $_POST['taxonomy_type'] : '');
    7171        $post_type = sanitize_text_field(isset($_POST['post_type']) ? $_POST['post_type'] : '');
    7272
    7373        $posts = array();
    74         $obj_terms =  get_terms(array('taxonomy' => $taxonomy_type));
    75         $terms =  wp_list_pluck($obj_terms, 'slug');
     74        //$obj_terms =  get_terms(array('taxonomy' => $taxonomy_type));
     75        //$terms =  wp_list_pluck($obj_terms, 'slug');
    7676
    7777        $args = array(
    7878            'post_type' => $post_type,
    7979            'posts_per_page' => -1,
    80             'tax_query' => array(
    81                 array(
    82                     'taxonomy' => $taxonomy_type,
    83                     'field' => 'slug',
    84                     'terms' => $terms,
    85                 ),
    86             ),
     80            'no_found_rows'     => true,
     81            'update_post_meta_cache' => false,
     82            'update_post_term_cache' => false,
    8783        );
     84
     85        // Append our tax-query if we have terms. Make sure it is a valid string or array
     86        // if ( $taxonomy_type ) {
     87        //     $args['tax_query'] = array(
     88        //      array(
     89        //          'taxonomy' => $taxonomy_type,
     90        //          'field' => 'slug',
     91        //          'terms' => $terms,
     92        //      ),
     93        //  );
     94        // }
     95
    8896
    8997        $loop = new WP_Query($args);
  • elemailer-lite/tags/2.1/elemailer-lite.php

    r2957801 r3014851  
    66 * Plugin URI:  https://elemailer.com/
    77 * Description: Elementor Email template & campaign builder for WordPress
    8  * Version: 2.0
     8 * Version: 2.1
    99 * Author: elemailer
    1010 * Author URI:  https://elemailer.com/
    1111 * Text Domain: elemailer-lite
    12  * Elementor tested up to: 3.17
    13  * Elementor Pro tested up to: 3.17
     12 * Elementor tested up to: 3.19
     13 * Elementor Pro tested up to: 3.19
    1414 * License:  GPL-2.0+
    1515 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
  • elemailer-lite/tags/2.1/integrations/elementor/assets/css/editor.css

    r2957801 r3014851  
    7878}
    7979
     80input:disabled{
     81    cursor: not-allowed;
     82}
     83select:disabled,.select2-container--disabled * span{
     84    cursor: not-allowed!important;
     85}
     86.select2-container--disabled ul li{
     87    color: transparent!important;
     88}
     89
     90/* CSS for dark mode */
     91
     92.select2-selection ul:not(.select2-selection__rendered){
     93    background: red;
     94}
     95
    8096#elementor-panel-get-pro-elements{
    8197background: #93003c;
  • elemailer-lite/tags/2.1/integrations/elementor/assets/js/editor.js

    r2957801 r3014851  
    11(function ($) {
     2    "use strict";
    23
    34    // call the the functionality of add, edit form when elementor editor panel is open for edit
     
    67        elemailer_get_taxonomy_for_selected_posts();
    78
     9        elemailer_addControlSpinner('taxonomy_type'); //add spinner while loading
     10        elemailer_addControlSpinner('post_select'); //add spinner while loading
     11
    812        //function to get taxonomy based on post type
    913        function elemailer_get_taxonomy_for_selected_posts(onload = true) {
    10             // console.log('get taxonomy');
     14           
     15            elemailer_addControlSpinner('taxonomy_type'); //add spinner while loading
     16           
    1117            var elTaxonomy = $('[data-setting="taxonomy_type"]');
    1218
    13             elTaxonomy.empty();
     19            $('[data-setting="taxonomy_type"]').empty();
    1420            //only trigger change to reset selected taxonomy option when post type is actively changed
    1521            if (onload == false && event.type == 'change') {
    1622                //this is needed to reset the selected taxonomy
    17                 elTaxonomy.trigger('change');
     23                $('[data-setting="taxonomy_type"]').trigger('change');
    1824            }
    1925            var post_type = $('[data-setting="post_type"]').val() || model.attributes.settings.attributes.post_type || [];
     
    2733            $.post(elemailer_lite.ajaxUrl, data, function (response) {
    2834                var taxonomy_name = JSON.parse(response);
    29                 $.each(taxonomy_name, function () {
    30                     if (this.name == 'post_format') {
    31                         return;
    32                     }
    33 
    34                     // console.log('taxonomy loop: '+(i++));
    35                     elTaxonomy.append('<option value="' + this.name + '">' + this.name + '</option>');
    36 
    37                 });
    38                 //set already selected value
    39                 elTaxonomy.val(model.attributes.settings.attributes.taxonomy_type);
    40                 elemailer_get_posts_for_selected_posts(elTaxonomy);
    41 
    42                 if (elTaxonomy.has('option').length == 0) {
    43                     elTaxonomy.attr('disabled', 'disabled');
     35                $('[data-setting="taxonomy_type"]').empty();
     36
     37                if(Object.keys(taxonomy_name).length!==0){
     38                    $.each(taxonomy_name, function () {
     39                        if (this.name == 'post_format') {
     40                            return;
     41                        }
     42
     43                        // console.log('taxonomy loop: '+(i++));
     44                        $('[data-setting="taxonomy_type"]').append('<option value="' + this.name + '">' + this.name + '</option>');
     45
     46                    });
     47                    //set already selected value
     48                    $('[data-setting="taxonomy_type"]').val(model.attributes.settings.attributes.taxonomy_type);
     49
     50                }else{
     51                     $('[data-setting="taxonomy_type"]').val(0).trigger('change');
     52                }
     53               
     54
     55
     56                elemailer_get_posts_for_selected_posts($('[data-setting="taxonomy_type"]'));
     57
     58                elemailer_removeControlSpinner('taxonomy_type'); //add spinner while loading
     59       
     60                if ($('[data-setting="taxonomy_type"]').has('option').length == 0) {
     61                    $('[data-setting="taxonomy_type"]').attr('disabled', 'disabled');
    4462                } else {
    45                     elTaxonomy.removeAttr('disabled');
     63                    $('[data-setting="taxonomy_type"]').removeAttr('disabled');
    4664                }
    4765            });//$.post               
     
    5068        //function to get posts based on taxonomy
    5169        function elemailer_get_posts_for_selected_posts(onload = true) {
    52             // console.log('get posts');
     70
     71            elemailer_addControlSpinner('post_select'); //add spinner while loading
     72
     73            setTimeout(function () {
     74
     75    // console.log('get posts');
    5376            var elPostSelect = $('[data-setting="post_select"]');
    54             //only trigger change to reset selected posts option when taxonomy is actively changed
    55             if (event.type == 'change') {
    56                 elPostSelect.trigger('change');
    57             }
     77
    5878            if (typeof (onload) !== 'object') {
    5979                //var taxonomy_type = $('[data-setting="taxonomy_type"]').val();
     
    6181            } else {
    6282                var taxonomy_type = onload.val();
    63                 elPostSelect.empty();
     83                $('[data-setting="post_select"]').empty();
    6484            }
    6585
    6686            //if no taxonomy selected stop the function to avoid showing null value in posts
    67             if (taxonomy_type == null) {
    68                 return;
    69             }
     87            // if (taxonomy_type == null) {
     88            //     return;
     89            // }
     90           
    7091            var post_type = $('[data-setting="post_type"]').val() || model.attributes.settings.attributes.post_type || [];
    7192            var data = {
     
    79100            $.post(elemailer_lite.ajaxUrl, data, function (response) {
    80101                var posts = JSON.parse(response);
     102                $('[data-setting="post_select"]').empty();
    81103                $.each(posts, function (idx, value) {
    82104                    // console.log('posts loop: '+(j++));                   
    83                     elPostSelect.append('<option value="' + idx + '">' + value + '</option>');
     105                    $('[data-setting="post_select"]').append('<option value="' + idx + '">' + value + '</option>');
    84106                });
     107
     108                console.log(typeof (onload));
    85109                //set already selected value
    86110                if (typeof (onload) === 'object') {
    87                     elPostSelect.val(model.attributes.settings.attributes.post_select);
    88                 }
     111                    $('[data-setting="post_select"]').val(model.attributes.settings.attributes.post_select);
     112                }
     113                elemailer_removeControlSpinner('post_select'); //add spinner while loading
     114
    89115            });
     116
     117            }, 1);
     118
     119           
     120
     121       
    90122
    91123        }//elemailer_get_posts_for_selected_posts()
     
    93125        //when moving from Advanced tab to content model variable is null so to pass it's data
    94126        function elemailer_pass_around_model_for_selected_posts(panel, model, view) {
    95             // console.log('pass around the model');
    96             // set timeout to load content tab's content
    97             setTimeout(function () {
    98                 elemailer_get_taxonomy_for_selected_posts();
    99             }, 100);
     127         
     128                elemailer_get_posts_for_selected_posts($('[data-setting="post_type"]'));
     129         
    100130        }
    101131
    102         //get taxonomy
    103         $('#elementor-controls').on('change', '[data-setting="post_type"]', function (event) {
    104             // console.log('post change event');
    105             // pass onload value false, means the value was actively changed 
    106             elemailer_get_taxonomy_for_selected_posts(false);
    107             $('[data-setting="taxonomy_type"]').selectedIndex = -1;
    108             return true;
     132        const settingsModel = model.get( 'settings' );
     133       
     134        settingsModel.on( 'change', ( changedModel ) => {
     135
     136            // if(changedModel.changed.post_type){
     137            //     // pass onload value false, means the value was actively changed 
     138            //     elemailer_get_taxonomy_for_selected_posts(false);
     139            //     $('[data-setting="taxonomy_type"]').selectedIndex = -1;
     140            // }
     141            if(changedModel.changed.post_type){
     142                //pass $this to keep the changes to each different taxonomy
     143                elemailer_get_posts_for_selected_posts($('[data-setting="post_type"]'));
     144               $('[data-setting="post_select"]').selectedIndex = -1;
     145            }
     146             
     147        } );
     148
     149        //this ensures the data remains the same even after switching back from advanced tab to content tab
     150
     151            elementor.channels.editor.on('elemailer:selectedposts:clicked', function(panel, model, view) {
     152                elemailer_pass_around_model_for_selected_posts(panel, model, view);
     153
     154                console.log('clicked!!!');
     155            });
     156
     157
     158
     159    });
     160
     161        elementor.channels.editor.on('editor:widget:elemailer-selected-posts:elemailer_sp_content_section:activated', (panelView)=>{
     162
     163
     164
     165            elementor.channels.editor.trigger( 'elemailer:selectedposts:clicked', require );
     166
     167
     168               // console.log('outer one', panelView);
     169
    109170        });
    110         //get posts
    111         $('#elementor-controls').on('change', '[data-setting="taxonomy_type"]', function () {
    112             // console.log('taxonomy change event'); 
    113             //pass $this to keep the changes to each different taxonomy
    114             elemailer_get_posts_for_selected_posts($(this));
    115             $('[data-setting="post_select"]').selectedIndex = -1;
    116             return true;
    117         });
    118 
    119         //this ensures the data remains the same even after switching back from advanced tab to content tab
    120         $(".elementor-panel").mouseenter(function () {
    121             elemailer_pass_around_model_for_selected_posts(panel, model, view);
    122 
    123         });
    124 
    125     });
     171
    126172
    127173    // call the the functionality of add, edit form when elementor editor panel is open for edit
    128174    elementor.hooks.addAction('panel/open_editor/widget/elemailer-latest-posts', function (panel, model, view) {
     175
    129176        //call initially to set the already saved data
    130177        elemailer_get_taxonomy_for_latest_posts();
     
    132179        //function to get taxonomy based on post type
    133180        function elemailer_get_taxonomy_for_latest_posts(onload = true) {
     181           
     182            elemailer_addControlSpinner('taxonomy_type'); //add spinner while loading
     183            elemailer_addControlSpinner('terms'); //add spinner while loading
     184
    134185            var elTaxonomy = $('[data-setting="taxonomy_type"]');
    135186
    136             elTaxonomy.empty();
    137             //only trigger change to reset selected taxonomy option when post type is actively changed
    138             if (onload == false && event.type == 'change') {
    139                 //this is needed to reset the selected taxonomy
    140                 elTaxonomy.trigger('change');
    141             }
     187            $('[data-setting="taxonomy_type"]').empty();
     188
    142189            var post_type = $('[data-setting="post_type"]').val() || model.attributes.settings.attributes.post_type || [];
    143190            var data = {
     
    149196            $.post(elemailer_lite.ajaxUrl, data, function (response) {
    150197                var taxonomy_name = JSON.parse(response);
    151                 $.each(taxonomy_name, function () {
    152                     if (this.name == 'post_format') {
    153                         return;
    154                     }
    155 
    156                     elTaxonomy.append('<option value="' + this.name + '">' + this.name + '</option>');
    157 
    158                 });
     198                $('[data-setting="taxonomy_type"]').empty();
     199                if(Object.keys(taxonomy_name).length!==0){
     200                    $.each(taxonomy_name, function () {
     201                        if (this.name == 'post_format') {
     202                            return;
     203                        }
     204
     205                        $('[data-setting="taxonomy_type"]').append('<option value="' + this.name + '">' + this.name + '</option>');
     206
     207                        $('[data-setting="taxonomy_type"]').val(model.attributes.settings.attributes.taxonomy_type);
     208
     209                    });
     210                }else{
     211                    $('[data-setting="taxonomy_type"]').val(0).trigger('change');
     212                }
     213             
    159214                //set already selected value
    160                 elTaxonomy.val(model.attributes.settings.attributes.taxonomy_type);
    161                 elemailer_get_terms_for_latest_posts(elTaxonomy);
    162 
    163                 if (elTaxonomy.has('option').length == 0) {
    164                     elTaxonomy.attr('disabled', 'disabled');
     215                elemailer_removeControlSpinner('taxonomy_type');
     216               
     217                elemailer_get_terms_for_latest_posts($('[data-setting="taxonomy_type"]'));
     218
     219                if ($('[data-setting="taxonomy_type"]').has('option').length == 0) {
     220                    $('[data-setting="taxonomy_type"]').attr('disabled', 'disabled');
    165221                } else {
    166                     elTaxonomy.removeAttr('disabled');
     222                    $('[data-setting="taxonomy_type"]').removeAttr('disabled');
    167223                }
    168224            });//$.post               
     
    172228        function elemailer_get_terms_for_latest_posts(onload = true) {
    173229            var elPostSelect = $('[data-setting="terms"]');
    174             //only trigger change to reset selected terms option when taxonomy is actively changed
    175             if (event.type == 'change') {
    176                 elPostSelect.trigger('change');
    177             }
     230
    178231            if (typeof (onload) !== 'object') {
    179232                //var taxonomy_type = $('[data-setting="taxonomy_type"]').val();
    180233                var taxonomy_type = onload;
    181234            } else {
     235
    182236                var taxonomy_type = onload.val();
    183                 elPostSelect.empty();
     237                $('[data-setting="terms"]').empty();
    184238            }
    185239
     
    198252            $.post(elemailer_lite.ajaxUrl, data, function (response) {
    199253                var terms = JSON.parse(response);
     254                 $('[data-setting="terms"]').empty();
    200255                $.each(terms, function (idx, value) {
    201                     elPostSelect.append('<option value="' + value.id + '">' + value.name + '</option>');
     256                    $('[data-setting="terms"]').append('<option value="' + value.id + '">' + value.name + '</option>');
    202257                });
     258
    203259                //set already selected value
    204260                if (typeof (onload) === 'object') {
    205                     elPostSelect.val(model.attributes.settings.attributes.terms);
    206                 }
     261                    $('[data-setting="terms"]').val(model.attributes.settings.attributes.terms);
     262                }
     263                elemailer_removeControlSpinner('terms');
     264
    207265            });
    208266
     
    211269        //when moving from Advanced tab to content model variable is null so to pass it's data
    212270        function elemailer_pass_around_model_for_latest_posts(panel, model, view) {
    213             // set timeout to load content tab's content
    214             setTimeout(function () {
     271             
    215272                elemailer_get_taxonomy_for_latest_posts();
    216             }, 100);
     273
    217274        }
    218275
    219         //get taxonomy
    220         $('#elementor-controls').on('change', '[data-setting="post_type"]', function (event) {
    221             // pass onload value false, means the value was actively changed 
    222             elemailer_get_taxonomy_for_latest_posts(false);
    223             $('[data-setting="taxonomy_type"]').selectedIndex = -1;
    224             return true;
    225         });
    226         //get terms
    227         $('#elementor-controls').on('change', '[data-setting="taxonomy_type"]', function () {
    228             //pass $this to keep the changes to each different taxonomy
    229             elemailer_get_terms_for_latest_posts($(this));
    230             $('[data-setting="post_select"]').selectedIndex = -1;
    231             return true;
    232         });
     276       
     277        const settingsModel = model.get( 'settings' );
     278       
     279        settingsModel.on( 'change', ( changedModel ) => {
     280
     281            console.log('Setting changed');
     282            if(changedModel.changed.post_type){
     283                // pass onload value false, means the value was actively changed 
     284                elemailer_get_taxonomy_for_latest_posts(false);
     285                $('[data-setting="taxonomy_type"]').selectedIndex = -1;
     286            }
     287            if(changedModel.changed.taxonomy_type){
     288                //pass $this to keep the changes to each different taxonomy
     289                elemailer_get_terms_for_latest_posts($('[data-setting="taxonomy_type"]'));
     290                $('[data-setting="post_select"]').selectedIndex = -1;
     291            }
     292             
     293        } );
    233294
    234295        //this ensures the data remains the same even after switching back from advanced tab to content tab
    235         $(".elementor-panel").mouseenter(function () {
    236             elemailer_pass_around_model_for_latest_posts(panel, model, view);
     296        elementor.channels.editor.on('section:activated',function(){
     297            if(elementor.getPanelView().currentPageView.activeSection == 'elemailer_lp_content_section'){
     298
     299                elemailer_pass_around_model_for_latest_posts(panel, model, view);
     300
     301              }
    237302        });
    238303
     
    304369    elementor.on('preview:loaded', change_exit_link_attr);
    305370
     371 /**
     372   * Add a spinner to a control inside its control title.
     373   * @since 4.1.2
     374   * @param {string} controlName - The control name to add the spinner to.
     375   *
     376   * @return {void}
     377   */
     378    // add a preloader for options to load -> pass control name
     379    function elemailer_addControlSpinner(controlName) {
     380        const thecontrol= '.elementor-control-'+controlName;   
     381        setTimeout(() => {
     382       
     383         //Exit if there is a spinner already.
     384        if ($(thecontrol).find('.elementor-control-spinner').length) {
     385          return;
     386        }
     387
     388        const $input = $(thecontrol).find(':input')||$(thecontrol).find('select');
     389        $input.attr('disabled', true);
     390
     391         $(thecontrol).find('.elementor-control-title').after('<span class="elementor-control-spinner"><i class="eicon-spinner eicon-animation-spin"></i>&nbsp;</span>');
     392        }, "600");
     393    }
     394
     395    // remove preloader when loaded -> pass control name
     396    function elemailer_removeControlSpinner(controlName) {
     397
     398        const thecontrol= '.elementor-control-'+controlName;
     399
     400        setTimeout(() => {
     401            $(thecontrol).find('.elementor-control-spinner').remove();
     402            const $input = $(thecontrol).find(':input')||$(thecontrol).find('select');
     403            $input.attr('disabled', false);
     404
     405        }, "800");
     406    }
    306407
    307408})(jQuery);
  • elemailer-lite/tags/2.1/integrations/elementor/widgets/latest-posts/latest-posts.php

    r2957801 r3014851  
    5353
    5454        $this->start_controls_section(
    55             'content_section',
     55            'elemailer_lp_content_section',
    5656            [
    5757                'label' => __('Content', 'elemailer-lite'),
     
    8383            'terms',
    8484            [
    85                 'label' => __('Select Terms (usually categories/tags) * Must Select Taxonomy First', 'elemailer-lite'),
     85                'label' => __('Select Terms', 'elemailer-lite'),
     86                'description' => __('Terms usually mean categories/tags/product tag etc. Important: Select Taxonomy First','elemailer'),
    8687                'type' => Controls_Manager::SELECT2,
    8788                'label_block' => true,
     
    9495        );
    9596
     97
    9698        $this->end_controls_section();
    9799
     
    109111                'label' => __('Posts per page', 'elemailer-lite'),
    110112                'type' => Controls_Manager::NUMBER,
    111                 'min' => 1,
    112                 'max' => 30,
    113113                'step' => 1,
    114114                'default' => 5,
     
    284284                'type' => Controls_Manager::NUMBER,
    285285                'min' => 1,
    286                 'max' => 30,
    287286                'step' => 1,
    288287                'default' => 15,
  • elemailer-lite/tags/2.1/integrations/elementor/widgets/selected-posts/selected-posts.php

    r2957801 r3014851  
    4949
    5050        $this->start_controls_section(
    51             'content_section',
     51            'elemailer_sp_content_section',
    5252            [
    5353                'label' => __('Content', 'elemailer-lite'),
     
    7272                'type' => Controls_Manager::SELECT,
    7373                'label_block' => true,
     74                'classes' => 'elementor-panel-alert elementor-panel-alert-warning',
     75                'description' => __('Select Taxonomy is kept for future use to allow users to select Taxonomy type and then select term to narrow down their selected post list below. For now Skip this','elemailer'),
    7476                'options' => (object) array(),
    7577                'condition' => [
    76                     'post_type!' => '',
    77 
     78                    //'post_type!' => '',
     79                    'taxonomy_type' => 'hidden',
    7880                ],
    7981
     
    8486            'post_select',
    8587            [
    86                 'label' => __('Post select', 'elemailer-lite'),
     88                'label' => __('Selected Posts', 'elemailer-lite'),
    8789                'type' => Controls_Manager::SELECT2,
    8890                'label_block' => true,
    8991                'options' => '',
    9092                'multiple' => true,
    91                 'condition' => [
    92                     'taxonomy_type!' => '',
    93 
    94                 ],
    95             ]
    96         );
     93                // 'condition' => [
     94                //  'taxonomy_type!' => '',
     95
     96                // ],
     97            ]
     98        );
     99
    97100
    98101        $this->end_controls_section();
     
    242245                'type' => Controls_Manager::NUMBER,
    243246                'min' => 1,
    244                 'max' => 30,
    245247                'step' => 1,
    246248                'default' => 15,
  • elemailer-lite/tags/2.1/languages/elemailer-lite.pot

    r2957801 r3014851  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Elemailer Lite 2.0\n"
     5"Project-Id-Version: Elemailer Lite 2.1\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/elemailer-lite\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2023-08-24T10:21:37+00:00\n"
     12"POT-Creation-Date: 2023-12-27T21:31:13+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    14 "X-Generator: WP-CLI 2.8.1\n"
     14"X-Generator: WP-CLI 2.9.0\n"
    1515"X-Domain: elemailer-lite\n"
    1616
     
    186186#: integrations/elementor/widgets/image-box/image-box.php:384
    187187#: integrations/elementor/widgets/image/image.php:185
    188 #: integrations/elementor/widgets/latest-posts/latest-posts.php:589
    189 #: integrations/elementor/widgets/selected-posts/selected-posts.php:548
     188#: integrations/elementor/widgets/latest-posts/latest-posts.php:588
     189#: integrations/elementor/widgets/selected-posts/selected-posts.php:550
    190190#: integrations/elementor/widgets/shortcode/shortcode.php:287
    191191#: integrations/elementor/widgets/social/social.php:303
     
    208208#: integrations/elementor/widgets/image-box/image-box.php:388
    209209#: integrations/elementor/widgets/image/image.php:189
    210 #: integrations/elementor/widgets/latest-posts/latest-posts.php:373
    211 #: integrations/elementor/widgets/latest-posts/latest-posts.php:444
    212 #: integrations/elementor/widgets/latest-posts/latest-posts.php:516
    213 #: integrations/elementor/widgets/latest-posts/latest-posts.php:593
    214 #: integrations/elementor/widgets/selected-posts/selected-posts.php:330
    215 #: integrations/elementor/widgets/selected-posts/selected-posts.php:402
    216 #: integrations/elementor/widgets/selected-posts/selected-posts.php:474
    217 #: integrations/elementor/widgets/selected-posts/selected-posts.php:552
     210#: integrations/elementor/widgets/latest-posts/latest-posts.php:372
     211#: integrations/elementor/widgets/latest-posts/latest-posts.php:443
     212#: integrations/elementor/widgets/latest-posts/latest-posts.php:515
     213#: integrations/elementor/widgets/latest-posts/latest-posts.php:592
     214#: integrations/elementor/widgets/selected-posts/selected-posts.php:332
     215#: integrations/elementor/widgets/selected-posts/selected-posts.php:404
     216#: integrations/elementor/widgets/selected-posts/selected-posts.php:476
     217#: integrations/elementor/widgets/selected-posts/selected-posts.php:554
    218218#: integrations/elementor/widgets/shortcode/shortcode.php:171
    219219#: integrations/elementor/widgets/shortcode/shortcode.php:215
     
    235235#: integrations/elementor/widgets/image/image.php:27
    236236#: integrations/elementor/widgets/image/image.php:190
    237 #: integrations/elementor/widgets/latest-posts/latest-posts.php:594
    238 #: integrations/elementor/widgets/selected-posts/selected-posts.php:553
     237#: integrations/elementor/widgets/latest-posts/latest-posts.php:593
     238#: integrations/elementor/widgets/selected-posts/selected-posts.php:555
    239239#: integrations/elementor/widgets/shortcode/shortcode.php:292
    240240#: integrations/elementor/widgets/social/social.php:308
     
    252252#: integrations/elementor/widgets/image-box/image-box.php:397
    253253#: integrations/elementor/widgets/image/image.php:198
    254 #: integrations/elementor/widgets/latest-posts/latest-posts.php:602
    255 #: integrations/elementor/widgets/selected-posts/selected-posts.php:561
     254#: integrations/elementor/widgets/latest-posts/latest-posts.php:601
     255#: integrations/elementor/widgets/selected-posts/selected-posts.php:563
    256256#: integrations/elementor/widgets/shortcode/shortcode.php:300
    257257#: integrations/elementor/widgets/social/social.php:316
     
    271271#: integrations/elementor/widgets/image/image.php:64
    272272#: integrations/elementor/widgets/image/image.php:215
    273 #: integrations/elementor/widgets/latest-posts/latest-posts.php:619
    274 #: integrations/elementor/widgets/selected-posts/selected-posts.php:578
     273#: integrations/elementor/widgets/latest-posts/latest-posts.php:618
     274#: integrations/elementor/widgets/selected-posts/selected-posts.php:580
    275275#: integrations/elementor/widgets/shortcode/shortcode.php:311
    276276#: integrations/elementor/widgets/social/social.php:333
     
    454454#: integrations/elementor/widgets/image-box/image-box.php:120
    455455#: integrations/elementor/widgets/image/image.php:95
    456 #: integrations/elementor/widgets/latest-posts/latest-posts.php:337
    457 #: integrations/elementor/widgets/selected-posts/selected-posts.php:295
     456#: integrations/elementor/widgets/latest-posts/latest-posts.php:336
     457#: integrations/elementor/widgets/selected-posts/selected-posts.php:297
    458458#: integrations/elementor/widgets/shortcode/shortcode.php:115
    459459#: integrations/elementor/widgets/social/social.php:175
     
    469469#: integrations/elementor/widgets/image/image.php:99
    470470#: integrations/elementor/widgets/latest-posts/latest-posts.php:195
    471 #: integrations/elementor/widgets/latest-posts/latest-posts.php:341
    472 #: integrations/elementor/widgets/selected-posts/selected-posts.php:153
    473 #: integrations/elementor/widgets/selected-posts/selected-posts.php:299
     471#: integrations/elementor/widgets/latest-posts/latest-posts.php:340
     472#: integrations/elementor/widgets/selected-posts/selected-posts.php:156
     473#: integrations/elementor/widgets/selected-posts/selected-posts.php:301
    474474#: integrations/elementor/widgets/shortcode/shortcode.php:69
    475475#: integrations/elementor/widgets/shortcode/shortcode.php:119
     
    484484#: integrations/elementor/widgets/image-box/image-box.php:128
    485485#: integrations/elementor/widgets/image/image.php:103
    486 #: integrations/elementor/widgets/latest-posts/latest-posts.php:345
    487 #: integrations/elementor/widgets/selected-posts/selected-posts.php:303
     486#: integrations/elementor/widgets/latest-posts/latest-posts.php:344
     487#: integrations/elementor/widgets/selected-posts/selected-posts.php:305
    488488#: integrations/elementor/widgets/shortcode/shortcode.php:123
    489489#: integrations/elementor/widgets/social/social.php:183
     
    499499#: integrations/elementor/widgets/image/image.php:107
    500500#: integrations/elementor/widgets/latest-posts/latest-posts.php:196
    501 #: integrations/elementor/widgets/latest-posts/latest-posts.php:349
    502 #: integrations/elementor/widgets/selected-posts/selected-posts.php:154
    503 #: integrations/elementor/widgets/selected-posts/selected-posts.php:307
     501#: integrations/elementor/widgets/latest-posts/latest-posts.php:348
     502#: integrations/elementor/widgets/selected-posts/selected-posts.php:157
     503#: integrations/elementor/widgets/selected-posts/selected-posts.php:309
    504504#: integrations/elementor/widgets/shortcode/shortcode.php:127
    505505#: integrations/elementor/widgets/social/social.php:187
     
    523523#: integrations/elementor/widgets/image-box/image-box.php:375
    524524#: integrations/elementor/widgets/image/image.php:176
    525 #: integrations/elementor/widgets/latest-posts/latest-posts.php:580
    526 #: integrations/elementor/widgets/selected-posts/selected-posts.php:539
     525#: integrations/elementor/widgets/latest-posts/latest-posts.php:579
     526#: integrations/elementor/widgets/selected-posts/selected-posts.php:541
    527527#: integrations/elementor/widgets/shortcode/shortcode.php:278
    528528#: integrations/elementor/widgets/social/social.php:294
     
    542542#: integrations/elementor/widgets/image-box/image-box.php:242
    543543#: integrations/elementor/widgets/image-box/image-box.php:329
    544 #: integrations/elementor/widgets/latest-posts/latest-posts.php:389
    545 #: integrations/elementor/widgets/latest-posts/latest-posts.php:460
    546 #: integrations/elementor/widgets/latest-posts/latest-posts.php:532
    547 #: integrations/elementor/widgets/selected-posts/selected-posts.php:346
    548 #: integrations/elementor/widgets/selected-posts/selected-posts.php:418
    549 #: integrations/elementor/widgets/selected-posts/selected-posts.php:490
     544#: integrations/elementor/widgets/latest-posts/latest-posts.php:388
     545#: integrations/elementor/widgets/latest-posts/latest-posts.php:459
     546#: integrations/elementor/widgets/latest-posts/latest-posts.php:531
     547#: integrations/elementor/widgets/selected-posts/selected-posts.php:348
     548#: integrations/elementor/widgets/selected-posts/selected-posts.php:420
     549#: integrations/elementor/widgets/selected-posts/selected-posts.php:492
    550550#: integrations/elementor/widgets/shortcode/shortcode.php:186
    551551#: integrations/elementor/widgets/shortcode/shortcode.php:230
     
    559559#: integrations/elementor/widgets/image-box/image-box.php:351
    560560#: integrations/elementor/widgets/image/image.php:152
    561 #: integrations/elementor/widgets/latest-posts/latest-posts.php:556
    562 #: integrations/elementor/widgets/selected-posts/selected-posts.php:515
     561#: integrations/elementor/widgets/latest-posts/latest-posts.php:555
     562#: integrations/elementor/widgets/selected-posts/selected-posts.php:517
    563563#: integrations/elementor/widgets/shortcode/shortcode.php:254
    564564#: integrations/elementor/widgets/social/social.php:270
     
    575575#: integrations/elementor/widgets/image-box/image-box.php:359
    576576#: integrations/elementor/widgets/image/image.php:160
    577 #: integrations/elementor/widgets/latest-posts/latest-posts.php:564
    578 #: integrations/elementor/widgets/selected-posts/selected-posts.php:523
     577#: integrations/elementor/widgets/latest-posts/latest-posts.php:563
     578#: integrations/elementor/widgets/selected-posts/selected-posts.php:525
    579579#: integrations/elementor/widgets/shortcode/shortcode.php:262
    580580#: integrations/elementor/widgets/social/social.php:278
     
    656656#: integrations/elementor/widgets/image-box/image-box.php:219
    657657#: integrations/elementor/widgets/latest-posts/latest-posts.php:252
    658 #: integrations/elementor/widgets/latest-posts/latest-posts.php:365
    659 #: integrations/elementor/widgets/selected-posts/selected-posts.php:210
    660 #: integrations/elementor/widgets/selected-posts/selected-posts.php:322
     658#: integrations/elementor/widgets/latest-posts/latest-posts.php:364
     659#: integrations/elementor/widgets/selected-posts/selected-posts.php:213
     660#: integrations/elementor/widgets/selected-posts/selected-posts.php:324
    661661msgid "Title"
    662662msgstr ""
     
    672672
    673673#: integrations/elementor/widgets/heading/heading.php:156
    674 #: integrations/elementor/widgets/latest-posts/latest-posts.php:412
    675 #: integrations/elementor/widgets/latest-posts/latest-posts.php:483
    676 #: integrations/elementor/widgets/selected-posts/selected-posts.php:369
    677 #: integrations/elementor/widgets/selected-posts/selected-posts.php:441
     674#: integrations/elementor/widgets/latest-posts/latest-posts.php:411
     675#: integrations/elementor/widgets/latest-posts/latest-posts.php:482
     676#: integrations/elementor/widgets/selected-posts/selected-posts.php:371
     677#: integrations/elementor/widgets/selected-posts/selected-posts.php:443
    678678msgid "Line Height (px)"
    679679msgstr ""
     
    711711#: integrations/elementor/widgets/image-box/image-box.php:104
    712712#: integrations/elementor/widgets/latest-posts/latest-posts.php:194
    713 #: integrations/elementor/widgets/selected-posts/selected-posts.php:152
     713#: integrations/elementor/widgets/selected-posts/selected-posts.php:155
    714714#: integrations/elementor/widgets/shortcode/shortcode.php:68
    715715msgid "Top"
     
    770770
    771771#: integrations/elementor/widgets/latest-posts/latest-posts.php:85
    772 msgid "Select Terms (usually categories/tags) * Must Select Taxonomy First"
    773 msgstr ""
    774 
    775 #: integrations/elementor/widgets/latest-posts/latest-posts.php:101
    776 #: integrations/elementor/widgets/selected-posts/selected-posts.php:103
     772msgid "Select Terms"
     773msgstr ""
     774
     775#: integrations/elementor/widgets/latest-posts/latest-posts.php:103
     776#: integrations/elementor/widgets/selected-posts/selected-posts.php:106
    777777#: plugin.php:362
    778778msgid "Settings"
    779779msgstr ""
    780780
    781 #: integrations/elementor/widgets/latest-posts/latest-posts.php:109
     781#: integrations/elementor/widgets/latest-posts/latest-posts.php:111
    782782msgid "Posts per page"
    783783msgstr ""
    784784
    785785#: integrations/elementor/widgets/latest-posts/latest-posts.php:124
    786 #: integrations/elementor/widgets/selected-posts/selected-posts.php:111
     786#: integrations/elementor/widgets/selected-posts/selected-posts.php:114
    787787msgid "Posts Per Row"
    788788msgstr ""
     
    797797
    798798#: integrations/elementor/widgets/latest-posts/latest-posts.php:170
    799 #: integrations/elementor/widgets/selected-posts/selected-posts.php:128
     799#: integrations/elementor/widgets/selected-posts/selected-posts.php:131
    800800msgid "Layout"
    801801msgstr ""
    802802
    803803#: integrations/elementor/widgets/latest-posts/latest-posts.php:178
    804 #: integrations/elementor/widgets/selected-posts/selected-posts.php:136
     804#: integrations/elementor/widgets/selected-posts/selected-posts.php:139
    805805msgid "Display Thumbnail"
    806806msgstr ""
     
    809809#: integrations/elementor/widgets/latest-posts/latest-posts.php:254
    810810#: integrations/elementor/widgets/latest-posts/latest-posts.php:273
    811 #: integrations/elementor/widgets/latest-posts/latest-posts.php:307
    812 #: integrations/elementor/widgets/selected-posts/selected-posts.php:138
    813 #: integrations/elementor/widgets/selected-posts/selected-posts.php:212
    814 #: integrations/elementor/widgets/selected-posts/selected-posts.php:231
    815 #: integrations/elementor/widgets/selected-posts/selected-posts.php:265
     811#: integrations/elementor/widgets/latest-posts/latest-posts.php:306
     812#: integrations/elementor/widgets/selected-posts/selected-posts.php:141
     813#: integrations/elementor/widgets/selected-posts/selected-posts.php:215
     814#: integrations/elementor/widgets/selected-posts/selected-posts.php:234
     815#: integrations/elementor/widgets/selected-posts/selected-posts.php:267
    816816msgid "Show"
    817817msgstr ""
     
    820820#: integrations/elementor/widgets/latest-posts/latest-posts.php:255
    821821#: integrations/elementor/widgets/latest-posts/latest-posts.php:274
    822 #: integrations/elementor/widgets/latest-posts/latest-posts.php:308
    823 #: integrations/elementor/widgets/selected-posts/selected-posts.php:139
    824 #: integrations/elementor/widgets/selected-posts/selected-posts.php:213
     822#: integrations/elementor/widgets/latest-posts/latest-posts.php:307
     823#: integrations/elementor/widgets/selected-posts/selected-posts.php:142
     824#: integrations/elementor/widgets/selected-posts/selected-posts.php:216
     825#: integrations/elementor/widgets/selected-posts/selected-posts.php:235
     826#: integrations/elementor/widgets/selected-posts/selected-posts.php:268
     827msgid "Hide"
     828msgstr ""
     829
     830#: integrations/elementor/widgets/latest-posts/latest-posts.php:190
     831#: integrations/elementor/widgets/selected-posts/selected-posts.php:151
     832msgid "Image position"
     833msgstr ""
     834
     835#: integrations/elementor/widgets/latest-posts/latest-posts.php:209
     836#: integrations/elementor/widgets/selected-posts/selected-posts.php:170
     837msgid "Image size"
     838msgstr ""
     839
     840#: integrations/elementor/widgets/latest-posts/latest-posts.php:222
     841#: integrations/elementor/widgets/selected-posts/selected-posts.php:183
     842msgid "Width(%)"
     843msgstr ""
     844
     845#: integrations/elementor/widgets/latest-posts/latest-posts.php:271
     846#: integrations/elementor/widgets/latest-posts/latest-posts.php:435
    825847#: integrations/elementor/widgets/selected-posts/selected-posts.php:232
    826 #: integrations/elementor/widgets/selected-posts/selected-posts.php:266
    827 msgid "Hide"
    828 msgstr ""
    829 
    830 #: integrations/elementor/widgets/latest-posts/latest-posts.php:190
    831 #: integrations/elementor/widgets/selected-posts/selected-posts.php:148
    832 msgid "Image position"
    833 msgstr ""
    834 
    835 #: integrations/elementor/widgets/latest-posts/latest-posts.php:209
    836 #: integrations/elementor/widgets/selected-posts/selected-posts.php:167
    837 msgid "Image size"
    838 msgstr ""
    839 
    840 #: integrations/elementor/widgets/latest-posts/latest-posts.php:222
    841 #: integrations/elementor/widgets/selected-posts/selected-posts.php:180
    842 msgid "Width(%)"
    843 msgstr ""
    844 
    845 #: integrations/elementor/widgets/latest-posts/latest-posts.php:271
    846 #: integrations/elementor/widgets/latest-posts/latest-posts.php:436
    847 #: integrations/elementor/widgets/selected-posts/selected-posts.php:229
    848 #: integrations/elementor/widgets/selected-posts/selected-posts.php:394
     848#: integrations/elementor/widgets/selected-posts/selected-posts.php:396
    849849msgid "Excerpt"
    850850msgstr ""
    851851
    852852#: integrations/elementor/widgets/latest-posts/latest-posts.php:283
    853 #: integrations/elementor/widgets/selected-posts/selected-posts.php:241
     853#: integrations/elementor/widgets/selected-posts/selected-posts.php:244
    854854msgid "Excerpt Length"
    855855msgstr ""
    856856
    857 #: integrations/elementor/widgets/latest-posts/latest-posts.php:305
    858 #: integrations/elementor/widgets/latest-posts/latest-posts.php:508
    859 #: integrations/elementor/widgets/selected-posts/selected-posts.php:263
    860 #: integrations/elementor/widgets/selected-posts/selected-posts.php:466
     857#: integrations/elementor/widgets/latest-posts/latest-posts.php:304
     858#: integrations/elementor/widgets/latest-posts/latest-posts.php:507
     859#: integrations/elementor/widgets/selected-posts/selected-posts.php:265
     860#: integrations/elementor/widgets/selected-posts/selected-posts.php:468
    861861msgid "Read More"
    862862msgstr ""
    863863
    864 #: integrations/elementor/widgets/latest-posts/latest-posts.php:317
    865 #: integrations/elementor/widgets/selected-posts/selected-posts.php:275
     864#: integrations/elementor/widgets/latest-posts/latest-posts.php:316
     865#: integrations/elementor/widgets/selected-posts/selected-posts.php:277
    866866msgid "Read More Text"
    867867msgstr ""
    868868
     869#: integrations/elementor/widgets/latest-posts/latest-posts.php:318
     870#: integrations/elementor/widgets/selected-posts/selected-posts.php:279
     871msgid "Read More »"
     872msgstr ""
     873
    869874#: integrations/elementor/widgets/latest-posts/latest-posts.php:319
    870 #: integrations/elementor/widgets/selected-posts/selected-posts.php:277
    871 msgid "Read More »"
    872 msgstr ""
    873 
    874 #: integrations/elementor/widgets/latest-posts/latest-posts.php:320
    875 #: integrations/elementor/widgets/selected-posts/selected-posts.php:278
     875#: integrations/elementor/widgets/selected-posts/selected-posts.php:280
    876876msgid "Type your read more text here"
    877877msgstr ""
    878878
    879879#: integrations/elementor/widgets/selected-posts/selected-posts.php:23
     880#: integrations/elementor/widgets/selected-posts/selected-posts.php:88
    880881msgid "Selected Posts"
    881 msgstr ""
    882 
    883 #: integrations/elementor/widgets/selected-posts/selected-posts.php:86
    884 msgid "Post select"
    885882msgstr ""
    886883
  • elemailer-lite/tags/2.1/plugin.php

    r2957801 r3014851  
    4343    public function define_constant()
    4444    {
    45         define( 'ELE_MAILER_LITE_VERSION', '2.0' );
     45        define( 'ELE_MAILER_LITE_VERSION', '2.1' );
    4646        define( 'ELE_MAILER_LITE_PACKAGE', 'free' );
    4747        define( 'ELE_MAILER_LITE_PLUGIN_URL', trailingslashit(plugin_dir_url(__FILE__ ) ) );
  • elemailer-lite/tags/2.1/public/assets/css/elemailer-mail.css

    r2957801 r3014851  
    8282    -webkit-box-sizing: border-box;
    8383    box-sizing: border-box;
    84     overflow: auto;
    8584}
    8685ul li,ol li,ul,ol{
     
    152151    width: 100%;
    153152    display: block;
     153    overflow: auto;
    154154}
    155155.elemailer-play-icon{
     
    164164}
    165165
     166@media screen and (max-width:600px) {
     167    .elementor-column {
     168        display: block !important;
     169        width: 100% !important;
     170    }
     171}
    166172/* Default elementor CSS for layout and basic structures END */
  • elemailer-lite/tags/2.1/public/assets/css/style.css

    r2957801 r3014851  
    161161}
    162162/* hide admin bar elementor editor end */
     163.elementor-row {
     164    overflow: auto;
     165}
  • elemailer-lite/tags/2.1/readme.txt

    r3014812 r3014851  
    33Tags: email, cf7, email template, elementor addons, email marketing, email template builder, elementor, contact form 7, email design, woocommerce email customizer, free email builder, ai
    44Requires at least: 4.5
    5 Tested up to: 6.3
     5Tested up to: 6.4.2
    66Requires PHP: 7.2
    7 Stable tag: 2.0
     7Stable tag: 2.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    147147
    148148== Changelog ==
     149= 2.1 =
     150* Fix: Selected & Latest post widget flicker
     151* Fix: Some CSS fixes for emails overflow
     152* Fix: Limitation in Selected & Latest post widget for numbers
     153* Tewak: Removed confusing control from Selected posts widget
    149154= 2.0 =
    150155* Tweak: Compatibility with Latest Elementor & WordPress
     
    184189* Fix: CSS fix for email
    185190* Fix: 3rd party plugin panel and template library showing
    186 * Fix: Elementor latest version compatibility
     191* Fix: Elementor latest version Compatibility
    187192* Fix: Removed container as it's not supported in email
    188193= 1.0.10 =
  • elemailer-lite/trunk/app/form-template/view/default-elementor-style.php

    r2957801 r3014851  
    1 <style>h1,h2,h3,h4,h5,h6,p,div,a,span{font-family: Arial, Helvetica, sans-serif;margin: 0px;}h1 {font-size: 36px;line-height: 70px;font-weight: 600;letter-spacing: 1px;margin-bottom: 0px;}h2 {font-size: 24px;line-height: 30px;font-weight: 600;margin-bottom: 0px;}h3 {font-size: 22px;line-height: 24px;font-weight: 600;margin-bottom: 0px;}h4 {font-size: 20px;line-height: 27px;font-weight: 600;}h5 {font-size: 16px;line-height: 24px;font-weight: 600;}h6 {font-size: 14px;line-height: 24px;font-weight: 600;}p {font-size: 14px;line-height: 24px;}img {width: 100%;}a{text-decoration: unset;text-decoration: none;font-weight: 600;line-height: initial;box-shadow: none;cursor: pointer;}.void-section-text p,.void-section-text h1,.void-section-text h2,.void-section-text h3,.void-section-text h4,.void-section-text h5,.void-section-text h6 {margin: 0px auto;display: block;font-family: Arial,Helvetica,sans-serif;color: #000;}h1:before,h2:before {display: none !important;}.elementor *, .elementor {-webkit-box-sizing: border-box;box-sizing: border-box;overflow: auto;}ul li,ol li,ul,ol{font-family: Arial, Helvetica, sans-serif;font-size: 14px;line-height: 20px;margin-left: 0px;overflow: visible!important;}.elementor .elementor-inner, .elementor-section,.elementor-section-wrap{max-width: 600px;margin: 0 auto;}.elementor-widget:not(:last-child) {margin: 0px !important;}.elementor-section .elementor-container {margin-right: auto;margin-left: auto;}.elementor-column-wrap {width: 100%;}.elementor-column-gap-default>.elementor-row>.elementor-column>.elementor-element-populated {padding: 0px;}.elementor-column .elementor-element-populated .elementor-widget-wrap,.elementor-column .elementor-element-populated.elementor-widget-wrap{padding: 10px;}.elementor-widget-wrap {width: 100%;}.elementor:not(.elementor-bc-flex-widget) .elementor-widget-wrap {width: 100%;}.elementor-widget {width: 100%;}.elementor-widget-wrap>.elementor-element {width: 100%;}.elementor-col-100 {width: 100%;}.elementor-col-50 {width: 50%;}.elementor-col-33{width: 33.333%;}.elementor-col-25{width: 25%;}.elementor-col-66{width: 66.666%;}.elementor-col-20{width: 20%;}.elementor-column {float: left;display: inline-block;}.elementor-row {width: 100%;display: block;}.elemailer-play-icon{height: 100%;width: 100%;}.void-email-image-box h3,.void-email-image-box p, .ele-footer-text p, .ele-unsubscribe a{line-height: initial;}.ele-unsubscribe a{text-decoration: underline;}
     1<style>h1,h2,h3,h4,h5,h6,p,div,a,span{font-family: Arial, Helvetica, sans-serif;margin: 0px;}h1 {font-size: 36px;line-height: 70px;font-weight: 600;letter-spacing: 1px;margin-bottom: 0px;}h2 {font-size: 24px;line-height: 30px;font-weight: 600;margin-bottom: 0px;}h3 {font-size: 22px;line-height: 24px;font-weight: 600;margin-bottom: 0px;}h4 {font-size: 20px;line-height: 27px;font-weight: 600;}h5 {font-size: 16px;line-height: 24px;font-weight: 600;}h6 {font-size: 14px;line-height: 24px;font-weight: 600;}p {font-size: 14px;line-height: 24px;}img {width: 100%;}a{text-decoration: unset;text-decoration: none;font-weight: 600;line-height: initial;box-shadow: none;cursor: pointer;}.void-section-text p,.void-section-text h1,.void-section-text h2,.void-section-text h3,.void-section-text h4,.void-section-text h5,.void-section-text h6 {margin: 0px auto;display: block;font-family: Arial,Helvetica,sans-serif;color: #000;}h1:before,h2:before {display: none !important;}.elementor *, .elementor {-webkit-box-sizing: border-box;box-sizing: border-box;}ul li,ol li,ul,ol{font-family: Arial, Helvetica, sans-serif;font-size: 14px;line-height: 20px;margin-left: 0px;overflow: visible!important;}.elementor .elementor-inner, .elementor-section,.elementor-section-wrap{max-width: 600px;margin: 0 auto;}.elementor-widget:not(:last-child) {margin: 0px !important;}.elementor-section .elementor-container {margin-right: auto;margin-left: auto;}.elementor-column-wrap {width: 100%;}.elementor-column-gap-default>.elementor-row>.elementor-column>.elementor-element-populated {padding: 0px;}.elementor-column .elementor-element-populated .elementor-widget-wrap,.elementor-column .elementor-element-populated.elementor-widget-wrap{padding: 10px;}.elementor-widget-wrap {width: 100%;}.elementor:not(.elementor-bc-flex-widget) .elementor-widget-wrap {width: 100%;}.elementor-widget {width: 100%;}.elementor-widget-wrap>.elementor-element {width: 100%;}.elementor-col-100 {width: 100%;}.elementor-col-50 {width: 50%;}.elementor-col-33{width: 33.333%;}.elementor-col-25{width: 25%;}.elementor-col-66{width: 66.666%;}.elementor-col-20{width: 20%;}.elementor-column {float: left;display: inline-block;}.elementor-row {width: 100%;display: block;overflow: auto;}.elemailer-play-icon{height: 100%;width: 100%;}.void-email-image-box h3,.void-email-image-box p, .ele-footer-text p, .ele-unsubscribe a{line-height: initial;}.ele-unsubscribe a{text-decoration: underline;}@media screen and (max-width:600px) {.elementor-column {display: block !important;width: 100% !important;}}
  • elemailer-lite/trunk/core/global.php

    r2716849 r3014851  
    6868            wp_die('You are not allowed!');
    6969        }
    70         $taxonomy_type = sanitize_text_field(isset($_POST['taxonomy_type']) ? $_POST['taxonomy_type'] : '');
     70        //$taxonomy_type = sanitize_text_field(isset($_POST['taxonomy_type']) ? $_POST['taxonomy_type'] : '');
    7171        $post_type = sanitize_text_field(isset($_POST['post_type']) ? $_POST['post_type'] : '');
    7272
    7373        $posts = array();
    74         $obj_terms =  get_terms(array('taxonomy' => $taxonomy_type));
    75         $terms =  wp_list_pluck($obj_terms, 'slug');
     74        //$obj_terms =  get_terms(array('taxonomy' => $taxonomy_type));
     75        //$terms =  wp_list_pluck($obj_terms, 'slug');
    7676
    7777        $args = array(
    7878            'post_type' => $post_type,
    7979            'posts_per_page' => -1,
    80             'tax_query' => array(
    81                 array(
    82                     'taxonomy' => $taxonomy_type,
    83                     'field' => 'slug',
    84                     'terms' => $terms,
    85                 ),
    86             ),
     80            'no_found_rows'     => true,
     81            'update_post_meta_cache' => false,
     82            'update_post_term_cache' => false,
    8783        );
     84
     85        // Append our tax-query if we have terms. Make sure it is a valid string or array
     86        // if ( $taxonomy_type ) {
     87        //     $args['tax_query'] = array(
     88        //      array(
     89        //          'taxonomy' => $taxonomy_type,
     90        //          'field' => 'slug',
     91        //          'terms' => $terms,
     92        //      ),
     93        //  );
     94        // }
     95
    8896
    8997        $loop = new WP_Query($args);
  • elemailer-lite/trunk/elemailer-lite.php

    r2957801 r3014851  
    66 * Plugin URI:  https://elemailer.com/
    77 * Description: Elementor Email template & campaign builder for WordPress
    8  * Version: 2.0
     8 * Version: 2.1
    99 * Author: elemailer
    1010 * Author URI:  https://elemailer.com/
    1111 * Text Domain: elemailer-lite
    12  * Elementor tested up to: 3.17
    13  * Elementor Pro tested up to: 3.17
     12 * Elementor tested up to: 3.19
     13 * Elementor Pro tested up to: 3.19
    1414 * License:  GPL-2.0+
    1515 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
  • elemailer-lite/trunk/integrations/elementor/assets/css/editor.css

    r2957801 r3014851  
    7878}
    7979
     80input:disabled{
     81    cursor: not-allowed;
     82}
     83select:disabled,.select2-container--disabled * span{
     84    cursor: not-allowed!important;
     85}
     86.select2-container--disabled ul li{
     87    color: transparent!important;
     88}
     89
     90/* CSS for dark mode */
     91
     92.select2-selection ul:not(.select2-selection__rendered){
     93    background: red;
     94}
     95
    8096#elementor-panel-get-pro-elements{
    8197background: #93003c;
  • elemailer-lite/trunk/integrations/elementor/assets/js/editor.js

    r2957801 r3014851  
    11(function ($) {
     2    "use strict";
    23
    34    // call the the functionality of add, edit form when elementor editor panel is open for edit
     
    67        elemailer_get_taxonomy_for_selected_posts();
    78
     9        elemailer_addControlSpinner('taxonomy_type'); //add spinner while loading
     10        elemailer_addControlSpinner('post_select'); //add spinner while loading
     11
    812        //function to get taxonomy based on post type
    913        function elemailer_get_taxonomy_for_selected_posts(onload = true) {
    10             // console.log('get taxonomy');
     14           
     15            elemailer_addControlSpinner('taxonomy_type'); //add spinner while loading
     16           
    1117            var elTaxonomy = $('[data-setting="taxonomy_type"]');
    1218
    13             elTaxonomy.empty();
     19            $('[data-setting="taxonomy_type"]').empty();
    1420            //only trigger change to reset selected taxonomy option when post type is actively changed
    1521            if (onload == false && event.type == 'change') {
    1622                //this is needed to reset the selected taxonomy
    17                 elTaxonomy.trigger('change');
     23                $('[data-setting="taxonomy_type"]').trigger('change');
    1824            }
    1925            var post_type = $('[data-setting="post_type"]').val() || model.attributes.settings.attributes.post_type || [];
     
    2733            $.post(elemailer_lite.ajaxUrl, data, function (response) {
    2834                var taxonomy_name = JSON.parse(response);
    29                 $.each(taxonomy_name, function () {
    30                     if (this.name == 'post_format') {
    31                         return;
    32                     }
    33 
    34                     // console.log('taxonomy loop: '+(i++));
    35                     elTaxonomy.append('<option value="' + this.name + '">' + this.name + '</option>');
    36 
    37                 });
    38                 //set already selected value
    39                 elTaxonomy.val(model.attributes.settings.attributes.taxonomy_type);
    40                 elemailer_get_posts_for_selected_posts(elTaxonomy);
    41 
    42                 if (elTaxonomy.has('option').length == 0) {
    43                     elTaxonomy.attr('disabled', 'disabled');
     35                $('[data-setting="taxonomy_type"]').empty();
     36
     37                if(Object.keys(taxonomy_name).length!==0){
     38                    $.each(taxonomy_name, function () {
     39                        if (this.name == 'post_format') {
     40                            return;
     41                        }
     42
     43                        // console.log('taxonomy loop: '+(i++));
     44                        $('[data-setting="taxonomy_type"]').append('<option value="' + this.name + '">' + this.name + '</option>');
     45
     46                    });
     47                    //set already selected value
     48                    $('[data-setting="taxonomy_type"]').val(model.attributes.settings.attributes.taxonomy_type);
     49
     50                }else{
     51                     $('[data-setting="taxonomy_type"]').val(0).trigger('change');
     52                }
     53               
     54
     55
     56                elemailer_get_posts_for_selected_posts($('[data-setting="taxonomy_type"]'));
     57
     58                elemailer_removeControlSpinner('taxonomy_type'); //add spinner while loading
     59       
     60                if ($('[data-setting="taxonomy_type"]').has('option').length == 0) {
     61                    $('[data-setting="taxonomy_type"]').attr('disabled', 'disabled');
    4462                } else {
    45                     elTaxonomy.removeAttr('disabled');
     63                    $('[data-setting="taxonomy_type"]').removeAttr('disabled');
    4664                }
    4765            });//$.post               
     
    5068        //function to get posts based on taxonomy
    5169        function elemailer_get_posts_for_selected_posts(onload = true) {
    52             // console.log('get posts');
     70
     71            elemailer_addControlSpinner('post_select'); //add spinner while loading
     72
     73            setTimeout(function () {
     74
     75    // console.log('get posts');
    5376            var elPostSelect = $('[data-setting="post_select"]');
    54             //only trigger change to reset selected posts option when taxonomy is actively changed
    55             if (event.type == 'change') {
    56                 elPostSelect.trigger('change');
    57             }
     77
    5878            if (typeof (onload) !== 'object') {
    5979                //var taxonomy_type = $('[data-setting="taxonomy_type"]').val();
     
    6181            } else {
    6282                var taxonomy_type = onload.val();
    63                 elPostSelect.empty();
     83                $('[data-setting="post_select"]').empty();
    6484            }
    6585
    6686            //if no taxonomy selected stop the function to avoid showing null value in posts
    67             if (taxonomy_type == null) {
    68                 return;
    69             }
     87            // if (taxonomy_type == null) {
     88            //     return;
     89            // }
     90           
    7091            var post_type = $('[data-setting="post_type"]').val() || model.attributes.settings.attributes.post_type || [];
    7192            var data = {
     
    79100            $.post(elemailer_lite.ajaxUrl, data, function (response) {
    80101                var posts = JSON.parse(response);
     102                $('[data-setting="post_select"]').empty();
    81103                $.each(posts, function (idx, value) {
    82104                    // console.log('posts loop: '+(j++));                   
    83                     elPostSelect.append('<option value="' + idx + '">' + value + '</option>');
     105                    $('[data-setting="post_select"]').append('<option value="' + idx + '">' + value + '</option>');
    84106                });
     107
     108                console.log(typeof (onload));
    85109                //set already selected value
    86110                if (typeof (onload) === 'object') {
    87                     elPostSelect.val(model.attributes.settings.attributes.post_select);
    88                 }
     111                    $('[data-setting="post_select"]').val(model.attributes.settings.attributes.post_select);
     112                }
     113                elemailer_removeControlSpinner('post_select'); //add spinner while loading
     114
    89115            });
     116
     117            }, 1);
     118
     119           
     120
     121       
    90122
    91123        }//elemailer_get_posts_for_selected_posts()
     
    93125        //when moving from Advanced tab to content model variable is null so to pass it's data
    94126        function elemailer_pass_around_model_for_selected_posts(panel, model, view) {
    95             // console.log('pass around the model');
    96             // set timeout to load content tab's content
    97             setTimeout(function () {
    98                 elemailer_get_taxonomy_for_selected_posts();
    99             }, 100);
     127         
     128                elemailer_get_posts_for_selected_posts($('[data-setting="post_type"]'));
     129         
    100130        }
    101131
    102         //get taxonomy
    103         $('#elementor-controls').on('change', '[data-setting="post_type"]', function (event) {
    104             // console.log('post change event');
    105             // pass onload value false, means the value was actively changed 
    106             elemailer_get_taxonomy_for_selected_posts(false);
    107             $('[data-setting="taxonomy_type"]').selectedIndex = -1;
    108             return true;
     132        const settingsModel = model.get( 'settings' );
     133       
     134        settingsModel.on( 'change', ( changedModel ) => {
     135
     136            // if(changedModel.changed.post_type){
     137            //     // pass onload value false, means the value was actively changed 
     138            //     elemailer_get_taxonomy_for_selected_posts(false);
     139            //     $('[data-setting="taxonomy_type"]').selectedIndex = -1;
     140            // }
     141            if(changedModel.changed.post_type){
     142                //pass $this to keep the changes to each different taxonomy
     143                elemailer_get_posts_for_selected_posts($('[data-setting="post_type"]'));
     144               $('[data-setting="post_select"]').selectedIndex = -1;
     145            }
     146             
     147        } );
     148
     149        //this ensures the data remains the same even after switching back from advanced tab to content tab
     150
     151            elementor.channels.editor.on('elemailer:selectedposts:clicked', function(panel, model, view) {
     152                elemailer_pass_around_model_for_selected_posts(panel, model, view);
     153
     154                console.log('clicked!!!');
     155            });
     156
     157
     158
     159    });
     160
     161        elementor.channels.editor.on('editor:widget:elemailer-selected-posts:elemailer_sp_content_section:activated', (panelView)=>{
     162
     163
     164
     165            elementor.channels.editor.trigger( 'elemailer:selectedposts:clicked', require );
     166
     167
     168               // console.log('outer one', panelView);
     169
    109170        });
    110         //get posts
    111         $('#elementor-controls').on('change', '[data-setting="taxonomy_type"]', function () {
    112             // console.log('taxonomy change event'); 
    113             //pass $this to keep the changes to each different taxonomy
    114             elemailer_get_posts_for_selected_posts($(this));
    115             $('[data-setting="post_select"]').selectedIndex = -1;
    116             return true;
    117         });
    118 
    119         //this ensures the data remains the same even after switching back from advanced tab to content tab
    120         $(".elementor-panel").mouseenter(function () {
    121             elemailer_pass_around_model_for_selected_posts(panel, model, view);
    122 
    123         });
    124 
    125     });
     171
    126172
    127173    // call the the functionality of add, edit form when elementor editor panel is open for edit
    128174    elementor.hooks.addAction('panel/open_editor/widget/elemailer-latest-posts', function (panel, model, view) {
     175
    129176        //call initially to set the already saved data
    130177        elemailer_get_taxonomy_for_latest_posts();
     
    132179        //function to get taxonomy based on post type
    133180        function elemailer_get_taxonomy_for_latest_posts(onload = true) {
     181           
     182            elemailer_addControlSpinner('taxonomy_type'); //add spinner while loading
     183            elemailer_addControlSpinner('terms'); //add spinner while loading
     184
    134185            var elTaxonomy = $('[data-setting="taxonomy_type"]');
    135186
    136             elTaxonomy.empty();
    137             //only trigger change to reset selected taxonomy option when post type is actively changed
    138             if (onload == false && event.type == 'change') {
    139                 //this is needed to reset the selected taxonomy
    140                 elTaxonomy.trigger('change');
    141             }
     187            $('[data-setting="taxonomy_type"]').empty();
     188
    142189            var post_type = $('[data-setting="post_type"]').val() || model.attributes.settings.attributes.post_type || [];
    143190            var data = {
     
    149196            $.post(elemailer_lite.ajaxUrl, data, function (response) {
    150197                var taxonomy_name = JSON.parse(response);
    151                 $.each(taxonomy_name, function () {
    152                     if (this.name == 'post_format') {
    153                         return;
    154                     }
    155 
    156                     elTaxonomy.append('<option value="' + this.name + '">' + this.name + '</option>');
    157 
    158                 });
     198                $('[data-setting="taxonomy_type"]').empty();
     199                if(Object.keys(taxonomy_name).length!==0){
     200                    $.each(taxonomy_name, function () {
     201                        if (this.name == 'post_format') {
     202                            return;
     203                        }
     204
     205                        $('[data-setting="taxonomy_type"]').append('<option value="' + this.name + '">' + this.name + '</option>');
     206
     207                        $('[data-setting="taxonomy_type"]').val(model.attributes.settings.attributes.taxonomy_type);
     208
     209                    });
     210                }else{
     211                    $('[data-setting="taxonomy_type"]').val(0).trigger('change');
     212                }
     213             
    159214                //set already selected value
    160                 elTaxonomy.val(model.attributes.settings.attributes.taxonomy_type);
    161                 elemailer_get_terms_for_latest_posts(elTaxonomy);
    162 
    163                 if (elTaxonomy.has('option').length == 0) {
    164                     elTaxonomy.attr('disabled', 'disabled');
     215                elemailer_removeControlSpinner('taxonomy_type');
     216               
     217                elemailer_get_terms_for_latest_posts($('[data-setting="taxonomy_type"]'));
     218
     219                if ($('[data-setting="taxonomy_type"]').has('option').length == 0) {
     220                    $('[data-setting="taxonomy_type"]').attr('disabled', 'disabled');
    165221                } else {
    166                     elTaxonomy.removeAttr('disabled');
     222                    $('[data-setting="taxonomy_type"]').removeAttr('disabled');
    167223                }
    168224            });//$.post               
     
    172228        function elemailer_get_terms_for_latest_posts(onload = true) {
    173229            var elPostSelect = $('[data-setting="terms"]');
    174             //only trigger change to reset selected terms option when taxonomy is actively changed
    175             if (event.type == 'change') {
    176                 elPostSelect.trigger('change');
    177             }
     230
    178231            if (typeof (onload) !== 'object') {
    179232                //var taxonomy_type = $('[data-setting="taxonomy_type"]').val();
    180233                var taxonomy_type = onload;
    181234            } else {
     235
    182236                var taxonomy_type = onload.val();
    183                 elPostSelect.empty();
     237                $('[data-setting="terms"]').empty();
    184238            }
    185239
     
    198252            $.post(elemailer_lite.ajaxUrl, data, function (response) {
    199253                var terms = JSON.parse(response);
     254                 $('[data-setting="terms"]').empty();
    200255                $.each(terms, function (idx, value) {
    201                     elPostSelect.append('<option value="' + value.id + '">' + value.name + '</option>');
     256                    $('[data-setting="terms"]').append('<option value="' + value.id + '">' + value.name + '</option>');
    202257                });
     258
    203259                //set already selected value
    204260                if (typeof (onload) === 'object') {
    205                     elPostSelect.val(model.attributes.settings.attributes.terms);
    206                 }
     261                    $('[data-setting="terms"]').val(model.attributes.settings.attributes.terms);
     262                }
     263                elemailer_removeControlSpinner('terms');
     264
    207265            });
    208266
     
    211269        //when moving from Advanced tab to content model variable is null so to pass it's data
    212270        function elemailer_pass_around_model_for_latest_posts(panel, model, view) {
    213             // set timeout to load content tab's content
    214             setTimeout(function () {
     271             
    215272                elemailer_get_taxonomy_for_latest_posts();
    216             }, 100);
     273
    217274        }
    218275
    219         //get taxonomy
    220         $('#elementor-controls').on('change', '[data-setting="post_type"]', function (event) {
    221             // pass onload value false, means the value was actively changed 
    222             elemailer_get_taxonomy_for_latest_posts(false);
    223             $('[data-setting="taxonomy_type"]').selectedIndex = -1;
    224             return true;
    225         });
    226         //get terms
    227         $('#elementor-controls').on('change', '[data-setting="taxonomy_type"]', function () {
    228             //pass $this to keep the changes to each different taxonomy
    229             elemailer_get_terms_for_latest_posts($(this));
    230             $('[data-setting="post_select"]').selectedIndex = -1;
    231             return true;
    232         });
     276       
     277        const settingsModel = model.get( 'settings' );
     278       
     279        settingsModel.on( 'change', ( changedModel ) => {
     280
     281            console.log('Setting changed');
     282            if(changedModel.changed.post_type){
     283                // pass onload value false, means the value was actively changed 
     284                elemailer_get_taxonomy_for_latest_posts(false);
     285                $('[data-setting="taxonomy_type"]').selectedIndex = -1;
     286            }
     287            if(changedModel.changed.taxonomy_type){
     288                //pass $this to keep the changes to each different taxonomy
     289                elemailer_get_terms_for_latest_posts($('[data-setting="taxonomy_type"]'));
     290                $('[data-setting="post_select"]').selectedIndex = -1;
     291            }
     292             
     293        } );
    233294
    234295        //this ensures the data remains the same even after switching back from advanced tab to content tab
    235         $(".elementor-panel").mouseenter(function () {
    236             elemailer_pass_around_model_for_latest_posts(panel, model, view);
     296        elementor.channels.editor.on('section:activated',function(){
     297            if(elementor.getPanelView().currentPageView.activeSection == 'elemailer_lp_content_section'){
     298
     299                elemailer_pass_around_model_for_latest_posts(panel, model, view);
     300
     301              }
    237302        });
    238303
     
    304369    elementor.on('preview:loaded', change_exit_link_attr);
    305370
     371 /**
     372   * Add a spinner to a control inside its control title.
     373   * @since 4.1.2
     374   * @param {string} controlName - The control name to add the spinner to.
     375   *
     376   * @return {void}
     377   */
     378    // add a preloader for options to load -> pass control name
     379    function elemailer_addControlSpinner(controlName) {
     380        const thecontrol= '.elementor-control-'+controlName;   
     381        setTimeout(() => {
     382       
     383         //Exit if there is a spinner already.
     384        if ($(thecontrol).find('.elementor-control-spinner').length) {
     385          return;
     386        }
     387
     388        const $input = $(thecontrol).find(':input')||$(thecontrol).find('select');
     389        $input.attr('disabled', true);
     390
     391         $(thecontrol).find('.elementor-control-title').after('<span class="elementor-control-spinner"><i class="eicon-spinner eicon-animation-spin"></i>&nbsp;</span>');
     392        }, "600");
     393    }
     394
     395    // remove preloader when loaded -> pass control name
     396    function elemailer_removeControlSpinner(controlName) {
     397
     398        const thecontrol= '.elementor-control-'+controlName;
     399
     400        setTimeout(() => {
     401            $(thecontrol).find('.elementor-control-spinner').remove();
     402            const $input = $(thecontrol).find(':input')||$(thecontrol).find('select');
     403            $input.attr('disabled', false);
     404
     405        }, "800");
     406    }
    306407
    307408})(jQuery);
  • elemailer-lite/trunk/integrations/elementor/widgets/latest-posts/latest-posts.php

    r2957801 r3014851  
    5353
    5454        $this->start_controls_section(
    55             'content_section',
     55            'elemailer_lp_content_section',
    5656            [
    5757                'label' => __('Content', 'elemailer-lite'),
     
    8383            'terms',
    8484            [
    85                 'label' => __('Select Terms (usually categories/tags) * Must Select Taxonomy First', 'elemailer-lite'),
     85                'label' => __('Select Terms', 'elemailer-lite'),
     86                'description' => __('Terms usually mean categories/tags/product tag etc. Important: Select Taxonomy First','elemailer'),
    8687                'type' => Controls_Manager::SELECT2,
    8788                'label_block' => true,
     
    9495        );
    9596
     97
    9698        $this->end_controls_section();
    9799
     
    109111                'label' => __('Posts per page', 'elemailer-lite'),
    110112                'type' => Controls_Manager::NUMBER,
    111                 'min' => 1,
    112                 'max' => 30,
    113113                'step' => 1,
    114114                'default' => 5,
     
    284284                'type' => Controls_Manager::NUMBER,
    285285                'min' => 1,
    286                 'max' => 30,
    287286                'step' => 1,
    288287                'default' => 15,
  • elemailer-lite/trunk/integrations/elementor/widgets/selected-posts/selected-posts.php

    r2957801 r3014851  
    4949
    5050        $this->start_controls_section(
    51             'content_section',
     51            'elemailer_sp_content_section',
    5252            [
    5353                'label' => __('Content', 'elemailer-lite'),
     
    7272                'type' => Controls_Manager::SELECT,
    7373                'label_block' => true,
     74                'classes' => 'elementor-panel-alert elementor-panel-alert-warning',
     75                'description' => __('Select Taxonomy is kept for future use to allow users to select Taxonomy type and then select term to narrow down their selected post list below. For now Skip this','elemailer'),
    7476                'options' => (object) array(),
    7577                'condition' => [
    76                     'post_type!' => '',
    77 
     78                    //'post_type!' => '',
     79                    'taxonomy_type' => 'hidden',
    7880                ],
    7981
     
    8486            'post_select',
    8587            [
    86                 'label' => __('Post select', 'elemailer-lite'),
     88                'label' => __('Selected Posts', 'elemailer-lite'),
    8789                'type' => Controls_Manager::SELECT2,
    8890                'label_block' => true,
    8991                'options' => '',
    9092                'multiple' => true,
    91                 'condition' => [
    92                     'taxonomy_type!' => '',
    93 
    94                 ],
    95             ]
    96         );
     93                // 'condition' => [
     94                //  'taxonomy_type!' => '',
     95
     96                // ],
     97            ]
     98        );
     99
    97100
    98101        $this->end_controls_section();
     
    242245                'type' => Controls_Manager::NUMBER,
    243246                'min' => 1,
    244                 'max' => 30,
    245247                'step' => 1,
    246248                'default' => 15,
  • elemailer-lite/trunk/languages/elemailer-lite.pot

    r2957801 r3014851  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Elemailer Lite 2.0\n"
     5"Project-Id-Version: Elemailer Lite 2.1\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/elemailer-lite\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2023-08-24T10:21:37+00:00\n"
     12"POT-Creation-Date: 2023-12-27T21:31:13+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    14 "X-Generator: WP-CLI 2.8.1\n"
     14"X-Generator: WP-CLI 2.9.0\n"
    1515"X-Domain: elemailer-lite\n"
    1616
     
    186186#: integrations/elementor/widgets/image-box/image-box.php:384
    187187#: integrations/elementor/widgets/image/image.php:185
    188 #: integrations/elementor/widgets/latest-posts/latest-posts.php:589
    189 #: integrations/elementor/widgets/selected-posts/selected-posts.php:548
     188#: integrations/elementor/widgets/latest-posts/latest-posts.php:588
     189#: integrations/elementor/widgets/selected-posts/selected-posts.php:550
    190190#: integrations/elementor/widgets/shortcode/shortcode.php:287
    191191#: integrations/elementor/widgets/social/social.php:303
     
    208208#: integrations/elementor/widgets/image-box/image-box.php:388
    209209#: integrations/elementor/widgets/image/image.php:189
    210 #: integrations/elementor/widgets/latest-posts/latest-posts.php:373
    211 #: integrations/elementor/widgets/latest-posts/latest-posts.php:444
    212 #: integrations/elementor/widgets/latest-posts/latest-posts.php:516
    213 #: integrations/elementor/widgets/latest-posts/latest-posts.php:593
    214 #: integrations/elementor/widgets/selected-posts/selected-posts.php:330
    215 #: integrations/elementor/widgets/selected-posts/selected-posts.php:402
    216 #: integrations/elementor/widgets/selected-posts/selected-posts.php:474
    217 #: integrations/elementor/widgets/selected-posts/selected-posts.php:552
     210#: integrations/elementor/widgets/latest-posts/latest-posts.php:372
     211#: integrations/elementor/widgets/latest-posts/latest-posts.php:443
     212#: integrations/elementor/widgets/latest-posts/latest-posts.php:515
     213#: integrations/elementor/widgets/latest-posts/latest-posts.php:592
     214#: integrations/elementor/widgets/selected-posts/selected-posts.php:332
     215#: integrations/elementor/widgets/selected-posts/selected-posts.php:404
     216#: integrations/elementor/widgets/selected-posts/selected-posts.php:476
     217#: integrations/elementor/widgets/selected-posts/selected-posts.php:554
    218218#: integrations/elementor/widgets/shortcode/shortcode.php:171
    219219#: integrations/elementor/widgets/shortcode/shortcode.php:215
     
    235235#: integrations/elementor/widgets/image/image.php:27
    236236#: integrations/elementor/widgets/image/image.php:190
    237 #: integrations/elementor/widgets/latest-posts/latest-posts.php:594
    238 #: integrations/elementor/widgets/selected-posts/selected-posts.php:553
     237#: integrations/elementor/widgets/latest-posts/latest-posts.php:593
     238#: integrations/elementor/widgets/selected-posts/selected-posts.php:555
    239239#: integrations/elementor/widgets/shortcode/shortcode.php:292
    240240#: integrations/elementor/widgets/social/social.php:308
     
    252252#: integrations/elementor/widgets/image-box/image-box.php:397
    253253#: integrations/elementor/widgets/image/image.php:198
    254 #: integrations/elementor/widgets/latest-posts/latest-posts.php:602
    255 #: integrations/elementor/widgets/selected-posts/selected-posts.php:561
     254#: integrations/elementor/widgets/latest-posts/latest-posts.php:601
     255#: integrations/elementor/widgets/selected-posts/selected-posts.php:563
    256256#: integrations/elementor/widgets/shortcode/shortcode.php:300
    257257#: integrations/elementor/widgets/social/social.php:316
     
    271271#: integrations/elementor/widgets/image/image.php:64
    272272#: integrations/elementor/widgets/image/image.php:215
    273 #: integrations/elementor/widgets/latest-posts/latest-posts.php:619
    274 #: integrations/elementor/widgets/selected-posts/selected-posts.php:578
     273#: integrations/elementor/widgets/latest-posts/latest-posts.php:618
     274#: integrations/elementor/widgets/selected-posts/selected-posts.php:580
    275275#: integrations/elementor/widgets/shortcode/shortcode.php:311
    276276#: integrations/elementor/widgets/social/social.php:333
     
    454454#: integrations/elementor/widgets/image-box/image-box.php:120
    455455#: integrations/elementor/widgets/image/image.php:95
    456 #: integrations/elementor/widgets/latest-posts/latest-posts.php:337
    457 #: integrations/elementor/widgets/selected-posts/selected-posts.php:295
     456#: integrations/elementor/widgets/latest-posts/latest-posts.php:336
     457#: integrations/elementor/widgets/selected-posts/selected-posts.php:297
    458458#: integrations/elementor/widgets/shortcode/shortcode.php:115
    459459#: integrations/elementor/widgets/social/social.php:175
     
    469469#: integrations/elementor/widgets/image/image.php:99
    470470#: integrations/elementor/widgets/latest-posts/latest-posts.php:195
    471 #: integrations/elementor/widgets/latest-posts/latest-posts.php:341
    472 #: integrations/elementor/widgets/selected-posts/selected-posts.php:153
    473 #: integrations/elementor/widgets/selected-posts/selected-posts.php:299
     471#: integrations/elementor/widgets/latest-posts/latest-posts.php:340
     472#: integrations/elementor/widgets/selected-posts/selected-posts.php:156
     473#: integrations/elementor/widgets/selected-posts/selected-posts.php:301
    474474#: integrations/elementor/widgets/shortcode/shortcode.php:69
    475475#: integrations/elementor/widgets/shortcode/shortcode.php:119
     
    484484#: integrations/elementor/widgets/image-box/image-box.php:128
    485485#: integrations/elementor/widgets/image/image.php:103
    486 #: integrations/elementor/widgets/latest-posts/latest-posts.php:345
    487 #: integrations/elementor/widgets/selected-posts/selected-posts.php:303
     486#: integrations/elementor/widgets/latest-posts/latest-posts.php:344
     487#: integrations/elementor/widgets/selected-posts/selected-posts.php:305
    488488#: integrations/elementor/widgets/shortcode/shortcode.php:123
    489489#: integrations/elementor/widgets/social/social.php:183
     
    499499#: integrations/elementor/widgets/image/image.php:107
    500500#: integrations/elementor/widgets/latest-posts/latest-posts.php:196
    501 #: integrations/elementor/widgets/latest-posts/latest-posts.php:349
    502 #: integrations/elementor/widgets/selected-posts/selected-posts.php:154
    503 #: integrations/elementor/widgets/selected-posts/selected-posts.php:307
     501#: integrations/elementor/widgets/latest-posts/latest-posts.php:348
     502#: integrations/elementor/widgets/selected-posts/selected-posts.php:157
     503#: integrations/elementor/widgets/selected-posts/selected-posts.php:309
    504504#: integrations/elementor/widgets/shortcode/shortcode.php:127
    505505#: integrations/elementor/widgets/social/social.php:187
     
    523523#: integrations/elementor/widgets/image-box/image-box.php:375
    524524#: integrations/elementor/widgets/image/image.php:176
    525 #: integrations/elementor/widgets/latest-posts/latest-posts.php:580
    526 #: integrations/elementor/widgets/selected-posts/selected-posts.php:539
     525#: integrations/elementor/widgets/latest-posts/latest-posts.php:579
     526#: integrations/elementor/widgets/selected-posts/selected-posts.php:541
    527527#: integrations/elementor/widgets/shortcode/shortcode.php:278
    528528#: integrations/elementor/widgets/social/social.php:294
     
    542542#: integrations/elementor/widgets/image-box/image-box.php:242
    543543#: integrations/elementor/widgets/image-box/image-box.php:329
    544 #: integrations/elementor/widgets/latest-posts/latest-posts.php:389
    545 #: integrations/elementor/widgets/latest-posts/latest-posts.php:460
    546 #: integrations/elementor/widgets/latest-posts/latest-posts.php:532
    547 #: integrations/elementor/widgets/selected-posts/selected-posts.php:346
    548 #: integrations/elementor/widgets/selected-posts/selected-posts.php:418
    549 #: integrations/elementor/widgets/selected-posts/selected-posts.php:490
     544#: integrations/elementor/widgets/latest-posts/latest-posts.php:388
     545#: integrations/elementor/widgets/latest-posts/latest-posts.php:459
     546#: integrations/elementor/widgets/latest-posts/latest-posts.php:531
     547#: integrations/elementor/widgets/selected-posts/selected-posts.php:348
     548#: integrations/elementor/widgets/selected-posts/selected-posts.php:420
     549#: integrations/elementor/widgets/selected-posts/selected-posts.php:492
    550550#: integrations/elementor/widgets/shortcode/shortcode.php:186
    551551#: integrations/elementor/widgets/shortcode/shortcode.php:230
     
    559559#: integrations/elementor/widgets/image-box/image-box.php:351
    560560#: integrations/elementor/widgets/image/image.php:152
    561 #: integrations/elementor/widgets/latest-posts/latest-posts.php:556
    562 #: integrations/elementor/widgets/selected-posts/selected-posts.php:515
     561#: integrations/elementor/widgets/latest-posts/latest-posts.php:555
     562#: integrations/elementor/widgets/selected-posts/selected-posts.php:517
    563563#: integrations/elementor/widgets/shortcode/shortcode.php:254
    564564#: integrations/elementor/widgets/social/social.php:270
     
    575575#: integrations/elementor/widgets/image-box/image-box.php:359
    576576#: integrations/elementor/widgets/image/image.php:160
    577 #: integrations/elementor/widgets/latest-posts/latest-posts.php:564
    578 #: integrations/elementor/widgets/selected-posts/selected-posts.php:523
     577#: integrations/elementor/widgets/latest-posts/latest-posts.php:563
     578#: integrations/elementor/widgets/selected-posts/selected-posts.php:525
    579579#: integrations/elementor/widgets/shortcode/shortcode.php:262
    580580#: integrations/elementor/widgets/social/social.php:278
     
    656656#: integrations/elementor/widgets/image-box/image-box.php:219
    657657#: integrations/elementor/widgets/latest-posts/latest-posts.php:252
    658 #: integrations/elementor/widgets/latest-posts/latest-posts.php:365
    659 #: integrations/elementor/widgets/selected-posts/selected-posts.php:210
    660 #: integrations/elementor/widgets/selected-posts/selected-posts.php:322
     658#: integrations/elementor/widgets/latest-posts/latest-posts.php:364
     659#: integrations/elementor/widgets/selected-posts/selected-posts.php:213
     660#: integrations/elementor/widgets/selected-posts/selected-posts.php:324
    661661msgid "Title"
    662662msgstr ""
     
    672672
    673673#: integrations/elementor/widgets/heading/heading.php:156
    674 #: integrations/elementor/widgets/latest-posts/latest-posts.php:412
    675 #: integrations/elementor/widgets/latest-posts/latest-posts.php:483
    676 #: integrations/elementor/widgets/selected-posts/selected-posts.php:369
    677 #: integrations/elementor/widgets/selected-posts/selected-posts.php:441
     674#: integrations/elementor/widgets/latest-posts/latest-posts.php:411
     675#: integrations/elementor/widgets/latest-posts/latest-posts.php:482
     676#: integrations/elementor/widgets/selected-posts/selected-posts.php:371
     677#: integrations/elementor/widgets/selected-posts/selected-posts.php:443
    678678msgid "Line Height (px)"
    679679msgstr ""
     
    711711#: integrations/elementor/widgets/image-box/image-box.php:104
    712712#: integrations/elementor/widgets/latest-posts/latest-posts.php:194
    713 #: integrations/elementor/widgets/selected-posts/selected-posts.php:152
     713#: integrations/elementor/widgets/selected-posts/selected-posts.php:155
    714714#: integrations/elementor/widgets/shortcode/shortcode.php:68
    715715msgid "Top"
     
    770770
    771771#: integrations/elementor/widgets/latest-posts/latest-posts.php:85
    772 msgid "Select Terms (usually categories/tags) * Must Select Taxonomy First"
    773 msgstr ""
    774 
    775 #: integrations/elementor/widgets/latest-posts/latest-posts.php:101
    776 #: integrations/elementor/widgets/selected-posts/selected-posts.php:103
     772msgid "Select Terms"
     773msgstr ""
     774
     775#: integrations/elementor/widgets/latest-posts/latest-posts.php:103
     776#: integrations/elementor/widgets/selected-posts/selected-posts.php:106
    777777#: plugin.php:362
    778778msgid "Settings"
    779779msgstr ""
    780780
    781 #: integrations/elementor/widgets/latest-posts/latest-posts.php:109
     781#: integrations/elementor/widgets/latest-posts/latest-posts.php:111
    782782msgid "Posts per page"
    783783msgstr ""
    784784
    785785#: integrations/elementor/widgets/latest-posts/latest-posts.php:124
    786 #: integrations/elementor/widgets/selected-posts/selected-posts.php:111
     786#: integrations/elementor/widgets/selected-posts/selected-posts.php:114
    787787msgid "Posts Per Row"
    788788msgstr ""
     
    797797
    798798#: integrations/elementor/widgets/latest-posts/latest-posts.php:170
    799 #: integrations/elementor/widgets/selected-posts/selected-posts.php:128
     799#: integrations/elementor/widgets/selected-posts/selected-posts.php:131
    800800msgid "Layout"
    801801msgstr ""
    802802
    803803#: integrations/elementor/widgets/latest-posts/latest-posts.php:178
    804 #: integrations/elementor/widgets/selected-posts/selected-posts.php:136
     804#: integrations/elementor/widgets/selected-posts/selected-posts.php:139
    805805msgid "Display Thumbnail"
    806806msgstr ""
     
    809809#: integrations/elementor/widgets/latest-posts/latest-posts.php:254
    810810#: integrations/elementor/widgets/latest-posts/latest-posts.php:273
    811 #: integrations/elementor/widgets/latest-posts/latest-posts.php:307
    812 #: integrations/elementor/widgets/selected-posts/selected-posts.php:138
    813 #: integrations/elementor/widgets/selected-posts/selected-posts.php:212
    814 #: integrations/elementor/widgets/selected-posts/selected-posts.php:231
    815 #: integrations/elementor/widgets/selected-posts/selected-posts.php:265
     811#: integrations/elementor/widgets/latest-posts/latest-posts.php:306
     812#: integrations/elementor/widgets/selected-posts/selected-posts.php:141
     813#: integrations/elementor/widgets/selected-posts/selected-posts.php:215
     814#: integrations/elementor/widgets/selected-posts/selected-posts.php:234
     815#: integrations/elementor/widgets/selected-posts/selected-posts.php:267
    816816msgid "Show"
    817817msgstr ""
     
    820820#: integrations/elementor/widgets/latest-posts/latest-posts.php:255
    821821#: integrations/elementor/widgets/latest-posts/latest-posts.php:274
    822 #: integrations/elementor/widgets/latest-posts/latest-posts.php:308
    823 #: integrations/elementor/widgets/selected-posts/selected-posts.php:139
    824 #: integrations/elementor/widgets/selected-posts/selected-posts.php:213
     822#: integrations/elementor/widgets/latest-posts/latest-posts.php:307
     823#: integrations/elementor/widgets/selected-posts/selected-posts.php:142
     824#: integrations/elementor/widgets/selected-posts/selected-posts.php:216
     825#: integrations/elementor/widgets/selected-posts/selected-posts.php:235
     826#: integrations/elementor/widgets/selected-posts/selected-posts.php:268
     827msgid "Hide"
     828msgstr ""
     829
     830#: integrations/elementor/widgets/latest-posts/latest-posts.php:190
     831#: integrations/elementor/widgets/selected-posts/selected-posts.php:151
     832msgid "Image position"
     833msgstr ""
     834
     835#: integrations/elementor/widgets/latest-posts/latest-posts.php:209
     836#: integrations/elementor/widgets/selected-posts/selected-posts.php:170
     837msgid "Image size"
     838msgstr ""
     839
     840#: integrations/elementor/widgets/latest-posts/latest-posts.php:222
     841#: integrations/elementor/widgets/selected-posts/selected-posts.php:183
     842msgid "Width(%)"
     843msgstr ""
     844
     845#: integrations/elementor/widgets/latest-posts/latest-posts.php:271
     846#: integrations/elementor/widgets/latest-posts/latest-posts.php:435
    825847#: integrations/elementor/widgets/selected-posts/selected-posts.php:232
    826 #: integrations/elementor/widgets/selected-posts/selected-posts.php:266
    827 msgid "Hide"
    828 msgstr ""
    829 
    830 #: integrations/elementor/widgets/latest-posts/latest-posts.php:190
    831 #: integrations/elementor/widgets/selected-posts/selected-posts.php:148
    832 msgid "Image position"
    833 msgstr ""
    834 
    835 #: integrations/elementor/widgets/latest-posts/latest-posts.php:209
    836 #: integrations/elementor/widgets/selected-posts/selected-posts.php:167
    837 msgid "Image size"
    838 msgstr ""
    839 
    840 #: integrations/elementor/widgets/latest-posts/latest-posts.php:222
    841 #: integrations/elementor/widgets/selected-posts/selected-posts.php:180
    842 msgid "Width(%)"
    843 msgstr ""
    844 
    845 #: integrations/elementor/widgets/latest-posts/latest-posts.php:271
    846 #: integrations/elementor/widgets/latest-posts/latest-posts.php:436
    847 #: integrations/elementor/widgets/selected-posts/selected-posts.php:229
    848 #: integrations/elementor/widgets/selected-posts/selected-posts.php:394
     848#: integrations/elementor/widgets/selected-posts/selected-posts.php:396
    849849msgid "Excerpt"
    850850msgstr ""
    851851
    852852#: integrations/elementor/widgets/latest-posts/latest-posts.php:283
    853 #: integrations/elementor/widgets/selected-posts/selected-posts.php:241
     853#: integrations/elementor/widgets/selected-posts/selected-posts.php:244
    854854msgid "Excerpt Length"
    855855msgstr ""
    856856
    857 #: integrations/elementor/widgets/latest-posts/latest-posts.php:305
    858 #: integrations/elementor/widgets/latest-posts/latest-posts.php:508
    859 #: integrations/elementor/widgets/selected-posts/selected-posts.php:263
    860 #: integrations/elementor/widgets/selected-posts/selected-posts.php:466
     857#: integrations/elementor/widgets/latest-posts/latest-posts.php:304
     858#: integrations/elementor/widgets/latest-posts/latest-posts.php:507
     859#: integrations/elementor/widgets/selected-posts/selected-posts.php:265
     860#: integrations/elementor/widgets/selected-posts/selected-posts.php:468
    861861msgid "Read More"
    862862msgstr ""
    863863
    864 #: integrations/elementor/widgets/latest-posts/latest-posts.php:317
    865 #: integrations/elementor/widgets/selected-posts/selected-posts.php:275
     864#: integrations/elementor/widgets/latest-posts/latest-posts.php:316
     865#: integrations/elementor/widgets/selected-posts/selected-posts.php:277
    866866msgid "Read More Text"
    867867msgstr ""
    868868
     869#: integrations/elementor/widgets/latest-posts/latest-posts.php:318
     870#: integrations/elementor/widgets/selected-posts/selected-posts.php:279
     871msgid "Read More »"
     872msgstr ""
     873
    869874#: integrations/elementor/widgets/latest-posts/latest-posts.php:319
    870 #: integrations/elementor/widgets/selected-posts/selected-posts.php:277
    871 msgid "Read More »"
    872 msgstr ""
    873 
    874 #: integrations/elementor/widgets/latest-posts/latest-posts.php:320
    875 #: integrations/elementor/widgets/selected-posts/selected-posts.php:278
     875#: integrations/elementor/widgets/selected-posts/selected-posts.php:280
    876876msgid "Type your read more text here"
    877877msgstr ""
    878878
    879879#: integrations/elementor/widgets/selected-posts/selected-posts.php:23
     880#: integrations/elementor/widgets/selected-posts/selected-posts.php:88
    880881msgid "Selected Posts"
    881 msgstr ""
    882 
    883 #: integrations/elementor/widgets/selected-posts/selected-posts.php:86
    884 msgid "Post select"
    885882msgstr ""
    886883
  • elemailer-lite/trunk/plugin.php

    r2957801 r3014851  
    4343    public function define_constant()
    4444    {
    45         define( 'ELE_MAILER_LITE_VERSION', '2.0' );
     45        define( 'ELE_MAILER_LITE_VERSION', '2.1' );
    4646        define( 'ELE_MAILER_LITE_PACKAGE', 'free' );
    4747        define( 'ELE_MAILER_LITE_PLUGIN_URL', trailingslashit(plugin_dir_url(__FILE__ ) ) );
  • elemailer-lite/trunk/public/assets/css/elemailer-mail.css

    r2957801 r3014851  
    8282    -webkit-box-sizing: border-box;
    8383    box-sizing: border-box;
    84     overflow: auto;
    8584}
    8685ul li,ol li,ul,ol{
     
    152151    width: 100%;
    153152    display: block;
     153    overflow: auto;
    154154}
    155155.elemailer-play-icon{
     
    164164}
    165165
     166@media screen and (max-width:600px) {
     167    .elementor-column {
     168        display: block !important;
     169        width: 100% !important;
     170    }
     171}
    166172/* Default elementor CSS for layout and basic structures END */
  • elemailer-lite/trunk/public/assets/css/style.css

    r2957801 r3014851  
    161161}
    162162/* hide admin bar elementor editor end */
     163.elementor-row {
     164    overflow: auto;
     165}
  • elemailer-lite/trunk/readme.txt

    r3014812 r3014851  
    33Tags: email, cf7, email template, elementor addons, email marketing, email template builder, elementor, contact form 7, email design, woocommerce email customizer, free email builder, ai
    44Requires at least: 4.5
    5 Tested up to: 6.3
     5Tested up to: 6.4.2
    66Requires PHP: 7.2
    7 Stable tag: 2.0
     7Stable tag: 2.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    147147
    148148== Changelog ==
     149= 2.1 =
     150* Fix: Selected & Latest post widget flicker
     151* Fix: Some CSS fixes for emails overflow
     152* Fix: Limitation in Selected & Latest post widget for numbers
     153* Tewak: Removed confusing control from Selected posts widget
    149154= 2.0 =
    150155* Tweak: Compatibility with Latest Elementor & WordPress
     
    184189* Fix: CSS fix for email
    185190* Fix: 3rd party plugin panel and template library showing
    186 * Fix: Elementor latest version compatibility
     191* Fix: Elementor latest version Compatibility
    187192* Fix: Removed container as it's not supported in email
    188193= 1.0.10 =
Note: See TracChangeset for help on using the changeset viewer.