Topic: Total info Dashboard v2
Open and edit this file in this location on your Monstra: yourmonstrawebsite.com/plugins/box/dashboard/views/backend/index.view.php
Once opened add this code on the file: index.view.php
<!-- Total info --> <?php $pages = new Table('pages'); $pages_list = $pages->select('[slug!="error404"]'); $blocks_path = STORAGE . DS . 'blocks' . DS; $blocks_list = File::scan($blocks_path, '.block.html'); $snippets_path = STORAGE . DS . 'snippets' . DS; $snippets_list = File::scan($snippets_path, '.snippet.php'); $users = new Table('users'); $users_list = $users->select(null,'all'); ?> <div class="well dashboard-well"> <div class="row"> <div class="col-md-3"> <h3>Manage Pages</h3> <p><span class="badge badge-success"><b>Total:</b> <?php echo count($pages_list);?></span></p> <p><a href="<?php echo Site::url(); ?>/admin/index.php?id=pages&action=add_page" class="btn btn-primary">Create new page</a></p> <p><a href="<?php echo Site::url(); ?>/admin/index.php?id=pages" class="btn btn-primary">View pages</a></p> </div> <div class="col-md-3"> <h3>Manage Blocks</h3> <p><span class="badge badge-success"><b>Total:</b> <?php echo count($blocks_list);?></span></p> <p><a href="<?php echo Site::url(); ?>/admin/index.php?id=blocks&action=add_block" class="btn btn-primary">Create new Block</a></p> <p><a href="<?php echo Site::url(); ?>/admin/index.php?id=blocks" class="btn btn-primary">View all blocks</a></p> </div> <div class="col-md-3"> <h3>Manage Snippets</h3> <p><span class="badge badge-success"><b>Total:</b> <?php echo count($snippets_list);?></span></p> <p><a href="<?php echo Site::url(); ?>/admin/index.php?id=snippets&action=add_snippet" class="btn btn-primary">Create new snippet</a></p> <p><a href="<?php echo Site::url(); ?>/admin/index.php?id=snippets" class="btn btn-primary">View all snippets</a></p> </div> <div class="col-md-3"> <h3>Manage Users</h3> <p><span class="badge badge-success"><b>Total:</b> <?php echo count($users_list);?></span></p> <p><a href="<?php echo Site::url(); ?>/admin/index.php?id=users&action=add" class="btn btn-primary">Create new user</a></p> <p><a href="<?php echo Site::url(); ?>/admin/index.php?id=users" class="btn btn-primary">View all users</a></p> </div> </div> </div> <!-- Total info -->
Then choose option save as, ftp or update as you wish, and that's it!
This Snippet was inspired in Nakome version and improved to match all Monstra Versions! (tested)!
Best regards to all and have a nice development!
http://monstracreative.com - themes, plugins and snippets for monstra cms
:: ATTENTION ::
Need help? Login at your account at: http://monstracreative.com/users/login. -> You have a excellent support center at our website!
:: ATTENTION ::
Need help? Login at your account at: http://monstracreative.com/users/login. -> You have a excellent support center at our website!