329 lines
21 KiB
PHP
329 lines
21 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';
|
||
$migrator_url = function_exists('hesabix2_helo_migrator_url') ? hesabix2_helo_migrator_url() : '';
|
||
$version = function_exists('hesabix2_helo_migrator_version') ? hesabix2_helo_migrator_version() : '1.0.0';
|
||
$min_os = function_exists('hesabix2_helo_migrator_min_os') ? hesabix2_helo_migrator_min_os() : 'Windows 10 / 11';
|
||
$pkg_size = function_exists('hesabix2_helo_migrator_size') ? hesabix2_helo_migrator_size() : '';
|
||
$roast_lines = function_exists('hesabix2_helo_roast_lines') ? hesabix2_helo_roast_lines() : array();
|
||
$compare_rows = function_exists('hesabix2_helo_compare_rows') ? hesabix2_helo_compare_rows() : array();
|
||
$why_items = function_exists('hesabix2_helo_why_items') ? hesabix2_helo_why_items() : array();
|
||
$steps = function_exists('hesabix2_helo_migrate_steps') ? hesabix2_helo_migrate_steps() : array();
|
||
$faq_items = function_exists('hesabix2_helo_faq_items') ? hesabix2_helo_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/');
|
||
$helo_img = function_exists('hesabix2_helo_product_image_url') ? hesabix2_helo_product_image_url() : '';
|
||
$helo_badge = function_exists('hesabix2_helo_badge_image_url') ? hesabix2_helo_badge_image_url() : '';
|
||
$has_download = ($migrator_url !== '');
|
||
|
||
$why_icons = array(
|
||
'chain' => '<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" d="M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"/>',
|
||
'clock' => '<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"/>',
|
||
'unlock' => '<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" d="M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"/>',
|
||
'rocket' => '<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" d="M13 10V3L4 14h7v7l9-11h-7z"/>',
|
||
);
|
||
?>
|
||
|
||
<main id="main-content" class="hx-helo">
|
||
|
||
<!-- Hero -->
|
||
<section class="hx-helo-hero" aria-labelledby="hx-helo-hero-title">
|
||
<div class="hx-helo-hero__aurora" aria-hidden="true"></div>
|
||
<div class="hx-helo-hero__grid" aria-hidden="true"></div>
|
||
<div class="<?php echo esc_attr($wrap); ?> hx-helo-hero__inner">
|
||
<?php if (function_exists('hesabix2_seo_render_breadcrumb')) : ?>
|
||
<div class="hx-helo-hero__crumb"><?php hesabix2_seo_render_breadcrumb('hesabix2-breadcrumb hesabix2-breadcrumb--on-dark'); ?></div>
|
||
<?php endif; ?>
|
||
|
||
<div class="hx-helo-hero__grid-layout">
|
||
<div class="hx-helo-hero__copy hx-helo-enter">
|
||
<p class="hx-helo-hero__badge" style="--hx-helo-i: 0">
|
||
<span class="hx-helo-hero__badge-dot" aria-hidden="true"></span>
|
||
<?php esc_html_e('مهاجرت رسمی · هلو → حسابیکس آرک', 'hesabix2'); ?>
|
||
</p>
|
||
<p class="hx-helo-hero__brand" style="--hx-helo-i: 1"><?php esc_html_e('حسابیکس آرک', 'hesabix2'); ?></p>
|
||
<h1 id="hx-helo-hero-title" class="hx-helo-hero__title" style="--hx-helo-i: 2">
|
||
<?php esc_html_e('هلو را بازنشسته کنید.', 'hesabix2'); ?>
|
||
</h1>
|
||
<p class="hx-helo-hero__lead" style="--hx-helo-i: 3">
|
||
<?php esc_html_e('سالها روی یک دسکتاپ خاکستری، لایسنس و بکآپ فلشمموری ماندهاید. وقتش رسیده دادهتان را به پلتفرم واقعی منتقل کنید — بدون تعارف.', 'hesabix2'); ?>
|
||
</p>
|
||
|
||
<div class="hx-helo-hero__meta" role="list" style="--hx-helo-i: 4">
|
||
<span role="listitem" class="hx-helo-pill" dir="ltr">v<?php echo esc_html($version); ?></span>
|
||
<span role="listitem" class="hx-helo-pill"><?php echo esc_html($min_os); ?></span>
|
||
<?php if ($pkg_size) : ?>
|
||
<span role="listitem" class="hx-helo-pill"><?php echo esc_html($pkg_size); ?></span>
|
||
<?php endif; ?>
|
||
<span role="listitem" class="hx-helo-pill hx-helo-pill--accent"><?php esc_html_e('خداحافظ هلو', 'hesabix2'); ?></span>
|
||
</div>
|
||
|
||
<div class="hx-helo-hero__actions" style="--hx-helo-i: 5">
|
||
<?php if ($has_download) : ?>
|
||
<a href="<?php echo esc_url($migrator_url); ?>" class="hx-helo-cta" id="download" download data-helo-download>
|
||
<svg class="hx-helo-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>
|
||
<?php else : ?>
|
||
<a href="#migrate" class="hx-helo-cta" id="download">
|
||
<svg class="hx-helo-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="M19 14l-7 7m0 0l-7-7m7 7V3"/></svg>
|
||
<?php esc_html_e('مراحل مهاجرت', 'hesabix2'); ?>
|
||
</a>
|
||
<?php endif; ?>
|
||
<a href="<?php echo esc_url($arc_url); ?>" target="_blank" rel="noopener noreferrer" class="hx-helo-cta hx-helo-cta--ghost">
|
||
<?php esc_html_e('شروع رایگان در آرک', 'hesabix2'); ?>
|
||
</a>
|
||
</div>
|
||
<p class="hx-helo-hero__note" style="--hx-helo-i: 6">
|
||
<?php esc_html_e('صریح میگوییم: هلو برای عصر دیگری ساخته شده. آرک برای کسبوکار امروز است.', 'hesabix2'); ?>
|
||
</p>
|
||
</div>
|
||
|
||
<div class="hx-helo-hero__visual hx-helo-enter hx-helo-enter--visual" aria-hidden="true" style="--hx-helo-i: 2">
|
||
<div class="hx-helo-duel">
|
||
<figure class="hx-helo-duel__side hx-helo-duel__side--old">
|
||
<span class="hx-helo-duel__tag"><?php esc_html_e('بازنشسته', 'hesabix2'); ?></span>
|
||
<div class="hx-helo-relic">
|
||
<div class="hx-helo-relic__titlebar">
|
||
<?php if ($helo_badge) : ?>
|
||
<img src="<?php echo esc_url($helo_badge); ?>" alt="" class="hx-helo-relic__logo" width="88" height="38" loading="eager" decoding="async" />
|
||
<?php else : ?>
|
||
<em>Holoo</em>
|
||
<?php endif; ?>
|
||
<span>×</span>
|
||
</div>
|
||
<div class="hx-helo-relic__body">
|
||
<?php if ($helo_img) : ?>
|
||
<img src="<?php echo esc_url($helo_img); ?>" alt="<?php esc_attr_e('لوگوی نرمافزار هلو', 'hesabix2'); ?>" class="hx-helo-relic__shot hx-helo-relic__shot--logo" width="175" height="77" loading="eager" decoding="async" />
|
||
<?php endif; ?>
|
||
<div class="hx-helo-relic__overlay">
|
||
<p><?php esc_html_e('نصب محلی · لایسنس · یک PC', 'hesabix2'); ?></p>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</figure>
|
||
<div class="hx-helo-duel__arrow" aria-hidden="true">
|
||
<svg viewBox="0 0 48 48" fill="none"><path d="M8 24h28M28 14l10 10-10 10" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
||
</div>
|
||
<figure class="hx-helo-duel__side hx-helo-duel__side--new">
|
||
<span class="hx-helo-duel__tag hx-helo-duel__tag--live"><?php esc_html_e('آرک · زنده', 'hesabix2'); ?></span>
|
||
<div class="hx-helo-arc-panel">
|
||
<div class="hx-helo-arc-panel__bar">
|
||
<span></span><span></span><span></span>
|
||
<em><?php esc_html_e('حسابیکس — آرک', 'hesabix2'); ?></em>
|
||
</div>
|
||
<div class="hx-helo-arc-panel__grid">
|
||
<div class="hx-helo-arc-panel__card">
|
||
<span><?php esc_html_e('فروش امروز', 'hesabix2'); ?></span>
|
||
<strong data-helo-count="12.4" data-helo-suffix=" م">۰</strong>
|
||
</div>
|
||
<div class="hx-helo-arc-panel__card hx-helo-arc-panel__card--accent">
|
||
<span><?php esc_html_e('موجودی', 'hesabix2'); ?></span>
|
||
<strong data-helo-count="842">۰</strong>
|
||
</div>
|
||
<div class="hx-helo-arc-panel__card hx-helo-arc-panel__card--wide">
|
||
<span><?php esc_html_e('وب · اندروید · ویندوز', 'hesabix2'); ?></span>
|
||
<strong><?php esc_html_e('یک منبع حقیقت', 'hesabix2'); ?></strong>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</figure>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<?php if (!empty($roast_lines)) : ?>
|
||
<!-- نقلقول چرخشی — هر جمله یکبار، بدون تکرار همزمان -->
|
||
<section class="hx-helo-quotes" aria-label="<?php esc_attr_e('نکات صریح دربارهٔ هلو', 'hesabix2'); ?>">
|
||
<div class="<?php echo esc_attr($wrap); ?> hx-helo-quotes__inner">
|
||
<span class="hx-helo-quotes__mark" aria-hidden="true">«</span>
|
||
<div class="hx-helo-quotes__stage" data-helo-quotes>
|
||
<?php foreach ($roast_lines as $qi => $line) : ?>
|
||
<p class="hx-helo-quotes__line<?php echo 0 === $qi ? ' is-active' : ''; ?>" data-helo-quote="<?php echo esc_attr((string) $qi); ?>">
|
||
<?php echo esc_html($line); ?>
|
||
</p>
|
||
<?php endforeach; ?>
|
||
</div>
|
||
<div class="hx-helo-quotes__dots" role="tablist" aria-label="<?php esc_attr_e('جابهجایی جملات', 'hesabix2'); ?>">
|
||
<?php foreach ($roast_lines as $qi => $line) : ?>
|
||
<button type="button" class="hx-helo-quotes__dot<?php echo 0 === $qi ? ' is-active' : ''; ?>" role="tab" aria-selected="<?php echo 0 === $qi ? 'true' : 'false'; ?>" data-helo-quote-go="<?php echo esc_attr((string) $qi); ?>" aria-label="<?php echo esc_attr(sprintf(/* translators: %d: quote index */ __('جمله %d', 'hesabix2'), $qi + 1)); ?>"></button>
|
||
<?php endforeach; ?>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
<?php endif; ?>
|
||
|
||
<!-- Why leave -->
|
||
<section class="hx-helo-why" aria-labelledby="hx-helo-why-title">
|
||
<div class="<?php echo esc_attr($wrap); ?>">
|
||
<header class="hx-helo-section-head hx-helo-reveal">
|
||
<p class="hx-helo-kicker"><?php esc_html_e('بدون تعارف', 'hesabix2'); ?></p>
|
||
<h2 id="hx-helo-why-title"><?php esc_html_e('چرا باید از هلو بروید؟', 'hesabix2'); ?></h2>
|
||
<p><?php esc_html_e('چون نرمافزاری که کسبوکارتان را به یک کیس قدیمی قفل کند، دیگر ابزار نیست — مانع است.', 'hesabix2'); ?></p>
|
||
</header>
|
||
<div class="hx-helo-why__grid">
|
||
<?php foreach ($why_items as $i => $item) :
|
||
$icon = isset($why_icons[ $item['icon'] ]) ? $why_icons[ $item['icon'] ] : $why_icons['rocket'];
|
||
?>
|
||
<article class="hx-helo-why__card hx-helo-reveal" style="--hx-helo-delay: <?php echo esc_attr((string) ($i * 0.06)); ?>s">
|
||
<span class="hx-helo-why__icon" aria-hidden="true">
|
||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor"><?php echo $icon; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></svg>
|
||
</span>
|
||
<p class="hx-helo-why__jab"><?php echo esc_html($item['jab']); ?></p>
|
||
<h3><?php echo esc_html($item['title']); ?></h3>
|
||
<p class="hx-helo-why__desc"><?php echo esc_html($item['desc']); ?></p>
|
||
</article>
|
||
<?php endforeach; ?>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- Compare -->
|
||
<section class="hx-helo-compare" aria-labelledby="hx-helo-compare-title">
|
||
<div class="<?php echo esc_attr($wrap); ?>">
|
||
<header class="hx-helo-section-head hx-helo-reveal">
|
||
<p class="hx-helo-kicker"><?php esc_html_e('رو در رو', 'hesabix2'); ?></p>
|
||
<h2 id="hx-helo-compare-title"><?php esc_html_e('هلو در برابر حسابیکس آرک', 'hesabix2'); ?></h2>
|
||
<p><?php esc_html_e('جدول را بخوانید. اگر هنوز هلو را «کافی» میدانید، احتمالاً هنوز گزارش ماهانهتان را با چاپگر سوزنی تصور میکنید.', 'hesabix2'); ?></p>
|
||
</header>
|
||
<div class="hx-helo-compare__wrap hx-helo-reveal overflow-x-auto">
|
||
<table class="hx-helo-compare__table">
|
||
<thead>
|
||
<tr>
|
||
<th scope="col"><?php esc_html_e('معیار', 'hesabix2'); ?></th>
|
||
<th scope="col" class="hx-helo-compare__col--old"><?php esc_html_e('هلو', 'hesabix2'); ?></th>
|
||
<th scope="col" class="hx-helo-compare__col--new"><?php esc_html_e('آرک', 'hesabix2'); ?></th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<?php foreach ($compare_rows as $row) : ?>
|
||
<tr>
|
||
<th scope="row"><?php echo esc_html($row['label']); ?></th>
|
||
<td class="hx-helo-compare__col--old"><?php echo esc_html($row['helo']); ?></td>
|
||
<td class="hx-helo-compare__col--new"><?php echo esc_html($row['arc']); ?></td>
|
||
</tr>
|
||
<?php endforeach; ?>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- Steps + download -->
|
||
<section class="hx-helo-migrate" id="migrate" aria-labelledby="hx-helo-migrate-title">
|
||
<div class="<?php echo esc_attr($wrap); ?>">
|
||
<header class="hx-helo-section-head hx-helo-section-head--light hx-helo-reveal">
|
||
<p class="hx-helo-kicker"><?php esc_html_e('مسیر خروج', 'hesabix2'); ?></p>
|
||
<h2 id="hx-helo-migrate-title"><?php esc_html_e('چهار قدم تا خداحافظی با هلو', 'hesabix2'); ?></h2>
|
||
<p><?php esc_html_e('ابزار رسمی انتقالدهنده همان کاری را میکند که نباید با کپیپیست اکسل انجام دهید.', 'hesabix2'); ?></p>
|
||
</header>
|
||
|
||
<ol class="hx-helo-steps">
|
||
<?php foreach ($steps as $i => $step) : ?>
|
||
<li class="hx-helo-steps__item hx-helo-reveal" style="--hx-helo-delay: <?php echo esc_attr((string) ($i * 0.05)); ?>s">
|
||
<span class="hx-helo-steps__num" aria-hidden="true"><?php echo esc_html( (string) ($i + 1) ); ?></span>
|
||
<div>
|
||
<h3><?php echo esc_html($step['title']); ?></h3>
|
||
<p><?php echo esc_html($step['desc']); ?></p>
|
||
</div>
|
||
</li>
|
||
<?php endforeach; ?>
|
||
</ol>
|
||
|
||
<div class="hx-helo-download hx-helo-reveal" id="tool">
|
||
<div class="hx-helo-download__copy">
|
||
<h3><?php esc_html_e('برنامهٔ انتقالدهندهٔ هلو → آرک', 'hesabix2'); ?></h3>
|
||
<p><?php esc_html_e('روی همان ویندوزی که هلو نصب است اجرا کنید، بستهٔ انتقال بسازید، در آرک بارگذاری کنید. هلو میتواند برود پی کارش.', 'hesabix2'); ?></p>
|
||
<div class="hx-helo-hero__meta" role="list">
|
||
<span role="listitem" class="hx-helo-pill hx-helo-pill--dark" dir="ltr">v<?php echo esc_html($version); ?></span>
|
||
<span role="listitem" class="hx-helo-pill hx-helo-pill--dark"><?php echo esc_html($min_os); ?></span>
|
||
<?php if ($pkg_size) : ?>
|
||
<span role="listitem" class="hx-helo-pill hx-helo-pill--dark"><?php echo esc_html($pkg_size); ?></span>
|
||
<?php endif; ?>
|
||
</div>
|
||
</div>
|
||
<div class="hx-helo-download__action">
|
||
<?php if ($has_download) : ?>
|
||
<a href="<?php echo esc_url($migrator_url); ?>" class="hx-helo-cta" download data-helo-download>
|
||
<svg class="hx-helo-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>
|
||
<?php else : ?>
|
||
<span class="hx-helo-cta hx-helo-cta--disabled" aria-disabled="true">
|
||
<?php esc_html_e('لینک دانلود بهزودی', 'hesabix2'); ?>
|
||
</span>
|
||
<p class="hx-helo-download__soon"><?php esc_html_e('بهمحض انتشار، لینک از تنظیمات قالب فعال میشود.', 'hesabix2'); ?></p>
|
||
<?php endif; ?>
|
||
<a href="<?php echo esc_url($contact_url); ?>" class="hx-helo-cta hx-helo-cta--ghost-light">
|
||
<?php esc_html_e('کمک برای مهاجرت سازمانی', 'hesabix2'); ?>
|
||
</a>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- FAQ -->
|
||
<?php if (!empty($faq_items)) : ?>
|
||
<section class="hx-helo-faq" aria-labelledby="hx-helo-faq-title">
|
||
<div class="<?php echo esc_attr($wrap); ?>">
|
||
<header class="hx-helo-section-head hx-helo-reveal">
|
||
<p class="hx-helo-kicker"><?php esc_html_e('پرسشها', 'hesabix2'); ?></p>
|
||
<h2 id="hx-helo-faq-title"><?php esc_html_e('قبل از ترک هلو', 'hesabix2'); ?></h2>
|
||
</header>
|
||
<div class="hx-helo-faq__list">
|
||
<?php foreach ($faq_items as $i => $item) :
|
||
$fid = 'hx-helo-faq-' . (string) $i;
|
||
?>
|
||
<div class="hx-helo-faq__item hx-helo-reveal">
|
||
<button type="button" class="hx-helo-faq__q" aria-expanded="false" aria-controls="<?php echo esc_attr($fid); ?>" id="<?php echo esc_attr($fid); ?>-btn">
|
||
<span><?php echo esc_html($item['q']); ?></span>
|
||
<svg class="hx-helo-faq__chev" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"/></svg>
|
||
</button>
|
||
<div class="hx-helo-faq__a" id="<?php echo esc_attr($fid); ?>" role="region" aria-labelledby="<?php echo esc_attr($fid); ?>-btn" hidden>
|
||
<p><?php echo esc_html($item['a']); ?></p>
|
||
</div>
|
||
</div>
|
||
<?php endforeach; ?>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
<?php endif; ?>
|
||
|
||
<!-- Final CTA -->
|
||
<section class="hx-helo-final" aria-labelledby="hx-helo-final-title">
|
||
<div class="<?php echo esc_attr($wrap); ?> hx-helo-final__inner hx-helo-reveal">
|
||
<p class="hx-helo-final__eyebrow"><?php esc_html_e('حسابیکس آرک', 'hesabix2'); ?></p>
|
||
<h2 id="hx-helo-final-title"><?php esc_html_e('هلو تموم شد. آرک شروع میشود.', 'hesabix2'); ?></h2>
|
||
<p class="hx-helo-final__desc">
|
||
<?php esc_html_e('انتقال داده، پنل مدرن، موبایل و ویندوز — بدون لایسنس نمایشگاهی و بدون زندان دسکتاپ.', 'hesabix2'); ?>
|
||
</p>
|
||
<div class="hx-helo-final__actions">
|
||
<?php if ($has_download) : ?>
|
||
<a href="<?php echo esc_url($migrator_url); ?>" class="hx-helo-cta" download data-helo-download>
|
||
<?php esc_html_e('دانلود انتقالدهنده', 'hesabix2'); ?>
|
||
</a>
|
||
<?php endif; ?>
|
||
<a href="<?php echo esc_url($arc_url); ?>" target="_blank" rel="noopener noreferrer" class="hx-helo-cta hx-helo-cta--on-dark">
|
||
<?php esc_html_e('ورود به آرک', 'hesabix2'); ?>
|
||
</a>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
</main>
|
||
|
||
<?php
|
||
get_footer();
|