Changeset 3809098
- Timestamp:
- 11/18/2026 11:03:02 AM (less than one hour ago)
- Location:
- anar-toolkit
- Files:
-
- 12 added
- 44 edited
- 1 copied
-
tags/1.6.0 (copied) (copied from anar-toolkit/trunk )
-
tags/1.6.0/anar-login.php (modified) (2 diffs)
-
tags/1.6.0/assets/css/commerce-suite.css (modified) (1 diff)
-
tags/1.6.0/assets/js/admin.js (modified) (1 diff)
-
tags/1.6.0/assets/js/invoice-preview.js (added)
-
tags/1.6.0/languages/anar-toolkit-fa_IR.l10n.php (modified) (32 diffs)
-
tags/1.6.0/languages/anar-toolkit-fa_IR.mo (modified) ( previous)
-
tags/1.6.0/readme.txt (modified) (4 diffs)
-
tags/1.6.0/src/Admin/FeaturesPage.php (modified) (5 diffs)
-
tags/1.6.0/src/Admin/InvoicePreview.php (added)
-
tags/1.6.0/src/Admin/SettingsPage.php (modified) (5 diffs)
-
tags/1.6.0/src/Auth/OtpService.php (modified) (1 diff)
-
tags/1.6.0/src/Commerce/Admin.php (modified) (8 diffs)
-
tags/1.6.0/src/Commerce/CappedDiscount.php (added)
-
tags/1.6.0/src/Commerce/Coupons.php (modified) (1 diff)
-
tags/1.6.0/src/Commerce/Module.php (modified) (1 diff)
-
tags/1.6.0/src/Commerce/Settings.php (modified) (4 diffs)
-
tags/1.6.0/src/Integrations/Elementor.php (added)
-
tags/1.6.0/src/Integrations/ElementorWidget.php (added)
-
tags/1.6.0/src/Marketing/Admin.php (modified) (1 diff)
-
tags/1.6.0/src/Marketing/Invoices.php (modified) (3 diffs)
-
tags/1.6.0/src/Marketing/Settings.php (modified) (2 diffs)
-
tags/1.6.0/src/Messaging/MessageCatalog.php (modified) (2 diffs)
-
tags/1.6.0/src/Messaging/MessageSettings.php (modified) (1 diff)
-
tags/1.6.0/src/Messaging/ProviderRegistry.php (modified) (1 diff)
-
tags/1.6.0/src/Messaging/Providers/Bale.php (added)
-
tags/1.6.0/src/Plugin.php (modified) (3 diffs)
-
tags/1.6.0/src/Vendor/WebAuthn/UPSTREAM.txt (modified) (1 diff)
-
tags/1.6.0/src/Vendor/WebAuthn/WebAuthn.php (modified) (1 diff)
-
trunk/anar-login.php (modified) (2 diffs)
-
trunk/assets/css/commerce-suite.css (modified) (1 diff)
-
trunk/assets/js/admin.js (modified) (1 diff)
-
trunk/assets/js/invoice-preview.js (added)
-
trunk/languages/anar-toolkit-fa_IR.l10n.php (modified) (32 diffs)
-
trunk/languages/anar-toolkit-fa_IR.mo (modified) ( previous)
-
trunk/readme.txt (modified) (4 diffs)
-
trunk/src/Admin/FeaturesPage.php (modified) (5 diffs)
-
trunk/src/Admin/InvoicePreview.php (added)
-
trunk/src/Admin/SettingsPage.php (modified) (5 diffs)
-
trunk/src/Auth/OtpService.php (modified) (1 diff)
-
trunk/src/Commerce/Admin.php (modified) (8 diffs)
-
trunk/src/Commerce/CappedDiscount.php (added)
-
trunk/src/Commerce/Coupons.php (modified) (1 diff)
-
trunk/src/Commerce/Module.php (modified) (1 diff)
-
trunk/src/Commerce/Settings.php (modified) (4 diffs)
-
trunk/src/Integrations/Elementor.php (added)
-
trunk/src/Integrations/ElementorWidget.php (added)
-
trunk/src/Marketing/Admin.php (modified) (1 diff)
-
trunk/src/Marketing/Invoices.php (modified) (3 diffs)
-
trunk/src/Marketing/Settings.php (modified) (2 diffs)
-
trunk/src/Messaging/MessageCatalog.php (modified) (2 diffs)
-
trunk/src/Messaging/MessageSettings.php (modified) (1 diff)
-
trunk/src/Messaging/ProviderRegistry.php (modified) (1 diff)
-
trunk/src/Messaging/Providers/Bale.php (added)
-
trunk/src/Plugin.php (modified) (3 diffs)
-
trunk/src/Vendor/WebAuthn/UPSTREAM.txt (modified) (1 diff)
-
trunk/src/Vendor/WebAuthn/WebAuthn.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
anar-toolkit/tags/1.6.0/anar-login.php
r3796547 r3809098 4 4 * Plugin URI: https://mrnwp.ir/anar/ 5 5 * Description: SMS, email and Google login, SMS password reset, cart recovery and customer communication tools for WooCommerce. 6 * Version: 1. 5.96 * Version: 1.6.0 7 7 * Requires at least: 6.2 8 8 * Requires PHP: 7.4 … … 19 19 defined( 'ABSPATH' ) || exit; 20 20 21 define( 'ANAR_LOGIN_VERSION', '1. 5.9' );21 define( 'ANAR_LOGIN_VERSION', '1.6.0' ); 22 22 define( 'ANAR_LOGIN_FILE', __FILE__ ); 23 23 define( 'ANAR_LOGIN_PATH', plugin_dir_path( __FILE__ ) ); -
anar-toolkit/tags/1.6.0/assets/css/commerce-suite.css
r3788438 r3809098 1 1 .anar-commerce{--ink:#282331;--muted:#8b8295;--line:#ebe6ee;--red:#ae2750;--green:#4c937b;max-width:1500px;margin-inline-end:24px;color:var(--ink);font-family:inherit;font-size:13px;line-height:1.8}.anar-commerce *{box-sizing:border-box}.anar-commerce [hidden]{display:none!important}.anar-commerce a{color:var(--red);text-decoration:none}.anar-suite-header{display:flex;justify-content:space-between;align-items:center;gap:24px;padding-block:30px 24px}.anar-suite-brand{display:flex;align-items:center;gap:18px}.anar-suite-brand>img{width:62px;height:62px;object-fit:contain}.anar-suite-brand p{margin:0;font-size:10px;font-weight:700;letter-spacing:1.5px;color:var(--red)}.anar-suite-brand p span{font-size:9px;background:#eee9f0;color:var(--muted);border-radius:5px;padding:3px 8px;letter-spacing:0;margin-inline-start:8px}.anar-suite-header h1{font-size:26px;font-weight:700;line-height:1.5;margin:3px 0;letter-spacing:-.5px}.anar-suite-brand .anar-suite-subtitle{font-size:12px;letter-spacing:0;color:var(--muted);font-weight:400}.anar-suite-link{display:flex;align-items:center;gap:8px;padding:10px 15px;background:#fff;border:1px solid var(--line);border-radius:10px;color:var(--ink)!important}.anar-suite-tabs{display:flex;gap:5px;overflow-x:auto;border-bottom:1px solid var(--line);margin-bottom:28px}.anar-suite-tabs a{position:relative;flex-shrink:0;padding:15px 16px;color:var(--muted);font-weight:600;font-size:12px}.anar-suite-tabs a.is-active{color:var(--red)}.anar-suite-tabs .is-active:after{content:'';position:absolute;inset-inline:16px;bottom:0;height:3px;background:var(--red);border-radius:4px 4px 0 0}.anar-suite-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:26px 0 22px}.anar-suite-toolbar h2{font-size:23px;margin:3px 0}.anar-eyebrow{font-size:9px;letter-spacing:1.6px;font-weight:700;color:#9d93a5}.anar-suite-toolbar form,.anar-table-filter{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.anar-commerce select,.anar-commerce input:is([type=text],[type=number],[type=tel],[type=email],[type=url]),.anar-commerce textarea{background:#fff;border:1px solid #ddd5e3;border-radius:8px;min-height:38px;padding:7px 11px;font:inherit;box-shadow:none;max-width:100%}.anar-commerce .button{min-height:38px;padding:3px 15px;border:1px solid #dfd7e5;border-radius:8px;background:#fff;color:var(--ink);box-shadow:none}.anar-commerce .button-primary{background:var(--red);border-color:var(--red);color:#fff}.anar-commerce :focus-visible{outline:2px solid var(--red);outline-offset:3px}.anar-kpis{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:16px;margin-bottom:24px}.anar-kpi{position:relative;min-width:0;min-height:180px;padding:24px;border:1px solid var(--line);background:#fff;border-radius:16px;overflow:hidden}.anar-kpi p{font-size:12px;color:#7c7088;margin:12px 0 7px}.anar-kpi strong{display:block;font-size:32px;font-weight:700;line-height:1.35;overflow-wrap:anywhere;letter-spacing:-.5px}.anar-kpi small{display:block;margin-top:8px;color:#a096aa;font-size:10px}.anar-kpi-icon{width:35px;height:35px;padding:7px;border-radius:10px;background:#faf0f4;color:var(--red);font-size:21px}.anar-kpi.hero{background:linear-gradient(135deg,#6e1736,#b32c56);color:#fff;border-color:transparent}.anar-kpi.hero:after{content:'';position:absolute;inset-inline-end:-35px;bottom:-80px;width:200px;height:200px;border:1px solid #ffffff20;border-radius:50%;box-shadow:0 0 0 25px #ffffff08,0 0 0 50px #ffffff04;pointer-events:none}.anar-kpi.hero p,.anar-kpi.hero small{color:#efc5d4}.anar-kpi.hero .anar-kpi-icon{background:#ffffff18;color:#fff}.anar-analytics-grid{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(250px,1fr);gap:22px}.anar-commerce-card{min-width:0;background:#fff;border:1px solid var(--line);border-radius:16px;padding:26px;margin-bottom:22px}.anar-commerce-card h2{font-size:16px;font-weight:650;margin:4px 0 20px}.anar-card-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.anar-chart-legend{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--muted);white-space:nowrap}.anar-chart-legend i{display:inline-block;width:7px;height:7px;background:#bd3e66;border-radius:2px}.anar-chart-legend .second{background:#68a68f;margin-inline-start:10px}.anar-chart{display:flex;direction:ltr;gap:12px;height:235px;padding-top:24px;border-bottom:1px solid var(--line);background:repeating-linear-gradient(to top,transparent 0,transparent 49px,#f3eff6 49px,#f3eff6 50px)}.anar-chart-column{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center}.anar-chart-bars{display:flex;align-items:flex-end;justify-content:center;gap:3px;height:180px;width:100%}.anar-chart-bar{width:35%;max-width:22px;min-height:0;border-radius:5px 5px 0 0;background:linear-gradient(#b82e58,#e2abbe)}.anar-chart-bar.second{background:linear-gradient(#43856f,#b4d3c8)}.anar-chart-column small{font-size:9px;color:#a498ad;margin-top:12px}.anar-chart-details{font-size:11px;color:var(--muted);margin-top:15px}.anar-chart-details summary{cursor:pointer}.anar-footnote{font-size:11px;color:var(--muted);line-height:1.9}.anar-donut{width:155px;height:155px;border-radius:50%;padding:13px;background:conic-gradient(var(--green) 0 var(--anar-sweep),#f0eaf3 var(--anar-sweep) 360deg);margin:22px auto}.anar-donut>div{display:flex;align-items:center;justify-content:center;flex-direction:column;background:#fff;border-radius:50%;height:100%}.anar-donut strong{font-size:29px}.anar-donut span{font-size:11px;color:var(--muted)}.anar-health-list{margin-top:24px}.anar-health-list>div{display:flex;justify-content:space-between;border-bottom:1px solid #f4f0f7;padding:9px 0;font-size:11px;color:var(--muted)}.anar-health-list dd{margin:0;color:var(--ink);font-weight:700}.anar-suite-note{display:flex;align-items:center;gap:12px;background:#efebf3;border-radius:12px;padding:13px 20px;color:#8b7e97;margin:8px 0 22px}.anar-suite-note p{font-size:11px;margin:0}.anar-suite-note .dashicons{flex-shrink:0}.anar-table-filter{margin-block:16px}.anar-table-filter>span{margin-inline-start:auto;color:var(--muted);font-size:11px}.anar-table-card{padding:0;overflow:hidden}.anar-commerce-table{overflow-x:auto}.anar-commerce-table table{width:100%;border-collapse:collapse;text-align:start;white-space:nowrap}.anar-commerce-table th{padding:17px 20px;background:#faf8fc;color:#95889f;font-size:11px;font-weight:500;text-align:start;border-bottom:1px solid var(--line)}.anar-commerce-table td{padding:18px 20px;border-bottom:1px solid #f3eff6;font-size:12px}.anar-commerce-table tbody tr:last-child td{border-bottom:0}.anar-commerce-table td small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.anar-commerce-table tr:hover{background:#fdfbfd}.anar-badge{display:inline-flex;align-items:center;gap:6px;font-size:10px;font-weight:600;white-space:nowrap;padding:4px 10px;border-radius:20px;background:#f1edf5;color:#80728c}.anar-badge i{width:5px;height:5px;background:currentColor;border-radius:50%}.anar-badge--accepted,.anar-badge--converted{background:#eaf4ef;color:#41866d}.anar-badge--active,.anar-badge--pending{background:#fff3e0;color:#a37d39}.anar-badge--running{background:#eaf1fd;color:#507fb6}.anar-badge--failed,.anar-badge--uncertain{background:#fbebf0;color:#b24a6c}.anar-empty-state{text-align:center;padding:55px 15px;white-space:normal}.anar-empty-state>.dashicons{width:55px;height:55px;padding:10px;font-size:35px;color:#c7b7d0;background:#f8f3fa;border-radius:15px}.anar-empty-state h3{font-size:15px;margin:16px 0 7px}.anar-empty-state p{font-size:12px;color:#9d8ea8;margin:0}.anar-pagination{display:flex;gap:10px;justify-content:flex-end;margin:15px 0 26px}.anar-settings-grid,.anar-template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.anar-settings-grid .anar-commerce-card,.anar-template-grid .anar-commerce-card{margin:0}.anar-commerce-field{margin-block:16px}.anar-commerce-field label strong{font-size:12px;color:#675773}.anar-commerce-field .description{font-size:11px;color:#a091ab;line-height:1.8}.anar-commerce-field input{margin-top:8px}.anar-template-grid code{font-size:10px;background:#f6f1f9;white-space:normal;word-break:break-word;line-height:2}.anar-template-grid input,.anar-template-grid textarea{width:100%}.anar-suite-savebar{position:sticky;bottom:0;background:#ffffffed;backdrop-filter:blur(12px);border:1px solid var(--line);border-radius:12px;margin-block:24px;padding:10px 22px;z-index:5;box-shadow:0 -6px 30px #37203c08}.anar-suite-savebar p.submit{margin:0;padding:0}.anar-campaign-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.anar-campaign-card .dashicons{font-size:27px;width:45px;height:45px;padding:9px;background:#faf0f4;border-radius:12px;color:var(--red)}.anar-campaign-card p{font-size:12px;color:var(--muted)}.anar-setup-step{border-inline-start:3px solid #c88b9e;padding-inline-start:18px;margin-block:20px} 2 2 @media(max-width:1100px){.anar-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.anar-analytics-grid{grid-template-columns:minmax(0,1.8fr) minmax(230px,1fr)}.anar-card-heading{flex-direction:column;align-items:flex-start}.anar-chart-legend{margin-bottom:15px}.anar-campaign-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:782px){.anar-commerce{margin-inline:10px 16px}.anar-suite-header{gap:12px;align-items:flex-start;padding-block:20px}.anar-suite-brand{gap:10px}.anar-suite-brand>img{width:44px;height:44px}.anar-suite-header h1{font-size:17px}.anar-suite-brand .anar-suite-subtitle{font-size:10px}.anar-suite-link{padding:8px;font-size:0}.anar-suite-link .dashicons{font-size:19px}.anar-suite-tabs a{padding:12px;font-size:11px}.anar-suite-toolbar{align-items:flex-start;flex-direction:column;gap:12px}.anar-suite-toolbar h2{font-size:20px}.anar-kpis{gap:10px}.anar-kpi{padding:18px;min-height:160px;border-radius:12px}.anar-kpi strong{font-size:25px}.anar-kpi p{font-size:11px}.anar-kpi small{font-size:9px}.anar-analytics-grid,.anar-settings-grid,.anar-template-grid,.anar-campaign-grid{grid-template-columns:minmax(0,1fr)}.anar-commerce-card{padding:20px}.anar-table-card{padding:0}.anar-chart{gap:6px}.anar-chart-column small{font-size:8px}.anar-suite-note{align-items:flex-start}.anar-commerce-table td,.anar-commerce-table th{padding:15px}}@media(prefers-reduced-motion:reduce){.anar-commerce *{animation:none!important;transition:none!important}}@media print{.anar-suite-tabs,.anar-suite-savebar,.anar-suite-link,.anar-table-filter{display:none!important}.anar-commerce [data-suite-panel]{display:block!important}.anar-commerce{margin:0}.anar-commerce-card{break-inside:avoid}} 3 4 .anar-store-nav{grid-column:1/-1;display:flex;gap:12px;flex-wrap:wrap;padding:16px;background:#fff;border-radius:12px}.anar-store-nav a{padding:9px 16px;border-radius:8px;background:#faf2f5;color:#94274e;text-decoration:none}.anar-commerce-card{scroll-margin-top:48px} -
anar-toolkit/tags/1.6.0/assets/js/admin.js
r3795335 r3809098 8 8 const showTab = (name) => { 9 9 const connection = root.querySelector('.anar-connection-form'); 10 if (connection) connection.hidden = name === 'messages' || name === 'sending' ;10 if (connection) connection.hidden = name === 'messages' || name === 'sending' || name === 'features'; 11 11 const save = root.querySelector('.anar-admin__save'); 12 12 if (save) save.hidden = name === 'setup'; -
anar-toolkit/tags/1.6.0/languages/anar-toolkit-fa_IR.l10n.php
r3796547 r3809098 1 1 <?php 2 2 return array( 3 'project-id-version' => 'Anar Toolkit 1. 5.9',3 'project-id-version' => 'Anar Toolkit 1.6.0', 4 4 'language' => 'fa_IR', 5 5 'plural-forms' => 'nplurals=2; plural=(n > 1);', … … 41 41 'Abandoned carts' => 'سبدهای رهاشده', 42 42 'Accent' => 'برجسته', 43 'Accent color' => 'رنگ اصلی', 43 44 'Accepted by provider' => 'پذیرفتهشده توسط سرویسدهنده', 44 45 'Accepted means the SMS provider accepted the request; it does not confirm delivery to the phone. Investigate uncertain results before retrying. Codes and full messages are not shown in the report.' => '«پذیرفتهشده» یعنی سرویس پیامک درخواست را پذیرفته است و تحویل به گوشی را تأیید نمیکند. پیش از تکرار، نتیجهٔ نامشخص را بررسی کنید. کدها و متن کامل پیام در گزارش نمایش داده نمیشوند.', … … 99 100 'Anar SMS password reset' => 'بازیابی رمز پیامکی انار', 100 101 'Anar Toolkit' => 'جعبهابزار انار', 102 'Anar Toolkit - SMS Login, Recovery & Marketing for WooCommerce' => 'جعبهابزار انار — ورود پیامکی، بازیابی خرید و بازاریابی ووکامرس', 101 103 'Anar Toolkit overview' => 'وضعیت کلی انار', 102 104 'Anar Toolkit – SMS Login, Recovery & Marketing for WooCommerce' => 'جعبهابزار انار — ورود پیامکی، بازیابی خرید و بازاریابی ووکامرس', 103 105 'Anar Toolkit — WooCommerce SMS' => 'جعبهابزار انار — پیامک ووکامرس', 106 'Anar account button' => 'دکمه ورود و حساب کاربری انار', 104 107 'Anar and MRN Forms' => 'انار و MRN Forms', 108 'Anar cart recovery' => 'بازیابی سبد خرید انار', 105 109 'Anar customer campaigns' => 'کمپینهای مشتریان انار', 106 110 'Anar customer gift' => 'هدیهٔ مشتری انار', … … 154 158 'Balance received' => 'موجودی دریافت شد', 155 159 'Balance settings saved.' => 'تنظیمات اعتبار پیامک ذخیره شد.', 160 'Bale OTP' => 'کد ورود در بله', 161 'Bale authentication failed.' => 'احراز هویت پنل بله انجام نشد.', 162 'Bale could not deliver the verification code.' => 'بله نتوانست کد تأیید را ارسال کند.', 163 'Bale supports verification codes only.' => 'بله فقط از ارسال کد تأیید پشتیبانی میکند.', 156 164 'Before a code is sent, the browser solves a short puzzle in the background, with no image or click. Adaptive mode asks only when one address requests repeatedly or the whole site sees an unusual volume, so SMS floods stop costing you money.' => 'پیش از ارسال کد، مرورگر در پسزمینه یک معمای کوتاه را حل میکند؛ بدون تصویر و بدون کلیک. در حالت هوشمند فقط وقتی فعال میشود که یک نشانی پشتسرهم درخواست بدهد یا حجم کل سایت غیرعادی شود؛ بنابراین ارسال انبوه رباتی، هزینهٔ پیامک برای شما نمیسازد.', 157 165 'Before predicted purchase' => 'پیش از خرید پیشبینیشده', … … 164 172 'Both links must be included in the recovery parameter mapping (or the custom gateway message). Use templates approved for purchase reminders.' => 'هر دو لینک بازیابی و لغو دریافت باید در نگاشت متغیرها (یا متن درگاه سفارشی) وجود داشته باشند. از قالب تأییدشده برای یادآوری خرید استفاده کنید.', 165 173 'Brand color' => 'رنگ برند', 174 'Branded' => 'برنددار', 166 175 'Build a registration form with your own fields in MRN Forms. Anar verifies the mobile number and creates the WordPress account. Other forms can use the same SMS service to verify a number before submission.' => 'فرم ثبتنام را با فیلدهای دلخواه در MRN Forms بسازید. انار شمارهٔ همراه را تأیید و حساب وردپرس را ایجاد میکند. فرمهای دیگر هم میتوانند پیش از ارسال، شمارهٔ همراه را با همین سرویس پیامکی تأیید کنند.', 167 176 'Built-in providers send the approved provider template, not this text. Keep its wording in sync with the approved template.' => 'پنلهای آماده، قالب تأییدشده سرویس را ارسال میکنند. این متن را با متن قالب تأییدشده هماهنگ نگه دارید.', … … 184 193 'Cancelled' => 'لغوشده', 185 194 'Capped game discount' => 'تخفیف بازی با سقف مبلغ', 195 'Capped recovery discount' => 'تخفیف سقفدار بازیابی', 196 'Capped recovery discounts require WooCommerce 8.8 or newer.' => 'تخفیف سقفدار بازیابی به ووکامرس ۸.۸ یا جدیدتر نیاز دارد.', 186 197 'Capture source' => 'منبع ثبت', 187 198 'Capture timestamp (UTC Unix time)' => 'زمان ثبت خودکار (زمان یونیکس UTC)', … … 191 202 'Cart records' => 'سوابق سبد', 192 203 'Cart recovery' => 'بازیابی سبد', 204 'Cart recovery and sending limits' => 'بازیابی سبد و محدودیتهای ارسال', 193 205 'Category' => 'دسته', 194 206 'Chance of receiving a coupon (%)' => 'احتمال دریافت جایزه (درصد)', … … 227 239 'Clean up when uninstalling' => 'پاکسازی هنگام حذف افزونه', 228 240 'Clear about 40% of the cover to reveal your result.' => 'حدود ۴۰ درصد پوشش را پاک کنید تا نتیجه نمایش داده شود.', 241 'Client ID' => 'شناسه مشتری بله', 242 'Client secret' => 'رمز اتصال بله', 229 243 'Close' => 'بستن', 230 244 'Close signup' => 'بستن فرم ثبتنام', … … 272 286 'Connected and verified' => 'متصل و تأییدشده', 273 287 'Connection and message' => 'اتصال و پیام', 288 'Connection and orders' => 'اتصال و سفارشها', 274 289 'Connection interrupted. Retry to continue the same game.' => 'ارتباط قطع شد. با زدن «ادامهٔ همین بازی»، همان نوبت را دنبال کنید.', 275 290 'Connection settings' => 'تنظیمات اتصال', … … 279 294 'Conservative Unicode SMS segment estimate before replacing placeholders; actual billing depends on the provider:' => 'برآورد محافظهکارانه تعداد بخشهای پیامک یونیکد پیش از جایگزینی متغیرها؛ هزینه واقعی به سرویس بستگی دارد:', 280 295 'Contact mobile numbers' => 'شمارههای همراه مخاطبان', 296 'Content' => 'محتوا', 281 297 'Continue' => 'ادامه', 282 298 'Continue a purchase with your recovery code' => 'ادامه خرید با کد بازیابی', … … 296 312 'Core is active' => 'هسته فعال است', 297 313 'Correct answer number' => 'شمارهٔ پاسخ درست', 314 'Correct quiz option (1-8)' => 'گزینهٔ درست مسابقه (۱ تا ۸)', 298 315 'Correct quiz option (1–8)' => 'گزینهٔ درست مسابقه (۱ تا ۸)', 299 316 'Could not complete Google sign-in. Please try again.' => 'ورود با گوگل کامل نشد. لطفاً دوباره تلاش کنید.', … … 388 405 'Enable the features your store needs.' => 'قابلیتهای مورد نیاز فروشگاه را فعال کنید.', 389 406 'Enable the login SMS report to count future login and verification messages.' => 'برای ثبت آمار پیامکهای ورود و تأیید از این به بعد، گزارش پیامک ورود را فعال کنید.', 407 'Enable this feature in Anar settings.' => 'این قابلیت را در تنظیمات انار فعال کنید.', 390 408 'Enable this feature, check an account, then set its alert threshold. Periodic checks contact only the accounts you select, about every 30 minutes.' => 'این قابلیت را فعال کنید، موجودی حساب را دریافت کنید و حد هشدار را تعیین کنید. فقط حسابهای انتخابشده، تقریباً هر ۳۰ دقیقه بهصورت خودکار بررسی میشوند.', 391 409 'Enable this stage' => 'فعالسازی این مرحله', … … 526 544 'If this number is linked to an eligible account, a password reset code will be sent. Please wait before requesting another.' => 'اگر این شماره به حساب واجد شرایطی متصل باشد، کد بازنشانی رمز برای آن ارسال میشود. پیش از درخواست مجدد کمی صبر کنید.', 527 545 'If you leave now, the changes you made to this message will be lost.' => 'با خروج از ویرایشگر، تغییرات این پیام از دست میرود.', 546 'If you opt into purchase reminders, we store your mobile number, optional email, consent text and timestamp, cart products, amount, currency and related order ID locally. We send your number and the configured reminder variables (which may include purchase links and order details) to our selected SMS provider. Each reminder includes a link to stop future cart and unpaid-order reminders. Payment notifications are separate service messages. Phone-bound, single-use recovery codes restore products or open WooCommerce payment; they do not log you in. Recovery code hashes, attempts, expiry and consumption timestamps are stored separately from login challenges. Unsubscribe links only stop purchase reminders. The store configures a 7-90 day retention period and SMS provider. Add the selected provider, its terms and privacy links, your actual retention period and the purposes of your messages to this policy before enabling the modules.' => 'با انتخاب دریافت یادآوری خرید، شماره موبایل، ایمیل اختیاری، متن و زمان رضایت، محصولات سبد، مبلغ، ارز و شناسه سفارش مرتبط در سایت ذخیره میشوند. شماره و متغیرهای پیکربندیشده یادآوری، شامل لینک خرید یا جزئیات سفارش، به سرویس پیامکی منتخب ارسال میشوند. هر پیام لینک توقف یادآوری سبد و سفارش پرداختنشده دارد. اعلان پرداخت پیام خدماتی جداگانهای است. کد یکبارمصرف متصل به شماره، سبد را بازیابی یا پرداخت ووکامرس را باز میکند و باعث ورود به حساب نمیشود. هش کد، تعداد تلاش، انقضا و زمان مصرف مستقل از کدهای ورود ذخیره میشوند. لینک لغو فقط یادآوری خرید را متوقف میکند. مدیر فروشگاه مدت نگهداری ۷ تا ۹۰ روز و سرویس پیامکی را تنظیم میکند. پیش از فعالسازی، نام سرویس، لینک شرایط و حریم خصوصی، مدت واقعی نگهداری و هدف پیامها را به این سیاست اضافه کنید.', 528 547 'If you opt into purchase reminders, we store your mobile number, optional email, consent text and timestamp, cart products, amount, currency and related order ID locally. We send your number and the configured reminder variables (which may include purchase links and order details) to our selected SMS provider. Each reminder includes a link to stop future cart and unpaid-order reminders. Payment notifications are separate service messages. Phone-bound, single-use recovery codes restore products or open WooCommerce payment; they do not log you in. Recovery code hashes, attempts, expiry and consumption timestamps are stored separately from login challenges. Unsubscribe links only stop purchase reminders. The store configures a 7–90 day retention period and SMS provider. Add the selected provider, its terms and privacy links, your actual retention period and the purposes of your messages to this policy before enabling the modules.' => 'با انتخاب دریافت یادآوری خرید، شماره موبایل، ایمیل اختیاری، متن و زمان رضایت، محصولات سبد، مبلغ، ارز و شناسه سفارش مرتبط در سایت ذخیره میشوند. شماره و متغیرهای پیکربندیشده یادآوری، شامل لینک خرید یا جزئیات سفارش، به سرویس پیامکی منتخب ارسال میشوند. هر پیام لینک توقف یادآوری سبد و سفارش پرداختنشده دارد. اعلان پرداخت پیام خدماتی جداگانهای است. کد یکبارمصرف متصل به شماره، سبد را بازیابی یا پرداخت ووکامرس را باز میکند و باعث ورود به حساب نمیشود. هش کد، تعداد تلاش، انقضا و زمان مصرف مستقل از کدهای ورود ذخیره میشوند. لینک لغو فقط یادآوری خرید را متوقف میکند. مدیر فروشگاه مدت نگهداری ۷ تا ۹۰ روز و سرویس پیامکی را تنظیم میکند. پیش از فعالسازی، نام سرویس، لینک شرایط و حریم خصوصی، مدت واقعی نگهداری و هدف پیامها را به این سیاست اضافه کنید.', 548 'If you opt into purchase reminders, we store your mobile number, optional email, consent text and timestamp, cart products, amount, currency and related order ID locally. We send your number and the configured reminder variables (which may include purchase links and order details) to our selected SMS provider. Each reminder includes a link to stop future cart and unpaid-order reminders. Payment notifications are separate service messages. Reminder links restore products or open WooCommerce payment; they do not log you in. The store configures a 7-90 day retention period and SMS provider. Add the selected provider, its terms and privacy links, your actual retention period and the purposes of your messages to this policy before enabling the modules.' => 'با انتخاب دریافت یادآوری خرید، شماره موبایل، ایمیل اختیاری، متن و زمان رضایت، محصولات سبد، مبلغ، ارز و شناسه سفارش مرتبط در سایت ذخیره میشوند. شماره و متغیرهای پیکربندیشده یادآوری، شامل لینک خرید یا جزئیات سفارش، به سرویس پیامکی منتخب ارسال میشوند. هر پیام لینک توقف یادآوری سبد و سفارش پرداختنشده دارد. اعلان پرداخت پیام خدماتی جداگانهای است. لینک یادآوری، سبد را بازیابی یا پرداخت ووکامرس را باز میکند و باعث ورود به حساب نمیشود. مدیر فروشگاه مدت نگهداری ۷ تا ۹۰ روز و سرویس پیامکی را تنظیم میکند. پیش از فعالسازی، نام سرویس، لینک شرایط و حریم خصوصی، مدت واقعی نگهداری و هدف پیامها را به این سیاست اضافه کنید.', 529 549 'If you opt into purchase reminders, we store your mobile number, optional email, consent text and timestamp, cart products, amount, currency and related order ID locally. We send your number and the configured reminder variables (which may include purchase links and order details) to our selected SMS provider. Each reminder includes a link to stop future cart and unpaid-order reminders. Payment notifications are separate service messages. Reminder links restore products or open WooCommerce payment; they do not log you in. The store configures a 7–90 day retention period and SMS provider. Add the selected provider, its terms and privacy links, your actual retention period and the purposes of your messages to this policy before enabling the modules.' => 'با انتخاب دریافت یادآوری خرید، شماره موبایل، ایمیل اختیاری، متن و زمان رضایت، محصولات سبد، مبلغ، ارز و شناسه سفارش مرتبط در سایت ذخیره میشوند. شماره و متغیرهای پیکربندیشده یادآوری، شامل لینک خرید یا جزئیات سفارش، به سرویس پیامکی منتخب ارسال میشوند. هر پیام لینک توقف یادآوری سبد و سفارش پرداختنشده دارد. اعلان پرداخت پیام خدماتی جداگانهای است. لینک یادآوری، سبد را بازیابی یا پرداخت ووکامرس را باز میکند و باعث ورود به حساب نمیشود. مدیر فروشگاه مدت نگهداری ۷ تا ۹۰ روز و سرویس پیامکی را تنظیم میکند. پیش از فعالسازی، نام سرویس، لینک شرایط و حریم خصوصی، مدت واقعی نگهداری و هدف پیامها را به این سیاست اضافه کنید.', 530 550 'Import campaign contacts' => 'درونریزی مخاطبان کمپین', … … 543 563 'Install and activate WooCommerce to run these modules. Login features work independently.' => 'برای اجرای این ماژولها، ووکامرس را نصب و فعال کنید. قابلیتهای ورود مستقل کار میکنند.', 544 564 'Invisible bot check' => 'بررسی نامرئی ربات', 565 'Invoice footer' => 'متن پایین فاکتور', 545 566 'Invoice number prefix' => 'پیشوند شمارهٔ صورتحساب', 567 'Invoice template' => 'قالب فاکتور', 546 568 'Issued or reserved in the shared pool: %d' => 'صادر یا رزرو شده در مخزن مشترک: %d', 547 569 'It may be time to reorder your product.' => 'شاید زمان خرید دوبارهٔ کالای شما رسیده باشد.', … … 583 605 'Loading message…' => 'در حال دریافت پیام…', 584 606 'Loading the sign-in form…' => 'در حال بارگذاری فرم ورود…', 607 'Local data retention, days (7-90)' => 'مدت نگهداری دادههای محلی، به روز (۷ تا ۹۰)', 585 608 'Local data retention, days (7–90)' => 'مدت نگهداری دادههای محلی، به روز (۷ تا ۹۰)', 586 609 'Log only error codes and channel names; OTPs and confidential data are never logged.' => 'فقط کد خطا و نام کانال در گزارش خطا ثبت میشود؛ کد OTP و اطلاعات محرمانه ثبت نمیشوند.', … … 589 612 'Login form' => 'فرم ورود', 590 613 'Login popup' => 'پاپآپ ورود', 614 'Logo URL' => 'نشانی تصویر لوگو', 591 615 'Low credit' => 'اعتبار کم است', 592 616 'Lucky wheel' => 'گردونهٔ شانس', … … 604 628 'Maximum campaign messages per phone / day' => 'حداکثر پیام کمپین برای هر شماره در روز', 605 629 'Maximum coupons for this prize' => 'سقف تعداد این جایزه', 630 'Maximum discount including tax (0 = unlimited)' => 'حداکثر مبلغ تخفیف با احتساب مالیات (۰ = بدون سقف)', 606 631 'Maximum lifetime spend (0 = no maximum)' => 'حداکثر مجموع خرید (۰ یعنی بدون سقف)', 607 632 'Maximum money discount for the single reward' => 'سقف مبلغ تخفیف جایزهٔ ثابت', 608 633 'Maximum money discount per coupon' => 'سقف مبلغ تخفیف هر کد', 634 'Maximum reminders per phone in 24 hours (1-10)' => 'سقف یادآوری هر شماره در ۲۴ ساعت (۱ تا ۱۰)', 609 635 'Maximum reminders per phone in 24 hours (1–10)' => 'سقف یادآوری هر شماره در ۲۴ ساعت (۱ تا ۱۰)', 610 636 'Maximum saving: %1$s %2$s, including tax.' => 'حداکثر مبلغ تخفیف با احتساب مالیات: %1$s %2$s.', … … 695 721 'Off' => 'خاموش', 696 722 'Off by default. When on, the WordPress login page shows the passwordless form with a “Sign in with a password” link, so staff can always use their password.' => 'بهطور پیشفرض خاموش است. در صورت فعالسازی، صفحهٔ ورود وردپرس فرم ورود بدون رمز را همراه با لینک «ورود با رمز عبور» نمایش میدهد تا مدیران همیشه بتوانند با رمز وارد شوند.', 723 'Offer from reminder stage (1-3)' => 'ارائهٔ تخفیف از مرحلهٔ یادآوری (۱ تا ۳)', 697 724 'Offer from reminder stage (1–3)' => 'ارائهٔ تخفیف از مرحلهٔ یادآوری (۱ تا ۳)', 698 725 'One coupon per cart, one use, restricted to the recipient billing phone. Include {coupon_code} in the relevant reminder template. A valid coupon is applied after the customer verifies their recovery code.' => 'برای هر سبد یک کوپن یکبارمصرف، محدود به شمارهٔ صورتحساب گیرنده ایجاد میشود. {coupon_code} را در الگوی یادآوری مربوط قرار دهید. کوپن معتبر پس از تأیید کد بازیابی مشتری اعمال میشود.', … … 734 761 'Order completed' => 'سفارش تکمیلشده', 735 762 'Order invoice' => 'صورتحساب سفارش', 763 'Order messages and connection' => 'پیامهای سفارش و اتصال پنل', 764 'Order not found.' => 'سفارش پیدا نشد.', 736 765 'Order notifications' => 'اعلانهای سفارش', 737 766 'Order number' => 'شمارهٔ سفارش', … … 818 847 'Preparing your result…' => 'نتیجهٔ بازی در حال آماده شدن است…', 819 848 'Preview eligible audience' => 'پیشنمایش مخاطبان واجد شرایط', 849 'Preview order ID (empty = sample)' => 'شناسه سفارش برای پیشنمایش (خالی = نمونه)', 820 850 'Preview saved form' => 'پیشنمایش فرم ذخیرهشده', 851 'Preview saved invoice settings' => 'پیشنمایش فاکتور با تنظیمات ذخیرهشده', 821 852 'Preview the form and choose where it appears' => 'فرم را ببینید و محل نمایش آن را انتخاب کنید', 822 853 'Previous' => 'قبلی', … … 859 890 'Raw OTPs are never stored in the database.' => 'OTP خام هرگز در دیتابیس ذخیره نمیشود.', 860 891 'Receive today’s gift' => 'دریافت هدیهٔ امروز', 892 'Receive verification codes inside Bale.' => 'کد تأیید را در پیامرسان بله دریافت کنید.', 861 893 'Recent customer profiles' => 'پروفایل مشتریان اخیر', 862 894 'Recipient' => 'گیرنده', … … 872 904 'Recovered revenue' => 'درآمد خریدهای بازیابیشده', 873 905 'Recovery code' => 'کد بازیابی', 906 'Recovery code validity, minutes (5-1440)' => 'اعتبار کد بازیابی، به دقیقه (۵ تا ۱۴۴۰)', 874 907 'Recovery code validity, minutes (5–1440)' => 'اعتبار کد بازیابی، به دقیقه (۵ تا ۱۴۴۰)', 875 908 'Recovery discounts' => 'تخفیف بازیابی خرید', 909 'Recovery eligibility after cart activity, days (1-30)' => 'مهلت بازیابی پس از فعالیت سبد، به روز (۱ تا ۳۰)', 876 910 'Recovery eligibility after cart activity, days (1–30)' => 'مهلت بازیابی پس از فعالیت سبد، به روز (۱ تا ۳۰)', 911 'Recovery link lifetime after cart activity, days (1-30)' => 'اعتبار لینک بازیابی پس از فعالیت سبد، به روز (۱ تا ۳۰)', 877 912 'Recovery link lifetime after cart activity, days (1–30)' => 'اعتبار لینک بازیابی پس از فعالیت سبد، به روز (۱ تا ۳۰)', 878 913 'Recovery messages must include both recovery and unsubscribe links.' => 'پیام یادآوری باید هر دو لینک بازیابی و لغو دریافت را داشته باشد.', … … 880 915 'Recovery messages must include the recovery code and unsubscribe link.' => 'پیام یادآوری باید کد بازیابی و لینک لغو دریافت را داشته باشد.', 881 916 'Recovery page URL' => 'نشانی صفحهٔ بازیابی خرید', 917 'Recovery sending starts at hour (0-23)' => 'ساعت شروع ارسال یادآوری (۰ تا ۲۳)', 882 918 'Recovery sending starts at hour (0–23)' => 'ساعت شروع ارسال یادآوری (۰ تا ۲۳)', 919 'Recovery sending stops at hour (1-24)' => 'ساعت پایان ارسال یادآوری (۱ تا ۲۴)', 883 920 'Recovery sending stops at hour (1–24)' => 'ساعت پایان ارسال یادآوری (۱ تا ۲۴)', 884 921 'Recovery · first reminder' => 'بازیابی · یادآوری اول', … … 951 988 'SMS, email and Google login, SMS password reset, cart recovery and customer communication tools for WooCommerce.' => 'ورود با پیامک، ایمیل و گوگل، بازیابی رمز پیامکی، بازیابی سبد و ابزارهای ارتباط با مشتری ووکامرس.', 952 989 'Sample' => 'نمونه', 990 'Sample address' => 'نشانی نمونه', 953 991 'Sample campaign content' => 'متن نمونهٔ کمپین', 992 'Sample customer' => 'مشتری نمونه', 954 993 'Sample preview' => 'پیشنمایش نمونه', 994 'Sample product' => 'کالای نمونه', 955 995 'Save and close' => 'ذخیره و بستن', 956 996 'Save and continue' => 'ذخیره و ادامه', … … 1045 1085 'Show a link to sign in with a password. Password recovery also appears here when SMS password recovery is enabled.' => 'پیوند ورود با رمز عبور را نشان میدهد. اگر بازیابی پیامکی رمز فعال باشد، گزینهٔ بازیابی هم در پنجره نمایش داده میشود.', 1046 1086 'Show above the WooCommerce forms' => 'نمایش بالای فرمهای ووکامرس', 1087 'Show customer note' => 'نمایش یادداشت مشتری', 1047 1088 'Show low-credit warnings to site administrators' => 'هشدار کمبود اعتبار به مدیران سایت نمایش داده شود', 1089 'Show product SKU' => 'نمایش شناسه کالا', 1090 'Show shipping address' => 'نمایش نشانی ارسال', 1048 1091 'Show the Google sign-in button on the login form.' => 'دکمه ورود گوگل در فرم ورود نمایش داده شود.', 1049 1092 'Shown after the customer wins and the coupon has been created. The coupon code is displayed separately below this message.' => 'این پیام پس از برنده شدن مشتری و ایجاد کد تخفیف نمایش داده میشود. خود کد تخفیف جداگانه زیر پیام قرار میگیرد.', … … 1053 1096 'Shows the time, provider, and result of SMS requests for sign-in, two-step verification, and password reset.' => 'زمان، سرویسدهنده و نتیجهٔ ارسال پیامکهای ورود، تأیید دومرحلهای و بازیابی رمز عبور را نشان میدهد.', 1054 1097 'Sign in' => 'ورود', 1098 'Sign in / Account' => 'ورود / حساب کاربری', 1055 1099 'Sign in / Register' => 'ورود / ثبتنام', 1056 1100 'Sign in before verifying your mobile number.' => 'برای تأیید شمارهٔ همراه، ابتدا وارد حساب خود شوید.', … … 1077 1121 'Signing you in…' => 'در حال ورود…', 1078 1122 'Simple' => 'ساده', 1123 'Simple print' => 'ساده و مناسب چاپ', 1079 1124 'Single use' => 'مصرف یکباره', 1080 1125 'Site domain' => 'دامنهٔ سایت', … … 1112 1157 'Store promotion' => 'هدیهٔ فروشگاه', 1113 1158 'Store quiz' => 'مسابقهٔ پرسشوپاسخ', 1159 'Store settings' => 'تنظیمات فروشگاه', 1114 1160 'Store tax / registration ID' => 'شناسهٔ مالیاتی / ثبتی فروشگاه', 1115 1161 'Store tax / registration ID:' => 'شناسهٔ مالیاتی / ثبتی فروشگاه:', … … 1276 1322 'Use the existing shortcode, popup or WooCommerce integration. Changing where the form appears does not change its verification rules. Save appearance changes before previewing.' => 'از کد کوتاه، پاپآپ یا اتصال ووکامرس استفاده کنید. محل نمایش فرم، قواعد تأیید هویت را تغییر نمیدهد. پیش از دیدن پیشنمایش، تغییرات ظاهر را ذخیره کنید.', 1277 1323 'Use the same SMS settings as the sign-in code' => 'استفاده از تنظیمات ارسال پیامک کد ورود', 1324 'Use the sign-in SMS provider' => 'استفاده از پنل پیامکی ورود', 1278 1325 'Use the sign-in template for this verification message' => 'استفاده از الگوی ورود برای این پیام تأیید', 1279 1326 'Used for messages whose delivery method is plain text. Approved-template messages use the panel service line.' => 'این شماره برای پیامهایی استفاده میشود که روش ارسالشان «پیامک متنی» است. پیامهای الگویی از خط خدماتی پنل ارسال میشوند.', … … 1289 1336 'Value to send' => 'مقدار ارسالی', 1290 1337 'Verification code' => 'کد تأیید', 1338 'Verification code sent via Bale.' => 'کد تأیید در پیامرسان بله ارسال شد.', 1291 1339 'Verified' => 'تأییدشده', 1292 1340 'Verify Lookup template name' => 'نام الگوی Verify Lookup', … … 1311 1359 'When enabled by this store, Anar saves checkout/account mobile numbers and cart contents for reminders without a separate checkbox. A notice is shown at cart/checkout; every marketing message includes an unsubscribe link. Optional campaigns keep customer contact details, paid-order/product facts, stock requests, honest purchase feedback, birthday month/day and calendar, referral relationships, game attempts and personal coupon references locally. No birth year is requested. Coupon gifts are single-use and phone-bound; survey gifts do not depend on a positive rating. Provider credentials and plaintext login/reset codes are never written to campaign reports. The selected SMS provider receives recipient numbers and configured message variables. Optional traffic analytics use a first-party random browser identifier lasting up to 30 days, daily keyed hashes and referring hostnames, excluding checkout/account pages and administrator visits; no raw IP or full referrer URL is retained in traffic reports. Configure and disclose the selected modules, provider, purposes and retention period here. WordPress personal-data tools and administrator phone erasure remove local marketing records and revoke unused personal gifts without deleting WooCommerce orders. Minimal suppression hashes may remain to remember stopped messages.' => 'در صورت فعالسازی فروشگاه، انار شمارهٔ همراه حساب یا تسویهحساب و محتوای سبد را بدون تیک جداگانه برای یادآوری ذخیره میکند. اطلاعیه در سبد و تسویهحساب نمایش داده میشود و هر پیام بازاریابی لینک لغو دریافت دارد. کمپینهای اختیاری اطلاعات تماس، سوابق سفارش پرداختشده و کالا، درخواست موجودی، بازخورد خرید، ماه و روز تولد و تقویم، روابط معرفی دوستان، دفعات بازی و ارجاع کوپنهای اختصاصی را محلی نگه میدارند. سال تولد درخواست نمیشود. کوپنهای هدیهٔ تولیدشده یکبارمصرف و محدود به شمارهٔ همراه هستند؛ هدیهٔ نظرسنجی به امتیاز مثبت وابسته نیست. اطلاعات دسترسی سرویسدهنده و کدهای ورود و بازنشانیِ خوانا در گزارش کمپین ذخیره نمیشوند. سرویس پیامک انتخابشده شمارهٔ گیرنده و متغیرهای تنظیمشده را دریافت میکند. آمار اختیاری بازدید از شناسهٔ تصادفی مرورگر همان سایت با عمر حداکثر ۳۰ روز، هش کلیددار روزانه و نام میزبان ارجاعدهنده استفاده میکند؛ صفحات تسویهحساب، حساب کاربری و بازدید مدیران مستثنا هستند. IP خام و نشانی کامل ارجاعدهنده در گزارش بازدید نگهداری نمیشود. ماژولها، سرویسدهنده، هدفها و دورهٔ نگهداری انتخابشده را اینجا اعلام کنید. ابزارهای دادهٔ شخصی وردپرس و حذف بر اساس شماره توسط مدیر، سوابق محلی بازاریابی را پاک و هدیههای اختصاصیِ استفادهنشده را باطل میکنند، بدون حذف سفارش ووکامرس. ممکن است حداقل هش لازم برای بهخاطر سپردن لغو پیام باقی بماند.', 1312 1360 'When no prizes remain' => 'پس از تمام شدن جوایز', 1361 'When purchase reminders are enabled, automatic capture saves your account/checkout phone and cart without a separate checkbox and shows a notice. An optional explicit preference form is also available. We store your mobile number, optional email, consent text and timestamp, cart products, amount, currency and related order ID locally. We send your number and the configured reminder variables (which may include purchase links and order details) to our selected SMS provider. Each reminder includes a link to stop future cart and unpaid-order reminders. Payment notifications are separate service messages. Phone-bound, single-use recovery codes restore products or open WooCommerce payment; they do not log you in. Recovery code hashes, attempts, expiry and consumption timestamps are stored separately from login challenges. Unsubscribe links stop purchase reminders and optional marketing campaigns; service notices are separate. A keyed suppression identifier is retained after erasure. The store configures a 7-90 day retention period and SMS provider. Add the selected provider, its terms and privacy links, your actual retention period and the purposes of your messages to this policy before enabling the modules.' => 'با فعال شدن یادآوری خرید، حالت خودکار شمارهٔ حساب یا تسویهحساب و سبد را بدون تیک جداگانه و با نمایش اطلاعیه ذخیره میکند. حالت اختیاری فرم جداگانه نیز وجود دارد. شمارهٔ همراه، ایمیل اختیاری، متن و زمان انتخاب صریح، کالاهای سبد، مبلغ، ارز و شناسهٔ سفارش مربوط محلی نگهداری میشوند. شماره و متغیرهای پیام، شامل پیوند خرید و اطلاعات سفارش، به سرویسدهندهٔ انتخابشده فرستاده میشوند. هر یادآوری پیوند توقف پیامهای بعدی دارد. اعلانهای پرداخت پیام خدماتی مستقلاند. کد بازیابی یکبارمصرف و محدود به شماره، فقط کالاها یا پرداخت ووکامرس را بازیابی میکند و ورود به حساب نیست. هش کد، تلاشها، انقضا و زمان مصرف از کدهای ورود جدا نگهداری میشوند. لغو دریافت، یادآوری خرید و کمپینهای اختیاری بازاریابی را متوقف میکند؛ پیامهای خدماتی مستقلاند. پس از حذف هویت، یک شناسهٔ کلیددار برای حفظ لغو پیام باقی میماند. فروشگاه سرویسدهنده و دورهٔ نگهداری ۷ تا ۹۰ روز را تعیین میکند. پیش از فعالسازی، نام سرویس، پیوند شرایط و حریم خصوصی آن، مدت نگهداری واقعی و اهداف پیامها را به این سیاست اضافه کنید.', 1313 1362 'When purchase reminders are enabled, automatic capture saves your account/checkout phone and cart without a separate checkbox and shows a notice. An optional explicit preference form is also available. We store your mobile number, optional email, consent text and timestamp, cart products, amount, currency and related order ID locally. We send your number and the configured reminder variables (which may include purchase links and order details) to our selected SMS provider. Each reminder includes a link to stop future cart and unpaid-order reminders. Payment notifications are separate service messages. Phone-bound, single-use recovery codes restore products or open WooCommerce payment; they do not log you in. Recovery code hashes, attempts, expiry and consumption timestamps are stored separately from login challenges. Unsubscribe links stop purchase reminders and optional marketing campaigns; service notices are separate. A keyed suppression identifier is retained after erasure. The store configures a 7–90 day retention period and SMS provider. Add the selected provider, its terms and privacy links, your actual retention period and the purposes of your messages to this policy before enabling the modules.' => 'با فعال شدن یادآوری خرید، حالت خودکار شمارهٔ حساب یا تسویهحساب و سبد را بدون تیک جداگانه و با نمایش اطلاعیه ذخیره میکند. حالت اختیاری فرم جداگانه نیز وجود دارد. شمارهٔ همراه، ایمیل اختیاری، متن و زمان انتخاب صریح، کالاهای سبد، مبلغ، ارز و شناسهٔ سفارش مربوط محلی نگهداری میشوند. شماره و متغیرهای پیام، شامل پیوند خرید و اطلاعات سفارش، به سرویسدهندهٔ انتخابشده فرستاده میشوند. هر یادآوری پیوند توقف پیامهای بعدی دارد. اعلانهای پرداخت پیام خدماتی مستقلاند. کد بازیابی یکبارمصرف و محدود به شماره، فقط کالاها یا پرداخت ووکامرس را بازیابی میکند و ورود به حساب نیست. هش کد، تلاشها، انقضا و زمان مصرف از کدهای ورود جدا نگهداری میشوند. لغو دریافت، یادآوری خرید و کمپینهای اختیاری بازاریابی را متوقف میکند؛ پیامهای خدماتی مستقلاند. پس از حذف هویت، یک شناسهٔ کلیددار برای حفظ لغو پیام باقی میماند. فروشگاه سرویسدهنده و دورهٔ نگهداری ۷ تا ۹۰ روز را تعیین میکند. پیش از فعالسازی، نام سرویس، پیوند شرایط و حریم خصوصی آن، مدت نگهداری واقعی و اهداف پیامها را به این سیاست اضافه کنید.', 1314 1363 'Winning chance and single-reward fallback' => 'احتمال برد و جایزهٔ ثابت', … … 1325 1374 'You cannot manage these campaigns.' => 'اجازهٔ مدیریت این کمپینها را ندارید.', 1326 1375 'You cannot manage these settings.' => 'اجازه مدیریت این تنظیمات را ندارید.', 1376 'You cannot preview invoices.' => 'شما اجازه پیشنمایش فاکتور را ندارید.', 1327 1377 'You have signed in successfully.' => 'با موفقیت وارد شدید.', 1328 1378 'Your account could not be created. Request a new code and try again.' => 'ایجاد حساب انجام نشد. کد جدید بگیرید و دوباره تلاش کنید.', -
anar-toolkit/tags/1.6.0/readme.txt
r3796547 r3809098 1 === Anar Toolkit (انار)– SMS Login, Recovery & Marketing for WooCommerce ===1 === Anar Toolkit – SMS Login, Recovery & Marketing for WooCommerce === 2 2 Contributors: mrnwp 3 3 Tags: sms, woocommerce, abandoned-cart, otp, notifications … … 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 1. 5.97 Stable tag: 1.6.0 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html 10 10 11 انار برای ووکامرس با ورود پیامکی، بازیابی رمز و سبد خرید، اعلان سفارش و کمپین. SMS login, password reset, cart recovery, order alerts and campaigns.11 SMS login, password reset, cart recovery, order alerts and customer campaigns for WooCommerce. 12 12 13 13 == Description == … … 118 118 Customers print/save invoices as PDF from My Account or an expiring scoped link. Use [anar_customer_preferences] for birthday month/day, [anar_referrals] for referrals and [anar_game type="wheel"] for a game. Other types: scratch, boxes, cards, slots, treasure, daily, quiz, memory and milestone. Server-side rules enforce coupon rewards and daily limits; there is no paid entry or cash prize. Persian birthday dates require PHP Intl. 119 119 120 = Elementor widgets and printable invoices = 121 Three optional Elementor widgets reuse Anar's sign-in form, account button and cart recovery form. Elementor is not required for other features. Enable the corresponding Anar capability before using its widget. 122 Choose a simple-print or branded invoice, adjust its accent color, logo URL and footer, and choose whether to show product SKUs, shipping addresses and customer notes. Save changes before opening the invoice preview. An empty preview order ID uses sample data; a real order ID is accessible only to an authorized store manager. 123 Recovery coupons support an optional maximum monetary discount including tax (0 means unlimited). Capped recovery coupons require WooCommerce 8.8 or later. Coupon expiry is measured from issuance and is not renewed by subsequent reminders. 124 120 125 == External services == 126 127 = Bale Safir OTP (optional) = 128 Bale is a verification-code channel, not a plain-text commerce SMS provider. It is used only after the store administrator selects Bale and supplies their Safir client ID and client secret. When a verification code is requested, Anar sends those credentials to https://safir.bale.ai/api/v2/auth/token to obtain an access token. The token is cached temporarily on the WordPress server. Anar sends the recipient's international mobile number and numeric OTP to https://safir.bale.ai/api/v2/send_otp with that bearer token. The user receives the code inside Bale and must have a Bale account. No automatic SMS fallback is performed. Select a separate SMS provider for commerce messages when sign-in uses Bale. 129 Official service: https://safir.bale.ai/ 130 Official documentation: https://docs.bale.ai/ 131 Official terms, including privacy provisions: https://bale.ai/terms 132 121 133 122 134 All integrations use accounts configured by the site administrator. The plugin makes no telemetry, licensing or analytics requests to MRNWP or its author. Provider service fees and contracts are independent of the free plugin. … … 241 253 242 254 == Changelog == 255 256 = 1.6.0 = 257 258 * Move feature switches into Settings and group store recovery, message and discount controls. 259 * Let store messages follow the sign-in provider by default while preserving explicit provider and message bindings. 260 * Add recovery discount ceilings including tax, retaining coupon expiry and single-use restrictions. 261 * Add optional Bale Safir OTP delivery with cached access tokens. 262 * Add Elementor sign-in, account-button and purchase-recovery widgets using existing forms. 263 * Add simple-print and branded invoice templates, display controls and administrator-only sample/order previews. 264 243 265 244 266 = 1.5.9 = -
anar-toolkit/tags/1.6.0/src/Admin/FeaturesPage.php
r3796547 r3809098 41 41 } 42 42 } 43 add_submenu_page( 'anar-login', __( ' Features', 'anar-toolkit' ), __( 'Features', 'anar-toolkit' ), 'manage_options', 'anar-login', array( self::class, 'render' ), 0 );43 add_submenu_page( 'anar-login', __( 'Settings', 'anar-toolkit' ), __( 'Settings', 'anar-toolkit' ), 'manage_options', 'anar-login', array( SettingsPage::class, 'landing' ), 0 ); 44 44 $flags = Features::all(); 45 45 $commerce = new \Anar\Login\Commerce\Admin( new \Anar\Login\Commerce\Settings(), new \Anar\Login\Commerce\Repository(), \Anar\Login\Messaging\ProviderRegistry::shared() ); … … 52 52 add_submenu_page( 'anar-login', self::labels()[ $key ], self::labels()[ $key ], 'manage_options', 'anar-toolkit-' . $key, array( $commerce, 'render' ) ); } 53 53 } 54 add_submenu_page( 'anar-login', __( 'Settings', 'anar-toolkit' ), __( 'Settings', 'anar-toolkit' ), 'manage_options', 'anar-login-settings', array( new SettingsPage( new Settings(), \Anar\Login\Messaging\ProviderRegistry::shared() ), 'render' ) ); 54 $settings_hook = add_submenu_page( null, __( 'Settings', 'anar-toolkit' ), __( 'Settings', 'anar-toolkit' ), 'manage_options', 'anar-login-settings', array( new SettingsPage( new Settings(), \Anar\Login\Messaging\ProviderRegistry::shared() ), 'render' ) ); 55 add_action( 56 'load-' . $settings_hook, 57 static function () { 58 // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited -- Hidden compatibility page still needs its admin heading. 59 $GLOBALS['title'] = __( 'Settings', 'anar-toolkit' ); 60 } 61 ); 55 62 add_submenu_page( $flags['balance'] ? 'anar-login' : null, __( 'SMS credit', 'anar-toolkit' ), __( 'SMS credit', 'anar-toolkit' ), 'manage_options', 'anar-toolkit-balance', array( BalancePage::class, 'render' ) ); 56 63 // Keep older bookmarked URLs working without a second copy of the catalog in the menu. … … 93 100 } 94 101 95 public static function render( ) {102 public static function render( $embedded = false ) { 96 103 if ( ! current_user_can( 'manage_options' ) ) { 97 104 return; … … 104 111 $groups = $other_first ? array( false => __( 'Other features', 'anar-toolkit' ), true => __( 'Active features', 'anar-toolkit' ) ) : array( true => __( 'Active features', 'anar-toolkit' ), false => __( 'Other features', 'anar-toolkit' ) ); 105 112 ?> 106 <div class=" wrap anar-features" dir="<?php echo is_rtl() ? 'rtl' : 'ltr'; ?>">113 <div class="<?php echo $embedded ? 'anar-features' : 'wrap anar-features'; ?>" dir="<?php echo is_rtl() ? 'rtl' : 'ltr'; ?>"> 107 114 <header class="anar-features-banner"> 108 115 <img src="<?php echo esc_url( ANAR_LOGIN_URL . 'assets/images/anar-logo.png?ver=' . ANAR_LOGIN_VERSION ); ?>" alt="" width="64" height="64"> 109 116 <div> 110 <h1><?php esc_html_e( 'Features', 'anar-toolkit' ); ?></h1> 117 <?php 118 if ( $embedded ) : 119 ?> 120 <h2><?php esc_html_e( 'Features', 'anar-toolkit' ); ?></h2> 121 <?php 122 else : 123 ?> 124 <h1><?php esc_html_e( 'Features', 'anar-toolkit' ); ?></h1><?php endif; ?> 111 125 <p><?php esc_html_e( 'Enable the features your store needs.', 'anar-toolkit' ); ?></p> 112 126 </div> 113 127 </header> 114 <hr class="wp-header-end"> 115 <?php StatusPanel::credit(); ?> 128 <!----> 129 <?php 130 if ( ! $embedded ) : 131 ?> 132 <hr class="wp-header-end"> 133 <?php 134 StatusPanel::credit(); 135 endif; 136 ?> 116 137 <form method="post" action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>"> 117 138 <?php wp_nonce_field( 'anar_features' ); ?> … … 194 215 $balance['enabled'] = empty( $selected['balance'] ) ? 0 : 1; 195 216 update_option( \Anar\Login\Balance\Monitor::OPTION, $balance, false ); 196 wp_safe_redirect( admin_url( 'admin.php?page=anar-login &saved=1' ) );217 wp_safe_redirect( admin_url( 'admin.php?page=anar-login-settings§ion=features&saved=1' ) ); 197 218 exit; 198 219 } -
anar-toolkit/tags/1.6.0/src/Admin/SettingsPage.php
r3795335 r3809098 51 51 * @return void 52 52 */ 53 public static function landing() { 54 ( new self( new Settings(), ProviderRegistry::shared() ) )->render(); 55 } 56 53 57 public function menu() { 54 58 add_menu_page( … … 57 61 'manage_options', 58 62 'anar-login', 59 array( FeaturesPage::class, 'render' ),63 array( self::class, 'landing' ), 60 64 ANAR_LOGIN_URL . 'assets/images/anar-menu-icon.png?ver=' . ANAR_LOGIN_VERSION, 61 65 58 … … 97 101 */ 98 102 public function assets( $hook ) { 99 if ( false === strpos( $hook, 'anar-login -settings' ) ) {103 if ( false === strpos( $hook, 'anar-login' ) ) { 100 104 return; 101 105 } … … 525 529 </footer> 526 530 </form> 531 <section class="anar-tab" data-panel="features" hidden><?php FeaturesPage::render( true ); ?></section> 527 532 <section class="anar-tab" data-panel="messages" hidden> 528 533 <?php $this->section_header( __( 'Messages and templates', 'anar-toolkit' ), __( 'Find a message and edit it here. The same editor is available in each feature.', 'anar-toolkit' ), '✉' ); ?> … … 557 562 ?> 558 563 <div class="anar-admin__nav-label"><?php esc_html_e( 'Shared settings', 'anar-toolkit' ); ?></div> 564 <button type="button" data-tab="features"><?php esc_html_e( 'Features', 'anar-toolkit' ); ?></button> 565 <a class="button" href="<?php echo esc_url( admin_url( 'admin.php?page=anar-toolkit-commerce&tab=settings' ) ); ?>"><?php esc_html_e( 'Store settings', 'anar-toolkit' ); ?></a> 559 566 <button type="button" data-tab="messages"><?php esc_html_e( 'Messages and templates', 'anar-toolkit' ); ?></button> 560 567 <button type="button" data-tab="sending"><?php esc_html_e( 'Campaign sending rules', 'anar-toolkit' ); ?></button> -
anar-toolkit/tags/1.6.0/src/Auth/OtpService.php
r3792977 r3809098 306 306 'message' => 'email' === $channel 307 307 ? __( 'If sign-in is available, a code has been sent to your email.', 'anar-toolkit' ) 308 : __( 'If sign-in is available, a code has been sent to your mobile.', 'anar-toolkit'),308 : ( 'bale' === \Anar\Login\Messaging\MessageSettings::get( 'login_otp' )['provider'] ? __( 'Verification code sent via Bale.', 'anar-toolkit' ) : __( 'If sign-in is available, a code has been sent to your mobile.', 'anar-toolkit' ) ), 309 309 'channel' => $channel, 310 310 'resend_after' => absint( $this->settings->get( 'resend_delay', 60 ) ), -
anar-toolkit/tags/1.6.0/src/Commerce/Admin.php
r3791206 r3809098 42 42 public function assets( $hook ) { 43 43 if ( false !== strpos( $hook, 'anar-toolkit-' ) ) { 44 wp_enqueue_script( 'anar-invoice-preview', ANAR_LOGIN_URL . 'assets/js/invoice-preview.js', array(), ANAR_LOGIN_VERSION, true ); 44 45 wp_enqueue_style( 'anar-toolkit-commerce', ANAR_LOGIN_URL . 'assets/css/commerce-suite.css', array(), ANAR_LOGIN_VERSION ); 45 46 } … … 112 113 \Anar\Login\Admin\Help::section( $flags['recovery'] ? 'recovery' : 'orders' ); 113 114 ?> 114 <form method="post" action="options.php" class="anar-settings-form"><input type="hidden" name="<?php echo esc_attr( Settings::OPTION ); ?>[_partial]" value="1"><section class="anar-suite-panel" id="settings" data-suite-panel="settings" <?php echo 'settings' === $tab ? '' : 'hidden'; ?>><div class="anar-suite-toolbar"><h2><?php esc_html_e( ' Automationsettings', 'anar-toolkit' ); ?></h2></div><div class="anar-settings-grid">115 <form method="post" action="options.php" class="anar-settings-form"><input type="hidden" name="<?php echo esc_attr( Settings::OPTION ); ?>[_partial]" value="1"><section class="anar-suite-panel" id="settings" data-suite-panel="settings" <?php echo 'settings' === $tab ? '' : 'hidden'; ?>><div class="anar-suite-toolbar"><h2><?php esc_html_e( 'Store settings', 'anar-toolkit' ); ?></h2></div><div class="anar-settings-grid"> 115 116 <?php settings_fields( 'anar_toolkit_commerce' ); ?> 116 <div class="anar-commerce-card">117 <h2><?php esc_html_e( 'Modules', 'anar-toolkit' ); ?></h2>117 <nav class="anar-store-nav" aria-label="<?php esc_attr_e( 'Store settings', 'anar-toolkit' ); ?>"><a href="#anar-store-connection"><?php esc_html_e( 'Connection and orders', 'anar-toolkit' ); ?></a><a href="#anar-store-recovery"><?php esc_html_e( 'Cart recovery', 'anar-toolkit' ); ?></a><a href="#anar-store-discounts"><?php esc_html_e( 'Recovery discounts', 'anar-toolkit' ); ?></a></nav> 118 <div class="anar-commerce-card" id="anar-store-connection"><h2><?php esc_html_e( 'Order messages and connection', 'anar-toolkit' ); ?></h2> 118 119 <?php 119 120 foreach ( array( 'paid_customer' => $labels['paid_customer'], 'paid_admin' => $labels['paid_admin'], 'recovery' => __( 'Cart and unpaid-order reminders', 'anar-toolkit' ), 'new_admin' => $labels['new_admin'], 'failed_admin' => $labels['failed_admin'], 'shipment_customer' => $labels['shipment_customer'], 'status_processing' => $labels['status_processing'], 'status_completed' => $labels['status_completed'], 'status_on-hold' => $labels['status_on-hold'], 'status_cancelled' => $labels['status_cancelled'], 'status_refunded' => $labels['status_refunded'] ) as $key => $label ) : … … 130 131 <p><?php esc_html_e( 'Payment messages are triggered by WooCommerce payment completion, not by viewing the thank-you page. Merely creating an order or choosing cash on delivery does not trigger them.', 'anar-toolkit' ); ?></p> 131 132 <p><label for="anar-commerce-provider"><strong><?php esc_html_e( 'Commerce SMS provider', 'anar-toolkit' ); ?></strong></label><br><select id="anar-commerce-provider" name="<?php echo esc_attr( Settings::OPTION ); ?>[provider]"> 133 <option value="" <?php selected( $value['provider'], '' ); ?>><?php esc_html_e( 'Use the sign-in SMS provider', 'anar-toolkit' ); ?></option> 132 134 <?php foreach ( $this->providers->all() as $key => $provider ) : ?> 133 135 <option value="<?php echo esc_attr( $key ); ?>" <?php selected( $value['provider'], $key ); ?>><?php echo esc_html( $provider->title() ); ?></option> … … 139 141 if ( $flags['recovery'] ) : 140 142 ?> 141 <div class="anar-commerce-card"> 142 <h2><?php esc_html_e( 'Reminder timing and privacy', 'anar-toolkit' ); ?></h2> 143 <div class="anar-commerce-card" id="anar-store-recovery"><h2><?php esc_html_e( 'Cart recovery and sending limits', 'anar-toolkit' ); ?></h2> 143 144 <p><label for="anar-recovery-page"><strong><?php esc_html_e( 'Page for entering recovery codes', 'anar-toolkit' ); ?></strong></label><br> 144 145 <?php … … 150 151 <p><?php esc_html_e( 'Stage times are minutes after the last saved cart change. A value of 0 disables that stage. Payment, cancellation, expiry or opting out stops future reminders. Guest carts without a saved number cannot receive SMS.', 'anar-toolkit' ); ?></p> 151 152 <?php 152 $this->input( 'start_hour', __( 'Recovery sending starts at hour (0 –23)', 'anar-toolkit' ), $value['start_hour'], 'number' );153 $this->input( 'end_hour', __( 'Recovery sending stops at hour (1 –24)', 'anar-toolkit' ), $value['end_hour'], 'number' );154 $this->input( 'daily_limit', __( 'Maximum reminders per phone in 24 hours (1 –10)', 'anar-toolkit' ), $value['daily_limit'], 'number' );155 $this->input( 'link_days', __( 'Recovery eligibility after cart activity, days (1 –30)', 'anar-toolkit' ), $value['link_days'], 'number' );156 $this->input( 'code_minutes', __( 'Recovery code validity, minutes (5 –1440)', 'anar-toolkit' ), $value['code_minutes'], 'number' );157 $this->input( 'retention', __( 'Local data retention, days (7 –90)', 'anar-toolkit' ), $value['retention'], 'number' );153 $this->input( 'start_hour', __( 'Recovery sending starts at hour (0-23)', 'anar-toolkit' ), $value['start_hour'], 'number' ); 154 $this->input( 'end_hour', __( 'Recovery sending stops at hour (1-24)', 'anar-toolkit' ), $value['end_hour'], 'number' ); 155 $this->input( 'daily_limit', __( 'Maximum reminders per phone in 24 hours (1-10)', 'anar-toolkit' ), $value['daily_limit'], 'number' ); 156 $this->input( 'link_days', __( 'Recovery eligibility after cart activity, days (1-30)', 'anar-toolkit' ), $value['link_days'], 'number' ); 157 $this->input( 'code_minutes', __( 'Recovery code validity, minutes (5-1440)', 'anar-toolkit' ), $value['code_minutes'], 'number' ); 158 $this->input( 'retention', __( 'Local data retention, days (7-90)', 'anar-toolkit' ), $value['retention'], 'number' ); 158 159 foreach ( $value['events'] as $key => $event ) { 159 160 if ( ! isset( $event['minutes'] ) ) { … … 171 172 </div> 172 173 173 <div class="anar-commerce-card" ><h2><?php esc_html_e( 'Recovery discounts', 'anar-toolkit' ); ?></h2>174 <div class="anar-commerce-card" id="anar-store-discounts"><h2><?php esc_html_e( 'Recovery discounts', 'anar-toolkit' ); ?></h2> 174 175 <?php 175 176 foreach ( array( 'coupon_enabled' => __( 'Generate recovery discounts', 'anar-toolkit' ), 'coupon_individual' => __( 'Do not combine with other coupons', 'anar-toolkit' ), 'coupon_exclude_sale' => __( 'Exclude sale products', 'anar-toolkit' ) ) as $key => $label ) : … … 179 180 <?php 180 181 $this->input( 'coupon_amount', __( 'Discount amount', 'anar-toolkit' ), $value['coupon_amount'], 'number' ); 182 $this->input( 'coupon_maximum', __( 'Maximum discount including tax (0 = unlimited)', 'anar-toolkit' ), $value['coupon_maximum'], 'number' ); 181 183 $this->input( 'coupon_minimum', __( 'Minimum cart amount', 'anar-toolkit' ), $value['coupon_minimum'], 'number' ); 182 $this->input( 'coupon_stage', __( 'Offer from reminder stage (1 –3)', 'anar-toolkit' ), $value['coupon_stage'], 'number' );184 $this->input( 'coupon_stage', __( 'Offer from reminder stage (1-3)', 'anar-toolkit' ), $value['coupon_stage'], 'number' ); 183 185 $this->input( 'coupon_hours', __( 'Discount validity in hours', 'anar-toolkit' ), $value['coupon_hours'], 'number' ); 184 186 ?> … … 194 196 \Anar\Login\Admin\Help::section( 'privacy' ); 195 197 ?> 196 <section class="anar-suite-panel" data-suite-panel="privacy" id="privacy"><div class="anar-commerce-card"> 197 <h2><?php esc_html_e( 'Personal data', 'anar-toolkit' ); ?></h2> 198 <section class="anar-suite-panel" data-suite-panel="privacy" id="privacy"><div class="anar-commerce-card"><h2><?php esc_html_e( 'Personal data', 'anar-toolkit' ); ?></h2> 198 199 <p><?php esc_html_e( 'WordPress export and erasure tools can locate reminders by the optional saved email. For a phone-only request, verify the requester first and remove that number here. This removes local reminder data and queue entries, not WooCommerce orders or records already held by the SMS provider.', 'anar-toolkit' ); ?></p> 199 200 <form method="post" action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>"> -
anar-toolkit/tags/1.6.0/src/Commerce/Coupons.php
r3788438 r3809098 49 49 $coupon->set_usage_limit_per_user( 1 ); 50 50 $coupon->set_date_expires( min( time() + $config['coupon_hours'] * HOUR_IN_SECONDS, $cart->updated_at + $config['link_days'] * DAY_IN_SECONDS ) ); 51 if ( (float) $config['coupon_maximum'] > 0 ) { 52 $coupon->update_meta_data( '_anar_recovery_money_cap', $config['coupon_maximum'] ); 53 $coupon->update_meta_data( '_anar_recovery_kind', $config['coupon_type'] ); 54 $coupon->update_meta_data( '_anar_recovery_value', $config['coupon_amount'] ); 55 $coupon->set_discount_type( 'anar_recovery_capped' ); 56 $coupon->set_amount( 0 ); 57 } 51 58 $coupon->set_description( __( 'Anar purchase recovery discount', 'anar-toolkit' ) ); 52 59 $coupon->update_meta_data( '_anar_cart_id', (int) $cart->id ); -
anar-toolkit/tags/1.6.0/src/Commerce/Module.php
r3788438 r3809098 57 57 $page = get_queried_object(); 58 58 $shortcode = $page instanceof \WP_Post && ( has_shortcode( $page->post_content, 'anar_recover_cart' ) || has_shortcode( $page->post_content, 'anar_cart_reminders' ) ); 59 $shortcode = (bool) apply_filters( 'anar_toolkit_recovery_page_has_form', $shortcode, $page ); 59 60 if ( $shortcode || is_cart() || is_checkout() || ( $this->settings->get( 'recovery_page_id' ) && is_page( (int) $this->settings->get( 'recovery_page_id' ) ) ) ) { 60 61 if ( ! defined( 'DONOTCACHEPAGE' ) ) { -
anar-toolkit/tags/1.6.0/src/Commerce/Settings.php
r3788438 r3809098 48 48 'coupon_amount' => '10', 49 49 'coupon_minimum' => '0', 50 'coupon_maximum' => '0', 50 51 'coupon_stage' => 2, 51 52 'coupon_hours' => 48, … … 61 62 'status_cancelled' => 0, 62 63 'status_refunded' => 0, 63 'provider' => ' kavenegar',64 'provider' => '', 64 65 'admin_phones' => '', 65 66 'start_hour' => 9, … … 95 96 } 96 97 98 public function provider() { 99 return $this->get( 'provider' ) ?: \Anar\Login\Messaging\MessageSettings::get( 'login_otp' )['provider']; 100 } 101 97 102 public function enabled() { 98 103 foreach ( array_merge( array( 'recovery' ), array_keys( $this->defaults()['events'] ) ) as $key ) { … … 114 119 $output[ $key ] = empty( $input[ $key ] ) ? 0 : 1; 115 120 } 116 $output['provider'] = sanitize_key( $input['provider'] ?? ' kavenegar' );121 $output['provider'] = sanitize_key( $input['provider'] ?? '' ); 117 122 $output['capture_mode'] = 'explicit' === ( $input['capture_mode'] ?? '' ) ? 'explicit' : 'automatic'; 118 123 $output['coupon_type'] = 'fixed_cart' === ( $input['coupon_type'] ?? '' ) ? 'fixed_cart' : 'percent'; 119 foreach ( array( 'coupon_amount', 'coupon_minimum' ) as $key ) {124 foreach ( array( 'coupon_amount', 'coupon_minimum', 'coupon_maximum' ) as $key ) { 120 125 $raw = Identity::latin_digits( (string) ( $input[ $key ] ?? $output[ $key ] ) ); 121 126 $output[ $key ] = (string) round( max( 0, min( 1000000000, (float) $raw ) ), 2 ); -
anar-toolkit/tags/1.6.0/src/Marketing/Admin.php
r3791206 r3809098 197 197 $this->field( $key, $label, $config[ $key ], 'number' ); } 198 198 if ( 'invoice' === $module ) { 199 \Anar\Login\Admin\InvoicePreview::controls( $config ); 199 200 foreach ( array( 'store_name' => __( 'Store display name', 'anar-toolkit' ), 'store_address' => __( 'Store address', 'anar-toolkit' ), 'store_tax_id' => __( 'Store tax / registration ID', 'anar-toolkit' ), 'invoice_prefix' => __( 'Invoice number prefix', 'anar-toolkit' ) ) as $key => $label ) { 200 201 $this->field( $key, $label, $config[ $key ] ); } -
anar-toolkit/tags/1.6.0/src/Marketing/Invoices.php
r3788438 r3809098 56 56 header( 'X-Robots-Tag: noindex, nofollow' ); 57 57 header( 'Content-Type: text/html; charset=utf-8' ); 58 self::document( $order, $config ); 59 exit; 60 } 61 62 public static function document( $order, $config ) { 58 63 ?> 59 <!doctype html><html <?php language_attributes(); ?>><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title><?php echo esc_html( $config['invoice_prefix'] . $order->get_order_number() ); ?></title><style>body{margin:0;background:#f4f1f5;color:#29232f;font:14px/1.9 Tahoma,Arial,sans-serif}main{max-width:850px;margin:40px auto;background:#fff;border:1px solid #e9e0ea;padding:46px;border-radius:18px}header{display:flex;justify-content:space-between;gap:24px;border-bottom:3px solid #a72c52;padding-bottom:24px}h1{font-size:24px;margin:0;color:#9b294e}h2{font-size:16px;margin-top:0}.addresses{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin:32px 0;color:#786d80}table{width:100%;border-collapse:collapse;margin:26px 0}th,td{padding:13px;text-align:start;border-bottom:1px solid #eee8f0}th{font-size:12px;color:#95849f;background:#faf7fb}.totals{max-width:360px;margin-inline-start:auto}.total{display:flex;justify-content:space-between;padding:8px 0}.grand{font-weight:700;color:#9b294e;border-top:2px solid #e8d9e3;padding-top:16px}footer{font-size:11px;color:#9c8da6;border-top:1px solid #e9e0ed;padding-top:18px;margin-top:30px}button{display:block;margin:20px auto;background:#a72c52;color:#fff;border:0;border-radius:10px;padding:12px 26px;cursor:pointer}small{display:block;color:#96879d}address{font-style:normal}@media(max-width:600px){main{margin:12px;padding:20px}.addresses{grid-template-columns:1fr}table{font-size:11px}th,td{padding:8px}header{flex-direction:column}}@media print{body{background:#fff}main{margin:0;padding:0;border:0;max-width:none}button{display:none}@page{size:A4;margin:18mm}}</style></head><body><main> 60 <header><div><h1><?php echo esc_html( $config['store_name'] ?: get_bloginfo( 'name' ) ); ?></h1><small><?php echo esc_html( $config['store_address'] ); ?></small> 64 <!doctype html><html <?php language_attributes(); ?>><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title><?php echo esc_html( $config['invoice_prefix'] . $order->get_order_number() ); ?></title><style>body{margin:0;background:#f4f1f5;color:#29232f;font:14px/1.9 Tahoma,Arial,sans-serif}main{max-width:850px;margin:40px auto;background:#fff;border:1px solid #e9e0ea;padding:46px;border-radius:18px}header{display:flex;justify-content:space-between;gap:24px;border-bottom:3px solid #a72c52;padding-bottom:24px}h1{font-size:24px;margin:0;color:#9b294e}h2{font-size:16px;margin-top:0}.addresses{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin:32px 0;color:#786d80}table{width:100%;border-collapse:collapse;margin:26px 0}th,td{padding:13px;text-align:start;border-bottom:1px solid #eee8f0}th{font-size:12px;color:#95849f;background:#faf7fb}.totals{max-width:360px;margin-inline-start:auto}.total{display:flex;justify-content:space-between;padding:8px 0}.grand{font-weight:700;color:#9b294e;border-top:2px solid #e8d9e3;padding-top:16px}footer{font-size:11px;color:#9c8da6;border-top:1px solid #e9e0ed;padding-top:18px;margin-top:30px}button{display:block;margin:20px auto;background:#a72c52;color:#fff;border:0;border-radius:10px;padding:12px 26px;cursor:pointer}small{display:block;color:#96879d}address{font-style:normal}@media(max-width:600px){main{margin:12px;padding:20px}.addresses{grid-template-columns:1fr}table{font-size:11px}th,td{padding:8px}header{flex-direction:column}}@media print{body{background:#fff}main{margin:0;padding:0;border:0;max-width:none}button{display:none}@page{size:A4;margin:18mm}}</style><style> 65 :root{--invoice-accent:<?php echo esc_html( sanitize_hex_color( $config['invoice_color'] ) ?: '#a72c52' ); ?>} 66 h1,.grand{color:var(--invoice-accent)}header{border-color:var(--invoice-accent)}button{background:var(--invoice-accent)} 67 .invoice-logo{max-width:150px;max-height:75px;object-fit:contain} 68 <?php 69 if ( 'simple' === $config['invoice_template'] ) : 70 ?> 71 body{background:#fff;color:#111}main{border:0;border-radius:0}h1,.grand{color:#111}header{border-color:#111}th{background:#fff;color:#111}<?php endif; ?> 72 </style></head><body><main> 73 <header><div> 74 <?php 75 if ( $config['invoice_logo'] ) : 76 ?> 77 <img class="invoice-logo" src="<?php echo esc_url( $config['invoice_logo'] ); ?>" alt="<?php echo esc_attr( $config['store_name'] ); ?>"><?php endif; ?><h1><?php echo esc_html( $config['store_name'] ?: get_bloginfo( 'name' ) ); ?></h1><small><?php echo esc_html( $config['store_address'] ); ?></small> 61 78 <?php 62 79 if ( $config['store_tax_id'] ) : 63 80 ?> 64 81 <small><?php esc_html_e( 'Store tax / registration ID:', 'anar-toolkit' ); ?> <?php echo esc_html( $config['store_tax_id'] ); ?></small><?php endif; ?></div><div><h2><?php esc_html_e( 'Order invoice', 'anar-toolkit' ); ?> <span dir="ltr"><?php echo esc_html( $config['invoice_prefix'] . $order->get_order_number() ); ?></span></h2><small><?php echo esc_html( $order->get_date_created() ? wc_format_datetime( $order->get_date_created() ) : '' ); ?></small><small><?php echo esc_html( wc_get_order_status_name( $order->get_status() ) ); ?></small></div></header> 65 <div class="addresses"><div><h2><?php esc_html_e( 'Bill to', 'anar-toolkit' ); ?></h2><address><?php echo wp_kses_post( $order->get_formatted_billing_address() ); ?></address><small dir="ltr"><?php echo esc_html( $order->get_billing_phone() ); ?></small></div><div><h2><?php esc_html_e( 'Ship to', 'anar-toolkit' ); ?></h2><address><?php echo wp_kses_post( $order->get_formatted_shipping_address() ?: $order->get_formatted_billing_address() ); ?></address><small><?php echo esc_html( $order->get_payment_method_title() ); ?></small></div></div> 82 <div class="addresses"><div><h2><?php esc_html_e( 'Bill to', 'anar-toolkit' ); ?></h2><address><?php echo wp_kses_post( $order->get_formatted_billing_address() ); ?></address><small dir="ltr"><?php echo esc_html( $order->get_billing_phone() ); ?></small></div> 83 <?php 84 if ( $config['invoice_show_shipping'] ) : 85 ?> 86 <div><h2><?php esc_html_e( 'Ship to', 'anar-toolkit' ); ?></h2><address><?php echo wp_kses_post( $order->get_formatted_shipping_address() ?: $order->get_formatted_billing_address() ); ?></address><small><?php echo esc_html( $order->get_payment_method_title() ); ?></small></div><?php endif; ?></div> 66 87 <table><thead><tr><th><?php esc_html_e( 'Item', 'anar-toolkit' ); ?></th><th><?php esc_html_e( 'Quantity', 'anar-toolkit' ); ?></th><th><?php esc_html_e( 'Amount', 'anar-toolkit' ); ?></th></tr></thead><tbody> 67 88 <?php … … 70 91 <tr><td><?php echo esc_html( $item->get_name() ); ?> 71 92 <?php 72 if ( $ item->get_product() ) :93 if ( $config['invoice_show_sku'] && $item->get_product() ) : 73 94 ?> 74 95 <small><?php echo esc_html( $item->get_product()->get_sku() ); ?></small><?php endif; ?></td><td><?php echo esc_html( $item->get_quantity() ); ?></td><td><?php echo wp_kses_post( wc_price( $item->get_total(), array( 'currency' => $order->get_currency() ) ) ); ?></td></tr><?php endforeach; ?></tbody></table><div class="totals"> … … 76 97 foreach ( $order->get_order_item_totals() as $key => $total ) : 77 98 ?> 78 <div class="total <?php echo 'order_total' === $key ? 'grand' : ''; ?>"><span><?php echo esc_html( $total['label'] ); ?></span><span><?php echo wp_kses_post( $total['value'] ); ?></span></div><?php endforeach; ?></div> <footer><?php esc_html_e( 'This document reflects the current order and payment status. Use your browser print dialog to print it or save it as PDF.', 'anar-toolkit' ); ?></footer></main><button type="button" onclick="window.print()"><?php esc_html_e( 'Print / save as PDF', 'anar-toolkit' ); ?></button></body></html>99 <div class="total <?php echo 'order_total' === $key ? 'grand' : ''; ?>"><span><?php echo esc_html( $total['label'] ); ?></span><span><?php echo wp_kses_post( $total['value'] ); ?></span></div><?php endforeach; ?></div> 79 100 <?php 80 exit; 101 if ( $config['invoice_show_note'] && $order->get_customer_note() ) : 102 ?> 103 <p><?php echo esc_html( $order->get_customer_note() ); ?></p><?php endif; ?><footer><p><?php echo esc_html( $config['invoice_footer'] ); ?></p><?php esc_html_e( 'This document reflects the current order and payment status. Use your browser print dialog to print it or save it as PDF.', 'anar-toolkit' ); ?></footer></main><button type="button" onclick="window.print()"><?php esc_html_e( 'Print / save as PDF', 'anar-toolkit' ); ?></button></body></html> 104 <?php 81 105 } 82 106 } -
anar-toolkit/tags/1.6.0/src/Marketing/Settings.php
r3791013 r3809098 24 24 $rules[ $key ] = array( 'enabled' => 'invoice' === $key ? 0 : 1, 'days' => $days, 'message' => __( '{site}: Hello {name}. {message} {product_url} {coupon_code} {action_url} Stop messages: {unsubscribe_url}', 'anar-toolkit' ), 'template' => '', 'params' => '', 'discount_type' => 'none', 'discount_amount' => '0', 'discount_hours' => 72, 'static_coupon' => '' ); 25 25 } 26 return array_merge( GameCampaign::defaults(), array( 'modules' => array_fill_keys( array_keys( self::modules() ), 0 ), 'provider' => '', 'daily_limit' => 3, 'gap_hours' => 24, 'vip_amount' => '10000000', 'minimum_orders' => 1, 'minimum_spent' => '0', 'maximum_spent' => '0', 'products' => '', 'exclude_products' => '', 'categories' => '', 'prediction_mode' => 'hybrid', 'prediction_minimum' => 3, 'prediction_confidence' => 60, 'retention' => 90, 'survey_reviews' => 0, 'store_name' => '', 'store_address' => '', 'store_tax_id' => '', 'invoice_prefix' => 'INV-', ' game_texts' => array(), 'games_limit' => 1, 'game_reward_amount' => '5', 'game_reward_type' => 'percent', 'game_reward_chance' => 25, 'game_quiz_question' => '', 'game_quiz_options' => '', 'game_quiz_answer' => 1, 'game_milestone_orders' => 3, 'referral_wait_days' => 7, 'referral_amount' => '5', 'referral_minimum' => '0', 'rules' => $rules ) );26 return array_merge( GameCampaign::defaults(), array( 'modules' => array_fill_keys( array_keys( self::modules() ), 0 ), 'provider' => '', 'daily_limit' => 3, 'gap_hours' => 24, 'vip_amount' => '10000000', 'minimum_orders' => 1, 'minimum_spent' => '0', 'maximum_spent' => '0', 'products' => '', 'exclude_products' => '', 'categories' => '', 'prediction_mode' => 'hybrid', 'prediction_minimum' => 3, 'prediction_confidence' => 60, 'retention' => 90, 'survey_reviews' => 0, 'store_name' => '', 'store_address' => '', 'store_tax_id' => '', 'invoice_prefix' => 'INV-', 'invoice_template' => 'branded', 'invoice_color' => '#a72c52', 'invoice_logo' => '', 'invoice_footer' => '', 'invoice_show_sku' => 1, 'invoice_show_shipping' => 1, 'invoice_show_note' => 0, 'game_texts' => array(), 'games_limit' => 1, 'game_reward_amount' => '5', 'game_reward_type' => 'percent', 'game_reward_chance' => 25, 'game_quiz_question' => '', 'game_quiz_options' => '', 'game_quiz_answer' => 1, 'game_milestone_orders' => 3, 'referral_wait_days' => 7, 'referral_amount' => '5', 'referral_minimum' => '0', 'rules' => $rules ) ); 27 27 } 28 28 … … 69 69 $out[ $key ] = sanitize_textarea_field( is_scalar( $raw[ $key ] ?? '' ) ? $raw[ $key ] ?? '' : '' ); } 70 70 $out['provider'] = sanitize_key( $out['provider'] ); 71 $out['invoice_template'] = 'simple' === ( $raw['invoice_template'] ?? '' ) ? 'simple' : 'branded'; 72 $out['invoice_color'] = sanitize_hex_color( $raw['invoice_color'] ?? '' ) ?: '#a72c52'; 73 $out['invoice_logo'] = esc_url_raw( $raw['invoice_logo'] ?? '' ); 74 $out['invoice_footer'] = sanitize_textarea_field( $raw['invoice_footer'] ?? '' ); 75 foreach ( array( 'invoice_show_sku', 'invoice_show_shipping', 'invoice_show_note' ) as $key ) { 76 $out[ $key ] = empty( $raw[ $key ] ) ? 0 : 1; } 77 71 78 $out['game_texts'] = array(); 72 79 foreach ( array( 'wheel', 'scratch', 'boxes', 'cards', 'slots', 'treasure', 'daily', 'quiz', 'memory', 'milestone' ) as $type ) { -
anar-toolkit/tags/1.6.0/src/Messaging/MessageCatalog.php
r3795298 r3809098 74 74 $name = 'kavenegar' === $provider ? 'token' : ( ( $config['code_parameter'] ?? '' ) ?: 'code' ); 75 75 $text = 'custom' === $provider || ( 'melipayamak' === $provider && empty( $config['template_id'] ) && ! empty( $config['from'] ) ); 76 return array( 'provider' => $provider, 'mode' => $text ? 'text' : 'template', 'template' => $config['template_id'] ?? '', 'params' => $name . '={code}', 'message' => $login->get( 'sms_message' ), 'inherit' => 'login_otp' !== $id );76 return array( 'provider' => $provider, 'mode' => $text ? 'text' : 'template', 'template' => 'bale' === $provider ? 'otp' : ( $config['template_id'] ?? '' ), 'params' => $name . '={code}', 'message' => $login->get( 'sms_message' ), 'inherit' => 'login_otp' !== $id ); 77 77 } 78 78 if ( 'commerce' === $item['source'] ) { … … 80 80 $key = 'recovery_request' === $id ? 'recovery_1' : $item['key']; 81 81 $event = $settings['events'][ $key ]; 82 $provider = $settings['provider'];82 $provider = ( new CommerceSettings() )->provider(); 83 83 } else { 84 84 $settings = ( new MarketingSettings() )->all(); 85 85 $event = $settings['rules'][ $item['key'] ]; 86 $provider = $settings['provider'] ?: ( new CommerceSettings() )-> get( 'provider');86 $provider = $settings['provider'] ?: ( new CommerceSettings() )->provider(); 87 87 } 88 88 return array_merge( $event, array( 'provider' => $provider, 'mode' => 'custom' === $provider ? 'text' : 'template', 'inherit' => false ) ); -
anar-toolkit/tags/1.6.0/src/Messaging/MessageSettings.php
r3795298 r3809098 109 109 } 110 110 $registry = ProviderRegistry::shared()->all(); 111 if ( 'bale' === ( $value['provider'] ?? '' ) && 'auth' !== $item['source'] ) { 112 $errors[] = __( 'Bale supports verification codes only.', 'anar-toolkit' ); 113 } 111 114 if ( ! empty( $value['account_changed'] ) ) { 112 115 $errors[] = __( 'The provider account changed. Review and save this message again.', 'anar-toolkit' ); -
anar-toolkit/tags/1.6.0/src/Messaging/ProviderRegistry.php
r3791641 r3809098 83 83 $http = $this->http ? $this->http : new HttpClient(); 84 84 $this->providers = array(); 85 foreach ( array( Kavenegar::class, Melipayamak::class, IPPanel::class, Panelchi::class, MaxSms::class, FarazSms::class, SmsIr::class, CustomHttp::class ) as $class ) {85 foreach ( array( Kavenegar::class, Melipayamak::class, IPPanel::class, Panelchi::class, MaxSms::class, FarazSms::class, SmsIr::class, \Anar\Login\Messaging\Providers\Bale::class, CustomHttp::class ) as $class ) { 86 86 $provider = new $class( $this->settings, $http ); 87 87 $this->providers[ $provider->key() ] = $provider; -
anar-toolkit/tags/1.6.0/src/Plugin.php
r3793903 r3809098 55 55 */ 56 56 public function boot() { 57 ( new \Anar\Login\Integrations\Elementor() )->register(); 57 58 add_action( 'init', array( $this, 'init' ), 0 ); 58 59 add_action( 'init', array( $this, 'runtime' ), 1 ); … … 90 91 ); 91 92 if ( is_admin() ) { 93 add_action( 'admin_post_anar_invoice_preview', array( \Anar\Login\Admin\InvoicePreview::class, 'render' ) ); 92 94 $settings = new Settings(); 93 95 $providers = ProviderRegistry::shared(); … … 191 193 } 192 194 } 195 ( new \Anar\Login\Commerce\CappedDiscount() )->register(); 193 196 // Existing personal coupons keep their restrictions even if their creating module is stopped. 194 197 if ( $flags['games'] || get_option( 'anar_game_budget_coupons' ) ) { -
anar-toolkit/tags/1.6.0/src/Vendor/WebAuthn/UPSTREAM.txt
r3791584 r3809098 3 3 Commit: 20adb4a240c3997bd8cac7dc4dde38ab0bea0ed1 4 4 License: MIT; see LICENSE. 5 Modification: namespace isolated as Anar\Login\Vendor\WebAuthn .5 Modification: namespace isolated as Anar\Login\Vendor\WebAuthn; WordPress direct-access guard added. 6 6 Loaded only by the optional passkey handler on PHP 8.0 or later. -
anar-toolkit/tags/1.6.0/src/Vendor/WebAuthn/WebAuthn.php
r3791584 r3809098 3 3 namespace Anar\Login\Vendor\WebAuthn; 4 4 use Anar\Login\Vendor\WebAuthn\Binary\ByteBuffer; 5 6 defined( 'ABSPATH' ) || exit; 7 5 8 require_once 'WebAuthnException.php'; 6 9 require_once 'Binary/ByteBuffer.php'; -
anar-toolkit/trunk/anar-login.php
r3796547 r3809098 4 4 * Plugin URI: https://mrnwp.ir/anar/ 5 5 * Description: SMS, email and Google login, SMS password reset, cart recovery and customer communication tools for WooCommerce. 6 * Version: 1. 5.96 * Version: 1.6.0 7 7 * Requires at least: 6.2 8 8 * Requires PHP: 7.4 … … 19 19 defined( 'ABSPATH' ) || exit; 20 20 21 define( 'ANAR_LOGIN_VERSION', '1. 5.9' );21 define( 'ANAR_LOGIN_VERSION', '1.6.0' ); 22 22 define( 'ANAR_LOGIN_FILE', __FILE__ ); 23 23 define( 'ANAR_LOGIN_PATH', plugin_dir_path( __FILE__ ) ); -
anar-toolkit/trunk/assets/css/commerce-suite.css
r3788438 r3809098 1 1 .anar-commerce{--ink:#282331;--muted:#8b8295;--line:#ebe6ee;--red:#ae2750;--green:#4c937b;max-width:1500px;margin-inline-end:24px;color:var(--ink);font-family:inherit;font-size:13px;line-height:1.8}.anar-commerce *{box-sizing:border-box}.anar-commerce [hidden]{display:none!important}.anar-commerce a{color:var(--red);text-decoration:none}.anar-suite-header{display:flex;justify-content:space-between;align-items:center;gap:24px;padding-block:30px 24px}.anar-suite-brand{display:flex;align-items:center;gap:18px}.anar-suite-brand>img{width:62px;height:62px;object-fit:contain}.anar-suite-brand p{margin:0;font-size:10px;font-weight:700;letter-spacing:1.5px;color:var(--red)}.anar-suite-brand p span{font-size:9px;background:#eee9f0;color:var(--muted);border-radius:5px;padding:3px 8px;letter-spacing:0;margin-inline-start:8px}.anar-suite-header h1{font-size:26px;font-weight:700;line-height:1.5;margin:3px 0;letter-spacing:-.5px}.anar-suite-brand .anar-suite-subtitle{font-size:12px;letter-spacing:0;color:var(--muted);font-weight:400}.anar-suite-link{display:flex;align-items:center;gap:8px;padding:10px 15px;background:#fff;border:1px solid var(--line);border-radius:10px;color:var(--ink)!important}.anar-suite-tabs{display:flex;gap:5px;overflow-x:auto;border-bottom:1px solid var(--line);margin-bottom:28px}.anar-suite-tabs a{position:relative;flex-shrink:0;padding:15px 16px;color:var(--muted);font-weight:600;font-size:12px}.anar-suite-tabs a.is-active{color:var(--red)}.anar-suite-tabs .is-active:after{content:'';position:absolute;inset-inline:16px;bottom:0;height:3px;background:var(--red);border-radius:4px 4px 0 0}.anar-suite-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:26px 0 22px}.anar-suite-toolbar h2{font-size:23px;margin:3px 0}.anar-eyebrow{font-size:9px;letter-spacing:1.6px;font-weight:700;color:#9d93a5}.anar-suite-toolbar form,.anar-table-filter{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.anar-commerce select,.anar-commerce input:is([type=text],[type=number],[type=tel],[type=email],[type=url]),.anar-commerce textarea{background:#fff;border:1px solid #ddd5e3;border-radius:8px;min-height:38px;padding:7px 11px;font:inherit;box-shadow:none;max-width:100%}.anar-commerce .button{min-height:38px;padding:3px 15px;border:1px solid #dfd7e5;border-radius:8px;background:#fff;color:var(--ink);box-shadow:none}.anar-commerce .button-primary{background:var(--red);border-color:var(--red);color:#fff}.anar-commerce :focus-visible{outline:2px solid var(--red);outline-offset:3px}.anar-kpis{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:16px;margin-bottom:24px}.anar-kpi{position:relative;min-width:0;min-height:180px;padding:24px;border:1px solid var(--line);background:#fff;border-radius:16px;overflow:hidden}.anar-kpi p{font-size:12px;color:#7c7088;margin:12px 0 7px}.anar-kpi strong{display:block;font-size:32px;font-weight:700;line-height:1.35;overflow-wrap:anywhere;letter-spacing:-.5px}.anar-kpi small{display:block;margin-top:8px;color:#a096aa;font-size:10px}.anar-kpi-icon{width:35px;height:35px;padding:7px;border-radius:10px;background:#faf0f4;color:var(--red);font-size:21px}.anar-kpi.hero{background:linear-gradient(135deg,#6e1736,#b32c56);color:#fff;border-color:transparent}.anar-kpi.hero:after{content:'';position:absolute;inset-inline-end:-35px;bottom:-80px;width:200px;height:200px;border:1px solid #ffffff20;border-radius:50%;box-shadow:0 0 0 25px #ffffff08,0 0 0 50px #ffffff04;pointer-events:none}.anar-kpi.hero p,.anar-kpi.hero small{color:#efc5d4}.anar-kpi.hero .anar-kpi-icon{background:#ffffff18;color:#fff}.anar-analytics-grid{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(250px,1fr);gap:22px}.anar-commerce-card{min-width:0;background:#fff;border:1px solid var(--line);border-radius:16px;padding:26px;margin-bottom:22px}.anar-commerce-card h2{font-size:16px;font-weight:650;margin:4px 0 20px}.anar-card-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.anar-chart-legend{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--muted);white-space:nowrap}.anar-chart-legend i{display:inline-block;width:7px;height:7px;background:#bd3e66;border-radius:2px}.anar-chart-legend .second{background:#68a68f;margin-inline-start:10px}.anar-chart{display:flex;direction:ltr;gap:12px;height:235px;padding-top:24px;border-bottom:1px solid var(--line);background:repeating-linear-gradient(to top,transparent 0,transparent 49px,#f3eff6 49px,#f3eff6 50px)}.anar-chart-column{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center}.anar-chart-bars{display:flex;align-items:flex-end;justify-content:center;gap:3px;height:180px;width:100%}.anar-chart-bar{width:35%;max-width:22px;min-height:0;border-radius:5px 5px 0 0;background:linear-gradient(#b82e58,#e2abbe)}.anar-chart-bar.second{background:linear-gradient(#43856f,#b4d3c8)}.anar-chart-column small{font-size:9px;color:#a498ad;margin-top:12px}.anar-chart-details{font-size:11px;color:var(--muted);margin-top:15px}.anar-chart-details summary{cursor:pointer}.anar-footnote{font-size:11px;color:var(--muted);line-height:1.9}.anar-donut{width:155px;height:155px;border-radius:50%;padding:13px;background:conic-gradient(var(--green) 0 var(--anar-sweep),#f0eaf3 var(--anar-sweep) 360deg);margin:22px auto}.anar-donut>div{display:flex;align-items:center;justify-content:center;flex-direction:column;background:#fff;border-radius:50%;height:100%}.anar-donut strong{font-size:29px}.anar-donut span{font-size:11px;color:var(--muted)}.anar-health-list{margin-top:24px}.anar-health-list>div{display:flex;justify-content:space-between;border-bottom:1px solid #f4f0f7;padding:9px 0;font-size:11px;color:var(--muted)}.anar-health-list dd{margin:0;color:var(--ink);font-weight:700}.anar-suite-note{display:flex;align-items:center;gap:12px;background:#efebf3;border-radius:12px;padding:13px 20px;color:#8b7e97;margin:8px 0 22px}.anar-suite-note p{font-size:11px;margin:0}.anar-suite-note .dashicons{flex-shrink:0}.anar-table-filter{margin-block:16px}.anar-table-filter>span{margin-inline-start:auto;color:var(--muted);font-size:11px}.anar-table-card{padding:0;overflow:hidden}.anar-commerce-table{overflow-x:auto}.anar-commerce-table table{width:100%;border-collapse:collapse;text-align:start;white-space:nowrap}.anar-commerce-table th{padding:17px 20px;background:#faf8fc;color:#95889f;font-size:11px;font-weight:500;text-align:start;border-bottom:1px solid var(--line)}.anar-commerce-table td{padding:18px 20px;border-bottom:1px solid #f3eff6;font-size:12px}.anar-commerce-table tbody tr:last-child td{border-bottom:0}.anar-commerce-table td small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.anar-commerce-table tr:hover{background:#fdfbfd}.anar-badge{display:inline-flex;align-items:center;gap:6px;font-size:10px;font-weight:600;white-space:nowrap;padding:4px 10px;border-radius:20px;background:#f1edf5;color:#80728c}.anar-badge i{width:5px;height:5px;background:currentColor;border-radius:50%}.anar-badge--accepted,.anar-badge--converted{background:#eaf4ef;color:#41866d}.anar-badge--active,.anar-badge--pending{background:#fff3e0;color:#a37d39}.anar-badge--running{background:#eaf1fd;color:#507fb6}.anar-badge--failed,.anar-badge--uncertain{background:#fbebf0;color:#b24a6c}.anar-empty-state{text-align:center;padding:55px 15px;white-space:normal}.anar-empty-state>.dashicons{width:55px;height:55px;padding:10px;font-size:35px;color:#c7b7d0;background:#f8f3fa;border-radius:15px}.anar-empty-state h3{font-size:15px;margin:16px 0 7px}.anar-empty-state p{font-size:12px;color:#9d8ea8;margin:0}.anar-pagination{display:flex;gap:10px;justify-content:flex-end;margin:15px 0 26px}.anar-settings-grid,.anar-template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.anar-settings-grid .anar-commerce-card,.anar-template-grid .anar-commerce-card{margin:0}.anar-commerce-field{margin-block:16px}.anar-commerce-field label strong{font-size:12px;color:#675773}.anar-commerce-field .description{font-size:11px;color:#a091ab;line-height:1.8}.anar-commerce-field input{margin-top:8px}.anar-template-grid code{font-size:10px;background:#f6f1f9;white-space:normal;word-break:break-word;line-height:2}.anar-template-grid input,.anar-template-grid textarea{width:100%}.anar-suite-savebar{position:sticky;bottom:0;background:#ffffffed;backdrop-filter:blur(12px);border:1px solid var(--line);border-radius:12px;margin-block:24px;padding:10px 22px;z-index:5;box-shadow:0 -6px 30px #37203c08}.anar-suite-savebar p.submit{margin:0;padding:0}.anar-campaign-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.anar-campaign-card .dashicons{font-size:27px;width:45px;height:45px;padding:9px;background:#faf0f4;border-radius:12px;color:var(--red)}.anar-campaign-card p{font-size:12px;color:var(--muted)}.anar-setup-step{border-inline-start:3px solid #c88b9e;padding-inline-start:18px;margin-block:20px} 2 2 @media(max-width:1100px){.anar-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.anar-analytics-grid{grid-template-columns:minmax(0,1.8fr) minmax(230px,1fr)}.anar-card-heading{flex-direction:column;align-items:flex-start}.anar-chart-legend{margin-bottom:15px}.anar-campaign-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:782px){.anar-commerce{margin-inline:10px 16px}.anar-suite-header{gap:12px;align-items:flex-start;padding-block:20px}.anar-suite-brand{gap:10px}.anar-suite-brand>img{width:44px;height:44px}.anar-suite-header h1{font-size:17px}.anar-suite-brand .anar-suite-subtitle{font-size:10px}.anar-suite-link{padding:8px;font-size:0}.anar-suite-link .dashicons{font-size:19px}.anar-suite-tabs a{padding:12px;font-size:11px}.anar-suite-toolbar{align-items:flex-start;flex-direction:column;gap:12px}.anar-suite-toolbar h2{font-size:20px}.anar-kpis{gap:10px}.anar-kpi{padding:18px;min-height:160px;border-radius:12px}.anar-kpi strong{font-size:25px}.anar-kpi p{font-size:11px}.anar-kpi small{font-size:9px}.anar-analytics-grid,.anar-settings-grid,.anar-template-grid,.anar-campaign-grid{grid-template-columns:minmax(0,1fr)}.anar-commerce-card{padding:20px}.anar-table-card{padding:0}.anar-chart{gap:6px}.anar-chart-column small{font-size:8px}.anar-suite-note{align-items:flex-start}.anar-commerce-table td,.anar-commerce-table th{padding:15px}}@media(prefers-reduced-motion:reduce){.anar-commerce *{animation:none!important;transition:none!important}}@media print{.anar-suite-tabs,.anar-suite-savebar,.anar-suite-link,.anar-table-filter{display:none!important}.anar-commerce [data-suite-panel]{display:block!important}.anar-commerce{margin:0}.anar-commerce-card{break-inside:avoid}} 3 4 .anar-store-nav{grid-column:1/-1;display:flex;gap:12px;flex-wrap:wrap;padding:16px;background:#fff;border-radius:12px}.anar-store-nav a{padding:9px 16px;border-radius:8px;background:#faf2f5;color:#94274e;text-decoration:none}.anar-commerce-card{scroll-margin-top:48px} -
anar-toolkit/trunk/assets/js/admin.js
r3795335 r3809098 8 8 const showTab = (name) => { 9 9 const connection = root.querySelector('.anar-connection-form'); 10 if (connection) connection.hidden = name === 'messages' || name === 'sending' ;10 if (connection) connection.hidden = name === 'messages' || name === 'sending' || name === 'features'; 11 11 const save = root.querySelector('.anar-admin__save'); 12 12 if (save) save.hidden = name === 'setup'; -
anar-toolkit/trunk/languages/anar-toolkit-fa_IR.l10n.php
r3796547 r3809098 1 1 <?php 2 2 return array( 3 'project-id-version' => 'Anar Toolkit 1. 5.9',3 'project-id-version' => 'Anar Toolkit 1.6.0', 4 4 'language' => 'fa_IR', 5 5 'plural-forms' => 'nplurals=2; plural=(n > 1);', … … 41 41 'Abandoned carts' => 'سبدهای رهاشده', 42 42 'Accent' => 'برجسته', 43 'Accent color' => 'رنگ اصلی', 43 44 'Accepted by provider' => 'پذیرفتهشده توسط سرویسدهنده', 44 45 'Accepted means the SMS provider accepted the request; it does not confirm delivery to the phone. Investigate uncertain results before retrying. Codes and full messages are not shown in the report.' => '«پذیرفتهشده» یعنی سرویس پیامک درخواست را پذیرفته است و تحویل به گوشی را تأیید نمیکند. پیش از تکرار، نتیجهٔ نامشخص را بررسی کنید. کدها و متن کامل پیام در گزارش نمایش داده نمیشوند.', … … 99 100 'Anar SMS password reset' => 'بازیابی رمز پیامکی انار', 100 101 'Anar Toolkit' => 'جعبهابزار انار', 102 'Anar Toolkit - SMS Login, Recovery & Marketing for WooCommerce' => 'جعبهابزار انار — ورود پیامکی، بازیابی خرید و بازاریابی ووکامرس', 101 103 'Anar Toolkit overview' => 'وضعیت کلی انار', 102 104 'Anar Toolkit – SMS Login, Recovery & Marketing for WooCommerce' => 'جعبهابزار انار — ورود پیامکی، بازیابی خرید و بازاریابی ووکامرس', 103 105 'Anar Toolkit — WooCommerce SMS' => 'جعبهابزار انار — پیامک ووکامرس', 106 'Anar account button' => 'دکمه ورود و حساب کاربری انار', 104 107 'Anar and MRN Forms' => 'انار و MRN Forms', 108 'Anar cart recovery' => 'بازیابی سبد خرید انار', 105 109 'Anar customer campaigns' => 'کمپینهای مشتریان انار', 106 110 'Anar customer gift' => 'هدیهٔ مشتری انار', … … 154 158 'Balance received' => 'موجودی دریافت شد', 155 159 'Balance settings saved.' => 'تنظیمات اعتبار پیامک ذخیره شد.', 160 'Bale OTP' => 'کد ورود در بله', 161 'Bale authentication failed.' => 'احراز هویت پنل بله انجام نشد.', 162 'Bale could not deliver the verification code.' => 'بله نتوانست کد تأیید را ارسال کند.', 163 'Bale supports verification codes only.' => 'بله فقط از ارسال کد تأیید پشتیبانی میکند.', 156 164 'Before a code is sent, the browser solves a short puzzle in the background, with no image or click. Adaptive mode asks only when one address requests repeatedly or the whole site sees an unusual volume, so SMS floods stop costing you money.' => 'پیش از ارسال کد، مرورگر در پسزمینه یک معمای کوتاه را حل میکند؛ بدون تصویر و بدون کلیک. در حالت هوشمند فقط وقتی فعال میشود که یک نشانی پشتسرهم درخواست بدهد یا حجم کل سایت غیرعادی شود؛ بنابراین ارسال انبوه رباتی، هزینهٔ پیامک برای شما نمیسازد.', 157 165 'Before predicted purchase' => 'پیش از خرید پیشبینیشده', … … 164 172 'Both links must be included in the recovery parameter mapping (or the custom gateway message). Use templates approved for purchase reminders.' => 'هر دو لینک بازیابی و لغو دریافت باید در نگاشت متغیرها (یا متن درگاه سفارشی) وجود داشته باشند. از قالب تأییدشده برای یادآوری خرید استفاده کنید.', 165 173 'Brand color' => 'رنگ برند', 174 'Branded' => 'برنددار', 166 175 'Build a registration form with your own fields in MRN Forms. Anar verifies the mobile number and creates the WordPress account. Other forms can use the same SMS service to verify a number before submission.' => 'فرم ثبتنام را با فیلدهای دلخواه در MRN Forms بسازید. انار شمارهٔ همراه را تأیید و حساب وردپرس را ایجاد میکند. فرمهای دیگر هم میتوانند پیش از ارسال، شمارهٔ همراه را با همین سرویس پیامکی تأیید کنند.', 167 176 'Built-in providers send the approved provider template, not this text. Keep its wording in sync with the approved template.' => 'پنلهای آماده، قالب تأییدشده سرویس را ارسال میکنند. این متن را با متن قالب تأییدشده هماهنگ نگه دارید.', … … 184 193 'Cancelled' => 'لغوشده', 185 194 'Capped game discount' => 'تخفیف بازی با سقف مبلغ', 195 'Capped recovery discount' => 'تخفیف سقفدار بازیابی', 196 'Capped recovery discounts require WooCommerce 8.8 or newer.' => 'تخفیف سقفدار بازیابی به ووکامرس ۸.۸ یا جدیدتر نیاز دارد.', 186 197 'Capture source' => 'منبع ثبت', 187 198 'Capture timestamp (UTC Unix time)' => 'زمان ثبت خودکار (زمان یونیکس UTC)', … … 191 202 'Cart records' => 'سوابق سبد', 192 203 'Cart recovery' => 'بازیابی سبد', 204 'Cart recovery and sending limits' => 'بازیابی سبد و محدودیتهای ارسال', 193 205 'Category' => 'دسته', 194 206 'Chance of receiving a coupon (%)' => 'احتمال دریافت جایزه (درصد)', … … 227 239 'Clean up when uninstalling' => 'پاکسازی هنگام حذف افزونه', 228 240 'Clear about 40% of the cover to reveal your result.' => 'حدود ۴۰ درصد پوشش را پاک کنید تا نتیجه نمایش داده شود.', 241 'Client ID' => 'شناسه مشتری بله', 242 'Client secret' => 'رمز اتصال بله', 229 243 'Close' => 'بستن', 230 244 'Close signup' => 'بستن فرم ثبتنام', … … 272 286 'Connected and verified' => 'متصل و تأییدشده', 273 287 'Connection and message' => 'اتصال و پیام', 288 'Connection and orders' => 'اتصال و سفارشها', 274 289 'Connection interrupted. Retry to continue the same game.' => 'ارتباط قطع شد. با زدن «ادامهٔ همین بازی»، همان نوبت را دنبال کنید.', 275 290 'Connection settings' => 'تنظیمات اتصال', … … 279 294 'Conservative Unicode SMS segment estimate before replacing placeholders; actual billing depends on the provider:' => 'برآورد محافظهکارانه تعداد بخشهای پیامک یونیکد پیش از جایگزینی متغیرها؛ هزینه واقعی به سرویس بستگی دارد:', 280 295 'Contact mobile numbers' => 'شمارههای همراه مخاطبان', 296 'Content' => 'محتوا', 281 297 'Continue' => 'ادامه', 282 298 'Continue a purchase with your recovery code' => 'ادامه خرید با کد بازیابی', … … 296 312 'Core is active' => 'هسته فعال است', 297 313 'Correct answer number' => 'شمارهٔ پاسخ درست', 314 'Correct quiz option (1-8)' => 'گزینهٔ درست مسابقه (۱ تا ۸)', 298 315 'Correct quiz option (1–8)' => 'گزینهٔ درست مسابقه (۱ تا ۸)', 299 316 'Could not complete Google sign-in. Please try again.' => 'ورود با گوگل کامل نشد. لطفاً دوباره تلاش کنید.', … … 388 405 'Enable the features your store needs.' => 'قابلیتهای مورد نیاز فروشگاه را فعال کنید.', 389 406 'Enable the login SMS report to count future login and verification messages.' => 'برای ثبت آمار پیامکهای ورود و تأیید از این به بعد، گزارش پیامک ورود را فعال کنید.', 407 'Enable this feature in Anar settings.' => 'این قابلیت را در تنظیمات انار فعال کنید.', 390 408 'Enable this feature, check an account, then set its alert threshold. Periodic checks contact only the accounts you select, about every 30 minutes.' => 'این قابلیت را فعال کنید، موجودی حساب را دریافت کنید و حد هشدار را تعیین کنید. فقط حسابهای انتخابشده، تقریباً هر ۳۰ دقیقه بهصورت خودکار بررسی میشوند.', 391 409 'Enable this stage' => 'فعالسازی این مرحله', … … 526 544 'If this number is linked to an eligible account, a password reset code will be sent. Please wait before requesting another.' => 'اگر این شماره به حساب واجد شرایطی متصل باشد، کد بازنشانی رمز برای آن ارسال میشود. پیش از درخواست مجدد کمی صبر کنید.', 527 545 'If you leave now, the changes you made to this message will be lost.' => 'با خروج از ویرایشگر، تغییرات این پیام از دست میرود.', 546 'If you opt into purchase reminders, we store your mobile number, optional email, consent text and timestamp, cart products, amount, currency and related order ID locally. We send your number and the configured reminder variables (which may include purchase links and order details) to our selected SMS provider. Each reminder includes a link to stop future cart and unpaid-order reminders. Payment notifications are separate service messages. Phone-bound, single-use recovery codes restore products or open WooCommerce payment; they do not log you in. Recovery code hashes, attempts, expiry and consumption timestamps are stored separately from login challenges. Unsubscribe links only stop purchase reminders. The store configures a 7-90 day retention period and SMS provider. Add the selected provider, its terms and privacy links, your actual retention period and the purposes of your messages to this policy before enabling the modules.' => 'با انتخاب دریافت یادآوری خرید، شماره موبایل، ایمیل اختیاری، متن و زمان رضایت، محصولات سبد، مبلغ، ارز و شناسه سفارش مرتبط در سایت ذخیره میشوند. شماره و متغیرهای پیکربندیشده یادآوری، شامل لینک خرید یا جزئیات سفارش، به سرویس پیامکی منتخب ارسال میشوند. هر پیام لینک توقف یادآوری سبد و سفارش پرداختنشده دارد. اعلان پرداخت پیام خدماتی جداگانهای است. کد یکبارمصرف متصل به شماره، سبد را بازیابی یا پرداخت ووکامرس را باز میکند و باعث ورود به حساب نمیشود. هش کد، تعداد تلاش، انقضا و زمان مصرف مستقل از کدهای ورود ذخیره میشوند. لینک لغو فقط یادآوری خرید را متوقف میکند. مدیر فروشگاه مدت نگهداری ۷ تا ۹۰ روز و سرویس پیامکی را تنظیم میکند. پیش از فعالسازی، نام سرویس، لینک شرایط و حریم خصوصی، مدت واقعی نگهداری و هدف پیامها را به این سیاست اضافه کنید.', 528 547 'If you opt into purchase reminders, we store your mobile number, optional email, consent text and timestamp, cart products, amount, currency and related order ID locally. We send your number and the configured reminder variables (which may include purchase links and order details) to our selected SMS provider. Each reminder includes a link to stop future cart and unpaid-order reminders. Payment notifications are separate service messages. Phone-bound, single-use recovery codes restore products or open WooCommerce payment; they do not log you in. Recovery code hashes, attempts, expiry and consumption timestamps are stored separately from login challenges. Unsubscribe links only stop purchase reminders. The store configures a 7–90 day retention period and SMS provider. Add the selected provider, its terms and privacy links, your actual retention period and the purposes of your messages to this policy before enabling the modules.' => 'با انتخاب دریافت یادآوری خرید، شماره موبایل، ایمیل اختیاری، متن و زمان رضایت، محصولات سبد، مبلغ، ارز و شناسه سفارش مرتبط در سایت ذخیره میشوند. شماره و متغیرهای پیکربندیشده یادآوری، شامل لینک خرید یا جزئیات سفارش، به سرویس پیامکی منتخب ارسال میشوند. هر پیام لینک توقف یادآوری سبد و سفارش پرداختنشده دارد. اعلان پرداخت پیام خدماتی جداگانهای است. کد یکبارمصرف متصل به شماره، سبد را بازیابی یا پرداخت ووکامرس را باز میکند و باعث ورود به حساب نمیشود. هش کد، تعداد تلاش، انقضا و زمان مصرف مستقل از کدهای ورود ذخیره میشوند. لینک لغو فقط یادآوری خرید را متوقف میکند. مدیر فروشگاه مدت نگهداری ۷ تا ۹۰ روز و سرویس پیامکی را تنظیم میکند. پیش از فعالسازی، نام سرویس، لینک شرایط و حریم خصوصی، مدت واقعی نگهداری و هدف پیامها را به این سیاست اضافه کنید.', 548 'If you opt into purchase reminders, we store your mobile number, optional email, consent text and timestamp, cart products, amount, currency and related order ID locally. We send your number and the configured reminder variables (which may include purchase links and order details) to our selected SMS provider. Each reminder includes a link to stop future cart and unpaid-order reminders. Payment notifications are separate service messages. Reminder links restore products or open WooCommerce payment; they do not log you in. The store configures a 7-90 day retention period and SMS provider. Add the selected provider, its terms and privacy links, your actual retention period and the purposes of your messages to this policy before enabling the modules.' => 'با انتخاب دریافت یادآوری خرید، شماره موبایل، ایمیل اختیاری، متن و زمان رضایت، محصولات سبد، مبلغ، ارز و شناسه سفارش مرتبط در سایت ذخیره میشوند. شماره و متغیرهای پیکربندیشده یادآوری، شامل لینک خرید یا جزئیات سفارش، به سرویس پیامکی منتخب ارسال میشوند. هر پیام لینک توقف یادآوری سبد و سفارش پرداختنشده دارد. اعلان پرداخت پیام خدماتی جداگانهای است. لینک یادآوری، سبد را بازیابی یا پرداخت ووکامرس را باز میکند و باعث ورود به حساب نمیشود. مدیر فروشگاه مدت نگهداری ۷ تا ۹۰ روز و سرویس پیامکی را تنظیم میکند. پیش از فعالسازی، نام سرویس، لینک شرایط و حریم خصوصی، مدت واقعی نگهداری و هدف پیامها را به این سیاست اضافه کنید.', 529 549 'If you opt into purchase reminders, we store your mobile number, optional email, consent text and timestamp, cart products, amount, currency and related order ID locally. We send your number and the configured reminder variables (which may include purchase links and order details) to our selected SMS provider. Each reminder includes a link to stop future cart and unpaid-order reminders. Payment notifications are separate service messages. Reminder links restore products or open WooCommerce payment; they do not log you in. The store configures a 7–90 day retention period and SMS provider. Add the selected provider, its terms and privacy links, your actual retention period and the purposes of your messages to this policy before enabling the modules.' => 'با انتخاب دریافت یادآوری خرید، شماره موبایل، ایمیل اختیاری، متن و زمان رضایت، محصولات سبد، مبلغ، ارز و شناسه سفارش مرتبط در سایت ذخیره میشوند. شماره و متغیرهای پیکربندیشده یادآوری، شامل لینک خرید یا جزئیات سفارش، به سرویس پیامکی منتخب ارسال میشوند. هر پیام لینک توقف یادآوری سبد و سفارش پرداختنشده دارد. اعلان پرداخت پیام خدماتی جداگانهای است. لینک یادآوری، سبد را بازیابی یا پرداخت ووکامرس را باز میکند و باعث ورود به حساب نمیشود. مدیر فروشگاه مدت نگهداری ۷ تا ۹۰ روز و سرویس پیامکی را تنظیم میکند. پیش از فعالسازی، نام سرویس، لینک شرایط و حریم خصوصی، مدت واقعی نگهداری و هدف پیامها را به این سیاست اضافه کنید.', 530 550 'Import campaign contacts' => 'درونریزی مخاطبان کمپین', … … 543 563 'Install and activate WooCommerce to run these modules. Login features work independently.' => 'برای اجرای این ماژولها، ووکامرس را نصب و فعال کنید. قابلیتهای ورود مستقل کار میکنند.', 544 564 'Invisible bot check' => 'بررسی نامرئی ربات', 565 'Invoice footer' => 'متن پایین فاکتور', 545 566 'Invoice number prefix' => 'پیشوند شمارهٔ صورتحساب', 567 'Invoice template' => 'قالب فاکتور', 546 568 'Issued or reserved in the shared pool: %d' => 'صادر یا رزرو شده در مخزن مشترک: %d', 547 569 'It may be time to reorder your product.' => 'شاید زمان خرید دوبارهٔ کالای شما رسیده باشد.', … … 583 605 'Loading message…' => 'در حال دریافت پیام…', 584 606 'Loading the sign-in form…' => 'در حال بارگذاری فرم ورود…', 607 'Local data retention, days (7-90)' => 'مدت نگهداری دادههای محلی، به روز (۷ تا ۹۰)', 585 608 'Local data retention, days (7–90)' => 'مدت نگهداری دادههای محلی، به روز (۷ تا ۹۰)', 586 609 'Log only error codes and channel names; OTPs and confidential data are never logged.' => 'فقط کد خطا و نام کانال در گزارش خطا ثبت میشود؛ کد OTP و اطلاعات محرمانه ثبت نمیشوند.', … … 589 612 'Login form' => 'فرم ورود', 590 613 'Login popup' => 'پاپآپ ورود', 614 'Logo URL' => 'نشانی تصویر لوگو', 591 615 'Low credit' => 'اعتبار کم است', 592 616 'Lucky wheel' => 'گردونهٔ شانس', … … 604 628 'Maximum campaign messages per phone / day' => 'حداکثر پیام کمپین برای هر شماره در روز', 605 629 'Maximum coupons for this prize' => 'سقف تعداد این جایزه', 630 'Maximum discount including tax (0 = unlimited)' => 'حداکثر مبلغ تخفیف با احتساب مالیات (۰ = بدون سقف)', 606 631 'Maximum lifetime spend (0 = no maximum)' => 'حداکثر مجموع خرید (۰ یعنی بدون سقف)', 607 632 'Maximum money discount for the single reward' => 'سقف مبلغ تخفیف جایزهٔ ثابت', 608 633 'Maximum money discount per coupon' => 'سقف مبلغ تخفیف هر کد', 634 'Maximum reminders per phone in 24 hours (1-10)' => 'سقف یادآوری هر شماره در ۲۴ ساعت (۱ تا ۱۰)', 609 635 'Maximum reminders per phone in 24 hours (1–10)' => 'سقف یادآوری هر شماره در ۲۴ ساعت (۱ تا ۱۰)', 610 636 'Maximum saving: %1$s %2$s, including tax.' => 'حداکثر مبلغ تخفیف با احتساب مالیات: %1$s %2$s.', … … 695 721 'Off' => 'خاموش', 696 722 'Off by default. When on, the WordPress login page shows the passwordless form with a “Sign in with a password” link, so staff can always use their password.' => 'بهطور پیشفرض خاموش است. در صورت فعالسازی، صفحهٔ ورود وردپرس فرم ورود بدون رمز را همراه با لینک «ورود با رمز عبور» نمایش میدهد تا مدیران همیشه بتوانند با رمز وارد شوند.', 723 'Offer from reminder stage (1-3)' => 'ارائهٔ تخفیف از مرحلهٔ یادآوری (۱ تا ۳)', 697 724 'Offer from reminder stage (1–3)' => 'ارائهٔ تخفیف از مرحلهٔ یادآوری (۱ تا ۳)', 698 725 'One coupon per cart, one use, restricted to the recipient billing phone. Include {coupon_code} in the relevant reminder template. A valid coupon is applied after the customer verifies their recovery code.' => 'برای هر سبد یک کوپن یکبارمصرف، محدود به شمارهٔ صورتحساب گیرنده ایجاد میشود. {coupon_code} را در الگوی یادآوری مربوط قرار دهید. کوپن معتبر پس از تأیید کد بازیابی مشتری اعمال میشود.', … … 734 761 'Order completed' => 'سفارش تکمیلشده', 735 762 'Order invoice' => 'صورتحساب سفارش', 763 'Order messages and connection' => 'پیامهای سفارش و اتصال پنل', 764 'Order not found.' => 'سفارش پیدا نشد.', 736 765 'Order notifications' => 'اعلانهای سفارش', 737 766 'Order number' => 'شمارهٔ سفارش', … … 818 847 'Preparing your result…' => 'نتیجهٔ بازی در حال آماده شدن است…', 819 848 'Preview eligible audience' => 'پیشنمایش مخاطبان واجد شرایط', 849 'Preview order ID (empty = sample)' => 'شناسه سفارش برای پیشنمایش (خالی = نمونه)', 820 850 'Preview saved form' => 'پیشنمایش فرم ذخیرهشده', 851 'Preview saved invoice settings' => 'پیشنمایش فاکتور با تنظیمات ذخیرهشده', 821 852 'Preview the form and choose where it appears' => 'فرم را ببینید و محل نمایش آن را انتخاب کنید', 822 853 'Previous' => 'قبلی', … … 859 890 'Raw OTPs are never stored in the database.' => 'OTP خام هرگز در دیتابیس ذخیره نمیشود.', 860 891 'Receive today’s gift' => 'دریافت هدیهٔ امروز', 892 'Receive verification codes inside Bale.' => 'کد تأیید را در پیامرسان بله دریافت کنید.', 861 893 'Recent customer profiles' => 'پروفایل مشتریان اخیر', 862 894 'Recipient' => 'گیرنده', … … 872 904 'Recovered revenue' => 'درآمد خریدهای بازیابیشده', 873 905 'Recovery code' => 'کد بازیابی', 906 'Recovery code validity, minutes (5-1440)' => 'اعتبار کد بازیابی، به دقیقه (۵ تا ۱۴۴۰)', 874 907 'Recovery code validity, minutes (5–1440)' => 'اعتبار کد بازیابی، به دقیقه (۵ تا ۱۴۴۰)', 875 908 'Recovery discounts' => 'تخفیف بازیابی خرید', 909 'Recovery eligibility after cart activity, days (1-30)' => 'مهلت بازیابی پس از فعالیت سبد، به روز (۱ تا ۳۰)', 876 910 'Recovery eligibility after cart activity, days (1–30)' => 'مهلت بازیابی پس از فعالیت سبد، به روز (۱ تا ۳۰)', 911 'Recovery link lifetime after cart activity, days (1-30)' => 'اعتبار لینک بازیابی پس از فعالیت سبد، به روز (۱ تا ۳۰)', 877 912 'Recovery link lifetime after cart activity, days (1–30)' => 'اعتبار لینک بازیابی پس از فعالیت سبد، به روز (۱ تا ۳۰)', 878 913 'Recovery messages must include both recovery and unsubscribe links.' => 'پیام یادآوری باید هر دو لینک بازیابی و لغو دریافت را داشته باشد.', … … 880 915 'Recovery messages must include the recovery code and unsubscribe link.' => 'پیام یادآوری باید کد بازیابی و لینک لغو دریافت را داشته باشد.', 881 916 'Recovery page URL' => 'نشانی صفحهٔ بازیابی خرید', 917 'Recovery sending starts at hour (0-23)' => 'ساعت شروع ارسال یادآوری (۰ تا ۲۳)', 882 918 'Recovery sending starts at hour (0–23)' => 'ساعت شروع ارسال یادآوری (۰ تا ۲۳)', 919 'Recovery sending stops at hour (1-24)' => 'ساعت پایان ارسال یادآوری (۱ تا ۲۴)', 883 920 'Recovery sending stops at hour (1–24)' => 'ساعت پایان ارسال یادآوری (۱ تا ۲۴)', 884 921 'Recovery · first reminder' => 'بازیابی · یادآوری اول', … … 951 988 'SMS, email and Google login, SMS password reset, cart recovery and customer communication tools for WooCommerce.' => 'ورود با پیامک، ایمیل و گوگل، بازیابی رمز پیامکی، بازیابی سبد و ابزارهای ارتباط با مشتری ووکامرس.', 952 989 'Sample' => 'نمونه', 990 'Sample address' => 'نشانی نمونه', 953 991 'Sample campaign content' => 'متن نمونهٔ کمپین', 992 'Sample customer' => 'مشتری نمونه', 954 993 'Sample preview' => 'پیشنمایش نمونه', 994 'Sample product' => 'کالای نمونه', 955 995 'Save and close' => 'ذخیره و بستن', 956 996 'Save and continue' => 'ذخیره و ادامه', … … 1045 1085 'Show a link to sign in with a password. Password recovery also appears here when SMS password recovery is enabled.' => 'پیوند ورود با رمز عبور را نشان میدهد. اگر بازیابی پیامکی رمز فعال باشد، گزینهٔ بازیابی هم در پنجره نمایش داده میشود.', 1046 1086 'Show above the WooCommerce forms' => 'نمایش بالای فرمهای ووکامرس', 1087 'Show customer note' => 'نمایش یادداشت مشتری', 1047 1088 'Show low-credit warnings to site administrators' => 'هشدار کمبود اعتبار به مدیران سایت نمایش داده شود', 1089 'Show product SKU' => 'نمایش شناسه کالا', 1090 'Show shipping address' => 'نمایش نشانی ارسال', 1048 1091 'Show the Google sign-in button on the login form.' => 'دکمه ورود گوگل در فرم ورود نمایش داده شود.', 1049 1092 'Shown after the customer wins and the coupon has been created. The coupon code is displayed separately below this message.' => 'این پیام پس از برنده شدن مشتری و ایجاد کد تخفیف نمایش داده میشود. خود کد تخفیف جداگانه زیر پیام قرار میگیرد.', … … 1053 1096 'Shows the time, provider, and result of SMS requests for sign-in, two-step verification, and password reset.' => 'زمان، سرویسدهنده و نتیجهٔ ارسال پیامکهای ورود، تأیید دومرحلهای و بازیابی رمز عبور را نشان میدهد.', 1054 1097 'Sign in' => 'ورود', 1098 'Sign in / Account' => 'ورود / حساب کاربری', 1055 1099 'Sign in / Register' => 'ورود / ثبتنام', 1056 1100 'Sign in before verifying your mobile number.' => 'برای تأیید شمارهٔ همراه، ابتدا وارد حساب خود شوید.', … … 1077 1121 'Signing you in…' => 'در حال ورود…', 1078 1122 'Simple' => 'ساده', 1123 'Simple print' => 'ساده و مناسب چاپ', 1079 1124 'Single use' => 'مصرف یکباره', 1080 1125 'Site domain' => 'دامنهٔ سایت', … … 1112 1157 'Store promotion' => 'هدیهٔ فروشگاه', 1113 1158 'Store quiz' => 'مسابقهٔ پرسشوپاسخ', 1159 'Store settings' => 'تنظیمات فروشگاه', 1114 1160 'Store tax / registration ID' => 'شناسهٔ مالیاتی / ثبتی فروشگاه', 1115 1161 'Store tax / registration ID:' => 'شناسهٔ مالیاتی / ثبتی فروشگاه:', … … 1276 1322 'Use the existing shortcode, popup or WooCommerce integration. Changing where the form appears does not change its verification rules. Save appearance changes before previewing.' => 'از کد کوتاه، پاپآپ یا اتصال ووکامرس استفاده کنید. محل نمایش فرم، قواعد تأیید هویت را تغییر نمیدهد. پیش از دیدن پیشنمایش، تغییرات ظاهر را ذخیره کنید.', 1277 1323 'Use the same SMS settings as the sign-in code' => 'استفاده از تنظیمات ارسال پیامک کد ورود', 1324 'Use the sign-in SMS provider' => 'استفاده از پنل پیامکی ورود', 1278 1325 'Use the sign-in template for this verification message' => 'استفاده از الگوی ورود برای این پیام تأیید', 1279 1326 'Used for messages whose delivery method is plain text. Approved-template messages use the panel service line.' => 'این شماره برای پیامهایی استفاده میشود که روش ارسالشان «پیامک متنی» است. پیامهای الگویی از خط خدماتی پنل ارسال میشوند.', … … 1289 1336 'Value to send' => 'مقدار ارسالی', 1290 1337 'Verification code' => 'کد تأیید', 1338 'Verification code sent via Bale.' => 'کد تأیید در پیامرسان بله ارسال شد.', 1291 1339 'Verified' => 'تأییدشده', 1292 1340 'Verify Lookup template name' => 'نام الگوی Verify Lookup', … … 1311 1359 'When enabled by this store, Anar saves checkout/account mobile numbers and cart contents for reminders without a separate checkbox. A notice is shown at cart/checkout; every marketing message includes an unsubscribe link. Optional campaigns keep customer contact details, paid-order/product facts, stock requests, honest purchase feedback, birthday month/day and calendar, referral relationships, game attempts and personal coupon references locally. No birth year is requested. Coupon gifts are single-use and phone-bound; survey gifts do not depend on a positive rating. Provider credentials and plaintext login/reset codes are never written to campaign reports. The selected SMS provider receives recipient numbers and configured message variables. Optional traffic analytics use a first-party random browser identifier lasting up to 30 days, daily keyed hashes and referring hostnames, excluding checkout/account pages and administrator visits; no raw IP or full referrer URL is retained in traffic reports. Configure and disclose the selected modules, provider, purposes and retention period here. WordPress personal-data tools and administrator phone erasure remove local marketing records and revoke unused personal gifts without deleting WooCommerce orders. Minimal suppression hashes may remain to remember stopped messages.' => 'در صورت فعالسازی فروشگاه، انار شمارهٔ همراه حساب یا تسویهحساب و محتوای سبد را بدون تیک جداگانه برای یادآوری ذخیره میکند. اطلاعیه در سبد و تسویهحساب نمایش داده میشود و هر پیام بازاریابی لینک لغو دریافت دارد. کمپینهای اختیاری اطلاعات تماس، سوابق سفارش پرداختشده و کالا، درخواست موجودی، بازخورد خرید، ماه و روز تولد و تقویم، روابط معرفی دوستان، دفعات بازی و ارجاع کوپنهای اختصاصی را محلی نگه میدارند. سال تولد درخواست نمیشود. کوپنهای هدیهٔ تولیدشده یکبارمصرف و محدود به شمارهٔ همراه هستند؛ هدیهٔ نظرسنجی به امتیاز مثبت وابسته نیست. اطلاعات دسترسی سرویسدهنده و کدهای ورود و بازنشانیِ خوانا در گزارش کمپین ذخیره نمیشوند. سرویس پیامک انتخابشده شمارهٔ گیرنده و متغیرهای تنظیمشده را دریافت میکند. آمار اختیاری بازدید از شناسهٔ تصادفی مرورگر همان سایت با عمر حداکثر ۳۰ روز، هش کلیددار روزانه و نام میزبان ارجاعدهنده استفاده میکند؛ صفحات تسویهحساب، حساب کاربری و بازدید مدیران مستثنا هستند. IP خام و نشانی کامل ارجاعدهنده در گزارش بازدید نگهداری نمیشود. ماژولها، سرویسدهنده، هدفها و دورهٔ نگهداری انتخابشده را اینجا اعلام کنید. ابزارهای دادهٔ شخصی وردپرس و حذف بر اساس شماره توسط مدیر، سوابق محلی بازاریابی را پاک و هدیههای اختصاصیِ استفادهنشده را باطل میکنند، بدون حذف سفارش ووکامرس. ممکن است حداقل هش لازم برای بهخاطر سپردن لغو پیام باقی بماند.', 1312 1360 'When no prizes remain' => 'پس از تمام شدن جوایز', 1361 'When purchase reminders are enabled, automatic capture saves your account/checkout phone and cart without a separate checkbox and shows a notice. An optional explicit preference form is also available. We store your mobile number, optional email, consent text and timestamp, cart products, amount, currency and related order ID locally. We send your number and the configured reminder variables (which may include purchase links and order details) to our selected SMS provider. Each reminder includes a link to stop future cart and unpaid-order reminders. Payment notifications are separate service messages. Phone-bound, single-use recovery codes restore products or open WooCommerce payment; they do not log you in. Recovery code hashes, attempts, expiry and consumption timestamps are stored separately from login challenges. Unsubscribe links stop purchase reminders and optional marketing campaigns; service notices are separate. A keyed suppression identifier is retained after erasure. The store configures a 7-90 day retention period and SMS provider. Add the selected provider, its terms and privacy links, your actual retention period and the purposes of your messages to this policy before enabling the modules.' => 'با فعال شدن یادآوری خرید، حالت خودکار شمارهٔ حساب یا تسویهحساب و سبد را بدون تیک جداگانه و با نمایش اطلاعیه ذخیره میکند. حالت اختیاری فرم جداگانه نیز وجود دارد. شمارهٔ همراه، ایمیل اختیاری، متن و زمان انتخاب صریح، کالاهای سبد، مبلغ، ارز و شناسهٔ سفارش مربوط محلی نگهداری میشوند. شماره و متغیرهای پیام، شامل پیوند خرید و اطلاعات سفارش، به سرویسدهندهٔ انتخابشده فرستاده میشوند. هر یادآوری پیوند توقف پیامهای بعدی دارد. اعلانهای پرداخت پیام خدماتی مستقلاند. کد بازیابی یکبارمصرف و محدود به شماره، فقط کالاها یا پرداخت ووکامرس را بازیابی میکند و ورود به حساب نیست. هش کد، تلاشها، انقضا و زمان مصرف از کدهای ورود جدا نگهداری میشوند. لغو دریافت، یادآوری خرید و کمپینهای اختیاری بازاریابی را متوقف میکند؛ پیامهای خدماتی مستقلاند. پس از حذف هویت، یک شناسهٔ کلیددار برای حفظ لغو پیام باقی میماند. فروشگاه سرویسدهنده و دورهٔ نگهداری ۷ تا ۹۰ روز را تعیین میکند. پیش از فعالسازی، نام سرویس، پیوند شرایط و حریم خصوصی آن، مدت نگهداری واقعی و اهداف پیامها را به این سیاست اضافه کنید.', 1313 1362 'When purchase reminders are enabled, automatic capture saves your account/checkout phone and cart without a separate checkbox and shows a notice. An optional explicit preference form is also available. We store your mobile number, optional email, consent text and timestamp, cart products, amount, currency and related order ID locally. We send your number and the configured reminder variables (which may include purchase links and order details) to our selected SMS provider. Each reminder includes a link to stop future cart and unpaid-order reminders. Payment notifications are separate service messages. Phone-bound, single-use recovery codes restore products or open WooCommerce payment; they do not log you in. Recovery code hashes, attempts, expiry and consumption timestamps are stored separately from login challenges. Unsubscribe links stop purchase reminders and optional marketing campaigns; service notices are separate. A keyed suppression identifier is retained after erasure. The store configures a 7–90 day retention period and SMS provider. Add the selected provider, its terms and privacy links, your actual retention period and the purposes of your messages to this policy before enabling the modules.' => 'با فعال شدن یادآوری خرید، حالت خودکار شمارهٔ حساب یا تسویهحساب و سبد را بدون تیک جداگانه و با نمایش اطلاعیه ذخیره میکند. حالت اختیاری فرم جداگانه نیز وجود دارد. شمارهٔ همراه، ایمیل اختیاری، متن و زمان انتخاب صریح، کالاهای سبد، مبلغ، ارز و شناسهٔ سفارش مربوط محلی نگهداری میشوند. شماره و متغیرهای پیام، شامل پیوند خرید و اطلاعات سفارش، به سرویسدهندهٔ انتخابشده فرستاده میشوند. هر یادآوری پیوند توقف پیامهای بعدی دارد. اعلانهای پرداخت پیام خدماتی مستقلاند. کد بازیابی یکبارمصرف و محدود به شماره، فقط کالاها یا پرداخت ووکامرس را بازیابی میکند و ورود به حساب نیست. هش کد، تلاشها، انقضا و زمان مصرف از کدهای ورود جدا نگهداری میشوند. لغو دریافت، یادآوری خرید و کمپینهای اختیاری بازاریابی را متوقف میکند؛ پیامهای خدماتی مستقلاند. پس از حذف هویت، یک شناسهٔ کلیددار برای حفظ لغو پیام باقی میماند. فروشگاه سرویسدهنده و دورهٔ نگهداری ۷ تا ۹۰ روز را تعیین میکند. پیش از فعالسازی، نام سرویس، پیوند شرایط و حریم خصوصی آن، مدت نگهداری واقعی و اهداف پیامها را به این سیاست اضافه کنید.', 1314 1363 'Winning chance and single-reward fallback' => 'احتمال برد و جایزهٔ ثابت', … … 1325 1374 'You cannot manage these campaigns.' => 'اجازهٔ مدیریت این کمپینها را ندارید.', 1326 1375 'You cannot manage these settings.' => 'اجازه مدیریت این تنظیمات را ندارید.', 1376 'You cannot preview invoices.' => 'شما اجازه پیشنمایش فاکتور را ندارید.', 1327 1377 'You have signed in successfully.' => 'با موفقیت وارد شدید.', 1328 1378 'Your account could not be created. Request a new code and try again.' => 'ایجاد حساب انجام نشد. کد جدید بگیرید و دوباره تلاش کنید.', -
anar-toolkit/trunk/readme.txt
r3796547 r3809098 1 === Anar Toolkit (انار)– SMS Login, Recovery & Marketing for WooCommerce ===1 === Anar Toolkit – SMS Login, Recovery & Marketing for WooCommerce === 2 2 Contributors: mrnwp 3 3 Tags: sms, woocommerce, abandoned-cart, otp, notifications … … 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 1. 5.97 Stable tag: 1.6.0 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html 10 10 11 انار برای ووکامرس با ورود پیامکی، بازیابی رمز و سبد خرید، اعلان سفارش و کمپین. SMS login, password reset, cart recovery, order alerts and campaigns.11 SMS login, password reset, cart recovery, order alerts and customer campaigns for WooCommerce. 12 12 13 13 == Description == … … 118 118 Customers print/save invoices as PDF from My Account or an expiring scoped link. Use [anar_customer_preferences] for birthday month/day, [anar_referrals] for referrals and [anar_game type="wheel"] for a game. Other types: scratch, boxes, cards, slots, treasure, daily, quiz, memory and milestone. Server-side rules enforce coupon rewards and daily limits; there is no paid entry or cash prize. Persian birthday dates require PHP Intl. 119 119 120 = Elementor widgets and printable invoices = 121 Three optional Elementor widgets reuse Anar's sign-in form, account button and cart recovery form. Elementor is not required for other features. Enable the corresponding Anar capability before using its widget. 122 Choose a simple-print or branded invoice, adjust its accent color, logo URL and footer, and choose whether to show product SKUs, shipping addresses and customer notes. Save changes before opening the invoice preview. An empty preview order ID uses sample data; a real order ID is accessible only to an authorized store manager. 123 Recovery coupons support an optional maximum monetary discount including tax (0 means unlimited). Capped recovery coupons require WooCommerce 8.8 or later. Coupon expiry is measured from issuance and is not renewed by subsequent reminders. 124 120 125 == External services == 126 127 = Bale Safir OTP (optional) = 128 Bale is a verification-code channel, not a plain-text commerce SMS provider. It is used only after the store administrator selects Bale and supplies their Safir client ID and client secret. When a verification code is requested, Anar sends those credentials to https://safir.bale.ai/api/v2/auth/token to obtain an access token. The token is cached temporarily on the WordPress server. Anar sends the recipient's international mobile number and numeric OTP to https://safir.bale.ai/api/v2/send_otp with that bearer token. The user receives the code inside Bale and must have a Bale account. No automatic SMS fallback is performed. Select a separate SMS provider for commerce messages when sign-in uses Bale. 129 Official service: https://safir.bale.ai/ 130 Official documentation: https://docs.bale.ai/ 131 Official terms, including privacy provisions: https://bale.ai/terms 132 121 133 122 134 All integrations use accounts configured by the site administrator. The plugin makes no telemetry, licensing or analytics requests to MRNWP or its author. Provider service fees and contracts are independent of the free plugin. … … 241 253 242 254 == Changelog == 255 256 = 1.6.0 = 257 258 * Move feature switches into Settings and group store recovery, message and discount controls. 259 * Let store messages follow the sign-in provider by default while preserving explicit provider and message bindings. 260 * Add recovery discount ceilings including tax, retaining coupon expiry and single-use restrictions. 261 * Add optional Bale Safir OTP delivery with cached access tokens. 262 * Add Elementor sign-in, account-button and purchase-recovery widgets using existing forms. 263 * Add simple-print and branded invoice templates, display controls and administrator-only sample/order previews. 264 243 265 244 266 = 1.5.9 = -
anar-toolkit/trunk/src/Admin/FeaturesPage.php
r3796547 r3809098 41 41 } 42 42 } 43 add_submenu_page( 'anar-login', __( ' Features', 'anar-toolkit' ), __( 'Features', 'anar-toolkit' ), 'manage_options', 'anar-login', array( self::class, 'render' ), 0 );43 add_submenu_page( 'anar-login', __( 'Settings', 'anar-toolkit' ), __( 'Settings', 'anar-toolkit' ), 'manage_options', 'anar-login', array( SettingsPage::class, 'landing' ), 0 ); 44 44 $flags = Features::all(); 45 45 $commerce = new \Anar\Login\Commerce\Admin( new \Anar\Login\Commerce\Settings(), new \Anar\Login\Commerce\Repository(), \Anar\Login\Messaging\ProviderRegistry::shared() ); … … 52 52 add_submenu_page( 'anar-login', self::labels()[ $key ], self::labels()[ $key ], 'manage_options', 'anar-toolkit-' . $key, array( $commerce, 'render' ) ); } 53 53 } 54 add_submenu_page( 'anar-login', __( 'Settings', 'anar-toolkit' ), __( 'Settings', 'anar-toolkit' ), 'manage_options', 'anar-login-settings', array( new SettingsPage( new Settings(), \Anar\Login\Messaging\ProviderRegistry::shared() ), 'render' ) ); 54 $settings_hook = add_submenu_page( null, __( 'Settings', 'anar-toolkit' ), __( 'Settings', 'anar-toolkit' ), 'manage_options', 'anar-login-settings', array( new SettingsPage( new Settings(), \Anar\Login\Messaging\ProviderRegistry::shared() ), 'render' ) ); 55 add_action( 56 'load-' . $settings_hook, 57 static function () { 58 // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited -- Hidden compatibility page still needs its admin heading. 59 $GLOBALS['title'] = __( 'Settings', 'anar-toolkit' ); 60 } 61 ); 55 62 add_submenu_page( $flags['balance'] ? 'anar-login' : null, __( 'SMS credit', 'anar-toolkit' ), __( 'SMS credit', 'anar-toolkit' ), 'manage_options', 'anar-toolkit-balance', array( BalancePage::class, 'render' ) ); 56 63 // Keep older bookmarked URLs working without a second copy of the catalog in the menu. … … 93 100 } 94 101 95 public static function render( ) {102 public static function render( $embedded = false ) { 96 103 if ( ! current_user_can( 'manage_options' ) ) { 97 104 return; … … 104 111 $groups = $other_first ? array( false => __( 'Other features', 'anar-toolkit' ), true => __( 'Active features', 'anar-toolkit' ) ) : array( true => __( 'Active features', 'anar-toolkit' ), false => __( 'Other features', 'anar-toolkit' ) ); 105 112 ?> 106 <div class=" wrap anar-features" dir="<?php echo is_rtl() ? 'rtl' : 'ltr'; ?>">113 <div class="<?php echo $embedded ? 'anar-features' : 'wrap anar-features'; ?>" dir="<?php echo is_rtl() ? 'rtl' : 'ltr'; ?>"> 107 114 <header class="anar-features-banner"> 108 115 <img src="<?php echo esc_url( ANAR_LOGIN_URL . 'assets/images/anar-logo.png?ver=' . ANAR_LOGIN_VERSION ); ?>" alt="" width="64" height="64"> 109 116 <div> 110 <h1><?php esc_html_e( 'Features', 'anar-toolkit' ); ?></h1> 117 <?php 118 if ( $embedded ) : 119 ?> 120 <h2><?php esc_html_e( 'Features', 'anar-toolkit' ); ?></h2> 121 <?php 122 else : 123 ?> 124 <h1><?php esc_html_e( 'Features', 'anar-toolkit' ); ?></h1><?php endif; ?> 111 125 <p><?php esc_html_e( 'Enable the features your store needs.', 'anar-toolkit' ); ?></p> 112 126 </div> 113 127 </header> 114 <hr class="wp-header-end"> 115 <?php StatusPanel::credit(); ?> 128 <!----> 129 <?php 130 if ( ! $embedded ) : 131 ?> 132 <hr class="wp-header-end"> 133 <?php 134 StatusPanel::credit(); 135 endif; 136 ?> 116 137 <form method="post" action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>"> 117 138 <?php wp_nonce_field( 'anar_features' ); ?> … … 194 215 $balance['enabled'] = empty( $selected['balance'] ) ? 0 : 1; 195 216 update_option( \Anar\Login\Balance\Monitor::OPTION, $balance, false ); 196 wp_safe_redirect( admin_url( 'admin.php?page=anar-login &saved=1' ) );217 wp_safe_redirect( admin_url( 'admin.php?page=anar-login-settings§ion=features&saved=1' ) ); 197 218 exit; 198 219 } -
anar-toolkit/trunk/src/Admin/SettingsPage.php
r3795335 r3809098 51 51 * @return void 52 52 */ 53 public static function landing() { 54 ( new self( new Settings(), ProviderRegistry::shared() ) )->render(); 55 } 56 53 57 public function menu() { 54 58 add_menu_page( … … 57 61 'manage_options', 58 62 'anar-login', 59 array( FeaturesPage::class, 'render' ),63 array( self::class, 'landing' ), 60 64 ANAR_LOGIN_URL . 'assets/images/anar-menu-icon.png?ver=' . ANAR_LOGIN_VERSION, 61 65 58 … … 97 101 */ 98 102 public function assets( $hook ) { 99 if ( false === strpos( $hook, 'anar-login -settings' ) ) {103 if ( false === strpos( $hook, 'anar-login' ) ) { 100 104 return; 101 105 } … … 525 529 </footer> 526 530 </form> 531 <section class="anar-tab" data-panel="features" hidden><?php FeaturesPage::render( true ); ?></section> 527 532 <section class="anar-tab" data-panel="messages" hidden> 528 533 <?php $this->section_header( __( 'Messages and templates', 'anar-toolkit' ), __( 'Find a message and edit it here. The same editor is available in each feature.', 'anar-toolkit' ), '✉' ); ?> … … 557 562 ?> 558 563 <div class="anar-admin__nav-label"><?php esc_html_e( 'Shared settings', 'anar-toolkit' ); ?></div> 564 <button type="button" data-tab="features"><?php esc_html_e( 'Features', 'anar-toolkit' ); ?></button> 565 <a class="button" href="<?php echo esc_url( admin_url( 'admin.php?page=anar-toolkit-commerce&tab=settings' ) ); ?>"><?php esc_html_e( 'Store settings', 'anar-toolkit' ); ?></a> 559 566 <button type="button" data-tab="messages"><?php esc_html_e( 'Messages and templates', 'anar-toolkit' ); ?></button> 560 567 <button type="button" data-tab="sending"><?php esc_html_e( 'Campaign sending rules', 'anar-toolkit' ); ?></button> -
anar-toolkit/trunk/src/Auth/OtpService.php
r3792977 r3809098 306 306 'message' => 'email' === $channel 307 307 ? __( 'If sign-in is available, a code has been sent to your email.', 'anar-toolkit' ) 308 : __( 'If sign-in is available, a code has been sent to your mobile.', 'anar-toolkit'),308 : ( 'bale' === \Anar\Login\Messaging\MessageSettings::get( 'login_otp' )['provider'] ? __( 'Verification code sent via Bale.', 'anar-toolkit' ) : __( 'If sign-in is available, a code has been sent to your mobile.', 'anar-toolkit' ) ), 309 309 'channel' => $channel, 310 310 'resend_after' => absint( $this->settings->get( 'resend_delay', 60 ) ), -
anar-toolkit/trunk/src/Commerce/Admin.php
r3791206 r3809098 42 42 public function assets( $hook ) { 43 43 if ( false !== strpos( $hook, 'anar-toolkit-' ) ) { 44 wp_enqueue_script( 'anar-invoice-preview', ANAR_LOGIN_URL . 'assets/js/invoice-preview.js', array(), ANAR_LOGIN_VERSION, true ); 44 45 wp_enqueue_style( 'anar-toolkit-commerce', ANAR_LOGIN_URL . 'assets/css/commerce-suite.css', array(), ANAR_LOGIN_VERSION ); 45 46 } … … 112 113 \Anar\Login\Admin\Help::section( $flags['recovery'] ? 'recovery' : 'orders' ); 113 114 ?> 114 <form method="post" action="options.php" class="anar-settings-form"><input type="hidden" name="<?php echo esc_attr( Settings::OPTION ); ?>[_partial]" value="1"><section class="anar-suite-panel" id="settings" data-suite-panel="settings" <?php echo 'settings' === $tab ? '' : 'hidden'; ?>><div class="anar-suite-toolbar"><h2><?php esc_html_e( ' Automationsettings', 'anar-toolkit' ); ?></h2></div><div class="anar-settings-grid">115 <form method="post" action="options.php" class="anar-settings-form"><input type="hidden" name="<?php echo esc_attr( Settings::OPTION ); ?>[_partial]" value="1"><section class="anar-suite-panel" id="settings" data-suite-panel="settings" <?php echo 'settings' === $tab ? '' : 'hidden'; ?>><div class="anar-suite-toolbar"><h2><?php esc_html_e( 'Store settings', 'anar-toolkit' ); ?></h2></div><div class="anar-settings-grid"> 115 116 <?php settings_fields( 'anar_toolkit_commerce' ); ?> 116 <div class="anar-commerce-card">117 <h2><?php esc_html_e( 'Modules', 'anar-toolkit' ); ?></h2>117 <nav class="anar-store-nav" aria-label="<?php esc_attr_e( 'Store settings', 'anar-toolkit' ); ?>"><a href="#anar-store-connection"><?php esc_html_e( 'Connection and orders', 'anar-toolkit' ); ?></a><a href="#anar-store-recovery"><?php esc_html_e( 'Cart recovery', 'anar-toolkit' ); ?></a><a href="#anar-store-discounts"><?php esc_html_e( 'Recovery discounts', 'anar-toolkit' ); ?></a></nav> 118 <div class="anar-commerce-card" id="anar-store-connection"><h2><?php esc_html_e( 'Order messages and connection', 'anar-toolkit' ); ?></h2> 118 119 <?php 119 120 foreach ( array( 'paid_customer' => $labels['paid_customer'], 'paid_admin' => $labels['paid_admin'], 'recovery' => __( 'Cart and unpaid-order reminders', 'anar-toolkit' ), 'new_admin' => $labels['new_admin'], 'failed_admin' => $labels['failed_admin'], 'shipment_customer' => $labels['shipment_customer'], 'status_processing' => $labels['status_processing'], 'status_completed' => $labels['status_completed'], 'status_on-hold' => $labels['status_on-hold'], 'status_cancelled' => $labels['status_cancelled'], 'status_refunded' => $labels['status_refunded'] ) as $key => $label ) : … … 130 131 <p><?php esc_html_e( 'Payment messages are triggered by WooCommerce payment completion, not by viewing the thank-you page. Merely creating an order or choosing cash on delivery does not trigger them.', 'anar-toolkit' ); ?></p> 131 132 <p><label for="anar-commerce-provider"><strong><?php esc_html_e( 'Commerce SMS provider', 'anar-toolkit' ); ?></strong></label><br><select id="anar-commerce-provider" name="<?php echo esc_attr( Settings::OPTION ); ?>[provider]"> 133 <option value="" <?php selected( $value['provider'], '' ); ?>><?php esc_html_e( 'Use the sign-in SMS provider', 'anar-toolkit' ); ?></option> 132 134 <?php foreach ( $this->providers->all() as $key => $provider ) : ?> 133 135 <option value="<?php echo esc_attr( $key ); ?>" <?php selected( $value['provider'], $key ); ?>><?php echo esc_html( $provider->title() ); ?></option> … … 139 141 if ( $flags['recovery'] ) : 140 142 ?> 141 <div class="anar-commerce-card"> 142 <h2><?php esc_html_e( 'Reminder timing and privacy', 'anar-toolkit' ); ?></h2> 143 <div class="anar-commerce-card" id="anar-store-recovery"><h2><?php esc_html_e( 'Cart recovery and sending limits', 'anar-toolkit' ); ?></h2> 143 144 <p><label for="anar-recovery-page"><strong><?php esc_html_e( 'Page for entering recovery codes', 'anar-toolkit' ); ?></strong></label><br> 144 145 <?php … … 150 151 <p><?php esc_html_e( 'Stage times are minutes after the last saved cart change. A value of 0 disables that stage. Payment, cancellation, expiry or opting out stops future reminders. Guest carts without a saved number cannot receive SMS.', 'anar-toolkit' ); ?></p> 151 152 <?php 152 $this->input( 'start_hour', __( 'Recovery sending starts at hour (0 –23)', 'anar-toolkit' ), $value['start_hour'], 'number' );153 $this->input( 'end_hour', __( 'Recovery sending stops at hour (1 –24)', 'anar-toolkit' ), $value['end_hour'], 'number' );154 $this->input( 'daily_limit', __( 'Maximum reminders per phone in 24 hours (1 –10)', 'anar-toolkit' ), $value['daily_limit'], 'number' );155 $this->input( 'link_days', __( 'Recovery eligibility after cart activity, days (1 –30)', 'anar-toolkit' ), $value['link_days'], 'number' );156 $this->input( 'code_minutes', __( 'Recovery code validity, minutes (5 –1440)', 'anar-toolkit' ), $value['code_minutes'], 'number' );157 $this->input( 'retention', __( 'Local data retention, days (7 –90)', 'anar-toolkit' ), $value['retention'], 'number' );153 $this->input( 'start_hour', __( 'Recovery sending starts at hour (0-23)', 'anar-toolkit' ), $value['start_hour'], 'number' ); 154 $this->input( 'end_hour', __( 'Recovery sending stops at hour (1-24)', 'anar-toolkit' ), $value['end_hour'], 'number' ); 155 $this->input( 'daily_limit', __( 'Maximum reminders per phone in 24 hours (1-10)', 'anar-toolkit' ), $value['daily_limit'], 'number' ); 156 $this->input( 'link_days', __( 'Recovery eligibility after cart activity, days (1-30)', 'anar-toolkit' ), $value['link_days'], 'number' ); 157 $this->input( 'code_minutes', __( 'Recovery code validity, minutes (5-1440)', 'anar-toolkit' ), $value['code_minutes'], 'number' ); 158 $this->input( 'retention', __( 'Local data retention, days (7-90)', 'anar-toolkit' ), $value['retention'], 'number' ); 158 159 foreach ( $value['events'] as $key => $event ) { 159 160 if ( ! isset( $event['minutes'] ) ) { … … 171 172 </div> 172 173 173 <div class="anar-commerce-card" ><h2><?php esc_html_e( 'Recovery discounts', 'anar-toolkit' ); ?></h2>174 <div class="anar-commerce-card" id="anar-store-discounts"><h2><?php esc_html_e( 'Recovery discounts', 'anar-toolkit' ); ?></h2> 174 175 <?php 175 176 foreach ( array( 'coupon_enabled' => __( 'Generate recovery discounts', 'anar-toolkit' ), 'coupon_individual' => __( 'Do not combine with other coupons', 'anar-toolkit' ), 'coupon_exclude_sale' => __( 'Exclude sale products', 'anar-toolkit' ) ) as $key => $label ) : … … 179 180 <?php 180 181 $this->input( 'coupon_amount', __( 'Discount amount', 'anar-toolkit' ), $value['coupon_amount'], 'number' ); 182 $this->input( 'coupon_maximum', __( 'Maximum discount including tax (0 = unlimited)', 'anar-toolkit' ), $value['coupon_maximum'], 'number' ); 181 183 $this->input( 'coupon_minimum', __( 'Minimum cart amount', 'anar-toolkit' ), $value['coupon_minimum'], 'number' ); 182 $this->input( 'coupon_stage', __( 'Offer from reminder stage (1 –3)', 'anar-toolkit' ), $value['coupon_stage'], 'number' );184 $this->input( 'coupon_stage', __( 'Offer from reminder stage (1-3)', 'anar-toolkit' ), $value['coupon_stage'], 'number' ); 183 185 $this->input( 'coupon_hours', __( 'Discount validity in hours', 'anar-toolkit' ), $value['coupon_hours'], 'number' ); 184 186 ?> … … 194 196 \Anar\Login\Admin\Help::section( 'privacy' ); 195 197 ?> 196 <section class="anar-suite-panel" data-suite-panel="privacy" id="privacy"><div class="anar-commerce-card"> 197 <h2><?php esc_html_e( 'Personal data', 'anar-toolkit' ); ?></h2> 198 <section class="anar-suite-panel" data-suite-panel="privacy" id="privacy"><div class="anar-commerce-card"><h2><?php esc_html_e( 'Personal data', 'anar-toolkit' ); ?></h2> 198 199 <p><?php esc_html_e( 'WordPress export and erasure tools can locate reminders by the optional saved email. For a phone-only request, verify the requester first and remove that number here. This removes local reminder data and queue entries, not WooCommerce orders or records already held by the SMS provider.', 'anar-toolkit' ); ?></p> 199 200 <form method="post" action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>"> -
anar-toolkit/trunk/src/Commerce/Coupons.php
r3788438 r3809098 49 49 $coupon->set_usage_limit_per_user( 1 ); 50 50 $coupon->set_date_expires( min( time() + $config['coupon_hours'] * HOUR_IN_SECONDS, $cart->updated_at + $config['link_days'] * DAY_IN_SECONDS ) ); 51 if ( (float) $config['coupon_maximum'] > 0 ) { 52 $coupon->update_meta_data( '_anar_recovery_money_cap', $config['coupon_maximum'] ); 53 $coupon->update_meta_data( '_anar_recovery_kind', $config['coupon_type'] ); 54 $coupon->update_meta_data( '_anar_recovery_value', $config['coupon_amount'] ); 55 $coupon->set_discount_type( 'anar_recovery_capped' ); 56 $coupon->set_amount( 0 ); 57 } 51 58 $coupon->set_description( __( 'Anar purchase recovery discount', 'anar-toolkit' ) ); 52 59 $coupon->update_meta_data( '_anar_cart_id', (int) $cart->id ); -
anar-toolkit/trunk/src/Commerce/Module.php
r3788438 r3809098 57 57 $page = get_queried_object(); 58 58 $shortcode = $page instanceof \WP_Post && ( has_shortcode( $page->post_content, 'anar_recover_cart' ) || has_shortcode( $page->post_content, 'anar_cart_reminders' ) ); 59 $shortcode = (bool) apply_filters( 'anar_toolkit_recovery_page_has_form', $shortcode, $page ); 59 60 if ( $shortcode || is_cart() || is_checkout() || ( $this->settings->get( 'recovery_page_id' ) && is_page( (int) $this->settings->get( 'recovery_page_id' ) ) ) ) { 60 61 if ( ! defined( 'DONOTCACHEPAGE' ) ) { -
anar-toolkit/trunk/src/Commerce/Settings.php
r3788438 r3809098 48 48 'coupon_amount' => '10', 49 49 'coupon_minimum' => '0', 50 'coupon_maximum' => '0', 50 51 'coupon_stage' => 2, 51 52 'coupon_hours' => 48, … … 61 62 'status_cancelled' => 0, 62 63 'status_refunded' => 0, 63 'provider' => ' kavenegar',64 'provider' => '', 64 65 'admin_phones' => '', 65 66 'start_hour' => 9, … … 95 96 } 96 97 98 public function provider() { 99 return $this->get( 'provider' ) ?: \Anar\Login\Messaging\MessageSettings::get( 'login_otp' )['provider']; 100 } 101 97 102 public function enabled() { 98 103 foreach ( array_merge( array( 'recovery' ), array_keys( $this->defaults()['events'] ) ) as $key ) { … … 114 119 $output[ $key ] = empty( $input[ $key ] ) ? 0 : 1; 115 120 } 116 $output['provider'] = sanitize_key( $input['provider'] ?? ' kavenegar' );121 $output['provider'] = sanitize_key( $input['provider'] ?? '' ); 117 122 $output['capture_mode'] = 'explicit' === ( $input['capture_mode'] ?? '' ) ? 'explicit' : 'automatic'; 118 123 $output['coupon_type'] = 'fixed_cart' === ( $input['coupon_type'] ?? '' ) ? 'fixed_cart' : 'percent'; 119 foreach ( array( 'coupon_amount', 'coupon_minimum' ) as $key ) {124 foreach ( array( 'coupon_amount', 'coupon_minimum', 'coupon_maximum' ) as $key ) { 120 125 $raw = Identity::latin_digits( (string) ( $input[ $key ] ?? $output[ $key ] ) ); 121 126 $output[ $key ] = (string) round( max( 0, min( 1000000000, (float) $raw ) ), 2 ); -
anar-toolkit/trunk/src/Marketing/Admin.php
r3791206 r3809098 197 197 $this->field( $key, $label, $config[ $key ], 'number' ); } 198 198 if ( 'invoice' === $module ) { 199 \Anar\Login\Admin\InvoicePreview::controls( $config ); 199 200 foreach ( array( 'store_name' => __( 'Store display name', 'anar-toolkit' ), 'store_address' => __( 'Store address', 'anar-toolkit' ), 'store_tax_id' => __( 'Store tax / registration ID', 'anar-toolkit' ), 'invoice_prefix' => __( 'Invoice number prefix', 'anar-toolkit' ) ) as $key => $label ) { 200 201 $this->field( $key, $label, $config[ $key ] ); } -
anar-toolkit/trunk/src/Marketing/Invoices.php
r3788438 r3809098 56 56 header( 'X-Robots-Tag: noindex, nofollow' ); 57 57 header( 'Content-Type: text/html; charset=utf-8' ); 58 self::document( $order, $config ); 59 exit; 60 } 61 62 public static function document( $order, $config ) { 58 63 ?> 59 <!doctype html><html <?php language_attributes(); ?>><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title><?php echo esc_html( $config['invoice_prefix'] . $order->get_order_number() ); ?></title><style>body{margin:0;background:#f4f1f5;color:#29232f;font:14px/1.9 Tahoma,Arial,sans-serif}main{max-width:850px;margin:40px auto;background:#fff;border:1px solid #e9e0ea;padding:46px;border-radius:18px}header{display:flex;justify-content:space-between;gap:24px;border-bottom:3px solid #a72c52;padding-bottom:24px}h1{font-size:24px;margin:0;color:#9b294e}h2{font-size:16px;margin-top:0}.addresses{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin:32px 0;color:#786d80}table{width:100%;border-collapse:collapse;margin:26px 0}th,td{padding:13px;text-align:start;border-bottom:1px solid #eee8f0}th{font-size:12px;color:#95849f;background:#faf7fb}.totals{max-width:360px;margin-inline-start:auto}.total{display:flex;justify-content:space-between;padding:8px 0}.grand{font-weight:700;color:#9b294e;border-top:2px solid #e8d9e3;padding-top:16px}footer{font-size:11px;color:#9c8da6;border-top:1px solid #e9e0ed;padding-top:18px;margin-top:30px}button{display:block;margin:20px auto;background:#a72c52;color:#fff;border:0;border-radius:10px;padding:12px 26px;cursor:pointer}small{display:block;color:#96879d}address{font-style:normal}@media(max-width:600px){main{margin:12px;padding:20px}.addresses{grid-template-columns:1fr}table{font-size:11px}th,td{padding:8px}header{flex-direction:column}}@media print{body{background:#fff}main{margin:0;padding:0;border:0;max-width:none}button{display:none}@page{size:A4;margin:18mm}}</style></head><body><main> 60 <header><div><h1><?php echo esc_html( $config['store_name'] ?: get_bloginfo( 'name' ) ); ?></h1><small><?php echo esc_html( $config['store_address'] ); ?></small> 64 <!doctype html><html <?php language_attributes(); ?>><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title><?php echo esc_html( $config['invoice_prefix'] . $order->get_order_number() ); ?></title><style>body{margin:0;background:#f4f1f5;color:#29232f;font:14px/1.9 Tahoma,Arial,sans-serif}main{max-width:850px;margin:40px auto;background:#fff;border:1px solid #e9e0ea;padding:46px;border-radius:18px}header{display:flex;justify-content:space-between;gap:24px;border-bottom:3px solid #a72c52;padding-bottom:24px}h1{font-size:24px;margin:0;color:#9b294e}h2{font-size:16px;margin-top:0}.addresses{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin:32px 0;color:#786d80}table{width:100%;border-collapse:collapse;margin:26px 0}th,td{padding:13px;text-align:start;border-bottom:1px solid #eee8f0}th{font-size:12px;color:#95849f;background:#faf7fb}.totals{max-width:360px;margin-inline-start:auto}.total{display:flex;justify-content:space-between;padding:8px 0}.grand{font-weight:700;color:#9b294e;border-top:2px solid #e8d9e3;padding-top:16px}footer{font-size:11px;color:#9c8da6;border-top:1px solid #e9e0ed;padding-top:18px;margin-top:30px}button{display:block;margin:20px auto;background:#a72c52;color:#fff;border:0;border-radius:10px;padding:12px 26px;cursor:pointer}small{display:block;color:#96879d}address{font-style:normal}@media(max-width:600px){main{margin:12px;padding:20px}.addresses{grid-template-columns:1fr}table{font-size:11px}th,td{padding:8px}header{flex-direction:column}}@media print{body{background:#fff}main{margin:0;padding:0;border:0;max-width:none}button{display:none}@page{size:A4;margin:18mm}}</style><style> 65 :root{--invoice-accent:<?php echo esc_html( sanitize_hex_color( $config['invoice_color'] ) ?: '#a72c52' ); ?>} 66 h1,.grand{color:var(--invoice-accent)}header{border-color:var(--invoice-accent)}button{background:var(--invoice-accent)} 67 .invoice-logo{max-width:150px;max-height:75px;object-fit:contain} 68 <?php 69 if ( 'simple' === $config['invoice_template'] ) : 70 ?> 71 body{background:#fff;color:#111}main{border:0;border-radius:0}h1,.grand{color:#111}header{border-color:#111}th{background:#fff;color:#111}<?php endif; ?> 72 </style></head><body><main> 73 <header><div> 74 <?php 75 if ( $config['invoice_logo'] ) : 76 ?> 77 <img class="invoice-logo" src="<?php echo esc_url( $config['invoice_logo'] ); ?>" alt="<?php echo esc_attr( $config['store_name'] ); ?>"><?php endif; ?><h1><?php echo esc_html( $config['store_name'] ?: get_bloginfo( 'name' ) ); ?></h1><small><?php echo esc_html( $config['store_address'] ); ?></small> 61 78 <?php 62 79 if ( $config['store_tax_id'] ) : 63 80 ?> 64 81 <small><?php esc_html_e( 'Store tax / registration ID:', 'anar-toolkit' ); ?> <?php echo esc_html( $config['store_tax_id'] ); ?></small><?php endif; ?></div><div><h2><?php esc_html_e( 'Order invoice', 'anar-toolkit' ); ?> <span dir="ltr"><?php echo esc_html( $config['invoice_prefix'] . $order->get_order_number() ); ?></span></h2><small><?php echo esc_html( $order->get_date_created() ? wc_format_datetime( $order->get_date_created() ) : '' ); ?></small><small><?php echo esc_html( wc_get_order_status_name( $order->get_status() ) ); ?></small></div></header> 65 <div class="addresses"><div><h2><?php esc_html_e( 'Bill to', 'anar-toolkit' ); ?></h2><address><?php echo wp_kses_post( $order->get_formatted_billing_address() ); ?></address><small dir="ltr"><?php echo esc_html( $order->get_billing_phone() ); ?></small></div><div><h2><?php esc_html_e( 'Ship to', 'anar-toolkit' ); ?></h2><address><?php echo wp_kses_post( $order->get_formatted_shipping_address() ?: $order->get_formatted_billing_address() ); ?></address><small><?php echo esc_html( $order->get_payment_method_title() ); ?></small></div></div> 82 <div class="addresses"><div><h2><?php esc_html_e( 'Bill to', 'anar-toolkit' ); ?></h2><address><?php echo wp_kses_post( $order->get_formatted_billing_address() ); ?></address><small dir="ltr"><?php echo esc_html( $order->get_billing_phone() ); ?></small></div> 83 <?php 84 if ( $config['invoice_show_shipping'] ) : 85 ?> 86 <div><h2><?php esc_html_e( 'Ship to', 'anar-toolkit' ); ?></h2><address><?php echo wp_kses_post( $order->get_formatted_shipping_address() ?: $order->get_formatted_billing_address() ); ?></address><small><?php echo esc_html( $order->get_payment_method_title() ); ?></small></div><?php endif; ?></div> 66 87 <table><thead><tr><th><?php esc_html_e( 'Item', 'anar-toolkit' ); ?></th><th><?php esc_html_e( 'Quantity', 'anar-toolkit' ); ?></th><th><?php esc_html_e( 'Amount', 'anar-toolkit' ); ?></th></tr></thead><tbody> 67 88 <?php … … 70 91 <tr><td><?php echo esc_html( $item->get_name() ); ?> 71 92 <?php 72 if ( $ item->get_product() ) :93 if ( $config['invoice_show_sku'] && $item->get_product() ) : 73 94 ?> 74 95 <small><?php echo esc_html( $item->get_product()->get_sku() ); ?></small><?php endif; ?></td><td><?php echo esc_html( $item->get_quantity() ); ?></td><td><?php echo wp_kses_post( wc_price( $item->get_total(), array( 'currency' => $order->get_currency() ) ) ); ?></td></tr><?php endforeach; ?></tbody></table><div class="totals"> … … 76 97 foreach ( $order->get_order_item_totals() as $key => $total ) : 77 98 ?> 78 <div class="total <?php echo 'order_total' === $key ? 'grand' : ''; ?>"><span><?php echo esc_html( $total['label'] ); ?></span><span><?php echo wp_kses_post( $total['value'] ); ?></span></div><?php endforeach; ?></div> <footer><?php esc_html_e( 'This document reflects the current order and payment status. Use your browser print dialog to print it or save it as PDF.', 'anar-toolkit' ); ?></footer></main><button type="button" onclick="window.print()"><?php esc_html_e( 'Print / save as PDF', 'anar-toolkit' ); ?></button></body></html>99 <div class="total <?php echo 'order_total' === $key ? 'grand' : ''; ?>"><span><?php echo esc_html( $total['label'] ); ?></span><span><?php echo wp_kses_post( $total['value'] ); ?></span></div><?php endforeach; ?></div> 79 100 <?php 80 exit; 101 if ( $config['invoice_show_note'] && $order->get_customer_note() ) : 102 ?> 103 <p><?php echo esc_html( $order->get_customer_note() ); ?></p><?php endif; ?><footer><p><?php echo esc_html( $config['invoice_footer'] ); ?></p><?php esc_html_e( 'This document reflects the current order and payment status. Use your browser print dialog to print it or save it as PDF.', 'anar-toolkit' ); ?></footer></main><button type="button" onclick="window.print()"><?php esc_html_e( 'Print / save as PDF', 'anar-toolkit' ); ?></button></body></html> 104 <?php 81 105 } 82 106 } -
anar-toolkit/trunk/src/Marketing/Settings.php
r3791013 r3809098 24 24 $rules[ $key ] = array( 'enabled' => 'invoice' === $key ? 0 : 1, 'days' => $days, 'message' => __( '{site}: Hello {name}. {message} {product_url} {coupon_code} {action_url} Stop messages: {unsubscribe_url}', 'anar-toolkit' ), 'template' => '', 'params' => '', 'discount_type' => 'none', 'discount_amount' => '0', 'discount_hours' => 72, 'static_coupon' => '' ); 25 25 } 26 return array_merge( GameCampaign::defaults(), array( 'modules' => array_fill_keys( array_keys( self::modules() ), 0 ), 'provider' => '', 'daily_limit' => 3, 'gap_hours' => 24, 'vip_amount' => '10000000', 'minimum_orders' => 1, 'minimum_spent' => '0', 'maximum_spent' => '0', 'products' => '', 'exclude_products' => '', 'categories' => '', 'prediction_mode' => 'hybrid', 'prediction_minimum' => 3, 'prediction_confidence' => 60, 'retention' => 90, 'survey_reviews' => 0, 'store_name' => '', 'store_address' => '', 'store_tax_id' => '', 'invoice_prefix' => 'INV-', ' game_texts' => array(), 'games_limit' => 1, 'game_reward_amount' => '5', 'game_reward_type' => 'percent', 'game_reward_chance' => 25, 'game_quiz_question' => '', 'game_quiz_options' => '', 'game_quiz_answer' => 1, 'game_milestone_orders' => 3, 'referral_wait_days' => 7, 'referral_amount' => '5', 'referral_minimum' => '0', 'rules' => $rules ) );26 return array_merge( GameCampaign::defaults(), array( 'modules' => array_fill_keys( array_keys( self::modules() ), 0 ), 'provider' => '', 'daily_limit' => 3, 'gap_hours' => 24, 'vip_amount' => '10000000', 'minimum_orders' => 1, 'minimum_spent' => '0', 'maximum_spent' => '0', 'products' => '', 'exclude_products' => '', 'categories' => '', 'prediction_mode' => 'hybrid', 'prediction_minimum' => 3, 'prediction_confidence' => 60, 'retention' => 90, 'survey_reviews' => 0, 'store_name' => '', 'store_address' => '', 'store_tax_id' => '', 'invoice_prefix' => 'INV-', 'invoice_template' => 'branded', 'invoice_color' => '#a72c52', 'invoice_logo' => '', 'invoice_footer' => '', 'invoice_show_sku' => 1, 'invoice_show_shipping' => 1, 'invoice_show_note' => 0, 'game_texts' => array(), 'games_limit' => 1, 'game_reward_amount' => '5', 'game_reward_type' => 'percent', 'game_reward_chance' => 25, 'game_quiz_question' => '', 'game_quiz_options' => '', 'game_quiz_answer' => 1, 'game_milestone_orders' => 3, 'referral_wait_days' => 7, 'referral_amount' => '5', 'referral_minimum' => '0', 'rules' => $rules ) ); 27 27 } 28 28 … … 69 69 $out[ $key ] = sanitize_textarea_field( is_scalar( $raw[ $key ] ?? '' ) ? $raw[ $key ] ?? '' : '' ); } 70 70 $out['provider'] = sanitize_key( $out['provider'] ); 71 $out['invoice_template'] = 'simple' === ( $raw['invoice_template'] ?? '' ) ? 'simple' : 'branded'; 72 $out['invoice_color'] = sanitize_hex_color( $raw['invoice_color'] ?? '' ) ?: '#a72c52'; 73 $out['invoice_logo'] = esc_url_raw( $raw['invoice_logo'] ?? '' ); 74 $out['invoice_footer'] = sanitize_textarea_field( $raw['invoice_footer'] ?? '' ); 75 foreach ( array( 'invoice_show_sku', 'invoice_show_shipping', 'invoice_show_note' ) as $key ) { 76 $out[ $key ] = empty( $raw[ $key ] ) ? 0 : 1; } 77 71 78 $out['game_texts'] = array(); 72 79 foreach ( array( 'wheel', 'scratch', 'boxes', 'cards', 'slots', 'treasure', 'daily', 'quiz', 'memory', 'milestone' ) as $type ) { -
anar-toolkit/trunk/src/Messaging/MessageCatalog.php
r3795298 r3809098 74 74 $name = 'kavenegar' === $provider ? 'token' : ( ( $config['code_parameter'] ?? '' ) ?: 'code' ); 75 75 $text = 'custom' === $provider || ( 'melipayamak' === $provider && empty( $config['template_id'] ) && ! empty( $config['from'] ) ); 76 return array( 'provider' => $provider, 'mode' => $text ? 'text' : 'template', 'template' => $config['template_id'] ?? '', 'params' => $name . '={code}', 'message' => $login->get( 'sms_message' ), 'inherit' => 'login_otp' !== $id );76 return array( 'provider' => $provider, 'mode' => $text ? 'text' : 'template', 'template' => 'bale' === $provider ? 'otp' : ( $config['template_id'] ?? '' ), 'params' => $name . '={code}', 'message' => $login->get( 'sms_message' ), 'inherit' => 'login_otp' !== $id ); 77 77 } 78 78 if ( 'commerce' === $item['source'] ) { … … 80 80 $key = 'recovery_request' === $id ? 'recovery_1' : $item['key']; 81 81 $event = $settings['events'][ $key ]; 82 $provider = $settings['provider'];82 $provider = ( new CommerceSettings() )->provider(); 83 83 } else { 84 84 $settings = ( new MarketingSettings() )->all(); 85 85 $event = $settings['rules'][ $item['key'] ]; 86 $provider = $settings['provider'] ?: ( new CommerceSettings() )-> get( 'provider');86 $provider = $settings['provider'] ?: ( new CommerceSettings() )->provider(); 87 87 } 88 88 return array_merge( $event, array( 'provider' => $provider, 'mode' => 'custom' === $provider ? 'text' : 'template', 'inherit' => false ) ); -
anar-toolkit/trunk/src/Messaging/MessageSettings.php
r3795298 r3809098 109 109 } 110 110 $registry = ProviderRegistry::shared()->all(); 111 if ( 'bale' === ( $value['provider'] ?? '' ) && 'auth' !== $item['source'] ) { 112 $errors[] = __( 'Bale supports verification codes only.', 'anar-toolkit' ); 113 } 111 114 if ( ! empty( $value['account_changed'] ) ) { 112 115 $errors[] = __( 'The provider account changed. Review and save this message again.', 'anar-toolkit' ); -
anar-toolkit/trunk/src/Messaging/ProviderRegistry.php
r3791641 r3809098 83 83 $http = $this->http ? $this->http : new HttpClient(); 84 84 $this->providers = array(); 85 foreach ( array( Kavenegar::class, Melipayamak::class, IPPanel::class, Panelchi::class, MaxSms::class, FarazSms::class, SmsIr::class, CustomHttp::class ) as $class ) {85 foreach ( array( Kavenegar::class, Melipayamak::class, IPPanel::class, Panelchi::class, MaxSms::class, FarazSms::class, SmsIr::class, \Anar\Login\Messaging\Providers\Bale::class, CustomHttp::class ) as $class ) { 86 86 $provider = new $class( $this->settings, $http ); 87 87 $this->providers[ $provider->key() ] = $provider; -
anar-toolkit/trunk/src/Plugin.php
r3793903 r3809098 55 55 */ 56 56 public function boot() { 57 ( new \Anar\Login\Integrations\Elementor() )->register(); 57 58 add_action( 'init', array( $this, 'init' ), 0 ); 58 59 add_action( 'init', array( $this, 'runtime' ), 1 ); … … 90 91 ); 91 92 if ( is_admin() ) { 93 add_action( 'admin_post_anar_invoice_preview', array( \Anar\Login\Admin\InvoicePreview::class, 'render' ) ); 92 94 $settings = new Settings(); 93 95 $providers = ProviderRegistry::shared(); … … 191 193 } 192 194 } 195 ( new \Anar\Login\Commerce\CappedDiscount() )->register(); 193 196 // Existing personal coupons keep their restrictions even if their creating module is stopped. 194 197 if ( $flags['games'] || get_option( 'anar_game_budget_coupons' ) ) { -
anar-toolkit/trunk/src/Vendor/WebAuthn/UPSTREAM.txt
r3791584 r3809098 3 3 Commit: 20adb4a240c3997bd8cac7dc4dde38ab0bea0ed1 4 4 License: MIT; see LICENSE. 5 Modification: namespace isolated as Anar\Login\Vendor\WebAuthn .5 Modification: namespace isolated as Anar\Login\Vendor\WebAuthn; WordPress direct-access guard added. 6 6 Loaded only by the optional passkey handler on PHP 8.0 or later. -
anar-toolkit/trunk/src/Vendor/WebAuthn/WebAuthn.php
r3791584 r3809098 3 3 namespace Anar\Login\Vendor\WebAuthn; 4 4 use Anar\Login\Vendor\WebAuthn\Binary\ByteBuffer; 5 6 defined( 'ABSPATH' ) || exit; 7 5 8 require_once 'WebAuthnException.php'; 6 9 require_once 'Binary/ByteBuffer.php';
Note:
See TracChangeset
for help on using the changeset viewer.