259 lines
16 KiB
PHP
259 lines
16 KiB
PHP
<?php
|
||
/**
|
||
* Template Name: اپلیکیشن ویندوز
|
||
*
|
||
* @package Hesabix2
|
||
*/
|
||
|
||
if (!defined('ABSPATH')) {
|
||
exit;
|
||
}
|
||
|
||
get_header();
|
||
|
||
$wrap = 'max-w-6xl mx-auto px-4 sm:px-6 lg:px-8';
|
||
$msi_url = function_exists('hesabix2_windows_msi_url') ? hesabix2_windows_msi_url() : '#download';
|
||
$version = function_exists('hesabix2_windows_app_version') ? hesabix2_windows_app_version() : '70.11.900';
|
||
$min_os = function_exists('hesabix2_windows_min_os') ? hesabix2_windows_min_os() : 'Windows 10 / 11';
|
||
$msi_size = function_exists('hesabix2_windows_msi_size') ? hesabix2_windows_msi_size() : '';
|
||
$releases_url = function_exists('hesabix2_windows_releases_url') ? hesabix2_windows_releases_url() : 'https://source.hesabix.ir/hesabix/arc/releases';
|
||
$features = function_exists('hesabix2_windows_features') ? hesabix2_windows_features() : array();
|
||
$steps = function_exists('hesabix2_windows_install_steps') ? hesabix2_windows_install_steps() : array();
|
||
$faq_items = function_exists('hesabix2_windows_faq_items') ? hesabix2_windows_faq_items() : array();
|
||
$arc_url = function_exists('hesabix2_fp_arc_url') ? hesabix2_fp_arc_url() : 'https://arc.hesabix.ir';
|
||
$contact_url = function_exists('hesabix2_contact_page_url') ? hesabix2_contact_page_url() : home_url('/contact/');
|
||
|
||
$feature_icons = array(
|
||
'desktop' => '<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" d="M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"/>',
|
||
'invoice' => '<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"/>',
|
||
'warehouse' => '<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" d="M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4"/>',
|
||
'crm' => '<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0z"/>',
|
||
'reports' => '<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"/>',
|
||
'secure' => '<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"/>',
|
||
'notify' => '<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" d="M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"/>',
|
||
'sync' => '<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"/>',
|
||
);
|
||
?>
|
||
|
||
<main id="main-content" class="hx-win">
|
||
|
||
<section class="hx-win-hero" aria-labelledby="hx-win-hero-title">
|
||
<div class="hx-win-hero__aurora" aria-hidden="true"></div>
|
||
<div class="hx-win-hero__grid" aria-hidden="true"></div>
|
||
<div class="<?php echo esc_attr($wrap); ?> hx-win-hero__inner">
|
||
<?php if (function_exists('hesabix2_seo_render_breadcrumb')) : ?>
|
||
<div class="hx-win-hero__crumb"><?php hesabix2_seo_render_breadcrumb('hesabix2-breadcrumb hesabix2-breadcrumb--on-dark'); ?></div>
|
||
<?php endif; ?>
|
||
|
||
<div class="hx-win-hero__grid-layout">
|
||
<div class="hx-win-hero__copy">
|
||
<p class="hx-win-hero__badge">
|
||
<span class="hx-win-hero__badge-dot" aria-hidden="true"></span>
|
||
<?php esc_html_e('انتشار رسمی · دانلود مستقیم MSI', 'hesabix2'); ?>
|
||
</p>
|
||
<h1 id="hx-win-hero-title" class="hx-win-hero__title">
|
||
<?php esc_html_e('حسابیکس روی ویندوز', 'hesabix2'); ?>
|
||
</h1>
|
||
<p class="hx-win-hero__lead">
|
||
<?php esc_html_e('پلتفرم آرک روی دسکتاپ — فاکتور، انبار، CRM و گزارش مالی در یک اپ مستقل. بدون Store؛ مستقیم از مخزن رسمی.', 'hesabix2'); ?>
|
||
</p>
|
||
|
||
<div class="hx-win-hero__meta" role="list">
|
||
<span role="listitem" class="hx-win-pill" dir="ltr">v<?php echo esc_html($version); ?></span>
|
||
<span role="listitem" class="hx-win-pill"><?php echo esc_html($min_os); ?></span>
|
||
<?php if ($msi_size) : ?>
|
||
<span role="listitem" class="hx-win-pill"><?php echo esc_html($msi_size); ?></span>
|
||
<?php endif; ?>
|
||
<span role="listitem" class="hx-win-pill hx-win-pill--accent"><?php esc_html_e('خارج از Microsoft Store', 'hesabix2'); ?></span>
|
||
</div>
|
||
|
||
<div class="hx-win-hero__actions">
|
||
<a href="<?php echo esc_url($msi_url); ?>" class="hx-win-cta" id="download" download>
|
||
<svg class="hx-win-cta__icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"/></svg>
|
||
<?php esc_html_e('دانلود MSI', 'hesabix2'); ?>
|
||
</a>
|
||
<a href="#install" class="hx-win-cta hx-win-cta--ghost">
|
||
<?php esc_html_e('راهنمای نصب', 'hesabix2'); ?>
|
||
</a>
|
||
<a href="<?php echo esc_url($releases_url); ?>" target="_blank" rel="noopener noreferrer" class="hx-win-cta hx-win-cta--ghost">
|
||
<?php esc_html_e('همهٔ ریلیزها', 'hesabix2'); ?>
|
||
</a>
|
||
</div>
|
||
<p class="hx-win-hero__note">
|
||
<?php esc_html_e('نسخههای جدید در مخزن آرک منتشر میشوند — همان منبع اندروید و ویندوز.', 'hesabix2'); ?>
|
||
</p>
|
||
</div>
|
||
|
||
<div class="hx-win-hero__visual" aria-hidden="true">
|
||
<div class="hx-win-desktop">
|
||
<div class="hx-win-desktop__frame">
|
||
<div class="hx-win-desktop__titlebar">
|
||
<span></span><span></span><span></span>
|
||
<em>حسابیکس — آرک</em>
|
||
</div>
|
||
<div class="hx-win-desktop__screen">
|
||
<div class="hx-win-desktop__sidebar"></div>
|
||
<div class="hx-win-desktop__main">
|
||
<div class="hx-win-desktop__card hx-win-desktop__card--a">
|
||
<span>فروش ماه</span>
|
||
<strong>۴۸٫۲ م</strong>
|
||
</div>
|
||
<div class="hx-win-desktop__card hx-win-desktop__card--b">
|
||
<span>گزارش مالی</span>
|
||
<strong>آماده</strong>
|
||
</div>
|
||
<div class="hx-win-desktop__card hx-win-desktop__card--c">
|
||
<span>فاکتورهای باز</span>
|
||
<strong>۱۷</strong>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="hx-win-desktop__glow"></div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<section class="hx-win-why">
|
||
<div class="<?php echo esc_attr($wrap); ?>">
|
||
<div class="hx-win-section-head hx-win-reveal">
|
||
<span class="hx-win-eyebrow"><?php esc_html_e('چرا دسکتاپ؟', 'hesabix2'); ?></span>
|
||
<h2 class="hx-win-section-title"><?php esc_html_e('آرک روی میز کار؛ قدرت بیشتر، همان داده', 'hesabix2'); ?></h2>
|
||
<p class="hx-win-section-desc"><?php esc_html_e('برای حسابدار، مدیر مالی و تیمهایی که روزانه با گزارش و فاکتور کار میکنند.', 'hesabix2'); ?></p>
|
||
</div>
|
||
<div class="hx-win-why__grid">
|
||
<article class="hx-win-why__item hx-win-reveal">
|
||
<h3><?php esc_html_e('بدون مرورگر', 'hesabix2'); ?></h3>
|
||
<p><?php esc_html_e('اجرای سریع از منوی استارت — بدون باز کردن تب جدید هر بار.', 'hesabix2'); ?></p>
|
||
</article>
|
||
<article class="hx-win-why__item hx-win-reveal">
|
||
<h3><?php esc_html_e('فضای کار بزرگتر', 'hesabix2'); ?></h3>
|
||
<p><?php esc_html_e('گزارشها، جداول و چند پنجره — راحتتر از موبایل و تبلت.', 'hesabix2'); ?></p>
|
||
</article>
|
||
<article class="hx-win-why__item hx-win-reveal">
|
||
<h3><?php esc_html_e('بهروزرسانی شفاف', 'hesabix2'); ?></h3>
|
||
<p><?php esc_html_e('هر نسخه در مخزن آرک منتشر میشود؛ تاریخچه و فایلها قابل ردیابی است.', 'hesabix2'); ?></p>
|
||
</article>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<?php if (!empty($features)) : ?>
|
||
<section id="features" class="hx-win-features">
|
||
<div class="<?php echo esc_attr($wrap); ?>">
|
||
<div class="hx-win-section-head hx-win-reveal">
|
||
<span class="hx-win-eyebrow"><?php esc_html_e('قابلیتها', 'hesabix2'); ?></span>
|
||
<h2 class="hx-win-section-title"><?php esc_html_e('آنچه روی ویندوز دارید', 'hesabix2'); ?></h2>
|
||
<p class="hx-win-section-desc"><?php esc_html_e('همان اکوسیستم آرک — بهینه برای کار روزانه روی PC.', 'hesabix2'); ?></p>
|
||
</div>
|
||
<div class="hx-win-features__grid">
|
||
<?php foreach ($features as $feat) :
|
||
$icon_key = isset($feat['icon']) ? (string) $feat['icon'] : 'desktop';
|
||
$icon_svg = isset($feature_icons[ $icon_key ]) ? $feature_icons[ $icon_key ] : $feature_icons['desktop'];
|
||
?>
|
||
<article class="hx-win-feature hx-win-reveal">
|
||
<span class="hx-win-feature__icon" aria-hidden="true">
|
||
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24"><?php echo $icon_svg; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></svg>
|
||
</span>
|
||
<h3 class="hx-win-feature__title"><?php echo esc_html($feat['title']); ?></h3>
|
||
<p class="hx-win-feature__desc"><?php echo esc_html($feat['desc']); ?></p>
|
||
</article>
|
||
<?php endforeach; ?>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
<?php endif; ?>
|
||
|
||
<?php if (!empty($steps)) : ?>
|
||
<section id="install" class="hx-win-install">
|
||
<div class="<?php echo esc_attr($wrap); ?>">
|
||
<div class="hx-win-install__layout">
|
||
<div class="hx-win-reveal">
|
||
<span class="hx-win-eyebrow"><?php esc_html_e('نصب', 'hesabix2'); ?></span>
|
||
<h2 class="hx-win-section-title"><?php esc_html_e('در سه گام نصب کنید', 'hesabix2'); ?></h2>
|
||
<p class="hx-win-section-desc hx-win-section-desc--flush"><?php esc_html_e('فایل MSI استاندارد ویندوز است — نصب ساده مثل سایر نرمافزارهای دسکتاپ.', 'hesabix2'); ?></p>
|
||
<a href="<?php echo esc_url($msi_url); ?>" class="hx-win-cta hx-win-cta--compact" download>
|
||
<svg class="hx-win-cta__icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"/></svg>
|
||
<?php esc_html_e('دانلود آخرین نسخه', 'hesabix2'); ?>
|
||
</a>
|
||
</div>
|
||
<ol class="hx-win-steps">
|
||
<?php foreach ($steps as $i => $step) : ?>
|
||
<li class="hx-win-step hx-win-reveal">
|
||
<span class="hx-win-step__num" aria-hidden="true"><?php echo esc_html((string) ($i + 1)); ?></span>
|
||
<div>
|
||
<h3 class="hx-win-step__title"><?php echo esc_html($step['title']); ?></h3>
|
||
<p class="hx-win-step__desc"><?php echo esc_html($step['desc']); ?></p>
|
||
</div>
|
||
</li>
|
||
<?php endforeach; ?>
|
||
</ol>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
<?php endif; ?>
|
||
|
||
<section class="hx-win-reqs" aria-label="<?php esc_attr_e('نیازمندیها', 'hesabix2'); ?>">
|
||
<div class="<?php echo esc_attr($wrap); ?> hx-win-reqs__inner hx-win-reveal">
|
||
<div>
|
||
<h2 class="hx-win-reqs__title"><?php esc_html_e('نیازمندیها', 'hesabix2'); ?></h2>
|
||
<p class="hx-win-reqs__desc"><?php esc_html_e('برای نصب روی ویندوز این موارد را در نظر بگیرید.', 'hesabix2'); ?></p>
|
||
</div>
|
||
<ul class="hx-win-reqs__list">
|
||
<li><strong><?php esc_html_e('سیستمعامل', 'hesabix2'); ?></strong> <?php echo esc_html($min_os); ?></li>
|
||
<li><strong><?php esc_html_e('معماری', 'hesabix2'); ?></strong> <?php esc_html_e('۶۴ بیت (x64)', 'hesabix2'); ?></li>
|
||
<li><strong><?php esc_html_e('حساب', 'hesabix2'); ?></strong> <?php esc_html_e('کاربری فعال در آرک', 'hesabix2'); ?></li>
|
||
<li><strong><?php esc_html_e('فضا', 'hesabix2'); ?></strong> <?php echo esc_html($msi_size ? $msi_size : __('حدود ۳۳ مگابایت', 'hesabix2')); ?></li>
|
||
</ul>
|
||
</div>
|
||
</section>
|
||
|
||
<?php if (!empty($faq_items)) : ?>
|
||
<section id="faq" class="hx-win-faq">
|
||
<div class="<?php echo esc_attr($wrap); ?>">
|
||
<div class="hx-win-section-head hx-win-reveal">
|
||
<span class="hx-win-eyebrow"><?php esc_html_e('سوالات', 'hesabix2'); ?></span>
|
||
<h2 class="hx-win-section-title"><?php esc_html_e('پرسشهای متداول', 'hesabix2'); ?></h2>
|
||
</div>
|
||
<div class="hx-win-faq__list">
|
||
<?php foreach ($faq_items as $faq) : ?>
|
||
<div class="hx-win-faq__item hx-win-reveal">
|
||
<button type="button" class="hx-win-faq__q" aria-expanded="false">
|
||
<span><?php echo esc_html($faq['q']); ?></span>
|
||
<span class="hx-win-faq__icon" aria-hidden="true">+</span>
|
||
</button>
|
||
<div class="hx-win-faq__a" hidden>
|
||
<p><?php echo esc_html($faq['a']); ?></p>
|
||
</div>
|
||
</div>
|
||
<?php endforeach; ?>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
<?php endif; ?>
|
||
|
||
<section class="hx-win-final">
|
||
<div class="hx-win-final__bg" aria-hidden="true"></div>
|
||
<div class="<?php echo esc_attr($wrap); ?> hx-win-final__inner hx-win-reveal">
|
||
<h2 class="hx-win-final__title"><?php esc_html_e('همین حالا نصب کنید', 'hesabix2'); ?></h2>
|
||
<p class="hx-win-final__desc"><?php esc_html_e('دانلود مستقیم MSI از مخزن رسمی آرک — رایگان برای کاربران حسابیکس.', 'hesabix2'); ?></p>
|
||
<div class="hx-win-final__actions">
|
||
<a href="<?php echo esc_url($msi_url); ?>" class="hx-win-cta" download>
|
||
<svg class="hx-win-cta__icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"/></svg>
|
||
<?php esc_html_e('دانلود MSI', 'hesabix2'); ?>
|
||
</a>
|
||
<a href="<?php echo esc_url($releases_url); ?>" target="_blank" rel="noopener noreferrer" class="hx-win-cta hx-win-cta--ghost">
|
||
<?php esc_html_e('مشاهدهٔ ریلیزها', 'hesabix2'); ?>
|
||
</a>
|
||
<a href="<?php echo esc_url($contact_url); ?>" class="hx-win-final__link">
|
||
<?php esc_html_e('پشتیبانی', 'hesabix2'); ?>
|
||
</a>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
</main>
|
||
|
||
<?php get_footer(); ?>
|