22 lines
1.3 KiB
PHP
22 lines
1.3 KiB
PHP
<?php use_helper('Object', 'Validation', 'ObjectAdmin', 'I18N', 'VisualEffect', 'stAdminGenerator', 'stDate', 'stJQueryTools', 'stThemeBackend') ?>
|
|
|
|
<?php st_include_partial('stThemeBackend/header', array('related_object' => $theme_config->getTheme(), 'title' => __('Konfiguracja grafiki'), 'route' => 'stThemeBackend/graphicEdit?id='.$theme_config->getId())) ?>
|
|
|
|
<?php st_include_partial('stThemeBackend/edit_menu', array('related_object' => $theme_config->getTheme(), 'forward_parameters' => $forward_parameters)); ?>
|
|
|
|
|
|
<?php if ($theme_config->getTheme()->getVersion() < 2): ?>
|
|
<div class="form-errors">
|
|
<h2><?php echo __('Konfiguracja wygladu dostępna jest wyłącznie dla tematow opartych na default2') ?></h2>
|
|
</div>
|
|
<?php elseif (!$editor_config->validate()): ?>
|
|
<div class="form-errors">
|
|
<h2><?php echo __('Konfiguracja wygladu nie została jeszcze dodana dla tego tematu') ?></h2>
|
|
</div>
|
|
<?php else: ?>
|
|
<?php st_include_partial('stAdminGenerator/message', array('labels' => isset($labels) ? $labels : array())) ?>
|
|
<?php st_include_partial('stThemeBackend/graphic_edit_form', array('theme_config' => $theme_config, 'editor_config' => $editor_config)) ?>
|
|
<?php endif; ?>
|
|
|
|
|
|
<?php st_include_partial('stThemeBackend/footer', array('related_object' => $theme_config->getTheme())); ?>
|