mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-07-31 18:30:20 +02:00
Add Monstra from HG Commit 683dcb70c4cc
This commit is contained in:
58
plugins/box/system/views/backend/index.view.php
Normal file
58
plugins/box/system/views/backend/index.view.php
Normal file
@@ -0,0 +1,58 @@
|
||||
<!-- System -->
|
||||
|
||||
<br />
|
||||
|
||||
<?php if (Notification::get('success')) Alert::success(Notification::get('success')); ?>
|
||||
|
||||
<?php echo Html::anchor(__('Create sitemap', 'system'), 'index.php?id=system&sitemap=create', array('class' => 'btn')).Html::nbsp(2); ?>
|
||||
<?php echo Html::anchor(__('Delete temporary files', 'system'), 'index.php?id=system&temporary_files=delete', array('class' => 'btn')).Html::nbsp(2); ?>
|
||||
<?php if ('off' == Option::get('maintenance_status', 'system')) { ?>
|
||||
<?php echo Html::anchor(__('Maintenance Mode On', 'system'), 'index.php?id=system&maintenance=on', array('class' => 'btn')); ?>
|
||||
<?php } else { ?>
|
||||
<?php echo Html::anchor(__('Maintenance Mode Off', 'system'), 'index.php?id=system&maintenance=off', array('class' => 'btn btn-danger')); ?>
|
||||
<?php } ?>
|
||||
<?php Action::run('admin_system_extra_buttons'); ?>
|
||||
|
||||
<hr />
|
||||
|
||||
<h2><?php echo __('Site settings', 'system'); ?></h2>
|
||||
<br />
|
||||
<?php
|
||||
echo (
|
||||
Form::open().
|
||||
Form::hidden('csrf', Security::token()).
|
||||
Form::label('site_name', __('Site name', 'system')).
|
||||
Form::input('site_name', Option::get('sitename'), array('class' => 'span7')). Html::br().
|
||||
Form::label('site_description', __('Site description', 'system')).
|
||||
Form::input('site_description', Option::get('description'), array('class' => 'span7')). Html::br().
|
||||
Form::label('site_keywords', __('Site keywords', 'system')).
|
||||
Form::input('site_keywords', Option::get('keywords'), array('class' => 'span7')). Html::br().
|
||||
Form::label('site_slogan', __('Site slogan', 'system')).
|
||||
Form::input('site_slogan', Option::get('slogan'), array('class' => 'span7')). Html::br().
|
||||
Form::label('site_default_page', __('Default page', 'system')).
|
||||
Form::select('site_default_page', $pages_array, Option::get('defaultpage'), array('class' => 'span3')). Html::br(2)
|
||||
);
|
||||
?>
|
||||
|
||||
<h2><?php echo __('System settings', 'system'); ?></h2>
|
||||
<br />
|
||||
<?php
|
||||
echo (
|
||||
Form::label('system_url', __('Site url', 'system')).
|
||||
Form::input('system_url', Option::get('siteurl'), array('class' => 'span7')). Html::br().
|
||||
Form::label('system_timezone', __('Time zone', 'system')).
|
||||
Form::select('system_timezone', Date::timezones(), Option::get('timezone'), array('class' => 'span7')). Html::br().
|
||||
Form::label('system_language', __('Language', 'system')).
|
||||
Form::select('system_language', $languages_array, Option::get('language'), array('class' => 'span2')). Html::br().
|
||||
Form::label('site_maintenance_message', __('Maintenance Mode', 'system')).
|
||||
Form::textarea('site_maintenance_message', Html::toText(Option::get('maintenance_message')), array('style' => 'width:640px;height:160px;')). Html::br(2)
|
||||
);
|
||||
?>
|
||||
|
||||
<?php
|
||||
echo (
|
||||
Form::submit('edit_settings', __('Save', 'system'), array('class' => 'btn')).
|
||||
Form::close()
|
||||
);
|
||||
?>
|
||||
<!-- /System -->
|
Reference in New Issue
Block a user