DaPortal

<?php //$Id$
//Copyright (c) 2012-2016 Pierre Pronchery <khorben@defora.org>
//This file is part of DeforaOS Web DaPortal
//
//This program is free software: you can redistribute it and/or modify
//it under the terms of the GNU General Public License as published by
//the Free Software Foundation, version 3 of the License.
//
//This program is distributed in the hope that it will be useful,
//but WITHOUT ANY WARRANTY; without even the implied warranty of
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
//GNU General Public License for more details.
//
//You should have received a copy of the GNU General Public License
//along with this program. If not, see <http://www.gnu.org/licenses/>.
//BlogModule
class BlogModule extends ContentModule
{
//public
//methods
//essential
//BlogModule::BlogModule
public function __construct($id, $name, $title = FALSE)
{
$title = ($title === FALSE) ? _('Blog') : $title;
parent::__construct($id, $name, $title);
//translations
$this->text_content_admin = _('Blogs administration');
$this->text_content_by = _('Post by');
$this->text_content_item = _('Blog post');
$this->text_content_items = _('Blog posts');
$this->text_content_list_title = _('Latest posts');
$this->text_content_list_title_by = _('Posts by');
$this->text_content_list_title_by_group = _('Posts by group');
$this->text_content_submit = _('New post');
$this->text_content_title = _('Planet');
}
//protected
//properties
static protected $content_class = 'BlogContent';
}
?>