Вход Регистрация
Файл: templates/admincoreui/controllers/admin/settings.tpl.php
Строк: 56
<?php

    $this
->setPageTitle(LANG_CP_SECTION_SETTINGS);

    
$this->addBreadcrumb(LANG_CP_SECTION_SETTINGS);

    
$this->addMenuItems('admin_toolbar'$this->controller->getSettingsMenu());

    
$this->addMenuItem('breadcrumb-menu', [
        
'title' => LANG_HELP,
        
'url'   => LANG_HELP_URL_SETTINGS_GLOBAL,
        
'options' => [
            
'target' => '_blank',
            
'icon' => 'icon-question'
        
]
    ]);

    
$this->addToolButton(array(
        
'class' => 'save',
        
'title' => LANG_SAVE,
        
'href'  => "javascript:icms.forms.submit()"
    
));

    
$this->addToolButton(array(
        
'class' => 'transfer ajax-modal',
        
'title' => LANG_MAILCHECK_MENU,
        
'href'  => $this->href_to('settings', array('mail_check'))
    ));

?>

<div id="site_settings"><?php
    $this
->renderForm($form$values, array(
        
'action' => '',
        
'method' => 'post',
    ), 
$errors);
?></div>

<script type="text/javascript">

    var templates_has_options = <?php echo json_encode($templates_has_options); ?>;

    $(function(){
        $('#template, #template_mobile, #template_tablet, #template_admin').each(function(){
            $(this).change(function(){
                setThemeConfigURL(this);
            }).triggerHandler('change');
        });
        $('#db_charset').change(function(){
            icms.modal.alert('<?php echo LANG_CP_DB_CHARSET_HINT?>', 'danger');
        });
    });

    function setThemeConfigURL(obj){
        var theme = $(obj).val();
        if($.inArray(theme, templates_has_options) === -1){
            theme = false;
        }
        var theme_config_link = $(obj).closest('.field').find('.hint a.theme_settings_options');
        if(theme){
            theme_config_link.show().attr('href', theme_config_link.data('url')+'/'+theme);
        } else {
            theme_config_link.hide();
        }
    }

</script>
Онлайн: 2
Реклама