mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-09 06:37:01 +02:00
Monstra Library: basic core improvments
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
<?php if (Notification::get('success')) Alert::success(Notification::get('success')); ?>
|
||||
|
||||
<?php
|
||||
<?php
|
||||
echo (
|
||||
Form::open().
|
||||
Form::hidden('csrf', Security::token()).
|
||||
@@ -18,7 +18,7 @@
|
||||
<li <?php if (Notification::get('metadata')) { ?>class="active"<?php } ?>><a href="#metadata" data-toggle="tab"><?php echo __('Metadata', 'pages'); ?></a></li>
|
||||
<li <?php if (Notification::get('settings')) { ?>class="active"<?php } ?>><a href="#settings" data-toggle="tab"><?php echo __('Settings', 'pages'); ?></a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
<div class="tab-content tab-page">
|
||||
<div class="tab-pane <?php if (Notification::get('page')) { ?>active<?php } ?>" id="page">
|
||||
<?php
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
if (Request::get('name') !== 'error404') {
|
||||
echo (
|
||||
Html::br(2).
|
||||
Html::br(2).
|
||||
Form::label('page_name', __('Name (slug)', 'pages'))
|
||||
);
|
||||
}
|
||||
@@ -49,19 +49,18 @@
|
||||
</div>
|
||||
<div class="tab-pane <?php if (Notification::get('metadata')) { ?>active<?php } ?>" id="metadata">
|
||||
|
||||
|
||||
<?php
|
||||
echo (
|
||||
Form::label('page_keywords', __('Keywords', 'pages')).
|
||||
Form::input('page_keywords', $keywords_to_edit, array('class' => 'input-xxlarge')).
|
||||
Html::br(2).
|
||||
Form::label('page_description', __('Description', 'pages')).
|
||||
Form::textarea('page_description', $description_to_edit, array('class' => 'input-xxlarge'))
|
||||
Form::textarea('page_description', $description_to_edit, array('class' => 'input-xxlarge'))
|
||||
);
|
||||
|
||||
echo (
|
||||
Html::br(2).
|
||||
Form::label('robots', __('Search Engines Robots', 'pages')).
|
||||
echo (
|
||||
Html::br(2).
|
||||
Form::label('robots', __('Search Engines Robots', 'pages')).
|
||||
'no Index'.Html::nbsp().Form::checkbox('robots_index', 'index', $post_robots_index).Html::nbsp(2).
|
||||
'no Follow'.Html::nbsp().Form::checkbox('robots_follow', 'follow', $post_robots_follow)
|
||||
);
|
||||
@@ -75,7 +74,7 @@
|
||||
} else {
|
||||
?>
|
||||
<div class="span3">
|
||||
<?php
|
||||
<?php
|
||||
echo (
|
||||
Form::label('pages', __('Parent', 'pages')).
|
||||
Form::select('pages', $pages_array, $parent_page)
|
||||
@@ -92,16 +91,16 @@
|
||||
echo (
|
||||
Form::label('templates', __('Template', 'pages')).
|
||||
Form::select('templates', $templates_array, $template)
|
||||
);
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
<?php
|
||||
if (Request::get('name') == 'error404') {
|
||||
echo Form::hidden('status', $status);
|
||||
} else {
|
||||
?>
|
||||
<div class="span3">
|
||||
<?php
|
||||
<?php
|
||||
echo (
|
||||
Form::label('status', __('Status', 'pages')).
|
||||
Form::select('status', $status_array, $status)
|
||||
@@ -109,13 +108,13 @@
|
||||
?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php
|
||||
<?php
|
||||
if (Request::get('name') == 'error404') {
|
||||
echo Form::hidden('access', $access);
|
||||
} else {
|
||||
?>
|
||||
<div class="span3">
|
||||
<?php
|
||||
<?php
|
||||
echo (
|
||||
Form::label('access', __('Access', 'pages')).
|
||||
Form::select('access', $access_array, $access)
|
||||
@@ -127,7 +126,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<br /><br />
|
||||
|
||||
<?php Action::run('admin_editor', array(Html::toText($to_edit))); ?>
|
||||
|
Reference in New Issue
Block a user