$propbag->add('stackable', true);
$propbag->add('author', 'Serendipity Team');
$propbag->add('version', '2.0');
- $propbag->add('configuration', array('authorid', 'parent_base', 'image', 'sort_order', 'sort_method', 'allow_select', 'hide_parallel', 'show_count', 'smarty'));
+ $propbag->add('configuration', array('title', 'authorid', 'parent_base', 'image', 'sort_order', 'sort_method', 'allow_select', 'hide_parallel', 'show_count', 'smarty'));
$propbag->add('groups', array('FRONTEND_VIEWS'));
}
{
global $serendipity;
switch($name) {
+ case 'title':
+ $propbag->add('type', 'string');
+ $propbag->add('name', TITLE);
+ $propbag->add('description', TITLE_FOR_NUGGET);
+ $propbag->add('default', CATEGORIES);
+ break;
+
case 'authorid':
$row_authors = serendipity_db_query("SELECT realname, authorid FROM {$serendipity['dbPrefix']}authors");
$authors = array('all' => ALL_AUTHORS);
function generate_content(&$title) {
global $serendipity;
+ $title = $this->get_config('title');
$smarty = serendipity_db_bool($this->get_config('smarty', false));
$which_category = $this->get_config('authorid');
}
$is_form = serendipity_db_bool($this->get_config('allow_select'));
$categories = serendipity_fetchCategories(empty($which_category) ? 'all' : $which_category, '', $sort);
- $title = $this->title;
$cat_count = array();
if (serendipity_db_bool($this->get_config('show_count'))) {