PluginProbe
Ultimate Store Kit – Store Builder Addons for Elementor, WooCommerce Store Builder, EDD Store Builder / 1.5.1
Ultimate Store Kit – Store Builder Addons for Elementor, WooCommerce Store Builder, EDD Store Builder v1.5.1
3.1.4 3.0.8 3.0.9 3.1.0 3.1.2 3.1.3 3.0.7 3.0.5 3.0.4 3.0.3 3.0.2 trunk 1.5.0 1.5.1 1.5.2 1.6.1 1.6.2 1.6.3 1.6.4 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 All 93 releases
ultimate-store-kit / includes / builder / modal / modal.php

modal.php in Ultimate Store Kit – Store Builder Addons for Elementor, WooCommerce Store Builder, EDD Store Builder 1.5.1, at includes/builder/modal/modal.php

89 lines 4.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <div class="usk-modal-overlay" id="ultimate-builder-kit-builder-modal" style="display: none">
2 <div id="ultimate-builder-kit-builder-modal-wrapper">
3 <div class="usk-template-modal-header">
4 <div class="usk-modal-logo-wrap">
5 <img class="usk-modal-logo" src="<?php echo esc_attr(BDTUSK_ADM_ASSETS_URL . '/images/logo.svg') ?>" alt="">
6 <span class="usk-logo-text">New Template</span>
7 </div>
8 <div class="usk-modal-close-button">
9 <a href="javascript:void(0)">
10 <i class="eicon-editor-close"></i>
11 </a>
12 </div>
13 </div>
14 <div class="usk-template-modal-main-wrap">
15 <div class="usk-modal-content-wrap">
16 <h3 class="usk-modal-title">Templates Help You <span>Work Efficiently</span>
17 </h3>
18 <div class="usk-modal-desc">Use templates to create the
19 different pieces of your site, and reuse them
20 with one click whenever needed.
21 </div>
22 </div>
23 <div class="usk-modal-form-wrap">
24 <form class="usk-modal-form" method="post">
25 <input type="hidden" name="template_id" value="" class="template_id" />
26 <div class="usk-form-title">Choose Template Type</div>
27 <label for="template_type">Select the type of template you want to work on</label>
28 <select name="template_type" id="template_type">
29 <option value="">select</option>
30 <?php
31
32 $templates = \UltimateStoreKit\Includes\Builder\Builder_Template_Helper::templateForSelectDropdown();
33 $separator = \UltimateStoreKit\Includes\Builder\Builder_Template_Helper::separator();
34
35 print_r($separator);
36
37
38 // It is single
39 if (count($templates) == 1) {
40 $templateKey = array_key_last($templates);
41 $template = $templates[$templateKey];
42 foreach ($template as $key => $item) :
43 $selectValue = "{$templateKey}{$separator}{$key}";
44 ?>
45 <option value="<?php echo esc_attr($selectValue) ?>"><?php echo esc_attr($item) ?></option>
46 <?php
47 endforeach;
48 }
49
50 if (count($templates) > 1) {
51 foreach ($templates as $keys => $items) :
52 $label = ucwords(str_replace(['-', '_'], [' '], $keys));
53 if (is_array($items)) {
54 ?>
55 <optgroup label="<?php echo $label ?>"><?php
56 foreach ($items as $key => $item) :
57 $itemValue = "{$keys}{$separator}{$key}"
58 ?>
59 <option value="<?php echo esc_attr($itemValue) ?>"><?php echo esc_attr($item) ?></option>
60 <?php
61 endforeach;
62 ?>
63 </optgroup>
64 <?php
65 }
66 endforeach;
67 }
68 ?>
69 </select>
70 <label for="fname">Name your template</label>
71 <input type="text" name="template_name" id="template_name" placeholder="Enter template name">
72 <select name="template_status" id="template_status">
73 <option value="">select</option>
74 <option value="1">Active</option>
75 <option value="0">Inactive</option>
76 </select>
77 <input class="usk-modal-submit-btn" type="submit" value="Create Template">
78 </form>
79 </div>
80 </div>
81 </div>
82 </div>
83 </div>
84
85 <style>
86 .input-error {
87 border: 1px solid red !important;
88 }
89 </style>