1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-08 22:26:55 +02:00

Pages Plugin: add page "access" feature

This commit is contained in:
Awilum
2012-11-02 18:39:39 +02:00
parent 1afe94bd46
commit 052e80a5c9
8 changed files with 100 additions and 18 deletions

View File

@@ -22,6 +22,7 @@
<td><?php echo __('Name', 'pages'); ?></td>
<td><?php echo __('Author', 'pages'); ?></td>
<td><?php echo __('Status', 'pages'); ?></td>
<td><?php echo __('Access', 'pages'); ?></td>
<td><?php echo __('Date', 'pages'); ?></td>
<td width="40%"><?php echo __('Actions', 'pages'); ?></td>
</tr>
@@ -42,9 +43,9 @@
<?php
if (count(PagesAdmin::$pages->select('[parent="'.(string)$page['slug'].'"]', 'all')) > 0) {
if (isset($page['expand']) && $page['expand'] == '1') {
echo '<a href="javascript:;" class="btn-expand parent" rel="'.$page['slug'].'">+</a>';
echo '<a href="javascript:;" class="btn-expand parent" token="'.Security::token().'" rel="'.$page['slug'].'">+</a>';
} else {
echo '<a href="javascript:;" class="btn-expand parent" rel="'.$page['slug'].'">-</a>';
echo '<a href="javascript:;" class="btn-expand parent" token="'.Security::token().'" rel="'.$page['slug'].'">-</a>';
}
}
?>
@@ -63,6 +64,9 @@
<td>
<?php echo $page['status']; ?>
</td>
<td>
<?php echo $page['access']; ?>
</td>
<td>
<?php echo Date::format($page['date'], "j.n.Y"); ?>
</td>