PluginProbe
Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider & Blog Layout Widgets / 4.5.6
Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider & Blog Layout Widgets v4.5.6
4.5.6 4.5.5 4.5.4 4.2.1 4.2.2 4.2.3 4.5.0 4.5.2 4.5.3 4.2.0 4.1.18 4.1.17 4.1.16 4.1.15 4.1.14 4.1.13 4.1.12 4.1.11 4.1.10 4.1.9 4.1.8 4.0.9 4.1.0 4.1.1 4.1.2 All 148 releases
← All changes | includes/setup-wizard/views/good-to-go.php +14 -6 4.0.9 → 4.5.6 View file →
@@ -8,8 +8,10 @@
8 8 if ( ! defined( 'ABSPATH' ) ) {
9 9 exit;
10 10 }
11 11
12 +// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- template partial included within a method; variables are method-scoped, not global.
13 +
12 14 $templates_path = BDTUPK_INC_PATH . 'setup-wizard/assets/data.json';
13 15 $templates = json_decode( file_get_contents( $templates_path ), true );
14 16
15 17 ?>
@@ -14,8 +16,9 @@
14 16
15 17 ?>
16 18 <div class="bdt-wizard-step bdt-text-center" data-step="finish">
17 19
20 + <div class="bdt-goodtogo-scroll">
18 21 <div class="bdt-templates-section">
19 22 <div class="bdt-success-icon">
20 23 <i class="dashicons dashicons-yes-alt"></i>
21 24 </div>
@@ -25,18 +28,22 @@
25 28
26 29 <div class="template-list">
27 30 <?php foreach ( $templates as $template ) : ?>
28 31 <?php
29 - $importUrl = $template['import_url']; // or any file path / URL
32 + // $importUrl = $template['import_url']; // or any file path / URL
33 + $assets_url = plugin_dir_url( dirname( dirname( __FILE__ ) ) ) . 'setup-wizard/assets';
34 + $importUrl = $assets_url . $template['import_url'];
35 + $thumbnailUrl = $assets_url . $template['thumbnail'];
36 +
30 37 $extension = pathinfo($importUrl, PATHINFO_EXTENSION);
31 38 if (!$extension || !in_array(strtolower($extension), ['json', 'zip'])) {
32 - return;
39 + continue;
33 40 }
34 41 $extension = strtolower($extension);
35 42 ?>
36 - <div class="choose-template <?php echo $extension ?> <?php echo $extension =='zip' ? 'bdt-upk-import-temp-zip':'bdt-upk-import-temp-json' ?>" data-import-url="<?php echo esc_url( $importUrl ); ?>">
43 + <div class="choose-template <?php echo esc_attr( $extension ) ?> <?php echo $extension =='zip' ? 'bdt-upk-import-temp-zip':'bdt-upk-import-temp-json' ?>" data-import-url="<?php echo esc_url( $importUrl ); ?>">
37 44 <div class="template-image">
38 - <img src="<?php echo esc_url( $template['thumbnail'] ); ?>" alt="<?php echo esc_attr( $template['title'] ); ?>">
45 + <img src="<?php echo esc_url( $thumbnailUrl ); ?>" alt="<?php echo esc_attr( $template['title'] ); ?>">
39 46 <div class="template-actions">
40 47 <a href="<?php echo esc_url( $template['demo_url'] ); ?>" target="_blank" class="template-preview">
41 48 <i class="dashicons dashicons-visibility"></i> <?php esc_html_e( 'Preview', 'ultimate-post-kit' ); ?>
42 49 </a>
@@ -54,9 +61,9 @@
54 61 <div class="bdt-help-resources">
55 62 <h3><?php esc_html_e( 'Helpful Resources', 'ultimate-post-kit' ); ?></h3>
56 63
57 64 <div class="bdt-resources-grid">
58 - <a href="https://bdthemes.com/all-knowledge-base-of-ultimate-post-kit/" target="_blank" class="bdt-resource-item">
65 + <a href="https://bdthemes.com/knowledge-base/ultimate-post-kit/" target="_blank" class="bdt-resource-item">
59 66 <div class="resource-icon">
60 67 <i class="dashicons dashicons-book"></i>
61 68 </div>
62 69 <h4><?php esc_html_e( 'Documentation', 'ultimate-post-kit' ); ?></h4>
@@ -79,9 +86,10 @@
79 86 <p><?php esc_html_e( 'Watch tutorials on our YouTube channel', 'ultimate-post-kit' ); ?></p>
80 87 </a>
81 88 </div>
82 89 </div>
83 -
90 + </div>
91 +
84 92 <div class="bdt-flex bdt-flex-between bdt-flex-wrap">
85 93 <div class="bdt-wizard-navigation">
86 94 <button class="bdt-button bdt-button-secondary bdt-wizard-prev" data-step="integration">
87 95 <span><i class="dashicons dashicons-arrow-left-alt"></i></span>