Exemplo n.º 1
0
 private function config()
 {
     setup_admin_left_menu('Page Editor', 'edit');
     add_admin_left_menu('Accueil', module_url(array('index')));
     add_admin_left_menu('Créer une page', module_url(array('create')));
     add_admin_left_menu('Réglages', module_url(array('settings')));
     // -----------------------------------------------------------------------------------------------------
     declare_notice('page_created', tendoo_success(__('The page has sucessfully been created.')));
     declare_notice('successfully_updated', tendoo_success(__('The page has sucessfully been updated.')));
 }
Exemplo n.º 2
0
$or['categoryCreated'] = tendoo_success('La catégorie à été correctement crée');
$or['categoryAldreadyCreated'] = tendoo_error('Cette catégorie existe déjà');
$or['unknowCat'] = $or['unknowCategory'] = tendoo_error('Cette catégorie est inexistante');
$or['unknowKeyWord'] = tendoo_error('Mot-clé introuvable.');
$or['categoryUpdated'] = tendoo_success('La mise à jour à réussie');
$or['categoryDeleted'] = tendoo_success('La catégorie à été supprimé avec succès');
$or['artCreated'] = tendoo_success('L\'article à correctement été crée.');
$or['categoryNotEmpty'] = tendoo_error('Cette catégorie ne peut pas être supprimée, car il existe des publications qui y sont rattachées. Changez la catégorie de ces publications avant de supprimer cette catégorie.');
$or['unknowArticle'] = tendoo_error('Article introuvable');
$or['noCategoryCreated'] = tendoo_error(' Avant de publier un article, vous devez créer une catégorie.');
$or['connectToComment'] = tendoo_error(' Vous devez être connecté pour commenter.');
$or['unknowComments'] = tendoo_error(' Commentaire introuvable.');
$or['commentDeleted'] = tendoo_success('<i class="icon-checkmark"></i> Commentaire supprim&eacute;.');
$or['submitedForApproval'] = tendoo_success('<i class="icon-checkmark"></i> Votre commentaire &agrave; &eacute;t&eacute; soumis pour une examination.');
foreach ($or as $key => $notice_text) {
    declare_notice($key, $notice_text);
}
if (class_exists('tendoo_admin')) {
    class blogster_library extends Libraries
    {
        private $data;
        public function __construct()
        {
            // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
            parent::__construct();
            __extends($this);
            // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
            $this->module = get_modules('filter_namespace', 'blogster');
            $this->data = array();
            $this->instance = get_instance();
            $this->user =& $this->users_global;