Changeset 2863667
- Timestamp:
- 02/11/2023 03:09:58 PM (3 years ago)
- Location:
- elementinvader
- Files:
-
- 118 added
- 13 edited
-
tags/1.1.8 (added)
-
tags/1.1.8/LICENSE.txt (added)
-
tags/1.1.8/README.txt (added)
-
tags/1.1.8/admin (added)
-
tags/1.1.8/admin/class-elementinvader-admin.php (added)
-
tags/1.1.8/admin/css (added)
-
tags/1.1.8/admin/css/elementinvader-admin.css (added)
-
tags/1.1.8/admin/images (added)
-
tags/1.1.8/admin/images/ajax-loader-white-small.gif (added)
-
tags/1.1.8/admin/images/ajax-loader-white.gif (added)
-
tags/1.1.8/admin/images/ajax-loader.gif (added)
-
tags/1.1.8/admin/images/elementinvader-logo.png (added)
-
tags/1.1.8/admin/images/icon-256x256.png (added)
-
tags/1.1.8/admin/index.php (added)
-
tags/1.1.8/admin/js (added)
-
tags/1.1.8/admin/js/dist (added)
-
tags/1.1.8/admin/js/dist/elementinvader-admin.dev.js (added)
-
tags/1.1.8/admin/js/elementinvader-admin.js (added)
-
tags/1.1.8/admin/js/jquery.helpers.js (added)
-
tags/1.1.8/admin/js/magnific-popup (added)
-
tags/1.1.8/admin/js/magnific-popup/jquery.magnific-popup.js (added)
-
tags/1.1.8/admin/js/magnific-popup/jquery.magnific-popup.min.js (added)
-
tags/1.1.8/admin/js/magnific-popup/magnific-popup.css (added)
-
tags/1.1.8/admin/partials (added)
-
tags/1.1.8/admin/partials/elementinvader-admin-display.php (added)
-
tags/1.1.8/application (added)
-
tags/1.1.8/application/controllers (added)
-
tags/1.1.8/application/controllers/Elementinvader.php (added)
-
tags/1.1.8/application/controllers/Elementinvader_contact.php (added)
-
tags/1.1.8/application/controllers/Elementinvader_marketplace.php (added)
-
tags/1.1.8/application/core (added)
-
tags/1.1.8/application/core/MY_Model.php (added)
-
tags/1.1.8/application/core/index.html (added)
-
tags/1.1.8/application/helpers (added)
-
tags/1.1.8/application/helpers/Basic.php (added)
-
tags/1.1.8/application/models (added)
-
tags/1.1.8/application/models/Cloud_m.php (added)
-
tags/1.1.8/application/models/Control_m.php (added)
-
tags/1.1.8/application/models/Log_m.php (added)
-
tags/1.1.8/application/models/Report_m.php (added)
-
tags/1.1.8/application/models/Sessions_m.php (added)
-
tags/1.1.8/application/views (added)
-
tags/1.1.8/application/views/elementinvader (added)
-
tags/1.1.8/application/views/elementinvader/export_zip.php (added)
-
tags/1.1.8/application/views/elementinvader/index.php (added)
-
tags/1.1.8/application/views/elementinvader/install_plugins.php (added)
-
tags/1.1.8/application/views/elementinvader/install_plugins_all.php (added)
-
tags/1.1.8/application/views/elementinvader_contact (added)
-
tags/1.1.8/application/views/elementinvader_contact/index.php (added)
-
tags/1.1.8/application/views/elementinvader_marketplace (added)
-
tags/1.1.8/application/views/elementinvader_marketplace/index.php (added)
-
tags/1.1.8/application/views/general (added)
-
tags/1.1.8/application/views/general/footer.php (added)
-
tags/1.1.8/elementinvader.php (added)
-
tags/1.1.8/includes (added)
-
tags/1.1.8/includes/class-elementinvader-activator.php (added)
-
tags/1.1.8/includes/class-elementinvader-deactivator.php (added)
-
tags/1.1.8/includes/class-elementinvader-i18n.php (added)
-
tags/1.1.8/includes/class-elementinvader-loader.php (added)
-
tags/1.1.8/includes/class-elementinvader-review-request.php (added)
-
tags/1.1.8/includes/class-elementinvader.php (added)
-
tags/1.1.8/includes/index.php (added)
-
tags/1.1.8/index.php (added)
-
tags/1.1.8/languages (added)
-
tags/1.1.8/languages/elementinvader.pot (added)
-
tags/1.1.8/public (added)
-
tags/1.1.8/public/class-elementinvader-public.php (added)
-
tags/1.1.8/public/css (added)
-
tags/1.1.8/public/css/elementinvader-public.css (added)
-
tags/1.1.8/public/img (added)
-
tags/1.1.8/public/img/no-photo.jpg (added)
-
tags/1.1.8/public/index.php (added)
-
tags/1.1.8/public/js (added)
-
tags/1.1.8/public/js/elementinvader-public.js (added)
-
tags/1.1.8/public/partials (added)
-
tags/1.1.8/public/partials/elementinvader-public-display.php (added)
-
tags/1.1.8/screenshot-1.jpg (added)
-
tags/1.1.8/uninstall.php (added)
-
tags/1.1.8/vendor (added)
-
tags/1.1.8/vendor/ElementorImporter (added)
-
tags/1.1.8/vendor/ElementorImporter/ElementorTemplateExporter.php (added)
-
tags/1.1.8/vendor/ElementorImporter/ElementorTemplateImporter.php (added)
-
tags/1.1.8/vendor/Winter_MVC (added)
-
tags/1.1.8/vendor/Winter_MVC/LICENSE (added)
-
tags/1.1.8/vendor/Winter_MVC/assets (added)
-
tags/1.1.8/vendor/Winter_MVC/assets/css (added)
-
tags/1.1.8/vendor/Winter_MVC/assets/css/winter_mvc.css (added)
-
tags/1.1.8/vendor/Winter_MVC/assets/js (added)
-
tags/1.1.8/vendor/Winter_MVC/assets/js/jquery.wpmediaelement.js (added)
-
tags/1.1.8/vendor/Winter_MVC/assets/js/jquery.wpmediaelement_file.js (added)
-
tags/1.1.8/vendor/Winter_MVC/assets/js/jquery.wpmediamultiple.js (added)
-
tags/1.1.8/vendor/Winter_MVC/core (added)
-
tags/1.1.8/vendor/Winter_MVC/core/database.php (added)
-
tags/1.1.8/vendor/Winter_MVC/core/form.php (added)
-
tags/1.1.8/vendor/Winter_MVC/core/helpers.php (added)
-
tags/1.1.8/vendor/Winter_MVC/core/input.php (added)
-
tags/1.1.8/vendor/Winter_MVC/core/mvc_loader.php (added)
-
tags/1.1.8/vendor/Winter_MVC/core/winter_mvc_controller.php (added)
-
tags/1.1.8/vendor/Winter_MVC/core/winter_mvc_model.php (added)
-
tags/1.1.8/vendor/Winter_MVC/init.php (added)
-
tags/1.1.8/vendor/boo-settings-helper (added)
-
tags/1.1.8/vendor/boo-settings-helper/class-boo-settings-helper.php (added)
-
tags/1.1.8/vendor/boo-settings-helper/readme.md (added)
-
tags/1.1.8/vendor/fontawesome (added)
-
tags/1.1.8/vendor/fontawesome/LICENSE.txt (added)
-
tags/1.1.8/vendor/fontawesome/css (added)
-
tags/1.1.8/vendor/fontawesome/css/fontawesome.min.css (added)
-
tags/1.1.8/vendor/fontawesome/webfonts (added)
-
tags/1.1.8/vendor/fontawesome/webfonts/fa-regular-400.eot (added)
-
tags/1.1.8/vendor/fontawesome/webfonts/fa-regular-400.svg (added)
-
tags/1.1.8/vendor/fontawesome/webfonts/fa-regular-400.ttf (added)
-
tags/1.1.8/vendor/fontawesome/webfonts/fa-regular-400.woff (added)
-
tags/1.1.8/vendor/fontawesome/webfonts/fa-regular-400.woff2 (added)
-
tags/1.1.8/vendor/fontawesome/webfonts/fa-solid-900.eot (added)
-
tags/1.1.8/vendor/fontawesome/webfonts/fa-solid-900.svg (added)
-
tags/1.1.8/vendor/fontawesome/webfonts/fa-solid-900.ttf (added)
-
tags/1.1.8/vendor/fontawesome/webfonts/fa-solid-900.woff (added)
-
tags/1.1.8/vendor/fontawesome/webfonts/fa-solid-900.woff2 (added)
-
trunk/README.txt (modified) (3 diffs)
-
trunk/admin/css/elementinvader-admin.css (modified) (4 diffs)
-
trunk/admin/js/elementinvader-admin.js (modified) (1 diff)
-
trunk/application/controllers/Elementinvader.php (modified) (8 diffs)
-
trunk/application/helpers/Basic.php (modified) (2 diffs)
-
trunk/application/views/elementinvader/export_zip.php (modified) (2 diffs)
-
trunk/application/views/elementinvader_contact/index.php (modified) (2 diffs)
-
trunk/application/views/elementinvader_marketplace/index.php (modified) (8 diffs)
-
trunk/elementinvader.php (modified) (2 diffs)
-
trunk/vendor/Winter_MVC/assets/js/jquery.wpmediaelement.js (modified) (2 diffs)
-
trunk/vendor/Winter_MVC/assets/js/jquery.wpmediaelement_file.js (modified) (2 diffs)
-
trunk/vendor/Winter_MVC/assets/js/jquery.wpmediamultiple.js (modified) (3 diffs)
-
trunk/vendor/Winter_MVC/core/mvc_loader.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
elementinvader/trunk/README.txt
r2740854 r2863667 4 4 Tags: template kits, elementor templates, elementor addon, elementor addons, elementor 5 5 Requires at least: 5.2 6 Tested up to: 6. 07 Stable tag: 1.1. 86 Tested up to: 6.1 7 Stable tag: 1.1.9 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 67 67 = Template looks different after import, why? = 68 68 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".69 Sometimes 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". 70 70 71 71 = I have trouble with ElementInvader plugin? = 72 72 73 Feel free to open support ticket , provide wp-adminso we can take a look.73 Feel free to open support ticket in dashboard so we can take a look. 74 74 75 75 == Screenshots == … … 78 78 79 79 == Changelog == 80 81 = 1.1.9 = 82 * Vendor libs updated, small fixes 80 83 81 84 = 1.1.8 = -
elementinvader/trunk/admin/css/elementinvader-admin.css
r2723875 r2863667 36 36 font-family: Montserrat; 37 37 } 38 38 39 39 40 .elementinvader_wrap nav … … 1084 1085 } 1085 1086 1086 1087 body.elementinvader-page .wrap.elementinvader_wrap .toggle-pr span.dashicons { 1088 display: inline-block; 1089 margin-right: 3px; 1090 } 1087 1091 1088 1092 /* sw_log_notify */ … … 1306 1310 .toggle-pr>span{ 1307 1311 text-align: left; 1312 display: block; 1308 1313 } 1309 1314 … … 1314 1319 } 1315 1320 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 34 34 if(jQuery(this).find('img').height() < jQuery(this).height() ) jQuery(this).addClass('img-vcenter'); 35 35 }); 36 37 jQuery(".elementinvader_wrap .card a.img_link").on('click', function (e) { 38 e.prevendDefault(); 39 return false; 40 }); 36 41 }); 37 42 })( jQuery ); -
elementinvader/trunk/application/controllers/Elementinvader.php
r2723875 r2863667 234 234 } 235 235 } 236 236 237 237 if(count($plugins_to_activate) == 0) 238 238 { … … 247 247 $results['message'] = $ret_call_obj->purchase_message; 248 248 $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); 250 251 251 252 header('Pragma: no-cache'); … … 344 345 { 345 346 $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'); 347 348 } 348 349 elseif(!empty($license_key) && !empty($online_kit_id)) … … 467 468 $this->data['elementor_post_id'] = $elementor_post_id; 468 469 $this->data['form'] = &$this->form; 470 $this->data['db_data'] = get_option('eli_export_'.$elementor_post_id); 469 471 470 472 $rules = array( … … 497 499 'field' => 'screenshoot', 498 500 'label' => __('Screenshoot', 'elementinvader'), 499 'rules' => 'required '501 'rules' => 'required|elementinvader_size_maxheight_2000' 500 502 ), 501 503 array( 502 504 'field' => 'screenshoot_large', 503 505 'label' => __('Screenshoot Large', 'elementinvader'), 504 'rules' => 'required '506 'rules' => 'required|elementinvader_size_maxheight_4000' 505 507 ), 506 508 ); … … 508 510 $this->form->add_error_message('elementinvader_size_640', __('Screenshoot Size should have width 640px', 'elementinvader')); 509 511 $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')); 510 515 511 516 if($this->form->run($rules)) … … 514 519 $data = $this->input->post(); 515 520 $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 516 525 } else { 517 526 // Load view … … 597 606 $screenshot_url_large = ''; 598 607 if(isset($data['screenshoot'])) { 599 $screenshot_url = get_attached_file($data['screenshoot'], true);608 $screenshot_url = wp_get_original_image_path($data['screenshoot'], false); 600 609 } 601 610 602 611 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); 604 613 } 605 614 606 615 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 ); 608 617 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); 610 619 } 611 620 $elementor_post_id = $this->input->post_get('post'); -
elementinvader/trunk/application/helpers/Basic.php
r2723875 r2863667 373 373 $document = Elementor\Plugin::$instance->documents->get( $page_id, false ); 374 374 // @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 375 384 return $document->save( $data ); 376 385 } … … 542 551 } 543 552 553 if ( ! 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 567 if ( ! 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 544 581 ?> -
elementinvader/trunk/application/views/elementinvader/export_zip.php
r2723875 r2863667 59 59 <label for="kit_description"><?php echo __('Screenshot','elementinvader'); ?></label> 60 60 <?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> 62 62 </div> 63 63 <div class="form-group"> 64 64 <label for="kit_description"><?php echo __('Screenshot large','elementinvader'); ?></label> 65 65 <?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> 67 67 </div> 68 68 … … 81 81 ?> 82 82 <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']); ?> 84 95 </label> 85 96 <?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> 86 104 </div> 87 105 -
elementinvader/trunk/application/views/elementinvader_contact/index.php
r2723875 r2863667 78 78 <div class="form-group"> 79 79 <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"> 81 81 </div> 82 82 <div class="form-group"> … … 98 98 <div class="form-group"> 99 99 <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> 101 101 </div> 102 102 <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 67 67 68 68 <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> 70 70 <label class="switch"> 71 71 <input type="checkbox" name="my_favourite" value="1" /> … … 75 75 76 76 <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> 78 78 <label class="switch"> 79 79 <input type="checkbox" name="my_likes" value="1" /> … … 83 83 84 84 <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> 86 86 <label class="switch"> 87 87 <input type="checkbox" name="my_pages" value="1" /> … … 167 167 jQuery('#button-find').click(function() 168 168 { 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'); 171 176 var ajax_indicator = $('#search_form').find('#ajax-indicator-masking'); 172 177 … … 178 183 jQuery('#results_container').html(''); 179 184 180 jQuery('#panel_title').html(data. results.length+' Design Templates found');185 jQuery('#panel_title').html(data.total+' Design Templates found'); 181 186 182 187 if(data.login_message) … … 240 245 }); 241 246 247 if(typeof data.pagination !='undefined') 248 jQuery('#results_container').append('<div class="pagination">' + data.pagination + '</div>'); 249 242 250 define_animate(); 243 251 … … 245 253 246 254 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 }); 247 270 248 271 //ShowStatus.show('<?php echo wmvc_js(__('We still working on this feature', 'elementinvader')); ?>, tag:'+jQuery('#input-find').val()); 249 250 272 }) 251 273 .done(function(data) { … … 265 287 }); 266 288 }); 267 268 return false; 269 }); 289 } 270 290 271 291 $('#add-page-button').click(function(){ -
elementinvader/trunk/elementinvader.php
r2740854 r2863667 17 17 * Plugin URI: https://elementinvader.com 18 18 * Description: ElementInvader offers premium library of one click ready and free Elementor templates from https://elementinvader.com/ service. 19 * Version: 1.1. 819 * Version: 1.1.9 20 20 * Author: ElementInvader 21 21 * Author URI: https://elementinvader.com … … 25 25 * Domain Path: /languages 26 26 * 27 * Elementor tested up to: 3. 6.628 * Elementor Pro tested up to: 3. 6.627 * Elementor tested up to: 3.10.2 28 * Elementor Pro tested up to: 3.11.2 29 29 * 30 30 */ -
elementinvader/trunk/vendor/Winter_MVC/assets/js/jquery.wpmediaelement.js
r2711650 r2863667 14 14 imgContainer: null, 15 15 imgIdInput: null, 16 frame: null,16 frame: {}, 17 17 isfileUpload: false, 18 18 }; 19 19 20 20 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 22 30 /* Public API */ 23 31 this.getCurrent = function() … … 44 52 console.log('init_start'+options.obj.attr('id')); 45 53 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: false55 });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 57 65 options.frame.on( 'open', updateFrame ).state('library').on( 'select', selectImg ); 58 66 -
elementinvader/trunk/vendor/Winter_MVC/assets/js/jquery.wpmediaelement_file.js
r2699026 r2863667 14 14 imgContainer: null, 15 15 imgIdInput: null, 16 frame: null16 frame: {} 17 17 }; 18 console.log(options);18 19 19 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 21 29 /* Public API */ 22 30 this.getCurrent = function() … … 43 51 console.log('init_start'+options.obj.attr('id')); 44 52 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: false54 });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 56 64 options.frame.on( 'open', updateFrame ).state('library').on( 'select', selectImg ); 57 65 -
elementinvader/trunk/vendor/Winter_MVC/assets/js/jquery.wpmediamultiple.js
r2711650 r2863667 14 14 imgContainer: null, 15 15 imgIdInput: null, 16 frame: null16 frame: {} 17 17 }; 18 18 19 19 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 } 20 28 21 29 /* Public API */ … … 43 51 console.log('init_start'+options.obj.attr('id')); 44 52 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: true54 });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 56 64 options.frame.on( 'open', updateFrame ).state('library').on( 'select', selectImg ); 57 65 … … 152 160 153 161 } 154 155 /* fix for mobile draggable */156 /*!157 * Depends:158 * jquery.ui.widget.js159 * jquery.ui.mouse.js160 */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 131 131 public function view($view_file, &$data, $output = TRUE) 132 132 { 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)) 134 143 { 135 144 $file = WINTER_MVC_PATH.'/../../application/views/'.$view_file.'.php';
Note: See TracChangeset
for help on using the changeset viewer.