{##
# WordPress in X-Cart 5 (Main template)
#}
<div class="blog">
{% if this.wpxc().isWPNotInstalled() %}
{% if not this.wpxc().isWPNotDownloaded() and (this.wpxc().isWPNotConfigured() or not this.wpxc().checkWPconfig()) %}
<h2 class="title">{{ t('Problem with wp-config.php file') }}</h2>
<div>{{ t('Please, check wp-config.php file of WordPress') }}</div>
{% elseif this.isInstallationWizardAvailable() %}
<h2 class="title">{{ t('Installation wizard') }}</h2>
<div>{{ t('To install WordPress in your store, please follow these steps') }}</div>
<hr />
{{ widget('QSL\\WordPress\\View\\Plugins\\InstallWizard') }}
{% else %}
<h2 class="page-not-found">{{ t('Page not available') }}</h2>
{{ t('Please contact the administrator') }}
{% endif %}
{% else %}
<div class="wpblog">{{ this.loadWP() | raw }}</div>
{% endif %}
</div>