PluginProbe
ووسلام – همگام سازی ووکامرس و باسلام / 1.10.9
ووسلام – همگام سازی ووکامرس و باسلام v1.10.9
1.10.19 1.10.20 1.10.18 1.10.17 1.10.15 1.10.14 1.10.13 1.10.12 1.10.10 1.10.9 1.10.8 1.10.7 1.10.6 1.10.5 1.10.4 1.10.3 1.10.2 1.10.1 1.10.0 1.9.2 1.9.1 1.9.0 1.8.8 1.8.5 1.8.6 All 53 releases
sync-basalam / templates / products / Popups / AddProduct.php

AddProduct.php in ووسلام – همگام سازی ووکامرس و باسلام 1.10.9, at templates/products/Popups/AddProduct.php

123 lines 5.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php defined('ABSPATH') || exit; ?>
2 <div id="basalamAddProductsModal" class="basalam-modal basalam-modal-hidden">
3 <div class="basalam-modal-content basalam-modal-max-width-400">
4 <span class="basalam-modal-close"> <img class="basalam-modal-img-20" src="<?php echo esc_url(syncBasalamPlugin()->assetsUrl() . '/icons/close.svg'); ?>">
5 </span>
6 <h3 class="basalam-h basalam-modal-font-20">افزودن �
7 حصولات به باسلا�
8 </h3>
9
10 <?php if ($has_active_create_jobs): ?>
11 <!-- Display when jobs are running -->
12 <div id="active-create-jobs-info" class="basalam-job-info-block">
13 <div class="basalam-p basalam-warning-bg">
14 <h4 class="basalam-h basalam-warning-header">
15 ع�
16 لیات افزودن �
17 حصولات در حال اجرا است
18 </h4>
19
20 <p class="basalam-warning-text">
21 <strong>نوع ع�
22 لیات:</strong> افزودن �
23 حصولات به باسلا�
24
25 </p>
26
27 <?php
28 $total_create_count = $single_create_count;
29 if ($total_create_count > 0): ?>
30 <p class="basalam-warning-text">
31 <strong>تعداد �
32 حصولات در صف:</strong>
33 <span class="basalam-warning-badge">
34 <?php echo esc_html($total_create_count > 1000 ? '+1000' : $total_create_count); ?> �
35 حصول
36 </span>
37 </p>
38 <?php endif; ?>
39
40 <p class="basalam-warning-justify-10">
41 لطفاً تا پایان ع�
42 لیات جاری صبر کنید. �
43 ی‌توانید پیشرفت را از صفحه لاگ‌ها �
44 شاهده کنید.
45 </p>
46 </div>
47 </div>
48 <?php else: ?>
49 <p class="basalam-p basalam-onboarding-paragraph">آیا �
50 ط�
51 ئن هستید که �
52 ی‌خواهید ه�
53 ه �
54 حصولات را به باسلا�
55 ارسال کنید؟</p>
56 <?php endif; ?>
57
58 <?php if (!$has_active_create_jobs): ?>
59 <form method="POST" action="#" id="basalamAddProductsForm">
60 <?php wp_nonce_field('create_products_to_basalam_nonce', '_wpnonce'); ?>
61 <input type="hidden" name="action" value="create_products_to_basalam">
62 <div class="basalam-form-group basalam-form-group-margin">
63 <label for="include_out_of_stock" class="basalam-p">
64 <input type="checkbox" id="include_out_of_stock" name="include_out_of_stock" value="1" class="basalam-checkbox-scale">
65 افزودن �
66 حصولات نا�
67 وجود نیز انجا�
68 شود
69 </label>
70 </div>
71
72 <button type="<?php echo $has_active_create_jobs ? 'button' : 'submit'; ?>"
73 class="basalam-primary-button basalam-p basalam-product-action-button"
74 <?php echo $has_active_create_jobs ? 'disabled class="basalam-button-disabled-bg"' : ''; ?>>
75 <img src="<?php echo esc_url(syncBasalamPlugin()->assetsUrl() . '/icons/submit.svg'); ?>" alt="">
76 ارسال �
77 حصولات
78 </button>
79 </form>
80 <?php endif; ?>
81
82 <?php if ($has_active_create_jobs): ?>
83 <!-- Cancel button for new job system -->
84 <form method="POST" action="<?php echo esc_url(admin_url('admin-post.php')) ?>" id="BasalamCancelCreateJobs">
85 <?php wp_nonce_field('cancel_create_jobs_nonce', '_wpnonce'); ?>
86 <input type="hidden" name="action" value="cancel_create_jobs">
87 <button type="submit" class="basalam-primary-button basalam-p basalam-danger-button-full">
88 <img class="basalam-danger-button-img" src="<?php echo esc_url(syncBasalamPlugin()->assetsUrl() . '/icons/trash.svg'); ?>">
89
90 توقف کردن ع�
91 لیات
92 </button>
93 </form>
94 <?php endif; ?>
95 </div>
96 </div>
97
98 <div id="BasalamConfirmModal" class="basalam-modal basalam-modal-display-none">
99 <div class="basalam-modal-content basalam-modal-max-width-400">
100 <span class="basalam-modal-close">
101 <img class="basalam-modal-img-20" src="<?php echo esc_url(syncBasalamPlugin()->assetsUrl() . '/icons/close.svg'); ?>">
102 </span>
103 <h3 class="basalam-h basalam-modal-font-20">تأیید نهایی</h3>
104 <p class="basalam-p basalam-padding-top-bold">
105 اگر برخی از �
106 حصولات ش�
107 ا پیش‌تر به صورت دستی یا با استفاده از ابزارهای دیگر در باسلا�
108 ثبت شده‌اند، ابتدا لاز�
109 است از طریق قابلیت "اتصال �
110 حصولات" آن‌ها را �
111 تصل کنید. پس از آن از این گزینه استفاده ن�
112 ایید.
113 </p>
114 <div class="basalam-margin-top-15-flex-end">
115 <button class="basalam-modal-close basalam-primary-button basalam-p basalam-danger-button basalam-width-fill-available">
116 انصراف
117 </button>
118 <button id="confirmSubmitBtn" class="basalam-primary-button basalam-p basalam-width-fill-available">
119 تایید و ارسال
120 </button>
121 </div>
122 </div>
123 </div>