feat(i18n): integrasi tombol bilingual native ID/EN dan skrip translasi instan otomatis
This commit is contained in:
+19
-8
@@ -44,7 +44,7 @@ add_action( 'admin_bar_menu', 'edukarsa_admin_bar_shortcut', 80 );
|
||||
function edukarsa_register_settings() {
|
||||
$options = array(
|
||||
'edukarsa_font_choice', 'edukarsa_primary_color', 'edukarsa_secondary_color', 'edukarsa_heading_color',
|
||||
'edukarsa_tampil_slider', 'edukarsa_tampil_stats', 'edukarsa_tampil_about', 'edukarsa_tampil_milestone', 'edukarsa_tampil_program', 'edukarsa_tampil_video', 'edukarsa_tampil_keunggulan', 'edukarsa_tampil_cta', 'edukarsa_tampil_faq', 'edukarsa_tampil_news',
|
||||
'edukarsa_tampil_bilingual', 'edukarsa_tampil_slider', 'edukarsa_tampil_stats', 'edukarsa_tampil_about', 'edukarsa_tampil_milestone', 'edukarsa_tampil_program', 'edukarsa_tampil_video', 'edukarsa_tampil_keunggulan', 'edukarsa_tampil_cta', 'edukarsa_tampil_faq', 'edukarsa_tampil_news',
|
||||
'edukarsa_header_logo',
|
||||
'edukarsa_milestone_subtitle', 'edukarsa_milestone_title',
|
||||
'edukarsa_program_subtitle', 'edukarsa_program_title',
|
||||
@@ -141,7 +141,7 @@ function edukarsa_settings_page_html() {
|
||||
<div class="edukarsa-admin-layout">
|
||||
<div class="edukarsa-admin-main">
|
||||
|
||||
<!-- 1. Header, Logo & Slider -->
|
||||
<!-- 1. Header, Logo, Slider & Bilingual Switcher -->
|
||||
<div class="edukarsa-card">
|
||||
<div class="edukarsa-card-header"><h2>🏛️ 1. Header, Logo & Slider</h2></div>
|
||||
<div class="edukarsa-card-body">
|
||||
@@ -153,7 +153,22 @@ function edukarsa_settings_page_html() {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="switch-row-inline" style="margin-top: 20px;">
|
||||
<!-- Opsi Bilingual -->
|
||||
<div class="switch-row" style="margin-top: 18px; background: #eef2ff; border-color: #c7d2fe;">
|
||||
<div class="switch-label-wrap">
|
||||
<div class="switch-label" style="color: #3730a3;">
|
||||
<span>🌐 Fitur Bilingual (Bahasa Indonesia & Inggris)</span>
|
||||
<span class="tooltip-hint">?<span class="tooltip-text">Menampilkan tombol switcher ID | EN di header dengan sistem translasi instan otomatis.</span></span>
|
||||
</div>
|
||||
<span style="font-size: 11px; color: #4338ca;">Penerjemah instan untuk mempermudah pengunjung internasional tanpa membebani operator.</span>
|
||||
</div>
|
||||
<label class="edukarsa-switch">
|
||||
<input type="checkbox" name="edukarsa_tampil_bilingual" value="1" <?php checked(1, get_option('edukarsa_tampil_bilingual', 1)); ?>>
|
||||
<span class="slider-round"></span>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="switch-row-inline" style="margin-top: 15px;">
|
||||
<div class="switch-row">
|
||||
<div class="switch-label-wrap">
|
||||
<div class="switch-label"><span>Tampilkan Slider Atas</span><span class="tooltip-hint">?<span class="tooltip-text">Gambar & tautan banner dikelola pada modul 🌟 Slider Banner.</span></span></div>
|
||||
@@ -166,7 +181,7 @@ function edukarsa_settings_page_html() {
|
||||
</div>
|
||||
<div class="switch-row">
|
||||
<div class="switch-label-wrap">
|
||||
<div class="switch-label"><span>Tampilkan 3 Kotak Statistik</span><span class="tooltip-hint">?<span class="tooltip-text">Konfigurasi teks, angka capaian, dan ikon diatur pada form di bawah.</span></span></div>
|
||||
<div class="switch-label"><span>Tampilkan 3 Kotak Statistik</span><span class="tooltip-hint">?<span class="tooltip-text">Konfigurasi teks, angka capaian, dan ikon diatur pada formulir di bawah.</span></span></div>
|
||||
<span style="font-size: 11px; color: #64748b;">Formulir Pengaturan Bawah ↓</span>
|
||||
</div>
|
||||
<label class="edukarsa-switch">
|
||||
@@ -292,8 +307,6 @@ function edukarsa_settings_page_html() {
|
||||
<div class="edukarsa-card">
|
||||
<div class="edukarsa-card-header"><h2>📢 5. CTA Pendaftaran, FAQ & Berita</h2></div>
|
||||
<div class="edukarsa-card-body">
|
||||
|
||||
<!-- Switch Rows -->
|
||||
<div class="switch-row-inline">
|
||||
<div class="switch-row">
|
||||
<div class="switch-label-wrap"><span class="switch-label">Tampilkan CTA Banner</span><span style="font-size: 11px; color: #64748b;">Pengaturan Khusus PPDB</span></div>
|
||||
@@ -312,7 +325,6 @@ function edukarsa_settings_page_html() {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Form CTA -->
|
||||
<div id="cta-settings-box" class="stat-config-box" style="margin-bottom: 20px;">
|
||||
<h4>Konfigurasi CTA PPDB / PMB</h4>
|
||||
<div class="form-grid-2">
|
||||
@@ -325,7 +337,6 @@ function edukarsa_settings_page_html() {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Form Label FAQ -->
|
||||
<div id="faq-settings-box" class="stat-config-box" style="margin-bottom: 20px;">
|
||||
<h4>Label Tampilan Seksi FAQ (Tanya Jawab)</h4>
|
||||
<div class="form-grid-2">
|
||||
|
||||
Reference in New Issue
Block a user