Plugin Directory

Changeset 3116751


Ignore:
Timestamp:
07/12/2024 03:18:30 AM (21 months ago)
Author:
dtbaker
Message:

Tagging version 1.0.22 for release

Location:
template-kit-export
Files:
14 added
4 deleted
18 edited
1 copied

Legend:

Unmodified
Added
Removed
  • template-kit-export/tags/1.0.22/README.txt

    r2688557 r3116751  
    33Tags: elementor, template, templates
    44Requires at least: 5.3
    5 Tested up to: 5.9
     5Tested up to: 6.5
    66Requires PHP: 5.6
    7 Stable tag: 1.0.21
     7Stable tag: 1.0.22
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    3838
    3939== Changelog ==
     40
     41= 1.0.22 - 2024-07-11 =
     42* Bug fix: Escape template titles and latest WordPress compatibility
    4043
    4144= 1.0.21 - 2021-09-17 =
  • template-kit-export/tags/1.0.22/admin/class-template-kit-export-admin.php

    r2614538 r3116751  
    8181         */
    8282
    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' );
    8484
    8585    }
     
    9292    public function enqueue_scripts() {
    9393
    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 );
    9595        wp_localize_script(
    9696            $this->plugin_name,
  • template-kit-export/tags/1.0.22/builders/class-template-kit-export-builders-base.php

    r2614538 r3116751  
    141141            // Write our exported template data array to a local temporary file so our ZIP builder has a file to work from:.
    142142            $temporary_json_data_file = wp_tempnam( $template['zip_filename'] );
    143             // phpcs:disable WordPress.WP.AlternativeFunctions.file_system_read_file_put_contents
     143            // phpcs:disable WordPress.WP.AlternativeFunctions.file_system_operations_file_put_contents
    144144            file_put_contents( $temporary_json_data_file, wp_json_encode( $exported_template_data, JSON_PRETTY_PRINT ) );
    145145            // phpcs:enable
     
    187187        // Create a temporary file to store our manifest.json data, and add it to the temp cleanup array:.
    188188        $temporary_manifest_file_name = wp_tempnam( 'manifest.json' );
    189         // phpcs:disable WordPress.WP.AlternativeFunctions.file_system_read_file_put_contents
     189        // phpcs:disable WordPress.WP.AlternativeFunctions.file_system_operations_file_put_contents
    190190        file_put_contents( $temporary_manifest_file_name, wp_json_encode( $manifest_data, JSON_PRETTY_PRINT ) );
    191191        // phpcs:enable
     
    220220        // Clean up temporary files created above:.
    221221        foreach ( $temporary_files_to_cleanup as $temporary_file_to_cleanup ) {
    222             unlink( $temporary_file_to_cleanup );
     222            wp_delete_file( $temporary_file_to_cleanup );
    223223        }
    224224
     
    306306            $templates,
    307307            function( $a, $b ) {
    308                 return $a['order'] > $b['order'];
     308                return $a['order'] > $b['order'] ? 1 : 0;
    309309            }
    310310        );
     
    327327     */
    328328    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'] ) );
    330330    }
    331331
     
    345345        $attachment_id = get_post_thumbnail_id( $template_id );
    346346        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 ) );
    348348        }
    349349        // Get the file name of the feature image data. We try to get the "tk_preview" sized thumbnail first:
     
    361361        }
    362362        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 ) );
    364364        }
    365365
     
    371371            $screenshot_extension = 'jpg';
    372372        } else {
    373             throw new Exception( 'Unknown attachment type for ' . $attachment_filename );
     373            throw new Exception( 'Unknown attachment type for ' . esc_html( $attachment_filename ) );
    374374        }
    375375        $post_data = get_post( $template_id );
     
    425425                $generated_tk_preview                            = image_make_intermediate_size( get_attached_file( $get_thumb_id ), TEMPLATE_KIT_EXPORT_THUMBNAIL_WIDTH, 0, true );
    426426                $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                }
    427433                $template_attachment_meta['sizes']['tk_preview'] = $generated_tk_preview;
    428434                wp_update_attachment_metadata( $get_thumb_id, $template_attachment_meta );
     
    433439            $tk_post_update = array(
    434440                'ID'         => $template_id,
    435                 'post_title' => $template_options['name'],
     441                'post_title' => strip_tags( $template_options['name'] ),
    436442                'menu_order' => $template_options['position_id'],
    437443            );
  • template-kit-export/tags/1.0.22/builders/class-template-kit-export-builders-elementor.php

    r2614538 r3116751  
    683683            $templates,
    684684            function( $a, $b ) {
    685                 return $a['order'] > $b['order'];
     685                return $a['order'] > $b['order'] ? 1 : 0;
    686686            }
    687687        );
  • template-kit-export/tags/1.0.22/languages/template-kit-export.pot

    r2614538 r3116751  
    1 # Copyright (C) 2021 template-kit-export
     1# Copyright (C) 2024 template-kit-export
    22# This file is distributed under the same license as the template-kit-export package.
    33msgid ""
     
    77"Content-Type: text/plain; charset=UTF-8\n"
    88"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"
    1216"X-Poedit-Basepath: ..\n"
    1317"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"
     
    3741msgstr ""
    3842
     43#: admin/class-template-kit-export-health-check.php:59
     44msgid "WordPress is up-to-date."
     45msgstr ""
     46
    3947#: admin/class-template-kit-export-health-check.php:57
    4048msgid "Please up date WordPress to the latest version."
    41 msgstr ""
    42 
    43 #: admin/class-template-kit-export-health-check.php:59
    44 msgid "WordPress is up-to-date."
    4549msgstr ""
    4650
     
    5458msgstr ""
    5559
    56 #: builders/class-template-kit-export-builders-base.php:499
     60#: builders/class-template-kit-export-builders-base.php:505
    5761msgid "Image Source:"
    5862msgstr ""
    5963
    60 #: builders/class-template-kit-export-builders-base.php:503
     64#: builders/class-template-kit-export-builders-base.php:509
    6165msgid "Licensed From Envato Elements"
    6266msgstr ""
    6367
    64 #: builders/class-template-kit-export-builders-base.php:504
     68#: builders/class-template-kit-export-builders-base.php:510
    6569msgid "Created Myself"
    6670msgstr ""
    6771
    68 #: builders/class-template-kit-export-builders-base.php:505
     72#: builders/class-template-kit-export-builders-base.php:511
    6973msgid "CC0 or equivalent"
    7074msgstr ""
    7175
    72 #: builders/class-template-kit-export-builders-base.php:506
     76#: builders/class-template-kit-export-builders-base.php:512
    7377msgid "Unsure (NOT allowed)"
    7478msgstr ""
    7579
    76 #: builders/class-template-kit-export-builders-base.php:511
     80#: builders/class-template-kit-export-builders-base.php:517
    7781msgid "Contains Person or Place?"
    7882msgstr ""
    7983
    80 #: builders/class-template-kit-export-builders-base.php:515
     84#: builders/class-template-kit-export-builders-base.php:521
    8185msgid "Yes, image contains person or place"
    8286msgstr ""
    8387
    84 #: builders/class-template-kit-export-builders-base.php:516
     88#: builders/class-template-kit-export-builders-base.php:522
    8589msgid "No"
    8690msgstr ""
    8791
    88 #: builders/class-template-kit-export-builders-base.php:521
     92#: builders/class-template-kit-export-builders-base.php:527
    8993msgid "Source URLs"
    9094msgstr ""
    9195
    92 #: builders/class-template-kit-export-builders-base.php:538, builders/class-template-kit-export-builders-elementor.php:329
     96#: builders/class-template-kit-export-builders-base.php:544, builders/class-template-kit-export-builders-elementor.php:329
    9397msgid "Include Template in Export ZIP"
    9498msgstr ""
     
    338342msgstr ""
    339343
     344#: admin/partials/template-kit-export-step-2.php:210
     345msgid "Sorry this plugin can not be included as a dependency. Please use plugins from WordPress.org as per the Template Kit guidelines."
     346msgstr ""
     347
    340348#: admin/partials/template-kit-export-step-2.php:208
    341349msgid "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 "
    342350msgstr ""
    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 ""
  • template-kit-export/tags/1.0.22/public/class-template-kit-export-public.php

    r2246624 r3116751  
    6565     */
    6666    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
    7070    }
    7171
     
    7676     */
    7777    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
    8181    }
    8282
  • template-kit-export/tags/1.0.22/public/partials/template-kit-export-public-footer.php

    r2246624 r3116751  
    1717}
    1818
    19 if ( isset( $_GET['userPreview'] ) ) {
     19// phpcs:disable WordPress.Security.NonceVerification.Recommended
     20if ( !empty( $_GET['userPreview'] ) ) {
     21// phpcs:enable
    2022    ?>
    2123    <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  
    1717}
    1818
    19 if ( isset( $_GET['userPreview'] ) ) {
     19// phpcs:disable WordPress.Security.NonceVerification.Recommended
     20if ( !empty( $_GET['userPreview'] ) ) {
     21// phpcs:enable
    2022    ?>
    2123    <style type="text/css">
  • template-kit-export/tags/1.0.22/template-kit-export.php

    r2688557 r3116751  
    33 * Plugin Name:       Template Kit Export
    44 * Description:       Use this plugin to export Template Kits for Elementor.
    5  * Version:           1.0.21
     5 * Version:           1.0.22
    66 * Author:            Envato
    77 * Author URI:        https://envato.com
     
    99 * License URI:       https://www.gnu.org/licenses/gpl-3.0.html
    1010 * Text Domain:       template-kit-export
    11  * Elementor tested up to: 3.5.5
    12  * Elementor Pro tested up to: 3.6.2
     11 * Elementor tested up to: 3.22.3
     12 * Elementor Pro tested up to: 3.22.3
    1313 */
    1414
     
    2121 * Currently plugin version.
    2222 */
    23 define( 'TEMPLATE_KIT_EXPORT_VERSION', '1.0.21' );
     23define( 'TEMPLATE_KIT_EXPORT_VERSION', '1.0.22' );
    2424
    2525/**
     
    3333define( 'TEMPLATE_KIT_EXPORT_TYPE_ENVATO', 'template-kit' );
    3434define( 'TEMPLATE_KIT_EXPORT_TYPE_ELEMENTOR', 'elementor-kit' );
     35define( 'TEMPLATE_KIT_EXPORT_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
    3536
    3637/**
  • template-kit-export/trunk/README.txt

    r2688557 r3116751  
    33Tags: elementor, template, templates
    44Requires at least: 5.3
    5 Tested up to: 5.9
     5Tested up to: 6.5
    66Requires PHP: 5.6
    7 Stable tag: 1.0.21
     7Stable tag: 1.0.22
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    3838
    3939== Changelog ==
     40
     41= 1.0.22 - 2024-07-11 =
     42* Bug fix: Escape template titles and latest WordPress compatibility
    4043
    4144= 1.0.21 - 2021-09-17 =
  • template-kit-export/trunk/admin/class-template-kit-export-admin.php

    r2614538 r3116751  
    8181         */
    8282
    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' );
    8484
    8585    }
     
    9292    public function enqueue_scripts() {
    9393
    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 );
    9595        wp_localize_script(
    9696            $this->plugin_name,
  • template-kit-export/trunk/builders/class-template-kit-export-builders-base.php

    r2614538 r3116751  
    141141            // Write our exported template data array to a local temporary file so our ZIP builder has a file to work from:.
    142142            $temporary_json_data_file = wp_tempnam( $template['zip_filename'] );
    143             // phpcs:disable WordPress.WP.AlternativeFunctions.file_system_read_file_put_contents
     143            // phpcs:disable WordPress.WP.AlternativeFunctions.file_system_operations_file_put_contents
    144144            file_put_contents( $temporary_json_data_file, wp_json_encode( $exported_template_data, JSON_PRETTY_PRINT ) );
    145145            // phpcs:enable
     
    187187        // Create a temporary file to store our manifest.json data, and add it to the temp cleanup array:.
    188188        $temporary_manifest_file_name = wp_tempnam( 'manifest.json' );
    189         // phpcs:disable WordPress.WP.AlternativeFunctions.file_system_read_file_put_contents
     189        // phpcs:disable WordPress.WP.AlternativeFunctions.file_system_operations_file_put_contents
    190190        file_put_contents( $temporary_manifest_file_name, wp_json_encode( $manifest_data, JSON_PRETTY_PRINT ) );
    191191        // phpcs:enable
     
    220220        // Clean up temporary files created above:.
    221221        foreach ( $temporary_files_to_cleanup as $temporary_file_to_cleanup ) {
    222             unlink( $temporary_file_to_cleanup );
     222            wp_delete_file( $temporary_file_to_cleanup );
    223223        }
    224224
     
    306306            $templates,
    307307            function( $a, $b ) {
    308                 return $a['order'] > $b['order'];
     308                return $a['order'] > $b['order'] ? 1 : 0;
    309309            }
    310310        );
     
    327327     */
    328328    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'] ) );
    330330    }
    331331
     
    345345        $attachment_id = get_post_thumbnail_id( $template_id );
    346346        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 ) );
    348348        }
    349349        // Get the file name of the feature image data. We try to get the "tk_preview" sized thumbnail first:
     
    361361        }
    362362        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 ) );
    364364        }
    365365
     
    371371            $screenshot_extension = 'jpg';
    372372        } else {
    373             throw new Exception( 'Unknown attachment type for ' . $attachment_filename );
     373            throw new Exception( 'Unknown attachment type for ' . esc_html( $attachment_filename ) );
    374374        }
    375375        $post_data = get_post( $template_id );
     
    425425                $generated_tk_preview                            = image_make_intermediate_size( get_attached_file( $get_thumb_id ), TEMPLATE_KIT_EXPORT_THUMBNAIL_WIDTH, 0, true );
    426426                $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                }
    427433                $template_attachment_meta['sizes']['tk_preview'] = $generated_tk_preview;
    428434                wp_update_attachment_metadata( $get_thumb_id, $template_attachment_meta );
     
    433439            $tk_post_update = array(
    434440                'ID'         => $template_id,
    435                 'post_title' => $template_options['name'],
     441                'post_title' => strip_tags( $template_options['name'] ),
    436442                'menu_order' => $template_options['position_id'],
    437443            );
  • template-kit-export/trunk/builders/class-template-kit-export-builders-elementor.php

    r2614538 r3116751  
    683683            $templates,
    684684            function( $a, $b ) {
    685                 return $a['order'] > $b['order'];
     685                return $a['order'] > $b['order'] ? 1 : 0;
    686686            }
    687687        );
  • template-kit-export/trunk/languages/template-kit-export.pot

    r2614538 r3116751  
    1 # Copyright (C) 2021 template-kit-export
     1# Copyright (C) 2024 template-kit-export
    22# This file is distributed under the same license as the template-kit-export package.
    33msgid ""
     
    77"Content-Type: text/plain; charset=UTF-8\n"
    88"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"
    1216"X-Poedit-Basepath: ..\n"
    1317"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"
     
    3741msgstr ""
    3842
     43#: admin/class-template-kit-export-health-check.php:59
     44msgid "WordPress is up-to-date."
     45msgstr ""
     46
    3947#: admin/class-template-kit-export-health-check.php:57
    4048msgid "Please up date WordPress to the latest version."
    41 msgstr ""
    42 
    43 #: admin/class-template-kit-export-health-check.php:59
    44 msgid "WordPress is up-to-date."
    4549msgstr ""
    4650
     
    5458msgstr ""
    5559
    56 #: builders/class-template-kit-export-builders-base.php:499
     60#: builders/class-template-kit-export-builders-base.php:505
    5761msgid "Image Source:"
    5862msgstr ""
    5963
    60 #: builders/class-template-kit-export-builders-base.php:503
     64#: builders/class-template-kit-export-builders-base.php:509
    6165msgid "Licensed From Envato Elements"
    6266msgstr ""
    6367
    64 #: builders/class-template-kit-export-builders-base.php:504
     68#: builders/class-template-kit-export-builders-base.php:510
    6569msgid "Created Myself"
    6670msgstr ""
    6771
    68 #: builders/class-template-kit-export-builders-base.php:505
     72#: builders/class-template-kit-export-builders-base.php:511
    6973msgid "CC0 or equivalent"
    7074msgstr ""
    7175
    72 #: builders/class-template-kit-export-builders-base.php:506
     76#: builders/class-template-kit-export-builders-base.php:512
    7377msgid "Unsure (NOT allowed)"
    7478msgstr ""
    7579
    76 #: builders/class-template-kit-export-builders-base.php:511
     80#: builders/class-template-kit-export-builders-base.php:517
    7781msgid "Contains Person or Place?"
    7882msgstr ""
    7983
    80 #: builders/class-template-kit-export-builders-base.php:515
     84#: builders/class-template-kit-export-builders-base.php:521
    8185msgid "Yes, image contains person or place"
    8286msgstr ""
    8387
    84 #: builders/class-template-kit-export-builders-base.php:516
     88#: builders/class-template-kit-export-builders-base.php:522
    8589msgid "No"
    8690msgstr ""
    8791
    88 #: builders/class-template-kit-export-builders-base.php:521
     92#: builders/class-template-kit-export-builders-base.php:527
    8993msgid "Source URLs"
    9094msgstr ""
    9195
    92 #: builders/class-template-kit-export-builders-base.php:538, builders/class-template-kit-export-builders-elementor.php:329
     96#: builders/class-template-kit-export-builders-base.php:544, builders/class-template-kit-export-builders-elementor.php:329
    9397msgid "Include Template in Export ZIP"
    9498msgstr ""
     
    338342msgstr ""
    339343
     344#: admin/partials/template-kit-export-step-2.php:210
     345msgid "Sorry this plugin can not be included as a dependency. Please use plugins from WordPress.org as per the Template Kit guidelines."
     346msgstr ""
     347
    340348#: admin/partials/template-kit-export-step-2.php:208
    341349msgid "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 "
    342350msgstr ""
    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 ""
  • template-kit-export/trunk/public/class-template-kit-export-public.php

    r2246624 r3116751  
    6565     */
    6666    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
    7070    }
    7171
     
    7676     */
    7777    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
    8181    }
    8282
  • template-kit-export/trunk/public/partials/template-kit-export-public-footer.php

    r2246624 r3116751  
    1717}
    1818
    19 if ( isset( $_GET['userPreview'] ) ) {
     19// phpcs:disable WordPress.Security.NonceVerification.Recommended
     20if ( !empty( $_GET['userPreview'] ) ) {
     21// phpcs:enable
    2022    ?>
    2123    <div class="template-kit-preview-footer" style="height: 80px;">
  • template-kit-export/trunk/public/partials/template-kit-export-public-header.php

    r2246624 r3116751  
    1717}
    1818
    19 if ( isset( $_GET['userPreview'] ) ) {
     19// phpcs:disable WordPress.Security.NonceVerification.Recommended
     20if ( !empty( $_GET['userPreview'] ) ) {
     21// phpcs:enable
    2022    ?>
    2123    <style type="text/css">
  • template-kit-export/trunk/template-kit-export.php

    r2688557 r3116751  
    33 * Plugin Name:       Template Kit Export
    44 * Description:       Use this plugin to export Template Kits for Elementor.
    5  * Version:           1.0.21
     5 * Version:           1.0.22
    66 * Author:            Envato
    77 * Author URI:        https://envato.com
     
    99 * License URI:       https://www.gnu.org/licenses/gpl-3.0.html
    1010 * Text Domain:       template-kit-export
    11  * Elementor tested up to: 3.5.5
    12  * Elementor Pro tested up to: 3.6.2
     11 * Elementor tested up to: 3.22.3
     12 * Elementor Pro tested up to: 3.22.3
    1313 */
    1414
     
    2121 * Currently plugin version.
    2222 */
    23 define( 'TEMPLATE_KIT_EXPORT_VERSION', '1.0.21' );
     23define( 'TEMPLATE_KIT_EXPORT_VERSION', '1.0.22' );
    2424
    2525/**
     
    3333define( 'TEMPLATE_KIT_EXPORT_TYPE_ENVATO', 'template-kit' );
    3434define( 'TEMPLATE_KIT_EXPORT_TYPE_ELEMENTOR', 'elementor-kit' );
     35define( 'TEMPLATE_KIT_EXPORT_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
    3536
    3637/**
Note: See TracChangeset for help on using the changeset viewer.