Update Memuat artikel terbaru...

Alat pembuat template website gratis

Web Template Infokuari

Generator Web dengan Pratinjau Langsung Arsitektur Infokuari

📦 1. Jenis (Platform)
🎯 2. Layout Modul (Niche)
✨ 3. Konfigurasi (Desain & Skrip)
\n`; if (plat === 'html') { finalCode = `\n\n\n${metaTags}\nTemplate HTML5\n\n\n\n\n${cleanHTML}\n\n`; resultData = { code: finalCode, filename: 'index.html', type: 'text/html' }; } else if (plat === 'blogger') { let bloggerHTML = assembledHTML .replace('{{CONTENT_START}}', `\n\n
`) .replace('{{CONTENT_END}}', `
\n
\n
`); if(!isFull) { bloggerHTML = bloggerHTML.replace('{{SIDEBAR_START}}', ``).replace('{{SIDEBAR_END}}', ``); } // PERHATIKAN: Menghindari error XML Parse dengan merubah tag "]]>" finalCode = `\n\n\n\n\n\n<data:blog.pageTitle/>\n${useSEO ? `\n` : ''}\n\x3C![CDATA[\n${assembledCSS}\n]]\x3E\n\n\n${bloggerHTML}\n\n`; resultData = { code: finalCode, filename: 'blogger-theme.xml', type: 'application/xml' }; } else if (plat === 'wordpress') { let wpHTML = cleanHTML; if(!isFull) { wpHTML = wpHTML.replace( Gudang.html.components.sidebarInner, `\x3C?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?\x3E\n\x3C?php dynamic_sidebar( 'sidebar-1' ); ?\x3E\n\x3C?php else: ?\x3E\n${Gudang.html.components.sidebarInner}\n\x3C?php endif; ?\x3E` ); } if(niche !== 'utility') { let wpLayoutClass = (niche === 'blog') ? 'list-layout' : 'grid-layout'; let wpLoop = `\x3C?php if (have_posts()) : ?\x3E\n
\n\x3C?php while (have_posts()) : the_post(); ?\x3E\n\n\x3C?php endwhile; ?\x3E\n
\n\x3C?php else : ?\x3E\n

Belum ada konten.

\n\x3C?php endif; ?\x3E`; wpHTML = wpHTML.replace(contentHTML, wpLoop); } finalCode = `\x3C?php get_header(); ?\x3E\n\n\n\n\n\n\n\x3C?php wp_head(); ?\x3E\n\n\n\n${wpHTML}\n\x3C?php wp_footer(); ?\x3E\n\n`; resultData = { code: finalCode, filename: 'index.php', type: 'application/x-httpd-php' }; } document.getElementById('code-result').textContent = finalCode; document.getElementById('live-frame').srcdoc = pureHTMLPreview; const outputBox = document.getElementById('output-box'); outputBox.style.display = 'block'; switchTab('preview'); outputBox.scrollIntoView({ behavior: 'smooth', block: 'start' }); } catch (error) { alert("Terjadi kesalahan: " + error.message); } } function copyResult() { if (!resultData.code) return; navigator.clipboard.writeText(resultData.code).then(() => { const btn = document.getElementById('btn-copy'); const text = btn.innerHTML; btn.innerHTML = '✅ Berhasil Disalin!'; btn.style.background = '#10b981'; setTimeout(() => { btn.innerHTML = text; btn.style.background = '#334155'; }, 2000); }); } function downloadResult() { if (!resultData.code) return; const blob = new Blob([resultData.code], { type: resultData.type }); const url = URL.createObjectURL(blob); const a = document.createElement('a'); a.href = url; a.download = resultData.filename; document.body.appendChild(a); a.click(); setTimeout(() => { document.body.removeChild(a); URL.revokeObjectURL(url); }, 0); } //]]>