mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-21 04:11:24 +02:00
Add Monstra from HG Commit 683dcb70c4cc
This commit is contained in:
91
plugins/box/pages/views/backend/index.view.php
Normal file
91
plugins/box/pages/views/backend/index.view.php
Normal file
@@ -0,0 +1,91 @@
|
||||
<div class="row-fluid">
|
||||
|
||||
<div class="span12">
|
||||
|
||||
<h2><?php echo __('Pages', 'pages'); ?></h2>
|
||||
<br />
|
||||
|
||||
|
||||
<?php if (Notification::get('success')) Alert::success(Notification::get('success')); ?>
|
||||
|
||||
|
||||
<?php
|
||||
echo (
|
||||
Html::anchor(__('Create new page', 'pages'), 'index.php?id=pages&action=add_page', array('title' => __('Create new page', 'pages'), 'class' => 'btn default btn-small')). Html::nbsp(3).
|
||||
Html::anchor(__('Edit 404 page', 'pages'), 'index.php?id=pages&action=edit_page&name=error404', array('title' => __('Create new page', 'pages'), 'class' => 'btn default btn-small'))
|
||||
);
|
||||
?>
|
||||
|
||||
|
||||
<br /><br />
|
||||
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<td><?php echo __('Name', 'pages'); ?></td>
|
||||
<td><?php echo __('Author', 'pages'); ?></td>
|
||||
<td><?php echo __('Status', 'pages'); ?></td>
|
||||
<td><?php echo __('Date', 'pages'); ?></td>
|
||||
<td width="40%"><?php echo __('Actions', 'pages'); ?></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (count($pages) != 0) {
|
||||
foreach ($pages as $page) {
|
||||
if ($page['parent'] != '') { $dash = Html::arrow('right').' '; } else { $dash = ""; }
|
||||
?>
|
||||
<?php if ($page['parent'] == '') $parent_style=''; else $parent_style = ''; ?>
|
||||
<?php if ($page['slug'] != 'error404') { ?>
|
||||
<tr>
|
||||
<td>
|
||||
<?php
|
||||
if ($page['parent'] != '') {
|
||||
$parent = $page['parent'].'/';
|
||||
} else {
|
||||
$parent = '';
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
if ($page['parent'] != '') echo ' ';
|
||||
?>
|
||||
<?php echo $dash.Html::anchor(Html::toText($page['title']), $site_url.$parent.$page['slug'], array('target' => '_blank')); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $page['author']; ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $page['status']; ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo Date::format($page['date'], "j.n.Y"); ?>
|
||||
</td>
|
||||
<td>
|
||||
<div class="btn-toolbar">
|
||||
<div class="btn-group">
|
||||
<?php echo Html::anchor(__('Edit', 'pages'), 'index.php?id=pages&action=edit_page&name='.$page['slug'], array('class' => 'btn btn-actions')); ?>
|
||||
<a class="btn dropdown-toggle btn-actions" data-toggle="dropdown" href="#" style="font-family:arial;"><span class="caret"></span></a>
|
||||
<ul class="dropdown-menu">
|
||||
<?php if ($page['parent'] == '') { ?>
|
||||
<li><a href="index.php?id=pages&action=add_page&parent_page=<?php echo $page['slug']; ?>" title="<?php echo __('Create new page', 'pages'); ?>"><?php echo __('Add', 'pages'); ?></a></li>
|
||||
<?php } ?>
|
||||
<li><?php echo Html::anchor(__('Clone', 'pages'), 'index.php?id=pages&action=clone_page&name='.$page['slug'], array('title' => __('Clone', 'pages'))); ?></li>
|
||||
</ul>
|
||||
<?php echo Html::anchor(__('Delete', 'pages'),
|
||||
'index.php?id=pages&action=delete_page&name='.$page['slug'],
|
||||
array('class' => 'btn btn-actions btn-actions-default', 'onclick' => "return confirmDelete('".__("Delete page: :page", 'pages', array(':page' => Html::toText($page['title'])))."')"));
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user