add link to configuration and cosmetics fixes

This commit is contained in:
Jean-Christian Denis 2021-10-28 23:17:48 +02:00
parent 70c48ac2b1
commit 8e5daa78a5
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951
6 changed files with 27 additions and 255 deletions

View file

@ -1,5 +1,12 @@
# README # README
[![Release](https://img.shields.io/github/v/release/JcDenis/fac)](https://github.com/JcDenis/fac/releases)
[![Date](https://img.shields.io/github/release-date/JcDenis/fac)](https://github.com/JcDenis/fac/releases)
[![Issues](https://img.shields.io/github/issues/JcDenis/fac)](https://github.com/JcDenis/fac/issues)
[![Dotclear](https://img.shields.io/badge/dotclear-v2.19-blue.svg)](https://fr.dotclear.org/download)
[![Dotaddict](https://img.shields.io/badge/dotaddict-official-green.svg)](https://plugins.dotaddict.org/dc2/details/fac)
[![License](https://img.shields.io/github/license/JcDenis/fac)](https://github.com/JcDenis/fac/blob/master/LICENSE)
## WHAT IS FAC ? ## WHAT IS FAC ?
"Feed After Content" is a plugin for the open-source "Feed After Content" is a plugin for the open-source

View file

@ -73,7 +73,15 @@ class facAdmin
'<div class="fieldset"><h4 id="fac_params">Feed after content</h4>' . '<div class="fieldset"><h4 id="fac_params">Feed after content</h4>' .
'<p class="form-note">' . '<p class="form-note">' .
__('To add feed to an entry edit this entry and put in sidebar the url of the feed and select a format.') . __('To add feed to an entry edit this entry and put in sidebar the url of the feed and select a format.') .
'</p>' . '</p>';
if ($core->auth->isSuperAdmin()) {
echo '<p><a href="' . $core->adminurl->get('admin.plugins', [
'module' => 'fac',
'conf' => 1,
'redir' => $core->adminurl->get('admin.blog.pref') . '#fac_params'
]) . '">' . __('Configure formats') . '</a></p>';
}
echo
'<div class="two-cols">' . '<div class="two-cols">' .
'<div class="col">' . '<div class="col">' .
'<h5>' . __('Activation') . '</h5>' . '<h5>' . __('Activation') . '</h5>' .

View file

@ -15,6 +15,10 @@ if (!defined('DC_CONTEXT_MODULE')) {
return null; return null;
} }
if (!$core->auth->isSuperAdmin()) {
return null;
}
$redir = empty($_REQUEST['redir']) ? $redir = empty($_REQUEST['redir']) ?
$list->getURL() . '#plugins' : $_REQUEST['redir']; $list->getURL() . '#plugins' : $_REQUEST['redir'];
@ -53,7 +57,7 @@ if (!empty($_POST['save'])) {
$core->blog->triggerBlog(); $core->blog->triggerBlog();
dcPage::addSuccessNotice( dcPage::addSuccessNotice(
__('Configuration has been successfully updated.') __('Configuration successfully updated.')
); );
http::redirect( http::redirect(
$list->getURL('module=fac&conf=1&redir=' . $list->getRedir()) $list->getURL('module=fac&conf=1&redir=' . $list->getRedir())

View file

@ -5,6 +5,7 @@
<author>Jean-Christian Denis and Contributors</author> <author>Jean-Christian Denis and Contributors</author>
<desc>Add RSS/Atom feeds after entries content</desc> <desc>Add RSS/Atom feeds after entries content</desc>
<file>https://github.com/JcDenis/fac/releases/download/v0.9.3/plugin-fac.zip</file> <file>https://github.com/JcDenis/fac/releases/download/v0.9.3/plugin-fac.zip</file>
<da:dcmin>2.19</da:dcmin>
<da:details>https://plugins.dotaddict.org/dc2/details/fac</da:details> <da:details>https://plugins.dotaddict.org/dc2/details/fac</da:details>
<da:support>https://github.com/JcDenis/fac</da:support> <da:support>https://github.com/JcDenis/fac</da:support>
</module> </module>

View file

@ -1,172 +0,0 @@
<?php
// Language: Français
// Module: fac - 0.9.1
// Date: 2021-08-23 21:01:30
// Translated with dcTranslater - 2021.08.18
#_admin.php:46
$GLOBALS['__l10n']['home page'] = 'la page d\'accueil';
#_admin.php:47
$GLOBALS['__l10n']['post pages'] = 'la page d\'un billet';
#_admin.php:48
$GLOBALS['__l10n']['tags pages'] = 'les pages d\'un tag';
#_admin.php:49
$GLOBALS['__l10n']['archives pages'] = 'les pages des archives';
#_admin.php:50
$GLOBALS['__l10n']['category pages'] = 'les pages de catégorie';
#_admin.php:51
$GLOBALS['__l10n']['entries feed'] = 'le flux des billets';
#_admin.php:56
$GLOBALS['__l10n']['"%s" pages from extension muppet'] = 'la page de type "%s" de l\'extension muppet';
#_admin.php:75
#_config.php:482
$GLOBALS['__l10n']['To add feed to an entry edit this entry and put in sidebar the url of the feed and select a format.'] = 'Pour ajouter un flux à un billet, modifier ce billet et dans son menu latéral ajouter l\'URL du flux et le format.';
#_admin.php:82
$GLOBALS['__l10n']['Enable "fac" extension'] = 'Activer l\'extension "fac"';
#_admin.php:84
$GLOBALS['__l10n']['You can manage related feed to display for each post with a predefined format.'] = 'Vous pouvez gérer les flux a afficher pour chaque billet avec un format prédéfini.';
#_admin.php:86
$GLOBALS['__l10n']['Feed'] = 'Flux';
#_admin.php:87
$GLOBALS['__l10n']['Default title'] = 'Titre par défaut';
#_admin.php:89
$GLOBALS['__l10n']['Use %T to insert title of feed.'] = 'Utiliser %T pour insérer le titre du flux.';
#_admin.php:92
$GLOBALS['__l10n']['Show description of feed'] = 'Afficher la description';
#_admin.php:95
$GLOBALS['__l10n']['Show feed after content on:'] = 'Afficher le flux après le contenu sur :';
#_admin.php:226
#_admin.php:234
#_admin.php:337
$GLOBALS['__l10n']['Linked feed'] = 'Flux lié';
#_admin.php:226
$GLOBALS['__l10n']['Add feed'] = 'Ajouter un flux';
#_admin.php:234
$GLOBALS['__l10n']['Remove feed'] = 'Retirer un flux';
#_admin.php:264
$GLOBALS['__l10n']['Linked feed deleted.'] = 'Flux lié effacé.';
#_admin.php:291
$GLOBALS['__l10n']['Linked feed added.'] = 'Flux lié ajouté.';
#_admin.php:300
$GLOBALS['__l10n']['Linked feed to this selection'] = 'Lié un flux a cette selection';
#_admin.php:355
$GLOBALS['__l10n']['view feed'] = 'Voir le flux';
#_config.php:56
$GLOBALS['__l10n']['Configuration has been successfully updated.'] = 'La configuration a été mise à jour avec succés.';
#_config.php:76
$GLOBALS['__l10n']['Format %s'] = 'Format %s';
#_config.php:93
#_config.php:295
$GLOBALS['__l10n']['In order to remove a format, leave its name empty.'] = 'Pour retirer un format, laisser son nom vide.';
#_config.php:109
#_config.php:311
$GLOBALS['__l10n']['Use date format of Dotclear or leave empty to use default date format of blog.'] = 'Utiliser le formatage des dates de Dotclear ou laisser vide pour utiliser le format par défaut du blog.';
#_config.php:125
#_config.php:185
#_config.php:225
#_config.php:265
#_config.php:327
#_config.php:387
#_config.php:427
#_config.php:467
$GLOBALS['__l10n']['Leave lengh empty for no limit.'] = 'Laisser vide pour ne pas mettre de limite.';
#_config.php:131
#_config.php:333
$GLOBALS['__l10n']['Title format:'] = 'Format du titre :';
#_config.php:143
#_config.php:164
#_config.php:345
#_config.php:366
$GLOBALS['__l10n']['Format can be:'] = 'Le format peut-être :';
#_config.php:152
#_config.php:354
$GLOBALS['__l10n']['Over title format:'] = 'Format au survole du titre :';
#_config.php:173
#_config.php:375
$GLOBALS['__l10n']['Maximum length of title:'] = 'Longueur maximum du titre :';
#_config.php:199
#_config.php:401
$GLOBALS['__l10n']['Show description of entries'] = 'Afficher la description des billets';
#_config.php:210
#_config.php:412
$GLOBALS['__l10n']['Remove html of description'] = 'Retirer le code HTML de la description';
#_config.php:213
#_config.php:415
$GLOBALS['__l10n']['Maximum length of description:'] = 'Longueur maximum de la description :';
#_config.php:239
#_config.php:441
$GLOBALS['__l10n']['Show content of entries'] = 'Afficher le contenu du flux';
#_config.php:250
#_config.php:452
$GLOBALS['__l10n']['Remove html of content'] = 'Retirer le code HTML du contenu';
#_config.php:253
#_config.php:455
$GLOBALS['__l10n']['Maximum length of content:'] = 'Longueur maximum du contenu :';
#_config.php:278
$GLOBALS['__l10n']['New format'] = 'Nouveau format';
#_config.php:475
$GLOBALS['__l10n']['Informations'] = 'Informations';
#_config.php:479
$GLOBALS['__l10n']['Theme'] = 'Thème';
#_config.php:481
$GLOBALS['__l10n']['Theme must have behavoir publicEntryAfterContent.'] = 'Le thème doit avoir le behavior pulicEnryAfterContent.';
#_config.php:487
$GLOBALS['__l10n']['Structure'] = 'Structure';
#_config.php:490
$GLOBALS['__l10n']['Title of feed'] = 'Titre du flux';
#_config.php:491
$GLOBALS['__l10n']['Description of feed'] = 'Descritpion du flux';
#_config.php:493
$GLOBALS['__l10n']['Title of entry'] = 'Titre du billet';
#_config.php:494
$GLOBALS['__l10n']['Description of entry'] = 'Description du billet';
#_public.php:120
$GLOBALS['__l10n']['a related feed'] = 'un flux lié';
$GLOBALS['__l10n']['Add RSS/Atom feeds after entries content'] = 'Ajouter des flux RSS/Atom après le contenu des billets';

View file

@ -1,229 +1,153 @@
# Language: Français
# Module: fac - 0.9.1
# Date: 2021-08-23 21:01:30
# Translated with translater 2021.08.18
msgid "" msgid ""
msgstr "" msgstr ""
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Project-Id-Version: fac 0.9.1\n" "Project-Id-Version: fac 0.9.3\n"
"POT-Creation-Date: \n" "POT-Creation-Date: \n"
"PO-Revision-Date: 2021-08-23T21:01:30+00:00\n" "PO-Revision-Date: 2021-10-28T21:15:38+00:00\n"
"Last-Translator: Jean-Christian Denis\n" "Last-Translator: Jean-Christian Denis\n"
"Language-Team: \n" "Language-Team: \n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: _admin.php:46
msgid "home page" msgid "home page"
msgstr "la page d'accueil" msgstr "la page d'accueil"
#: _admin.php:47
msgid "post pages" msgid "post pages"
msgstr "la page d'un billet" msgstr "la page d'un billet"
#: _admin.php:48
msgid "tags pages" msgid "tags pages"
msgstr "les pages d'un tag" msgstr "les pages d'un tag"
#: _admin.php:49
msgid "archives pages" msgid "archives pages"
msgstr "les pages des archives" msgstr "les pages des archives"
#: _admin.php:50
msgid "category pages" msgid "category pages"
msgstr "les pages de catégorie" msgstr "les pages de catégorie"
#: _admin.php:51
msgid "entries feed" msgid "entries feed"
msgstr "le flux des billets" msgstr "le flux des billets"
#: _admin.php:56
msgid "\"%s\" pages from extension muppet" msgid "\"%s\" pages from extension muppet"
msgstr "la page de type \"%s\" de l'extension muppet" msgstr "la page de type \"%s\" de l'extension muppet"
#: _admin.php:75
#: _config.php:482
msgid "To add feed to an entry edit this entry and put in sidebar the url of the feed and select a format." msgid "To add feed to an entry edit this entry and put in sidebar the url of the feed and select a format."
msgstr "Pour ajouter un flux à un billet, modifier ce billet et dans son menu latéral ajouter l'URL du flux et le format." msgstr "Pour ajouter un flux à un billet, modifier ce billet et dans son menu latéral ajouter l'URL du flux et le format."
#: _admin.php:82 msgid "Configure formats"
msgstr "Configurer les formats"
msgid "Enable \"fac\" extension" msgid "Enable \"fac\" extension"
msgstr "Activer l'extension \"fac\"" msgstr "Activer l'extension \"fac\""
#: _admin.php:84
msgid "You can manage related feed to display for each post with a predefined format." msgid "You can manage related feed to display for each post with a predefined format."
msgstr "Vous pouvez gérer les flux a afficher pour chaque billet avec un format prédéfini." msgstr "Vous pouvez gérer les flux a afficher pour chaque billet avec un format prédéfini."
#: _admin.php:86
msgid "Feed" msgid "Feed"
msgstr "Flux" msgstr "Flux"
#: _admin.php:87
msgid "Default title" msgid "Default title"
msgstr "Titre par défaut" msgstr "Titre par défaut"
#: _admin.php:89
msgid "Use %T to insert title of feed." msgid "Use %T to insert title of feed."
msgstr "Utiliser %T pour insérer le titre du flux." msgstr "Utiliser %T pour insérer le titre du flux."
#: _admin.php:92
msgid "Show description of feed" msgid "Show description of feed"
msgstr "Afficher la description" msgstr "Afficher la description"
#: _admin.php:95
msgid "Show feed after content on:" msgid "Show feed after content on:"
msgstr "Afficher le flux après le contenu sur :" msgstr "Afficher le flux après le contenu sur :"
#: _admin.php:226
#: _admin.php:234
#: _admin.php:337
msgid "Linked feed" msgid "Linked feed"
msgstr "Flux lié" msgstr "Flux lié"
#: _admin.php:226
msgid "Add feed" msgid "Add feed"
msgstr "Ajouter un flux" msgstr "Ajouter un flux"
#: _admin.php:234
msgid "Remove feed" msgid "Remove feed"
msgstr "Retirer un flux" msgstr "Retirer un flux"
#: _admin.php:264
msgid "Linked feed deleted." msgid "Linked feed deleted."
msgstr "Flux lié effacé." msgstr "Flux lié effacé."
#: _admin.php:291
msgid "Linked feed added." msgid "Linked feed added."
msgstr "Flux lié ajouté." msgstr "Flux lié ajouté."
#: _admin.php:300
msgid "Linked feed to this selection" msgid "Linked feed to this selection"
msgstr "Lié un flux a cette selection" msgstr "Lié un flux a cette selection"
#: _admin.php:355
msgid "view feed" msgid "view feed"
msgstr "Voir le flux" msgstr "Voir le flux"
#: _config.php:56
msgid "Configuration has been successfully updated."
msgstr "La configuration a été mise à jour avec succés."
#: _config.php:76
msgid "Format %s" msgid "Format %s"
msgstr "Format %s" msgstr "Format %s"
#: _config.php:93
#: _config.php:295
msgid "In order to remove a format, leave its name empty." msgid "In order to remove a format, leave its name empty."
msgstr "Pour retirer un format, laisser son nom vide." msgstr "Pour retirer un format, laisser son nom vide."
#: _config.php:109
#: _config.php:311
msgid "Use date format of Dotclear or leave empty to use default date format of blog." msgid "Use date format of Dotclear or leave empty to use default date format of blog."
msgstr "Utiliser le formatage des dates de Dotclear ou laisser vide pour utiliser le format par défaut du blog." msgstr "Utiliser le formatage des dates de Dotclear ou laisser vide pour utiliser le format par défaut du blog."
#: _config.php:125
#: _config.php:185
#: _config.php:225
#: _config.php:265
#: _config.php:327
#: _config.php:387
#: _config.php:427
#: _config.php:467
msgid "Leave lengh empty for no limit." msgid "Leave lengh empty for no limit."
msgstr "Laisser vide pour ne pas mettre de limite." msgstr "Laisser vide pour ne pas mettre de limite."
#: _config.php:131
#: _config.php:333
msgid "Title format:" msgid "Title format:"
msgstr "Format du titre :" msgstr "Format du titre :"
#: _config.php:143
#: _config.php:164
#: _config.php:345
#: _config.php:366
msgid "Format can be:" msgid "Format can be:"
msgstr "Le format peut-être :" msgstr "Le format peut-être :"
#: _config.php:152
#: _config.php:354
msgid "Over title format:" msgid "Over title format:"
msgstr "Format au survole du titre :" msgstr "Format au survole du titre :"
#: _config.php:173
#: _config.php:375
msgid "Maximum length of title:" msgid "Maximum length of title:"
msgstr "Longueur maximum du titre :" msgstr "Longueur maximum du titre :"
#: _config.php:199
#: _config.php:401
msgid "Show description of entries" msgid "Show description of entries"
msgstr "Afficher la description des billets" msgstr "Afficher la description des billets"
#: _config.php:210
#: _config.php:412
msgid "Remove html of description" msgid "Remove html of description"
msgstr "Retirer le code HTML de la description" msgstr "Retirer le code HTML de la description"
#: _config.php:213
#: _config.php:415
msgid "Maximum length of description:" msgid "Maximum length of description:"
msgstr "Longueur maximum de la description :" msgstr "Longueur maximum de la description :"
#: _config.php:239
#: _config.php:441
msgid "Show content of entries" msgid "Show content of entries"
msgstr "Afficher le contenu du flux" msgstr "Afficher le contenu du flux"
#: _config.php:250
#: _config.php:452
msgid "Remove html of content" msgid "Remove html of content"
msgstr "Retirer le code HTML du contenu" msgstr "Retirer le code HTML du contenu"
#: _config.php:253
#: _config.php:455
msgid "Maximum length of content:" msgid "Maximum length of content:"
msgstr "Longueur maximum du contenu :" msgstr "Longueur maximum du contenu :"
#: _config.php:278
msgid "New format" msgid "New format"
msgstr "Nouveau format" msgstr "Nouveau format"
#: _config.php:475
msgid "Informations" msgid "Informations"
msgstr "Informations" msgstr "Informations"
#: _config.php:479
msgid "Theme" msgid "Theme"
msgstr "Thème" msgstr "Thème"
#: _config.php:481
msgid "Theme must have behavoir publicEntryAfterContent." msgid "Theme must have behavoir publicEntryAfterContent."
msgstr "Le thème doit avoir le behavior pulicEnryAfterContent." msgstr "Le thème doit avoir le behavior pulicEnryAfterContent."
#: _config.php:487
msgid "Structure" msgid "Structure"
msgstr "Structure" msgstr "Structure"
#: _config.php:490
msgid "Title of feed" msgid "Title of feed"
msgstr "Titre du flux" msgstr "Titre du flux"
#: _config.php:491
msgid "Description of feed" msgid "Description of feed"
msgstr "Descritpion du flux" msgstr "Descritpion du flux"
#: _config.php:493
msgid "Title of entry" msgid "Title of entry"
msgstr "Titre du billet" msgstr "Titre du billet"
#: _config.php:494
msgid "Description of entry" msgid "Description of entry"
msgstr "Description du billet" msgstr "Description du billet"
#: _public.php:120
msgid "a related feed" msgid "a related feed"
msgstr "un flux lié" msgstr "un flux lié"