266 lines
17 KiB
PHP
266 lines
17 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';
|
|
$apk_url = function_exists('hesabix2_android_apk_url') ? hesabix2_android_apk_url() : '#download';
|
|
$version = function_exists('hesabix2_android_app_version') ? hesabix2_android_app_version() : '1.0.0';
|
|
$min_os = function_exists('hesabix2_android_min_os') ? hesabix2_android_min_os() : 'Android 8.0+';
|
|
$apk_size = function_exists('hesabix2_android_apk_size') ? hesabix2_android_apk_size() : '';
|
|
$features = function_exists('hesabix2_android_features') ? hesabix2_android_features() : array();
|
|
$steps = function_exists('hesabix2_android_install_steps') ? hesabix2_android_install_steps() : array();
|
|
$faq_items = function_exists('hesabix2_android_faq_items') ? hesabix2_android_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(
|
|
'dashboard' => '<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" d="M4 5a1 1 0 011-1h4a1 1 0 011 1v5a1 1 0 01-1 1H5a1 1 0 01-1-1V5zm10-1h4a1 1 0 011 1v2a1 1 0 01-1 1h-4a1 1 0 01-1-1V5a1 1 0 011-1zM4 14a1 1 0 011-1h4a1 1 0 011 1v5a1 1 0 01-1 1H5a1 1 0 01-1-1v-5zm10 0a1 1 0 011-1h4a1 1 0 011 1v5a1 1 0 01-1 1h-4a1 1 0 01-1-1v-5z"/>',
|
|
'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"/>',
|
|
'offline' => '<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" d="M18.364 5.636a9 9 0 010 12.728M5.636 18.364a9 9 0 010-12.728m9.9 2.828a5 5 0 010 7.072M8.464 15.536a5 5 0 010-7.072M12 12h.01"/>',
|
|
'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-android">
|
|
|
|
<!-- Hero -->
|
|
<section class="hx-android-hero" aria-labelledby="hx-android-hero-title">
|
|
<div class="hx-android-hero__aurora" aria-hidden="true"></div>
|
|
<div class="hx-android-hero__grid" aria-hidden="true"></div>
|
|
<div class="<?php echo esc_attr($wrap); ?> hx-android-hero__inner">
|
|
<?php if (function_exists('hesabix2_seo_render_breadcrumb')) : ?>
|
|
<div class="hx-android-hero__crumb"><?php hesabix2_seo_render_breadcrumb('hesabix2-breadcrumb hesabix2-breadcrumb--on-dark'); ?></div>
|
|
<?php endif; ?>
|
|
|
|
<div class="hx-android-hero__grid-layout">
|
|
<div class="hx-android-hero__copy">
|
|
<p class="hx-android-hero__badge">
|
|
<span class="hx-android-hero__badge-dot" aria-hidden="true"></span>
|
|
<?php esc_html_e('انتشار رسمی · دانلود مستقیم', 'hesabix2'); ?>
|
|
</p>
|
|
<h1 id="hx-android-hero-title" class="hx-android-hero__title">
|
|
<?php esc_html_e('حسابیکس روی اندروید', 'hesabix2'); ?>
|
|
</h1>
|
|
<p class="hx-android-hero__lead">
|
|
<?php esc_html_e('کسبوکارتان را از جیب مدیریت کنید — فاکتور، انبار، CRM و داشبورد، همگام با آرک. بدون مارکت؛ مستقیم از حسابیکس.', 'hesabix2'); ?>
|
|
</p>
|
|
|
|
<div class="hx-android-hero__meta" role="list">
|
|
<span role="listitem" class="hx-android-pill" dir="ltr">v<?php echo esc_html($version); ?></span>
|
|
<span role="listitem" class="hx-android-pill"><?php echo esc_html($min_os); ?></span>
|
|
<?php if ($apk_size) : ?>
|
|
<span role="listitem" class="hx-android-pill"><?php echo esc_html($apk_size); ?></span>
|
|
<?php endif; ?>
|
|
<span role="listitem" class="hx-android-pill hx-android-pill--accent"><?php esc_html_e('خارج از مارکتها', 'hesabix2'); ?></span>
|
|
</div>
|
|
|
|
<div class="hx-android-hero__actions">
|
|
<a href="<?php echo esc_url($apk_url); ?>" class="hx-android-cta" id="download" download data-android-download>
|
|
<svg class="hx-android-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('دانلود APK', 'hesabix2'); ?>
|
|
</a>
|
|
<a href="#install" class="hx-android-cta hx-android-cta--ghost">
|
|
<?php esc_html_e('راهنمای نصب', 'hesabix2'); ?>
|
|
</a>
|
|
</div>
|
|
<p class="hx-android-hero__note">
|
|
<?php esc_html_e('در گوگلپلی و کافهبازار منتشر نشده؛ فقط از لینک رسمی همین صفحه دانلود کنید.', 'hesabix2'); ?>
|
|
</p>
|
|
</div>
|
|
|
|
<div class="hx-android-hero__visual" aria-hidden="true">
|
|
<div class="hx-android-phone">
|
|
<div class="hx-android-phone__bezel">
|
|
<div class="hx-android-phone__notch"></div>
|
|
<div class="hx-android-phone__screen">
|
|
<div class="hx-android-phone__status">
|
|
<span>۹:۴۱</span>
|
|
<span class="hx-android-phone__signal"></span>
|
|
</div>
|
|
<div class="hx-android-phone__brand">حسابیکس</div>
|
|
<div class="hx-android-phone__cards">
|
|
<div class="hx-android-phone__card hx-android-phone__card--a">
|
|
<span>فروش امروز</span>
|
|
<strong>۱۲٫۴ م</strong>
|
|
</div>
|
|
<div class="hx-android-phone__card hx-android-phone__card--b">
|
|
<span>موجودی هشدار</span>
|
|
<strong>۸ کالا</strong>
|
|
</div>
|
|
<div class="hx-android-phone__card hx-android-phone__card--c">
|
|
<span>فاکتورهای باز</span>
|
|
<strong>۲۳</strong>
|
|
</div>
|
|
</div>
|
|
<div class="hx-android-phone__dock">
|
|
<span></span><span></span><span></span><span></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="hx-android-phone__glow"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- Why -->
|
|
<section class="hx-android-why">
|
|
<div class="<?php echo esc_attr($wrap); ?>">
|
|
<div class="hx-android-section-head hx-android-reveal">
|
|
<span class="hx-android-eyebrow"><?php esc_html_e('چرا اپ؟', 'hesabix2'); ?></span>
|
|
<h2 class="hx-android-section-title"><?php esc_html_e('آرک در جیب؛ همان داده، تجربهٔ سریعتر', 'hesabix2'); ?></h2>
|
|
<p class="hx-android-section-desc"><?php esc_html_e('برای ویزیتور، انباردار، فروشنده و مدیرانی که نباید به لپتاپ وابسته باشند.', 'hesabix2'); ?></p>
|
|
</div>
|
|
<div class="hx-android-why__grid">
|
|
<article class="hx-android-why__item hx-android-reveal">
|
|
<h3><?php esc_html_e('سرعت در مسیر', 'hesabix2'); ?></h3>
|
|
<p><?php esc_html_e('صدور فاکتور و چک موجودی در چند لمس — بدون باز کردن مرورگر.', 'hesabix2'); ?></p>
|
|
</article>
|
|
<article class="hx-android-why__item hx-android-reveal">
|
|
<h3><?php esc_html_e('همیشه همگام', 'hesabix2'); ?></h3>
|
|
<p><?php esc_html_e('تغییرات روی اپ فوراً در پنل وب دیده میشود و برعکس.', 'hesabix2'); ?></p>
|
|
</article>
|
|
<article class="hx-android-why__item hx-android-reveal">
|
|
<h3><?php esc_html_e('کنترل انتشار', 'hesabix2'); ?></h3>
|
|
<p><?php esc_html_e('بهروزرسانی مستقیم از حسابیکس؛ بدون تأخیر و محدودیت مارکت.', 'hesabix2'); ?></p>
|
|
</article>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- Features -->
|
|
<?php if (!empty($features)) : ?>
|
|
<section id="features" class="hx-android-features">
|
|
<div class="<?php echo esc_attr($wrap); ?>">
|
|
<div class="hx-android-section-head hx-android-reveal">
|
|
<span class="hx-android-eyebrow"><?php esc_html_e('قابلیتها', 'hesabix2'); ?></span>
|
|
<h2 class="hx-android-section-title"><?php esc_html_e('آنچه روی اندروید دارید', 'hesabix2'); ?></h2>
|
|
<p class="hx-android-section-desc"><?php esc_html_e('از مالی تا عملیات — با تمرکز روی کار روزمرهٔ میدانی.', 'hesabix2'); ?></p>
|
|
</div>
|
|
<div class="hx-android-features__grid">
|
|
<?php foreach ($features as $feat) :
|
|
$icon_key = isset($feat['icon']) ? (string) $feat['icon'] : 'dashboard';
|
|
$icon_svg = isset($feature_icons[ $icon_key ]) ? $feature_icons[ $icon_key ] : $feature_icons['dashboard'];
|
|
?>
|
|
<article class="hx-android-feature hx-android-reveal">
|
|
<span class="hx-android-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 -- static SVG paths ?></svg>
|
|
</span>
|
|
<h3 class="hx-android-feature__title"><?php echo esc_html($feat['title']); ?></h3>
|
|
<p class="hx-android-feature__desc"><?php echo esc_html($feat['desc']); ?></p>
|
|
</article>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<?php endif; ?>
|
|
|
|
<!-- Install -->
|
|
<?php if (!empty($steps)) : ?>
|
|
<section id="install" class="hx-android-install">
|
|
<div class="<?php echo esc_attr($wrap); ?>">
|
|
<div class="hx-android-install__layout">
|
|
<div class="hx-android-reveal">
|
|
<span class="hx-android-eyebrow"><?php esc_html_e('نصب', 'hesabix2'); ?></span>
|
|
<h2 class="hx-android-section-title"><?php esc_html_e('در سه گام نصب کنید', 'hesabix2'); ?></h2>
|
|
<p class="hx-android-section-desc hx-android-section-desc--flush"><?php esc_html_e('چون اپ در مارکتها نیست، نصب از فایل APK انجام میشود — شبیه بسیاری از اپهای سازمانی.', 'hesabix2'); ?></p>
|
|
<a href="<?php echo esc_url($apk_url); ?>" class="hx-android-cta hx-android-cta--compact" download data-android-download>
|
|
<svg class="hx-android-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-android-steps">
|
|
<?php foreach ($steps as $i => $step) : ?>
|
|
<li class="hx-android-step hx-android-reveal">
|
|
<span class="hx-android-step__num" aria-hidden="true"><?php echo esc_html((string) ($i + 1)); ?></span>
|
|
<div>
|
|
<h3 class="hx-android-step__title"><?php echo esc_html($step['title']); ?></h3>
|
|
<p class="hx-android-step__desc"><?php echo esc_html($step['desc']); ?></p>
|
|
</div>
|
|
</li>
|
|
<?php endforeach; ?>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<?php endif; ?>
|
|
|
|
<!-- Requirements strip -->
|
|
<section class="hx-android-reqs" aria-label="<?php esc_attr_e('نیازمندیها', 'hesabix2'); ?>">
|
|
<div class="<?php echo esc_attr($wrap); ?> hx-android-reqs__inner hx-android-reveal">
|
|
<div>
|
|
<h2 class="hx-android-reqs__title"><?php esc_html_e('نیازمندیها', 'hesabix2'); ?></h2>
|
|
<p class="hx-android-reqs__desc"><?php esc_html_e('برای بهترین تجربه، دستگاه و حساب خود را آماده کنید.', 'hesabix2'); ?></p>
|
|
</div>
|
|
<ul class="hx-android-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('کاربری فعال در آرک', '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($apk_size ? $apk_size : __('حدود ۳۵ مگابایت', 'hesabix2')); ?></li>
|
|
</ul>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- FAQ -->
|
|
<?php if (!empty($faq_items)) : ?>
|
|
<section id="faq" class="hx-android-faq">
|
|
<div class="<?php echo esc_attr($wrap); ?>">
|
|
<div class="hx-android-section-head hx-android-reveal">
|
|
<span class="hx-android-eyebrow"><?php esc_html_e('سوالات', 'hesabix2'); ?></span>
|
|
<h2 class="hx-android-section-title"><?php esc_html_e('پرسشهای متداول', 'hesabix2'); ?></h2>
|
|
</div>
|
|
<div class="hx-android-faq__list">
|
|
<?php foreach ($faq_items as $faq) : ?>
|
|
<div class="hx-android-faq__item hx-android-reveal">
|
|
<button type="button" class="hx-android-faq__q" aria-expanded="false">
|
|
<span><?php echo esc_html($faq['q']); ?></span>
|
|
<span class="hx-android-faq__icon" aria-hidden="true">+</span>
|
|
</button>
|
|
<div class="hx-android-faq__a" hidden>
|
|
<p><?php echo esc_html($faq['a']); ?></p>
|
|
</div>
|
|
</div>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<?php endif; ?>
|
|
|
|
<!-- Final CTA -->
|
|
<section class="hx-android-final">
|
|
<div class="hx-android-final__bg" aria-hidden="true"></div>
|
|
<div class="<?php echo esc_attr($wrap); ?> hx-android-final__inner hx-android-reveal">
|
|
<h2 class="hx-android-final__title"><?php esc_html_e('همین حالا نصب کنید', 'hesabix2'); ?></h2>
|
|
<p class="hx-android-final__desc"><?php esc_html_e('دانلود مستقیم APK از سرور حسابیکس — رایگان برای کاربران آرک.', 'hesabix2'); ?></p>
|
|
<div class="hx-android-final__actions">
|
|
<a href="<?php echo esc_url($apk_url); ?>" class="hx-android-cta" download data-android-download>
|
|
<svg class="hx-android-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('دانلود APK', 'hesabix2'); ?>
|
|
</a>
|
|
<a href="<?php echo esc_url($arc_url); ?>" target="_blank" rel="noopener noreferrer" class="hx-android-cta hx-android-cta--ghost">
|
|
<?php esc_html_e('ورود به آرک', 'hesabix2'); ?>
|
|
</a>
|
|
<a href="<?php echo esc_url($contact_url); ?>" class="hx-android-final__link">
|
|
<?php esc_html_e('پشتیبانی', 'hesabix2'); ?>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
</main>
|
|
|
|
<?php get_footer(); ?>
|