public function __construct($view, $title_page) { parent::__construct($view); $lang = LangLoader::get('common', 'articles'); $this->set_title($lang['articles']); $this->add_link(LangLoader::get_message('categories.management', 'categories-common'), ArticlesUrlBuilder::manage_categories()); $this->add_link(LangLoader::get_message('category.add', 'categories-common'), ArticlesUrlBuilder::add_category()); $this->add_link($lang['articles_management'], ArticlesUrlBuilder::manage_articles()); $this->add_link($lang['articles.add'], ArticlesUrlBuilder::add_article()); $this->add_link(LangLoader::get_message('configuration', 'admin-common'), ArticlesUrlBuilder::configuration()); $env = $this->get_graphical_environment(); $env->set_page_title($title_page, $lang['articles']); }
public function get_actions_tree_links() { $lang = LangLoader::get('common', 'articles'); $tree = new ModuleTreeLinks(); $manage_categories_link = new AdminModuleLink(LangLoader::get_message('categories.manage', 'categories-common'), ArticlesUrlBuilder::manage_categories()); $manage_categories_link->add_sub_link(new AdminModuleLink(LangLoader::get_message('categories.manage', 'categories-common'), ArticlesUrlBuilder::manage_categories())); $manage_categories_link->add_sub_link(new AdminModuleLink(LangLoader::get_message('category.add', 'categories-common'), ArticlesUrlBuilder::add_category())); $tree->add_link($manage_categories_link); $manage_articles_link = new AdminModuleLink($lang['articles_management'], ArticlesUrlBuilder::manage_articles()); $manage_articles_link->add_sub_link(new AdminModuleLink($lang['articles_management'], ArticlesUrlBuilder::manage_articles())); $manage_articles_link->add_sub_link(new AdminModuleLink($lang['articles.add'], ArticlesUrlBuilder::add_article(AppContext::get_request()->get_getint('id_category', Category::ROOT_CATEGORY)))); $tree->add_link($manage_articles_link); $tree->add_link(new AdminModuleLink(LangLoader::get_message('configuration', 'admin-common'), ArticlesUrlBuilder::configuration())); if (!AppContext::get_current_user()->check_level(User::ADMIN_LEVEL)) { $tree->add_link(new ModuleLink($lang['articles.add'], ArticlesUrlBuilder::add_article(AppContext::get_request()->get_getint('id_category', Category::ROOT_CATEGORY)), ArticlesAuthorizationsService::check_authorizations()->write() || ArticlesAuthorizationsService::check_authorizations()->contribution())); } $tree->add_link(new ModuleLink($lang['articles.pending_articles'], ArticlesUrlBuilder::display_pending_articles(), ArticlesAuthorizationsService::check_authorizations()->write() || ArticlesAuthorizationsService::check_authorizations()->contribution() || ArticlesAuthorizationsService::check_authorizations()->moderation())); return $tree; }
* ################################################### * * This program is a 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; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in 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, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ###################################################*/ #################################################### # French # #################################################### $lang['root_category_description'] = 'Bienvenue dans l\'espace des articles du site ! <br /><br /> Une catégorie et un article ont été créés pour vous montrer comment fonctionne ce module. Voici quelques conseils pour bien débuter sur ce module. <br /><br /> <ul class="formatter-ul"> <li class="formatter-li"> Pour configurer ou personnaliser l\'accueil de votre module, rendez vous dans l\'<a href="' . ArticlesUrlBuilder::configuration()->relative() . '">administration du module</a></li> <li class="formatter-li"> Pour créer des catégories, <a href="' . ArticlesUrlBuilder::add_category()->relative() . '">cliquez ici</a> </li> <li class="formatter-li"> Pour ajouter des articles, <a href="' . ArticlesUrlBuilder::add_article()->relative() . '">cliquez ici</a></li> </ul> <br />Pour en savoir plus, n\'hésitez pas à consulter la documentation du module sur le site de <a href="http://www.phpboost.com">PHPBoost</a>.';
* 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, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ###################################################*/ ##################################################### # French # #################################################### $lang = array(); $lang['default.category.name'] = 'Catégorie de test'; $lang['default.category.description'] = 'Articles de démonstration'; $lang['default.article.title'] = 'Débuter avec le module Articles'; $lang['default.article.description'] = ''; $lang['default.article.contents'] = 'Ce bref article va vous donner quelques conseils simples pour prendre en main ce module.<br /> <br /> <ul class="formatter-ul"> <li class="formatter-li">Pour configurer votre module, <a href="' . ArticlesUrlBuilder::configuration()->relative() . '">cliquez ici</a> </li><li class="formatter-li">Pour ajouter des catégories : <a href="' . ArticlesUrlBuilder::add_category()->relative() . '">cliquez ici</a> (les catégories et sous catégories sont à l\'infini) </li><li class="formatter-li">Pour ajouter un article : <a href="' . ArticlesUrlBuilder::add_article()->relative() . '">cliquez ici</a> </li></ul> <ul class="formatter-ul"> <li class="formatter-li">Pour mettre en page vos articles, vous pouvez utiliser le langage bbcode ou l\'éditeur WYSIWYG (cf cet <a href="http://www.phpboost.com/articles/articles-6-61+mise-en-page-du-contenu.php">article</a>)<br /> </li></ul><br /> <br /> Pour en savoir plus, n\'hésitez pas à consulter la documentation du module sur le site de <a href="http://www.phpboost.com">PHPBoost</a>.<br /> <br /> <br /> Bonne utilisation de ce module.';
* 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, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ###################################################*/ ##################################################### # English # #################################################### $lang = array(); $lang['default.category.name'] = 'First category'; $lang['default.category.description'] = 'Demonstration of an article'; $lang['default.article.title'] = 'How to begin with the articles module'; $lang['default.article.description'] = ''; $lang['default.article.contents'] = 'This brief article will give you some simple tips to take control of this module.<br /> <br /> <ul class="formatter-ul"> <li class="formatter-li">To configure your module, <a href="' . ArticlesUrlBuilder::configuration()->relative() . '">click here</a> </li><li class="formatter-li">To add categories: <a href="' . ArticlesUrlBuilder::add_category()->relative() . '">click here</a> (categories and subcategories are infinitely) </li><li class="formatter-li">To add an item: <a href="' . ArticlesUrlBuilder::add_article()->relative() . '">click here</a> </li></ul> <ul class="formatter-ul"> <li class="formatter-li">To format your articles, you can use bbcode language or the WYSIWYG editor (cf this (cf cet <a href="http://www.phpboost.com/articles/articles-6-61+mise-en-page-du-contenu.php">article</a>)<br /> </li></ul><br /> <br /> For more information, please see the module documentation on the site <a href="http://www.phpboost.com">PHPBoost</a>.<br /> <br /> <br /> Good use of this module.';
* ################################################### * * This program is a 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; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in 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, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ###################################################*/ #################################################### # English # #################################################### $lang['root_category_description'] = 'Welcome to the articles section of the website! <br /><br /> One category and one article were created to show you how this module works. Here are some tips to get started on this module. <br /><br /> <ul class="formatter-ul"> <li class="formatter-li"> To configure or customize the module homepage your module, go into the <a href="' . ArticlesUrlBuilder::configuration()->relative() . '">module administration</a></li> <li class="formatter-li"> To create categories, <a href="' . ArticlesUrlBuilder::add_category()->relative() . '">clic here</a></li> <li class="formatter-li"> To create articles, <a href="' . ArticlesUrlBuilder::add_article()->relative() . '">clic here</a></li> </ul> <br />To learn more, don \'t hesitate to consult the documentation for the module on <a href="http://www.phpboost.com">PHPBoost</a> website.';