Changeset 3116751
- Timestamp:
- 07/12/2024 03:18:30 AM (21 months ago)
- Location:
- template-kit-export
- Files:
-
- 14 added
- 4 deleted
- 18 edited
- 1 copied
-
tags/1.0.22 (copied) (copied from template-kit-export/trunk)
-
tags/1.0.22/README.txt (modified) (2 diffs)
-
tags/1.0.22/admin/assets (deleted)
-
tags/1.0.22/admin/class-template-kit-export-admin.php (modified) (2 diffs)
-
tags/1.0.22/assets (added)
-
tags/1.0.22/assets/admin (added)
-
tags/1.0.22/assets/admin/template-kit-export-admin.css (added)
-
tags/1.0.22/assets/admin/template-kit-export-admin.js (added)
-
tags/1.0.22/assets/public (added)
-
tags/1.0.22/assets/public/template-kit-export-public.css (added)
-
tags/1.0.22/assets/public/template-kit-export-public.js (added)
-
tags/1.0.22/builders/class-template-kit-export-builders-base.php (modified) (10 diffs)
-
tags/1.0.22/builders/class-template-kit-export-builders-elementor.php (modified) (1 diff)
-
tags/1.0.22/languages/template-kit-export.pot (modified) (5 diffs)
-
tags/1.0.22/public/assets (deleted)
-
tags/1.0.22/public/class-template-kit-export-public.php (modified) (2 diffs)
-
tags/1.0.22/public/partials/template-kit-export-public-footer.php (modified) (1 diff)
-
tags/1.0.22/public/partials/template-kit-export-public-header.php (modified) (1 diff)
-
tags/1.0.22/template-kit-export.php (modified) (4 diffs)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/admin/assets (deleted)
-
trunk/admin/class-template-kit-export-admin.php (modified) (2 diffs)
-
trunk/assets (added)
-
trunk/assets/admin (added)
-
trunk/assets/admin/template-kit-export-admin.css (added)
-
trunk/assets/admin/template-kit-export-admin.js (added)
-
trunk/assets/public (added)
-
trunk/assets/public/template-kit-export-public.css (added)
-
trunk/assets/public/template-kit-export-public.js (added)
-
trunk/builders/class-template-kit-export-builders-base.php (modified) (10 diffs)
-
trunk/builders/class-template-kit-export-builders-elementor.php (modified) (1 diff)
-
trunk/languages/template-kit-export.pot (modified) (5 diffs)
-
trunk/public/assets (deleted)
-
trunk/public/class-template-kit-export-public.php (modified) (2 diffs)
-
trunk/public/partials/template-kit-export-public-footer.php (modified) (1 diff)
-
trunk/public/partials/template-kit-export-public-header.php (modified) (1 diff)
-
trunk/template-kit-export.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
template-kit-export/tags/1.0.22/README.txt
r2688557 r3116751 3 3 Tags: elementor, template, templates 4 4 Requires at least: 5.3 5 Tested up to: 5.95 Tested up to: 6.5 6 6 Requires PHP: 5.6 7 Stable tag: 1.0.2 17 Stable tag: 1.0.22 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 38 38 39 39 == Changelog == 40 41 = 1.0.22 - 2024-07-11 = 42 * Bug fix: Escape template titles and latest WordPress compatibility 40 43 41 44 = 1.0.21 - 2021-09-17 = -
template-kit-export/tags/1.0.22/admin/class-template-kit-export-admin.php
r2614538 r3116751 81 81 */ 82 82 83 wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'assets/css/template-kit-export-admin.min.css', array(), $this->version, 'all' );83 wp_enqueue_style( $this->plugin_name, TEMPLATE_KIT_EXPORT_PLUGIN_URL . 'assets/admin/template-kit-export-admin.css', array(), $this->version, 'all' ); 84 84 85 85 } … … 92 92 public function enqueue_scripts() { 93 93 94 wp_register_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'assets/js/template-kit-export-admin.min.js', array( 'jquery' ), $this->version, false );94 wp_register_script( $this->plugin_name, TEMPLATE_KIT_EXPORT_PLUGIN_URL . 'assets/admin/template-kit-export-admin.js', array( 'jquery' ), $this->version, false ); 95 95 wp_localize_script( 96 96 $this->plugin_name, -
template-kit-export/tags/1.0.22/builders/class-template-kit-export-builders-base.php
r2614538 r3116751 141 141 // Write our exported template data array to a local temporary file so our ZIP builder has a file to work from:. 142 142 $temporary_json_data_file = wp_tempnam( $template['zip_filename'] ); 143 // phpcs:disable WordPress.WP.AlternativeFunctions.file_system_ read_file_put_contents143 // phpcs:disable WordPress.WP.AlternativeFunctions.file_system_operations_file_put_contents 144 144 file_put_contents( $temporary_json_data_file, wp_json_encode( $exported_template_data, JSON_PRETTY_PRINT ) ); 145 145 // phpcs:enable … … 187 187 // Create a temporary file to store our manifest.json data, and add it to the temp cleanup array:. 188 188 $temporary_manifest_file_name = wp_tempnam( 'manifest.json' ); 189 // phpcs:disable WordPress.WP.AlternativeFunctions.file_system_ read_file_put_contents189 // phpcs:disable WordPress.WP.AlternativeFunctions.file_system_operations_file_put_contents 190 190 file_put_contents( $temporary_manifest_file_name, wp_json_encode( $manifest_data, JSON_PRETTY_PRINT ) ); 191 191 // phpcs:enable … … 220 220 // Clean up temporary files created above:. 221 221 foreach ( $temporary_files_to_cleanup as $temporary_file_to_cleanup ) { 222 unlink( $temporary_file_to_cleanup );222 wp_delete_file( $temporary_file_to_cleanup ); 223 223 } 224 224 … … 306 306 $templates, 307 307 function( $a, $b ) { 308 return $a['order'] > $b['order'] ;308 return $a['order'] > $b['order'] ? 1 : 0; 309 309 } 310 310 ); … … 327 327 */ 328 328 public function get_template_export_data( $template ) { 329 throw new Exception( 'Export not defined for template ' . $template['id']);329 throw new Exception( 'Export not defined for template ' . esc_html( $template['id'] ) ); 330 330 } 331 331 … … 345 345 $attachment_id = get_post_thumbnail_id( $template_id ); 346 346 if ( ! $attachment_id ) { 347 throw new Exception( 'No attachment for template ' . $template_id);347 throw new Exception( 'No attachment for template ' . esc_html( $template_id ) ); 348 348 } 349 349 // Get the file name of the feature image data. We try to get the "tk_preview" sized thumbnail first: … … 361 361 } 362 362 if ( ! $attachment_filename ) { 363 throw new Exception( 'Could not find file for attachment ' . $attachment_id);363 throw new Exception( 'Could not find file for attachment ' .esc_html( $attachment_id ) ); 364 364 } 365 365 … … 371 371 $screenshot_extension = 'jpg'; 372 372 } else { 373 throw new Exception( 'Unknown attachment type for ' . $attachment_filename);373 throw new Exception( 'Unknown attachment type for ' . esc_html( $attachment_filename ) ); 374 374 } 375 375 $post_data = get_post( $template_id ); … … 425 425 $generated_tk_preview = image_make_intermediate_size( get_attached_file( $get_thumb_id ), TEMPLATE_KIT_EXPORT_THUMBNAIL_WIDTH, 0, true ); 426 426 $template_attachment_meta = wp_get_attachment_metadata( $get_thumb_id ); 427 if( empty( $template_attachment_meta ) ) { 428 $template_attachment_meta = array(); 429 } 430 if( empty( $template_attachment_meta['sizes'] ) ) { 431 $template_attachment_meta['sizes'] = array(); 432 } 427 433 $template_attachment_meta['sizes']['tk_preview'] = $generated_tk_preview; 428 434 wp_update_attachment_metadata( $get_thumb_id, $template_attachment_meta ); … … 433 439 $tk_post_update = array( 434 440 'ID' => $template_id, 435 'post_title' => $template_options['name'],441 'post_title' => strip_tags( $template_options['name'] ), 436 442 'menu_order' => $template_options['position_id'], 437 443 ); -
template-kit-export/tags/1.0.22/builders/class-template-kit-export-builders-elementor.php
r2614538 r3116751 683 683 $templates, 684 684 function( $a, $b ) { 685 return $a['order'] > $b['order'] ;685 return $a['order'] > $b['order'] ? 1 : 0; 686 686 } 687 687 ); -
template-kit-export/tags/1.0.22/languages/template-kit-export.pot
r2614538 r3116751 1 # Copyright (C) 202 1template-kit-export1 # Copyright (C) 2024 template-kit-export 2 2 # This file is distributed under the same license as the template-kit-export package. 3 3 msgid "" … … 7 7 "Content-Type: text/plain; charset=UTF-8\n" 8 8 "Content-Transfer-Encoding: 8bit\n" 9 "Language-Team: Envato <dave.baker@envato.com>\n" 10 "Last-Translator: Dave Baker <dave.baker@envato.com>\n" 11 "Report-Msgid-Bugs-To: https://envato.com/\n" 9 "Content-Transfer-Econdig: 8bit\n" 10 "Content-Type: text/plain; charset=UTF-8\n" 11 "Language-Team: Envato <extensions@envato.com>\n" 12 "Last-Translator: Extensions <extensions@envato.com>\n" 13 "MIME-Version: 1.0\n" 14 "Project-Id-Version: template-kit-export\n" 15 "Report-Msgid-Bugs-To: https://envato.com//\n" 12 16 "X-Poedit-Basepath: ..\n" 13 17 "X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n" … … 37 41 msgstr "" 38 42 43 #: admin/class-template-kit-export-health-check.php:59 44 msgid "WordPress is up-to-date." 45 msgstr "" 46 39 47 #: admin/class-template-kit-export-health-check.php:57 40 48 msgid "Please up date WordPress to the latest version." 41 msgstr ""42 43 #: admin/class-template-kit-export-health-check.php:5944 msgid "WordPress is up-to-date."45 49 msgstr "" 46 50 … … 54 58 msgstr "" 55 59 56 #: builders/class-template-kit-export-builders-base.php: 49960 #: builders/class-template-kit-export-builders-base.php:505 57 61 msgid "Image Source:" 58 62 msgstr "" 59 63 60 #: builders/class-template-kit-export-builders-base.php:50 364 #: builders/class-template-kit-export-builders-base.php:509 61 65 msgid "Licensed From Envato Elements" 62 66 msgstr "" 63 67 64 #: builders/class-template-kit-export-builders-base.php:5 0468 #: builders/class-template-kit-export-builders-base.php:510 65 69 msgid "Created Myself" 66 70 msgstr "" 67 71 68 #: builders/class-template-kit-export-builders-base.php:5 0572 #: builders/class-template-kit-export-builders-base.php:511 69 73 msgid "CC0 or equivalent" 70 74 msgstr "" 71 75 72 #: builders/class-template-kit-export-builders-base.php:5 0676 #: builders/class-template-kit-export-builders-base.php:512 73 77 msgid "Unsure (NOT allowed)" 74 78 msgstr "" 75 79 76 #: builders/class-template-kit-export-builders-base.php:51 180 #: builders/class-template-kit-export-builders-base.php:517 77 81 msgid "Contains Person or Place?" 78 82 msgstr "" 79 83 80 #: builders/class-template-kit-export-builders-base.php:5 1584 #: builders/class-template-kit-export-builders-base.php:521 81 85 msgid "Yes, image contains person or place" 82 86 msgstr "" 83 87 84 #: builders/class-template-kit-export-builders-base.php:5 1688 #: builders/class-template-kit-export-builders-base.php:522 85 89 msgid "No" 86 90 msgstr "" 87 91 88 #: builders/class-template-kit-export-builders-base.php:52 192 #: builders/class-template-kit-export-builders-base.php:527 89 93 msgid "Source URLs" 90 94 msgstr "" 91 95 92 #: builders/class-template-kit-export-builders-base.php:5 38, builders/class-template-kit-export-builders-elementor.php:32996 #: builders/class-template-kit-export-builders-base.php:544, builders/class-template-kit-export-builders-elementor.php:329 93 97 msgid "Include Template in Export ZIP" 94 98 msgstr "" … … 338 342 msgstr "" 339 343 344 #: admin/partials/template-kit-export-step-2.php:210 345 msgid "Sorry this plugin can not be included as a dependency. Please use plugins from WordPress.org as per the Template Kit guidelines." 346 msgstr "" 347 340 348 #: admin/partials/template-kit-export-step-2.php:208 341 349 msgid "Sorry this plugin can not be included as a dependency. Elementor Kits are only compatible with Elementor, Elementor Pro and WooCommerce plugins. Please generate a Template Kit " 342 350 msgstr "" 343 344 #: admin/partials/template-kit-export-step-2.php:210345 msgid "Sorry this plugin can not be included as a dependency. Please use plugins from WordPress.org as per the Template Kit guidelines."346 msgstr "" -
template-kit-export/tags/1.0.22/public/class-template-kit-export-public.php
r2246624 r3116751 65 65 */ 66 66 public function enqueue_styles() { 67 68 wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'assets/css/template-kit-export-public.min.css', array(), $this->version, 'all' );69 67 // phpcs:disable EnqueuedStylesScope 68 wp_enqueue_style( $this->plugin_name, TEMPLATE_KIT_EXPORT_PLUGIN_URL . 'assets/public/template-kit-export-public.css', array(), $this->version, 'all' ); 69 // phpcs:enable 70 70 } 71 71 … … 76 76 */ 77 77 public function enqueue_scripts() { 78 79 wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'assets/js/template-kit-export-public.min.js', array( 'jquery' ), $this->version, false );80 78 // phpcs:disable EnqueuedScriptsScope 79 wp_enqueue_script( $this->plugin_name, TEMPLATE_KIT_EXPORT_PLUGIN_URL . 'assets/public/template-kit-export-public.js', array( 'jquery' ), $this->version, false ); 80 // phpcs:enable 81 81 } 82 82 -
template-kit-export/tags/1.0.22/public/partials/template-kit-export-public-footer.php
r2246624 r3116751 17 17 } 18 18 19 if ( isset( $_GET['userPreview'] ) ) { 19 // phpcs:disable WordPress.Security.NonceVerification.Recommended 20 if ( !empty( $_GET['userPreview'] ) ) { 21 // phpcs:enable 20 22 ?> 21 23 <div class="template-kit-preview-footer" style="height: 80px;"> -
template-kit-export/tags/1.0.22/public/partials/template-kit-export-public-header.php
r2246624 r3116751 17 17 } 18 18 19 if ( isset( $_GET['userPreview'] ) ) { 19 // phpcs:disable WordPress.Security.NonceVerification.Recommended 20 if ( !empty( $_GET['userPreview'] ) ) { 21 // phpcs:enable 20 22 ?> 21 23 <style type="text/css"> -
template-kit-export/tags/1.0.22/template-kit-export.php
r2688557 r3116751 3 3 * Plugin Name: Template Kit Export 4 4 * Description: Use this plugin to export Template Kits for Elementor. 5 * Version: 1.0.2 15 * Version: 1.0.22 6 6 * Author: Envato 7 7 * Author URI: https://envato.com … … 9 9 * License URI: https://www.gnu.org/licenses/gpl-3.0.html 10 10 * Text Domain: template-kit-export 11 * Elementor tested up to: 3. 5.512 * Elementor Pro tested up to: 3. 6.211 * Elementor tested up to: 3.22.3 12 * Elementor Pro tested up to: 3.22.3 13 13 */ 14 14 … … 21 21 * Currently plugin version. 22 22 */ 23 define( 'TEMPLATE_KIT_EXPORT_VERSION', '1.0.2 1' );23 define( 'TEMPLATE_KIT_EXPORT_VERSION', '1.0.22' ); 24 24 25 25 /** … … 33 33 define( 'TEMPLATE_KIT_EXPORT_TYPE_ENVATO', 'template-kit' ); 34 34 define( 'TEMPLATE_KIT_EXPORT_TYPE_ELEMENTOR', 'elementor-kit' ); 35 define( 'TEMPLATE_KIT_EXPORT_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); 35 36 36 37 /** -
template-kit-export/trunk/README.txt
r2688557 r3116751 3 3 Tags: elementor, template, templates 4 4 Requires at least: 5.3 5 Tested up to: 5.95 Tested up to: 6.5 6 6 Requires PHP: 5.6 7 Stable tag: 1.0.2 17 Stable tag: 1.0.22 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 38 38 39 39 == Changelog == 40 41 = 1.0.22 - 2024-07-11 = 42 * Bug fix: Escape template titles and latest WordPress compatibility 40 43 41 44 = 1.0.21 - 2021-09-17 = -
template-kit-export/trunk/admin/class-template-kit-export-admin.php
r2614538 r3116751 81 81 */ 82 82 83 wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'assets/css/template-kit-export-admin.min.css', array(), $this->version, 'all' );83 wp_enqueue_style( $this->plugin_name, TEMPLATE_KIT_EXPORT_PLUGIN_URL . 'assets/admin/template-kit-export-admin.css', array(), $this->version, 'all' ); 84 84 85 85 } … … 92 92 public function enqueue_scripts() { 93 93 94 wp_register_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'assets/js/template-kit-export-admin.min.js', array( 'jquery' ), $this->version, false );94 wp_register_script( $this->plugin_name, TEMPLATE_KIT_EXPORT_PLUGIN_URL . 'assets/admin/template-kit-export-admin.js', array( 'jquery' ), $this->version, false ); 95 95 wp_localize_script( 96 96 $this->plugin_name, -
template-kit-export/trunk/builders/class-template-kit-export-builders-base.php
r2614538 r3116751 141 141 // Write our exported template data array to a local temporary file so our ZIP builder has a file to work from:. 142 142 $temporary_json_data_file = wp_tempnam( $template['zip_filename'] ); 143 // phpcs:disable WordPress.WP.AlternativeFunctions.file_system_ read_file_put_contents143 // phpcs:disable WordPress.WP.AlternativeFunctions.file_system_operations_file_put_contents 144 144 file_put_contents( $temporary_json_data_file, wp_json_encode( $exported_template_data, JSON_PRETTY_PRINT ) ); 145 145 // phpcs:enable … … 187 187 // Create a temporary file to store our manifest.json data, and add it to the temp cleanup array:. 188 188 $temporary_manifest_file_name = wp_tempnam( 'manifest.json' ); 189 // phpcs:disable WordPress.WP.AlternativeFunctions.file_system_ read_file_put_contents189 // phpcs:disable WordPress.WP.AlternativeFunctions.file_system_operations_file_put_contents 190 190 file_put_contents( $temporary_manifest_file_name, wp_json_encode( $manifest_data, JSON_PRETTY_PRINT ) ); 191 191 // phpcs:enable … … 220 220 // Clean up temporary files created above:. 221 221 foreach ( $temporary_files_to_cleanup as $temporary_file_to_cleanup ) { 222 unlink( $temporary_file_to_cleanup );222 wp_delete_file( $temporary_file_to_cleanup ); 223 223 } 224 224 … … 306 306 $templates, 307 307 function( $a, $b ) { 308 return $a['order'] > $b['order'] ;308 return $a['order'] > $b['order'] ? 1 : 0; 309 309 } 310 310 ); … … 327 327 */ 328 328 public function get_template_export_data( $template ) { 329 throw new Exception( 'Export not defined for template ' . $template['id']);329 throw new Exception( 'Export not defined for template ' . esc_html( $template['id'] ) ); 330 330 } 331 331 … … 345 345 $attachment_id = get_post_thumbnail_id( $template_id ); 346 346 if ( ! $attachment_id ) { 347 throw new Exception( 'No attachment for template ' . $template_id);347 throw new Exception( 'No attachment for template ' . esc_html( $template_id ) ); 348 348 } 349 349 // Get the file name of the feature image data. We try to get the "tk_preview" sized thumbnail first: … … 361 361 } 362 362 if ( ! $attachment_filename ) { 363 throw new Exception( 'Could not find file for attachment ' . $attachment_id);363 throw new Exception( 'Could not find file for attachment ' .esc_html( $attachment_id ) ); 364 364 } 365 365 … … 371 371 $screenshot_extension = 'jpg'; 372 372 } else { 373 throw new Exception( 'Unknown attachment type for ' . $attachment_filename);373 throw new Exception( 'Unknown attachment type for ' . esc_html( $attachment_filename ) ); 374 374 } 375 375 $post_data = get_post( $template_id ); … … 425 425 $generated_tk_preview = image_make_intermediate_size( get_attached_file( $get_thumb_id ), TEMPLATE_KIT_EXPORT_THUMBNAIL_WIDTH, 0, true ); 426 426 $template_attachment_meta = wp_get_attachment_metadata( $get_thumb_id ); 427 if( empty( $template_attachment_meta ) ) { 428 $template_attachment_meta = array(); 429 } 430 if( empty( $template_attachment_meta['sizes'] ) ) { 431 $template_attachment_meta['sizes'] = array(); 432 } 427 433 $template_attachment_meta['sizes']['tk_preview'] = $generated_tk_preview; 428 434 wp_update_attachment_metadata( $get_thumb_id, $template_attachment_meta ); … … 433 439 $tk_post_update = array( 434 440 'ID' => $template_id, 435 'post_title' => $template_options['name'],441 'post_title' => strip_tags( $template_options['name'] ), 436 442 'menu_order' => $template_options['position_id'], 437 443 ); -
template-kit-export/trunk/builders/class-template-kit-export-builders-elementor.php
r2614538 r3116751 683 683 $templates, 684 684 function( $a, $b ) { 685 return $a['order'] > $b['order'] ;685 return $a['order'] > $b['order'] ? 1 : 0; 686 686 } 687 687 ); -
template-kit-export/trunk/languages/template-kit-export.pot
r2614538 r3116751 1 # Copyright (C) 202 1template-kit-export1 # Copyright (C) 2024 template-kit-export 2 2 # This file is distributed under the same license as the template-kit-export package. 3 3 msgid "" … … 7 7 "Content-Type: text/plain; charset=UTF-8\n" 8 8 "Content-Transfer-Encoding: 8bit\n" 9 "Language-Team: Envato <dave.baker@envato.com>\n" 10 "Last-Translator: Dave Baker <dave.baker@envato.com>\n" 11 "Report-Msgid-Bugs-To: https://envato.com/\n" 9 "Content-Transfer-Econdig: 8bit\n" 10 "Content-Type: text/plain; charset=UTF-8\n" 11 "Language-Team: Envato <extensions@envato.com>\n" 12 "Last-Translator: Extensions <extensions@envato.com>\n" 13 "MIME-Version: 1.0\n" 14 "Project-Id-Version: template-kit-export\n" 15 "Report-Msgid-Bugs-To: https://envato.com//\n" 12 16 "X-Poedit-Basepath: ..\n" 13 17 "X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n" … … 37 41 msgstr "" 38 42 43 #: admin/class-template-kit-export-health-check.php:59 44 msgid "WordPress is up-to-date." 45 msgstr "" 46 39 47 #: admin/class-template-kit-export-health-check.php:57 40 48 msgid "Please up date WordPress to the latest version." 41 msgstr ""42 43 #: admin/class-template-kit-export-health-check.php:5944 msgid "WordPress is up-to-date."45 49 msgstr "" 46 50 … … 54 58 msgstr "" 55 59 56 #: builders/class-template-kit-export-builders-base.php: 49960 #: builders/class-template-kit-export-builders-base.php:505 57 61 msgid "Image Source:" 58 62 msgstr "" 59 63 60 #: builders/class-template-kit-export-builders-base.php:50 364 #: builders/class-template-kit-export-builders-base.php:509 61 65 msgid "Licensed From Envato Elements" 62 66 msgstr "" 63 67 64 #: builders/class-template-kit-export-builders-base.php:5 0468 #: builders/class-template-kit-export-builders-base.php:510 65 69 msgid "Created Myself" 66 70 msgstr "" 67 71 68 #: builders/class-template-kit-export-builders-base.php:5 0572 #: builders/class-template-kit-export-builders-base.php:511 69 73 msgid "CC0 or equivalent" 70 74 msgstr "" 71 75 72 #: builders/class-template-kit-export-builders-base.php:5 0676 #: builders/class-template-kit-export-builders-base.php:512 73 77 msgid "Unsure (NOT allowed)" 74 78 msgstr "" 75 79 76 #: builders/class-template-kit-export-builders-base.php:51 180 #: builders/class-template-kit-export-builders-base.php:517 77 81 msgid "Contains Person or Place?" 78 82 msgstr "" 79 83 80 #: builders/class-template-kit-export-builders-base.php:5 1584 #: builders/class-template-kit-export-builders-base.php:521 81 85 msgid "Yes, image contains person or place" 82 86 msgstr "" 83 87 84 #: builders/class-template-kit-export-builders-base.php:5 1688 #: builders/class-template-kit-export-builders-base.php:522 85 89 msgid "No" 86 90 msgstr "" 87 91 88 #: builders/class-template-kit-export-builders-base.php:52 192 #: builders/class-template-kit-export-builders-base.php:527 89 93 msgid "Source URLs" 90 94 msgstr "" 91 95 92 #: builders/class-template-kit-export-builders-base.php:5 38, builders/class-template-kit-export-builders-elementor.php:32996 #: builders/class-template-kit-export-builders-base.php:544, builders/class-template-kit-export-builders-elementor.php:329 93 97 msgid "Include Template in Export ZIP" 94 98 msgstr "" … … 338 342 msgstr "" 339 343 344 #: admin/partials/template-kit-export-step-2.php:210 345 msgid "Sorry this plugin can not be included as a dependency. Please use plugins from WordPress.org as per the Template Kit guidelines." 346 msgstr "" 347 340 348 #: admin/partials/template-kit-export-step-2.php:208 341 349 msgid "Sorry this plugin can not be included as a dependency. Elementor Kits are only compatible with Elementor, Elementor Pro and WooCommerce plugins. Please generate a Template Kit " 342 350 msgstr "" 343 344 #: admin/partials/template-kit-export-step-2.php:210345 msgid "Sorry this plugin can not be included as a dependency. Please use plugins from WordPress.org as per the Template Kit guidelines."346 msgstr "" -
template-kit-export/trunk/public/class-template-kit-export-public.php
r2246624 r3116751 65 65 */ 66 66 public function enqueue_styles() { 67 68 wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'assets/css/template-kit-export-public.min.css', array(), $this->version, 'all' );69 67 // phpcs:disable EnqueuedStylesScope 68 wp_enqueue_style( $this->plugin_name, TEMPLATE_KIT_EXPORT_PLUGIN_URL . 'assets/public/template-kit-export-public.css', array(), $this->version, 'all' ); 69 // phpcs:enable 70 70 } 71 71 … … 76 76 */ 77 77 public function enqueue_scripts() { 78 79 wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'assets/js/template-kit-export-public.min.js', array( 'jquery' ), $this->version, false );80 78 // phpcs:disable EnqueuedScriptsScope 79 wp_enqueue_script( $this->plugin_name, TEMPLATE_KIT_EXPORT_PLUGIN_URL . 'assets/public/template-kit-export-public.js', array( 'jquery' ), $this->version, false ); 80 // phpcs:enable 81 81 } 82 82 -
template-kit-export/trunk/public/partials/template-kit-export-public-footer.php
r2246624 r3116751 17 17 } 18 18 19 if ( isset( $_GET['userPreview'] ) ) { 19 // phpcs:disable WordPress.Security.NonceVerification.Recommended 20 if ( !empty( $_GET['userPreview'] ) ) { 21 // phpcs:enable 20 22 ?> 21 23 <div class="template-kit-preview-footer" style="height: 80px;"> -
template-kit-export/trunk/public/partials/template-kit-export-public-header.php
r2246624 r3116751 17 17 } 18 18 19 if ( isset( $_GET['userPreview'] ) ) { 19 // phpcs:disable WordPress.Security.NonceVerification.Recommended 20 if ( !empty( $_GET['userPreview'] ) ) { 21 // phpcs:enable 20 22 ?> 21 23 <style type="text/css"> -
template-kit-export/trunk/template-kit-export.php
r2688557 r3116751 3 3 * Plugin Name: Template Kit Export 4 4 * Description: Use this plugin to export Template Kits for Elementor. 5 * Version: 1.0.2 15 * Version: 1.0.22 6 6 * Author: Envato 7 7 * Author URI: https://envato.com … … 9 9 * License URI: https://www.gnu.org/licenses/gpl-3.0.html 10 10 * Text Domain: template-kit-export 11 * Elementor tested up to: 3. 5.512 * Elementor Pro tested up to: 3. 6.211 * Elementor tested up to: 3.22.3 12 * Elementor Pro tested up to: 3.22.3 13 13 */ 14 14 … … 21 21 * Currently plugin version. 22 22 */ 23 define( 'TEMPLATE_KIT_EXPORT_VERSION', '1.0.2 1' );23 define( 'TEMPLATE_KIT_EXPORT_VERSION', '1.0.22' ); 24 24 25 25 /** … … 33 33 define( 'TEMPLATE_KIT_EXPORT_TYPE_ENVATO', 'template-kit' ); 34 34 define( 'TEMPLATE_KIT_EXPORT_TYPE_ELEMENTOR', 'elementor-kit' ); 35 define( 'TEMPLATE_KIT_EXPORT_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); 35 36 36 37 /**
Note: See TracChangeset
for help on using the changeset viewer.