bludit/bl-kernel/admin/views/settings-general.php

104 lines
2.5 KiB
PHP
Raw Normal View History

2015-10-19 00:45:58 +02:00
<?php
2015-10-25 02:20:01 +02:00
HTML::title(array('title'=>$L->g('General settings'), 'icon'=>'cogs'));
2015-10-19 00:45:58 +02:00
HTML::formOpen(array('class'=>'uk-form-horizontal'));
// Security token
HTML::formInputHidden(array(
2015-10-20 05:14:28 +02:00
'name'=>'tokenCSRF',
'value'=>$Security->getTokenCSRF()
2015-10-19 00:45:58 +02:00
));
2015-11-30 01:45:30 +01:00
HTML::legend(array('value'=>$L->g('Site information'), 'class'=>'first-child'));
2015-10-19 00:45:58 +02:00
HTML::formInputText(array(
'name'=>'title',
'label'=>$L->g('Site title'),
'value'=>$Site->title(),
'class'=>'uk-width-1-2 uk-form-medium',
'tip'=>$L->g('use-this-field-to-name-your-site')
));
HTML::formInputText(array(
'name'=>'slogan',
'label'=>$L->g('Site slogan'),
'value'=>$Site->slogan(),
'class'=>'uk-width-1-2 uk-form-medium',
'tip'=>$L->g('use-this-field-to-add-a-catchy-phrase')
));
HTML::formInputText(array(
'name'=>'description',
'label'=>$L->g('Site description'),
'value'=>$Site->description(),
'class'=>'uk-width-1-2 uk-form-medium',
'tip'=>$L->g('you-can-add-a-site-description-to-provide')
));
HTML::formInputText(array(
'name'=>'footer',
'label'=>$L->g('Footer text'),
'value'=>$Site->footer(),
'class'=>'uk-width-1-2 uk-form-medium',
'tip'=>$L->g('you-can-add-a-small-text-on-the-bottom')
));
2016-02-14 01:15:19 +01:00
HTML::legend(array('value'=>$L->g('Social networks links')));
HTML::formInputText(array(
'name'=>'twitter',
'label'=>'Twitter',
'value'=>$Site->twitter(),
'class'=>'uk-width-1-2 uk-form-medium',
'tip'=>''
));
HTML::formInputText(array(
'name'=>'facebook',
'label'=>'Facebook',
'value'=>$Site->facebook(),
'class'=>'uk-width-1-2 uk-form-medium',
'tip'=>''
));
2017-09-29 23:02:05 +02:00
HTML::formInputText(array(
'name'=>'codepen',
'label'=>'Codepen',
'value'=>$Site->codepen(),
'class'=>'uk-width-1-2 uk-form-medium',
'tip'=>''
));
2016-02-14 01:15:19 +01:00
HTML::formInputText(array(
'name'=>'googlePlus',
'label'=>'Google+',
'value'=>$Site->googlePlus(),
'class'=>'uk-width-1-2 uk-form-medium',
'tip'=>''
));
2016-02-14 22:53:37 +01:00
HTML::formInputText(array(
'name'=>'instagram',
'label'=>'Instagram',
'value'=>$Site->instagram(),
2016-02-14 22:53:37 +01:00
'class'=>'uk-width-1-2 uk-form-medium',
'tip'=>''
));
2016-02-14 01:15:19 +01:00
HTML::formInputText(array(
'name'=>'github',
'label'=>'Github',
'value'=>$Site->github(),
'class'=>'uk-width-1-2 uk-form-medium',
'tip'=>''
));
2015-10-19 00:45:58 +02:00
echo '<div class="uk-form-row">
<div class="uk-form-controls">
<button type="submit" class="uk-button uk-button-primary">'.$L->g('Save').'</button>
2017-06-19 23:43:54 +02:00
<a class="uk-button" href="'.HTML_PATH_ADMIN_ROOT.'settings-general">'.$L->g('Cancel').'</a>
2015-10-19 00:45:58 +02:00
</div>
</div>';
2017-05-16 00:46:20 +02:00
HTML::formClose();