Plugin Directory

Changeset 2863667


Ignore:
Timestamp:
02/11/2023 03:09:58 PM (3 years ago)
Author:
elementinvader
Message:

v1.1.9

Location:
elementinvader
Files:
118 added
13 edited

Legend:

Unmodified
Added
Removed
  • elementinvader/trunk/README.txt

    r2740854 r2863667  
    44Tags: template kits, elementor templates, elementor addon, elementor addons, elementor
    55Requires at least: 5.2
    6 Tested up to: 6.0
    7 Stable tag: 1.1.8
     6Tested up to: 6.1
     7Stable tag: 1.1.9
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6767= Template looks different after import, why? =
    6868
    69 Sometimes this depends on your theme css, we testing al lthemes with theme "Hello" so if yo uare not satisfied or ahve trouble try to use official Elementor theme "Hello".
     69Sometimes this depends on your theme css, we testing all themes with theme "Hello" so if yo uare not satisfied or ahve trouble try to use official Elementor theme "Hello".
    7070
    7171= I have trouble with ElementInvader plugin? =
    7272
    73 Feel free to open support ticket, provide wp-admin so we can take a look.
     73Feel free to open support ticket in dashboard so we can take a look.
    7474
    7575== Screenshots ==
     
    7878
    7979== Changelog ==
     80
     81= 1.1.9 =
     82* Vendor libs updated, small fixes
    8083
    8184= 1.1.8 =
  • elementinvader/trunk/admin/css/elementinvader-admin.css

    r2723875 r2863667  
    3636    font-family: Montserrat;
    3737}
     38
    3839
    3940.elementinvader_wrap nav
     
    10841085}
    10851086
    1086 
     1087body.elementinvader-page .wrap.elementinvader_wrap .toggle-pr span.dashicons {
     1088    display: inline-block;
     1089    margin-right: 3px;
     1090}
    10871091
    10881092/* sw_log_notify */
     
    13061310    .toggle-pr>span{
    13071311        text-align: left;
     1312        display: block;
    13081313    }
    13091314
     
    13141319}
    13151320
     1321
     1322.elementinvader_wrap .pagination {
     1323    text-align: center;
     1324    width: 100%;
     1325    padding-bottom: 120px;
     1326}
     1327
     1328.elementinvader_wrap .pagination a {
     1329    color: black;
     1330    width: 40px;
     1331    height: 40px;
     1332    line-height: 40px;
     1333    text-decoration: none;
     1334    transition: background-color .3s;
     1335    display: inline-block;
     1336    background-color: #ebebeb;
     1337    margin-left: 15px;
     1338    border-radius: 5px;
     1339}
     1340
     1341.elementinvader_wrap .pagination a i {
     1342    color: #fff;
     1343    position: relative;
     1344    top: 5px;
     1345}
     1346
     1347.elementinvader_wrap .pagination .left {
     1348    background-color: #8b56df;
     1349}
     1350
     1351.elementinvader_wrap .pagination .left:hover {
     1352    background-color: #e45fa3;
     1353}
     1354
     1355.elementinvader_wrap .pagination a.active {
     1356    background-color: #222222;
     1357    color: white;
     1358}
     1359
     1360.elementinvader_wrap .pagination a:hover:not(.active) {
     1361    background-color: #e45fa3;
     1362}
     1363
     1364.elementinvader_wrap .pagination a:hover {
     1365    color: #fff;
     1366}
     1367
     1368.elementinvader_wrap .pagination .fa-angle-right:after {
     1369    content: "\f345";
     1370    font-family: dashicons;
     1371    line-height: 1;
     1372    font-weight: 400;
     1373    font-style: normal;
     1374    text-transform: none;
     1375    text-rendering: auto;
     1376    font-size: 20px;
     1377    text-align: center;
     1378}
     1379
     1380.elementinvader_wrap .pagination .fa-angle-left:after {
     1381    content: "\f341";
     1382    font-family: dashicons;
     1383    line-height: 1;
     1384    font-weight: 400;
     1385    font-style: normal;
     1386    text-transform: none;
     1387    text-rendering: auto;
     1388    font-size: 20px;
     1389    text-align: center;
     1390}
  • elementinvader/trunk/admin/js/elementinvader-admin.js

    r2552936 r2863667  
    3434            if(jQuery(this).find('img').height() < jQuery(this).height() ) jQuery(this).addClass('img-vcenter');
    3535        });
     36
     37        jQuery(".elementinvader_wrap .card a.img_link").on('click', function (e) {
     38            e.prevendDefault();
     39            return false;
     40        });
    3641    });
    3742})( jQuery );
  • elementinvader/trunk/application/controllers/Elementinvader.php

    r2723875 r2863667  
    234234                }
    235235            }
    236 
     236 
    237237            if(count($plugins_to_activate) == 0)
    238238            {
     
    247247                    $results['message'] = $ret_call_obj->purchase_message;
    248248                    $results['purchase_success'] = 0;
    249                     $results['page_url'] = admin_url('admin.php?page=elementinvader_contact&template='.$template.'&page_title='.$page_title);
     249                    $results['page_url'] = admin_url('admin.php?page=elementinvader_contact&template='.$template.'&page_title='.$page_title.'&subject='. __('License key issue','elementinvader')
     250                                            .'&message='. __('Issue related to license key:','elementinvader').' '.$license_key);
    250251   
    251252                    header('Pragma: no-cache');
     
    344345            {       
    345346                $results['page_url'] = admin_url('admin.php?page=elementinvader_contact&template_id='.str_replace('download_kit_', '', $template).'&page_title='.$page_title);
    346                 $results['message'] = __('Import failed, json error, please report issue here','elementinvader');
     347                $results['message'] = __('Import failed, json or zip extracting trouble on your server, please report issue here','elementinvader');
    347348            }
    348349            elseif(!empty($license_key) && !empty($online_kit_id))
     
    467468        $this->data['elementor_post_id'] = $elementor_post_id;
    468469        $this->data['form'] = &$this->form;
     470        $this->data['db_data'] = get_option('eli_export_'.$elementor_post_id);
    469471
    470472        $rules = array(
     
    497499                'field' => 'screenshoot',
    498500                'label' => __('Screenshoot', 'elementinvader'),
    499                 'rules' => 'required'
     501                'rules' => 'required|elementinvader_size_maxheight_2000'
    500502            ),
    501503            array(
    502504                'field' => 'screenshoot_large',
    503505                'label' => __('Screenshoot Large', 'elementinvader'),
    504                 'rules' => 'required'
     506                'rules' => 'required|elementinvader_size_maxheight_4000'
    505507            ),
    506508        );
     
    508510        $this->form->add_error_message('elementinvader_size_640', __('Screenshoot Size should have width 640px', 'elementinvader'));
    509511        $this->form->add_error_message('elementinvader_size_1280', __('Screenshoot Large Size should have width 1280px', 'elementinvader'));
     512
     513        $this->form->add_error_message('elementinvader_size_maxheight_2000', __('Screenshoot Size should have max height 2000px', 'elementinvader'));
     514        $this->form->add_error_message('elementinvader_size_maxheight_4000', __('Screenshoot Large Size should have max height 4000px', 'elementinvader'));
    510515
    511516        if($this->form->run($rules))
     
    514519            $data = $this->input->post();
    515520            $this->generate_zip($elementor_post_id, $data);
     521           
     522            if(!empty($data['save_data']))
     523                update_option('eli_export_'.$elementor_post_id, sanitize_post($data));
     524
    516525        } else {
    517526            // Load view
     
    597606        $screenshot_url_large = '';
    598607        if(isset($data['screenshoot'])) {
    599             $screenshot_url = get_attached_file($data['screenshoot'], true);
     608            $screenshot_url = wp_get_original_image_path($data['screenshoot'], false);
    600609        }
    601610
    602611        if(isset($data['screenshoot_large'])) {
    603             $screenshot_url_large = get_attached_file($data['screenshoot_large'], true);
     612            $screenshot_url_large = wp_get_original_image_path($data['screenshoot_large'], true);
    604613        }
    605614
    606615        if(empty($screenshot_url) && empty($screenshot_url_large) && $post_data->post_type == "envato_tk_templates" || TRUE) {
    607             $attachment_id = get_post_thumbnail_id( $elementor_post_id );
     616            $attachment_id = wp_get_original_image_path( $elementor_post_id );
    608617            if($attachment_id) {
    609                 $screenshot_url_large = $screenshot_url = get_attached_file($attachment_id, true);
     618                $screenshot_url_large = $screenshot_url = wp_get_original_image_path($attachment_id, true);
    610619            }
    611620            $elementor_post_id = $this->input->post_get('post');
  • elementinvader/trunk/application/helpers/Basic.php

    r2723875 r2863667  
    373373    $document = Elementor\Plugin::$instance->documents->get( $page_id, false );
    374374    // @codingStandardsIgnoreEnd
     375
     376    /* reCreate KIt */
     377    $kit = Elementor\Plugin::$instance->kits_manager->get_active_kit();
     378    if(empty($kit->get_id())){
     379        $created_default_kit = Elementor\Plugin::$instance->kits_manager->create_default();
     380        if($created_default_kit)
     381            update_option( Elementor\Core\Kits\Manager::OPTION_ACTIVE, $created_default_kit );
     382    }
     383
    375384    return $document->save( $data );
    376385}
     
    542551}
    543552
     553if ( ! function_exists('is_elementinvader_size_maxheight_2000'))
     554{
     555    function is_elementinvader_size_maxheight_2000($param)
     556    {   
     557        if(!empty($param))
     558        {
     559            $image = wp_get_attachment_metadata(intval($param));
     560            if($image && $image['height'] <= 2000) return TRUE;
     561        }
     562
     563        return FALSE;
     564    }
     565}
     566
     567if ( ! function_exists('is_elementinvader_size_maxheight_4000'))
     568{
     569    function is_elementinvader_size_maxheight_4000($param)
     570    {   
     571        if(!empty($param))
     572        {
     573            $image = wp_get_attachment_metadata(intval($param));
     574            if($image && $image['height'] <= 4000) return TRUE;
     575        }
     576
     577        return FALSE;
     578    }
     579}
     580
    544581?>
  • elementinvader/trunk/application/views/elementinvader/export_zip.php

    r2723875 r2863667  
    5959                    <label for="kit_description"><?php echo __('Screenshot','elementinvader'); ?></label>
    6060                    <?php echo wmvc_upload_media('screenshoot', wmvc_show_data('screenshoot', $db_data, '')); ?>
    61                     <i class="hint"><?php echo __('Make nice screenshot image with width 640px','elementinvader'); ?></i>
     61                    <i class="hint"><?php echo __('Make nice screenshot image with width 640px and max height 2000px','elementinvader'); ?></i>
    6262                </div>
    6363                <div class="form-group">
    6464                    <label for="kit_description"><?php echo __('Screenshot large','elementinvader'); ?></label>
    6565                    <?php echo wmvc_upload_media('screenshoot_large', wmvc_show_data('screenshoot_large', $db_data, '')); ?>
    66                     <i class="hint"><?php echo __('Make nice screenshot image with width 1280px','elementinvader'); ?></i>
     66                    <i class="hint"><?php echo __('Make nice screenshot image with width 1280px and max height 4000px','elementinvader'); ?></i>
    6767                </div>
    6868
     
    8181                    ?>
    8282                    <label class="inline-checkbox">
    83                         <input <?php if(isset($_POST['required_plugins']) && array_search($plugin_slug, $_POST['required_plugins']) !== FALSE ):?> checked="checked" <?php endif;?> name="required_plugins[]" type="checkbox" class="form-control" value="<?php echo esc_attr($plugin_slug);?>"><?php echo esc_html($plugin_data['Name']); ?>
     83                    <input
     84                        <?php
     85                        if(in_array($plugin_slug, array('elementor','elementinvader','elementinvader-addons-for-elementor')) !== FALSE ){
     86                            echo 'checked="checked"';
     87                        }elseif(isset($_POST['required_plugins']) && array_search($plugin_slug, $_POST['required_plugins']) !== FALSE ){
     88                            echo 'checked="checked"';
     89                        } elseif(!isset($_POST['required_plugins']) && isset($db_data['required_plugins']) && array_search($plugin_slug, $db_data['required_plugins']) !== FALSE ) {
     90                            echo 'checked="checked"';
     91                        }
     92                        ?>
     93                       
     94                        name="required_plugins[]" type="checkbox" class="form-control" value="<?php echo esc_attr($plugin_slug);?>"><?php echo esc_html($plugin_data['Name']); ?>
    8495                    </label>
    8596                    <?php endforeach;?>
     97                </div>
     98
     99                <div class="form-group">
     100                    <label><?php echo __('Options','elementinvader'); ?>:</label>
     101                    <label class="inline-checkbox">
     102                    <input checked="checked" name="save_data" type="checkbox" class="form-control" value="1"><?php echo __('Save Data','elementinvader'); ?>
     103                    </label>
    86104                </div>
    87105           
  • elementinvader/trunk/application/views/elementinvader_contact/index.php

    r2723875 r2863667  
    7878                <div class="form-group">
    7979                    <label for="contactForm_subject"><?php echo __('Subject','elementinvader'); ?></label>
    80                     <input name="subject" type="text" class="form-control" id="contactForm_subject" placeholder="Subject">
     80                    <input name="subject" type="text" class="form-control" id="contactForm_subject" value="<?php if(isset($_GET['subject'])):?><?php echo esc_html($_GET['subject']);?><?php endif;?>" placeholder="Subject">
    8181                </div>
    8282                <div class="form-group">
     
    9898                <div class="form-group">
    9999                    <label for="contactForm_message"><?php echo __('Message','elementinvader'); ?></label>
    100                     <textarea name="message" class="form-control" id="contactForm_message" rows="10"></textarea>
     100                    <textarea name="message" class="form-control" id="contactForm_message" rows="10"><?php if(isset($_GET['message'])):?><?php echo esc_html($_GET['message']);?><?php endif;?></textarea>
    101101                </div>
    102102                <button type="submit" id="contactForm_submit" class="btn btn-primary"><?php echo __('Send','elementinvader'); ?> <img id="ajax-indicator-masking" src="<?php echo ELEMENTINVADER_URL . 'admin/images/ajax-loader-white-small.gif'; ?>" style="display: none;" /></button>
  • elementinvader/trunk/application/views/elementinvader_marketplace/index.php

    r2677753 r2863667  
    6767
    6868                 <div class="toggle-pr">
    69                      <span><i class="fa fa-heart"></i> My Favorite</span>
     69                     <span><span class="dashicons dashicons-heart"></span> My Favorite</span>
    7070                     <label class="switch">
    7171                      <input type="checkbox" name="my_favourite" value="1"  />
     
    7575
    7676                 <div class="toggle-pr">
    77                      <span><i class="fa fa-thumbs-up"></i>My Likes</span>
     77                     <span><span class="dashicons dashicons-thumbs-up"></span> My Likes</span>
    7878                     <label class="switch">
    7979                      <input type="checkbox" name="my_likes" value="1"  />
     
    8383
    8484                 <div class="toggle-pr">
    85                      <span><i class="fa fa-user"></i>My Pages</span>
     85                     <span><span class="dashicons dashicons-download"></span> My Pages</span>
    8686                     <label class="switch">
    8787                      <input type="checkbox" name="my_pages" value="1"  />
     
    167167    jQuery('#button-find').click(function()
    168168    {
    169         var data_form = $('#search_form').serialize()+'&api_token=<?php echo get_option('elementinvader_api_token', ''); ?>';
    170         var that = $(this);
     169        elementinvader_search_tempaltes();
     170        return false;
     171    });
     172
     173    const elementinvader_search_tempaltes = (page = 1) => {
     174        var data_form = $('#search_form').serialize()+'&api_token=<?php echo get_option('elementinvader_api_token', ''); ?>&page='+page;
     175        var that = jQuery('#button-find');
    171176        var ajax_indicator =  $('#search_form').find('#ajax-indicator-masking');
    172177       
     
    178183            jQuery('#results_container').html('');
    179184
    180             jQuery('#panel_title').html(data.results.length+' Design Templates found');
     185            jQuery('#panel_title').html(data.total+' Design Templates found');
    181186
    182187            if(data.login_message)
     
    240245            });
    241246
     247            if(typeof data.pagination !='undefined')
     248                jQuery('#results_container').append('<div class="pagination">' + data.pagination + '</div>');
     249
    242250            define_animate();
    243251
     
    245253
    246254            define_results_triggers();
     255
     256            $('.pagination a').click(function (e) {
     257                e.preventDefault();
     258
     259                var href = $(this).attr('href').replace(/#results/, '');
     260                var n = href.lastIndexOf("page=");
     261                var page_num = href.substr(n+5)
     262                elementinvader_search_tempaltes(page_num);
     263                jQuery('html, body').animate({
     264                        scrollTop: jQuery('#search_form').first().offset().top-150
     265                    },
     266                150);
     267
     268                return false;
     269            });
    247270           
    248271            //ShowStatus.show('<?php echo wmvc_js(__('We still working on this feature', 'elementinvader')); ?>, tag:'+jQuery('#input-find').val());
    249            
    250272        })
    251273        .done(function(data) {
     
    265287            });
    266288        });
    267 
    268         return false;
    269     });
     289    }
    270290
    271291    $('#add-page-button').click(function(){
  • elementinvader/trunk/elementinvader.php

    r2740854 r2863667  
    1717 * Plugin URI:        https://elementinvader.com
    1818 * Description:       ElementInvader offers premium library of one click ready and free Elementor templates from https://elementinvader.com/ service.
    19  * Version:           1.1.8
     19 * Version:           1.1.9
    2020 * Author:            ElementInvader
    2121 * Author URI:        https://elementinvader.com
     
    2525 * Domain Path:       /languages
    2626 *
    27  * Elementor tested up to: 3.6.6
    28  * Elementor Pro tested up to: 3.6.6
     27 * Elementor tested up to: 3.10.2
     28 * Elementor Pro tested up to: 3.11.2
    2929 *
    3030 */
  • elementinvader/trunk/vendor/Winter_MVC/assets/js/jquery.wpmediaelement.js

    r2711650 r2863667  
    1414        imgContainer: null,
    1515        imgIdInput: null,
    16         frame: null,
     16        frame: {},
    1717        isfileUpload: false,
    1818    };
    1919   
    2020    var options = jQuery.extend(defaults, options);
    21    
     21
     22    if(typeof options.frame.title == 'undefined') {
     23        options.frame.title = 'Select or Upload Media Of Your Chosen Persuasion';
     24    }
     25
     26    if(typeof options.frame.button == 'undefined') {
     27        options.frame.button = 'Use this media';
     28    }
     29
    2230    /* Public API */
    2331    this.getCurrent = function()
     
    4452        console.log('init_start'+options.obj.attr('id'));
    4553       
    46         options.frame = wp.media({
    47             title: 'Select or Upload Media Of Your Chosen Persuasion',
    48             library: {
    49                 type: 'image'
    50             },
    51             button: {
    52                 text: 'Use this media'
    53             },
    54             multiple: false
    55         });
    56        
     54        options.frame = wp.media({
     55            title: options.frame.title,
     56            library: {
     57                type: 'image'
     58            },
     59            button: {
     60                text: options.frame.button
     61            },
     62            multiple: false
     63        });
     64
    5765        options.frame.on( 'open', updateFrame ).state('library').on( 'select', selectImg );
    5866       
  • elementinvader/trunk/vendor/Winter_MVC/assets/js/jquery.wpmediaelement_file.js

    r2699026 r2863667  
    1414        imgContainer: null,
    1515        imgIdInput: null,
    16         frame: null
     16        frame: {}
    1717    };
    18     console.log(options);
     18   
    1919    var options = jQuery.extend(defaults, options);
    20    
     20
     21    if(typeof options.frame.title == 'undefined') {
     22        options.frame.title = 'Select or Upload Media Of Your Chosen Persuasion';
     23    }
     24
     25    if(typeof options.frame.button == 'undefined') {
     26        options.frame.button = 'Use this media';
     27    }
     28
    2129    /* Public API */
    2230    this.getCurrent = function()
     
    4351        console.log('init_start'+options.obj.attr('id'));
    4452       
    45         options.frame = wp.media({
    46             title: 'Select or Upload Media Of Your Chosen Persuasion',
    47             library: {
    48                 type: 'image'
    49             },
    50             button: {
    51                 text: 'Use this media'
    52             },
    53             multiple: false
    54         });
    55        
     53        options.frame = wp.media({
     54            title: options.frame.title,
     55            library: {
     56                type: 'image'
     57            },
     58            button: {
     59                text: options.frame.button
     60            },
     61            multiple: false
     62        });
     63
    5664        options.frame.on( 'open', updateFrame ).state('library').on( 'select', selectImg );
    5765       
  • elementinvader/trunk/vendor/Winter_MVC/assets/js/jquery.wpmediamultiple.js

    r2711650 r2863667  
    1414        imgContainer: null,
    1515        imgIdInput: null,
    16         frame: null
     16        frame: {}
    1717    };
    1818   
    1919    var options = jQuery.extend(defaults, options);
     20
     21    if(typeof options.frame.title == 'undefined') {
     22        options.frame.title = 'Select or Upload Media Of Your Chosen Persuasion';
     23    }
     24
     25    if(typeof options.frame.button == 'undefined') {
     26        options.frame.button = 'Use this media';
     27    }
    2028   
    2129    /* Public API */
     
    4351        console.log('init_start'+options.obj.attr('id'));
    4452       
    45         options.frame = wp.media({
    46             title: 'Select or Upload Media Of Your Chosen Persuasion',
    47             library: {
    48                 type: 'image'
    49             },
    50             button: {
    51                 text: 'Use this media'
    52             },
    53             multiple: true
    54         });
    55        
     53        options.frame = wp.media({
     54            title: options.frame.title,
     55            library: {
     56                type: 'image'
     57            },
     58            button: {
     59                text: options.frame.button
     60            },
     61            multiple: true
     62        });
     63
    5664        options.frame.on( 'open', updateFrame ).state('library').on( 'select', selectImg );
    5765       
     
    152160
    153161}
    154 
    155 /* fix for mobile draggable */
    156 /*!
    157  * Depends:
    158  *  jquery.ui.widget.js
    159  *  jquery.ui.mouse.js
    160 */
    161 
    162 !function(a){function f(a,b){if(!(a.originalEvent.touches.length>1)){a.preventDefault();var c=a.originalEvent.changedTouches[0],d=document.createEvent("MouseEvents");d.initMouseEvent(b,!0,!0,window,1,c.screenX,c.screenY,c.clientX,c.clientY,!1,!1,!1,!1,0,null),a.target.dispatchEvent(d)}}if(a.support.touch="ontouchend"in document,a.support.touch){var e,b=a.ui.mouse.prototype,c=b._mouseInit,d=b._mouseDestroy;b._touchStart=function(a){var b=this;!e&&b._mouseCapture(a.originalEvent.changedTouches[0])&&(e=!0,b._touchMoved=!1,f(a,"mouseover"),f(a,"mousemove"),f(a,"mousedown"))},b._touchMove=function(a){e&&(this._touchMoved=!0,f(a,"mousemove"))},b._touchEnd=function(a){e&&(f(a,"mouseup"),f(a,"mouseout"),this._touchMoved||f(a,"click"),e=!1)},b._mouseInit=function(){var b=this;b.element.bind({touchstart:a.proxy(b,"_touchStart"),touchmove:a.proxy(b,"_touchMove"),touchend:a.proxy(b,"_touchEnd")}),c.call(b)},b._mouseDestroy=function(){var b=this;b.element.unbind({touchstart:a.proxy(b,"_touchStart"),touchmove:a.proxy(b,"_touchMove"),touchend:a.proxy(b,"_touchEnd")}),d.call(b)}}}(jQuery);
  • elementinvader/trunk/vendor/Winter_MVC/core/mvc_loader.php

    r2740854 r2863667  
    131131    public function view($view_file, &$data, $output = TRUE)
    132132    {
    133         if(empty($this->plugin_directory))
     133       
     134        if(is_child_theme() && file_exists(get_stylesheet_directory().'/wpdirectorykit/application/views/'.$view_file.'.php'))
     135        {
     136            $file = get_stylesheet_directory().'/wpdirectorykit/application/views/'.$view_file.'.php';
     137        }
     138        elseif(file_exists(get_template_directory().'/wpdirectorykit/application/views/'.$view_file.'.php'))
     139        {
     140            $file = get_template_directory().'/wpdirectorykit/application/views/'.$view_file.'.php';
     141        }
     142        elseif(empty($this->plugin_directory))
    134143        {
    135144            $file = WINTER_MVC_PATH.'/../../application/views/'.$view_file.'.php';
Note: See TracChangeset for help on using the changeset viewer.