1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<?php
global $gBitThemes;
$gBitThemes->registerModule( [
'title' => \Bitweaver\KernelTools::tra( 'Recent Blog Posts' ),
'description' => \Bitweaver\KernelTools::tra( 'Displays a list of recent blog posts. The list can be customized by various parameters.' ),
'params' => [
'user' => [ 'help' => 'Set a user name to limit the list of recent posts to just posts by that user.',],
'blog_id' => [ 'help' => 'Set a blog_id to limit the list of recent posts to just posts to that blog',],
'groupd_id' => [ 'help' => 'Set a groupd_id to limit the list of recent posts to just posts by users in that group.',],
'max_records' => [],
'offset' => [ 'help' => 'Set offset to offest the start of the list' ],
'status' => [
'help' => 'Set status to "draft" to display a list of draft posts by the logged in user.',
'select' => [
'public' => 'Public',
'draft' => 'Draft',
],
],
],
'package' => BLOGS_PKG_NAME,
'directory' => 'lastblogposts',
'handler' => 'mod_last_blog_posts.php',
'template' => 'mod_last_blog_posts.tpl',
'legacy_dir' => 'modules', // force module to show up in correct array during upgrade process
'legacy_prefix' => 'mod_', // force module to show up in correct array during upgrade process
] );
|