Plugin Directory

Changeset 2467674


Ignore:
Timestamp:
02/03/2021 07:01:42 AM (5 years ago)
Author:
dtbaker
Message:

Uploading version 1.0.19

Location:
template-kit-export/trunk
Files:
8 edited

Legend:

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

    r2451574 r2467674  
    33Tags: elementor, template, templates
    44Requires at least: 5.3
    5 Tested up to: 5.5
     5Tested up to: 5.6
    66Requires PHP: 5.6
    7 Stable tag: 1.0.18
     7Stable tag: 1.0.19
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    3838
    3939== Changelog ==
     40
     41= 1.0.19 - 2021-02-02 =
     42* Feature: Support for Elementor Landing Page templates
     43* Feature: Elementor compatibility check
    4044
    4145= 1.0.18 - 2020-12-24 =
  • template-kit-export/trunk/admin/assets/js/template-kit-export-admin.js

    r2451574 r2467674  
    9292                function () {
    9393                    // We set multiple to false so only get one image from the uploader
    94                     var uploaded_img_meta = file_frame.state().get( 'selection' ).first().toJSON();
    95                     var thumbnail_url     = '';
    96                     var thumbnailWidth = parseInt( window.template_kit_export.thumbnail_width );
     94                    var uploaded_img_meta          = file_frame.state().get( 'selection' ).first().toJSON();
     95                    var thumbnail_url              = '';
     96                    var thumbnailWidth             = parseInt( window.template_kit_export.thumbnail_width );
    9797                    var minimumValidThumbnailWidth = 300
    9898                    if ( ! uploaded_img_meta['sizes']['tk_preview'] || uploaded_img_meta['sizes']['tk_preview']['width'] < minimumValidThumbnailWidth) {
  • template-kit-export/trunk/admin/class-template-kit-export-admin.php

    r2451574 r2467674  
    9393
    9494        wp_register_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'assets/js/template-kit-export-admin.min.js', array( 'jquery' ), $this->version, false );
    95         wp_localize_script( $this->plugin_name, 'template_kit_export', [
    96             'thumbnail_width' => TEMPLATE_KIT_EXPORT_THUMBNAIL_WIDTH
    97         ]);
     95        wp_localize_script(
     96            $this->plugin_name,
     97            'template_kit_export',
     98            array(
     99                'thumbnail_width' => TEMPLATE_KIT_EXPORT_THUMBNAIL_WIDTH,
     100            )
     101        );
    98102        wp_enqueue_script( $this->plugin_name );
    99103
     
    604608     * Allows us to run some code on initial plugin activation and version upgrade
    605609     */
    606     public function version_upgrade_check(  ) {
     610    public function version_upgrade_check() {
    607611        if ( Template_Kit_Export_Options::get( 'plugin_version' ) !== TEMPLATE_KIT_EXPORT_VERSION ) {
    608612            // Force WordPress to rebuild rewrite rules completely:
  • template-kit-export/trunk/admin/partials/template-kit-export-step-4.php

    r2298141 r2467674  
    6666        <strong>ThemeForest item page HTML:</strong>
    6767        <br/>
    68         <textarea name="themeforest_markup" class="markup-textbox" onclick="this.focus();this.select()" readonly="readonly"><?php echo esc_textarea($exporter->generate_item_page_markup( 'themeforest' ));?></textarea>
     68        <textarea name="themeforest_markup" class="markup-textbox" onclick="this.focus();this.select()" readonly="readonly"><?php echo esc_textarea( $exporter->generate_item_page_markup( 'themeforest' ) ); ?></textarea>
    6969    </p>
    7070    <p>
    7171        <strong>Envato Elements item page markdown:</strong>
    7272        <br/>
    73         <textarea name="elements_markup" class="markup-textbox" onclick="this.focus();this.select()" readonly="readonly"><?php echo esc_textarea($exporter->generate_item_page_markup( 'elements' ));?></textarea>
     73        <textarea name="elements_markup" class="markup-textbox" onclick="this.focus();this.select()" readonly="readonly"><?php echo esc_textarea( $exporter->generate_item_page_markup( 'elements' ) ); ?></textarea>
    7474    </p>
    7575</div>
  • template-kit-export/trunk/builders/class-template-kit-export-builders-base.php

    r2451574 r2467674  
    611611            if ( ! $image['filename'] ) {
    612612                $image_errors[] = 'Sorry we cannot find an image filename.';
    613             } else if ( stripos( $image['filename'], '.svg' ) !== false ) {
     613            } elseif ( stripos( $image['filename'], '.svg' ) !== false ) {
    614614                $image_errors[] = 'Sorry SVG images are not allowed due to security and other limitations when customers try to import them. Please swap to a PNG instead.';
    615615            }
  • template-kit-export/trunk/builders/class-template-kit-export-builders-elementor.php

    r2414939 r2467674  
    5858        if ( empty( $template_data['content'] ) ) {
    5959            // Kit styles have empty content, so we allow for exporting them here.
    60             //return new WP_Error( 'empty_template', 'The template is empty' );
     60            // return new WP_Error( 'empty_template', 'The template is empty' );
    6161        }
    6262
     
    288288                            'single-product'   => __( 'Single: Product', 'template-kit-export' ),
    289289                            'single-404'       => __( 'Single: 404', 'template-kit-export' ),
     290                            'landing-page'     => __( 'Single: Landing Page', 'template-kit-export' ),
    290291                            'archive-blog'     => __( 'Archive: Blog', 'template-kit-export' ),
    291292                            'archive-product'  => __( 'Archive: Product', 'template-kit-export' ),
     
    534535        }
    535536
     537        // Now we look for Elementor Landing Page templates as well.
     538        // These templates are stored under their own Custom Post Type called "e-landing-page"
     539        $landing_page_templates = get_posts(
     540            array(
     541                'post_type'   => 'e-landing-page',
     542                'numberposts' => - 1,
     543            )
     544        );
     545        foreach ( $landing_page_templates as $landing_page_template ) {
     546            $template_meta_data = get_post_meta( $landing_page_template->ID, 'envato_tk_post_meta', true );
     547            if ( ! is_array( $template_meta_data ) ) {
     548                $template_meta_data = array();
     549            }
     550            // We export this as a 'page' template so it shows up correctly when imported into Elementor library at other end
     551            $template_meta_data['elementor_library_type'] = 'page';
     552
     553            if ( $only_include_final_zip_templates && empty( $template_meta_data['include_in_zip'] ) ) {
     554                // We don't want this template in the zip
     555            } else {
     556                $templates[] = array(
     557                    'id'             => $landing_page_template->ID,
     558                    'name'           => $landing_page_template->post_title,
     559                    'zip_filename'   => 'templates/' . $this->sanitise_filename( $landing_page_template->post_title ) . '.json',
     560                    'include_in_zip' => ! empty( $template_meta_data['include_in_zip'] ),
     561                    'metadata'       => $template_meta_data,
     562                    'preview_url'    => get_permalink( $landing_page_template->ID ),
     563                    'order'          => $landing_page_template->menu_order,
     564                );
     565            }
     566        }
     567
    536568        if ( defined( 'ELEMENTOR_PRO_VERSION' ) ) {
    537569            // Now we look for Elementor Pro Theme Builder templates as well:
  • template-kit-export/trunk/languages/template-kit-export.pot

    r2451574 r2467674  
    1717"Plural-Forms: nplurals=2; plural=(n != 1);\n"
    1818
    19 #: admin/class-template-kit-export-admin.php:121
     19#: admin/class-template-kit-export-admin.php:125
    2020msgid "Template Kits"
    2121msgstr ""
    2222
    23 #: admin/class-template-kit-export-admin.php:122
     23#: admin/class-template-kit-export-admin.php:126
    2424msgid "Template Kit"
    2525msgstr ""
    2626
    27 #: admin/class-template-kit-export-admin.php:132, admin/class-template-kit-export-admin.php:133
     27#: admin/class-template-kit-export-admin.php:136, admin/class-template-kit-export-admin.php:137
    2828msgid "Export"
    2929msgstr ""
    3030
    31 #: admin/class-template-kit-export-admin.php:141, admin/class-template-kit-export-admin.php:142, includes/class-template-kit-export-cpt.php:41, includes/class-template-kit-export-cpt.php:43, includes/class-template-kit-export-cpt.php:57
     31#: admin/class-template-kit-export-admin.php:145, admin/class-template-kit-export-admin.php:146, includes/class-template-kit-export-cpt.php:41, includes/class-template-kit-export-cpt.php:43, includes/class-template-kit-export-cpt.php:57
    3232msgid "Templates"
    3333msgstr ""
     
    9090msgstr ""
    9191
    92 #: builders/class-template-kit-export-builders-base.php:538, builders/class-template-kit-export-builders-elementor.php:328
     92#: builders/class-template-kit-export-builders-base.php:538, builders/class-template-kit-export-builders-elementor.php:329
    9393msgid "Include Template in Export ZIP"
    9494msgstr ""
     
    127127
    128128#: builders/class-template-kit-export-builders-elementor.php:290
     129msgid "Single: Landing Page"
     130msgstr ""
     131
     132#: builders/class-template-kit-export-builders-elementor.php:291
    129133msgid "Archive: Blog"
    130134msgstr ""
    131135
    132 #: builders/class-template-kit-export-builders-elementor.php:291
     136#: builders/class-template-kit-export-builders-elementor.php:292
    133137msgid "Archive: Product"
    134138msgstr ""
    135139
    136 #: builders/class-template-kit-export-builders-elementor.php:292
     140#: builders/class-template-kit-export-builders-elementor.php:293
    137141msgid "Archive: Search"
    138142msgstr ""
    139143
    140 #: builders/class-template-kit-export-builders-elementor.php:293
     144#: builders/class-template-kit-export-builders-elementor.php:294
    141145msgid "Archive: Category"
    142146msgstr ""
    143147
    144 #: builders/class-template-kit-export-builders-elementor.php:297
     148#: builders/class-template-kit-export-builders-elementor.php:298
    145149msgid "Section / Block"
    146150msgstr ""
    147151
    148 #: builders/class-template-kit-export-builders-elementor.php:299
     152#: builders/class-template-kit-export-builders-elementor.php:300
    149153msgid "Header"
    150154msgstr ""
    151155
    152 #: builders/class-template-kit-export-builders-elementor.php:300
     156#: builders/class-template-kit-export-builders-elementor.php:301
    153157msgid "Footer"
    154158msgstr ""
    155159
    156 #: builders/class-template-kit-export-builders-elementor.php:301
     160#: builders/class-template-kit-export-builders-elementor.php:302
    157161msgid "Popup"
    158162msgstr ""
    159163
    160 #: builders/class-template-kit-export-builders-elementor.php:302
     164#: builders/class-template-kit-export-builders-elementor.php:303
    161165msgid "Hero"
    162166msgstr ""
    163167
    164 #: builders/class-template-kit-export-builders-elementor.php:303
     168#: builders/class-template-kit-export-builders-elementor.php:304
    165169msgid "About"
    166170msgstr ""
    167171
    168 #: builders/class-template-kit-export-builders-elementor.php:304
     172#: builders/class-template-kit-export-builders-elementor.php:305
    169173msgid "FAQ"
    170174msgstr ""
    171175
    172 #: builders/class-template-kit-export-builders-elementor.php:305
     176#: builders/class-template-kit-export-builders-elementor.php:306
    173177msgid "Contact"
    174178msgstr ""
    175179
    176 #: builders/class-template-kit-export-builders-elementor.php:306
     180#: builders/class-template-kit-export-builders-elementor.php:307
    177181msgid "Call to Action"
    178182msgstr ""
    179183
    180 #: builders/class-template-kit-export-builders-elementor.php:307
     184#: builders/class-template-kit-export-builders-elementor.php:308
    181185msgid "Team"
    182186msgstr ""
    183187
    184 #: builders/class-template-kit-export-builders-elementor.php:308
     188#: builders/class-template-kit-export-builders-elementor.php:309
    185189msgid "Map"
    186190msgstr ""
    187191
    188 #: builders/class-template-kit-export-builders-elementor.php:309
     192#: builders/class-template-kit-export-builders-elementor.php:310
    189193msgid "Features"
    190194msgstr ""
    191195
    192 #: builders/class-template-kit-export-builders-elementor.php:310
     196#: builders/class-template-kit-export-builders-elementor.php:311
    193197msgid "Pricing"
    194198msgstr ""
    195199
    196 #: builders/class-template-kit-export-builders-elementor.php:311
     200#: builders/class-template-kit-export-builders-elementor.php:312
    197201msgid "Testimonial"
    198202msgstr ""
    199203
    200 #: builders/class-template-kit-export-builders-elementor.php:312
     204#: builders/class-template-kit-export-builders-elementor.php:313
    201205msgid "Product"
    202206msgstr ""
    203207
    204 #: builders/class-template-kit-export-builders-elementor.php:313
     208#: builders/class-template-kit-export-builders-elementor.php:314
    205209msgid "Services"
    206210msgstr ""
    207211
    208 #: builders/class-template-kit-export-builders-elementor.php:314
     212#: builders/class-template-kit-export-builders-elementor.php:315
    209213msgid "Stats"
    210214msgstr ""
    211215
    212 #: builders/class-template-kit-export-builders-elementor.php:315
     216#: builders/class-template-kit-export-builders-elementor.php:316
    213217msgid "Countdown"
    214218msgstr ""
    215219
    216 #: builders/class-template-kit-export-builders-elementor.php:316
     220#: builders/class-template-kit-export-builders-elementor.php:317
    217221msgid "Portfolio"
    218222msgstr ""
    219223
    220 #: builders/class-template-kit-export-builders-elementor.php:317
     224#: builders/class-template-kit-export-builders-elementor.php:318
    221225msgid "Gallery"
    222226msgstr ""
    223227
    224 #: builders/class-template-kit-export-builders-elementor.php:318
     228#: builders/class-template-kit-export-builders-elementor.php:319
    225229msgid "Logo Grid"
    226230msgstr ""
    227231
    228 #: builders/class-template-kit-export-builders-elementor.php:319
     232#: builders/class-template-kit-export-builders-elementor.php:320
    229233msgid "Clients"
    230234msgstr ""
    231235
    232 #: builders/class-template-kit-export-builders-elementor.php:320
     236#: builders/class-template-kit-export-builders-elementor.php:321
    233237msgid "Other"
    234238msgstr ""
    235239
    236 #: builders/class-template-kit-export-builders-elementor.php:323
     240#: builders/class-template-kit-export-builders-elementor.php:324
    237241msgid "Global Kit Styles"
    238242msgstr ""
    239243
    240 #: builders/class-template-kit-export-builders-elementor.php:333
     244#: builders/class-template-kit-export-builders-elementor.php:334
    241245msgid "Elementor Pro Required"
    242246msgstr ""
    243247
    244 #: builders/class-template-kit-export-builders-elementor.php:473
     248#: builders/class-template-kit-export-builders-elementor.php:474
    245249msgid "Please install the \"Elementor\" Plugin to continue."
    246250msgstr ""
    247251
    248 #: builders/class-template-kit-export-builders-elementor.php:477
     252#: builders/class-template-kit-export-builders-elementor.php:478
    249253msgid "Please ensure the \"Hello Elementor\" theme is installed and active on this site."
    250254msgstr ""
  • template-kit-export/trunk/template-kit-export.php

    r2451574 r2467674  
    33 * Plugin Name:       Template Kit Export
    44 * Description:       Use this plugin to export Template Kits for Elementor.
    5  * Version:           1.0.18
     5 * Version:           1.0.19
    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.2.0
     12 * Elementor Pro tested up to: 3.1.0
    1113 */
    1214
     
    1921 * Currently plugin version.
    2022 */
    21 define( 'TEMPLATE_KIT_EXPORT_VERSION', '1.0.18' );
     23define( 'TEMPLATE_KIT_EXPORT_VERSION', '1.0.19' );
    2224
    2325/**
Note: See TracChangeset for help on using the changeset viewer.