ajout lien toutes les archives
This commit is contained in:
brol 2015-06-08 13:09:21 +02:00
parent 8347589771
commit 074cd6cd16
5 changed files with 20 additions and 2 deletions

View file

@ -16,7 +16,7 @@ $this->registerModule(
/* Name */ "shortArchives",
/* Description*/ "Display blog archives in an accordion menu, sorted by year",
/* Author */ "annso, Pierre Van Glabeke",
/* Version */ "1.7",
/* Version */ "1.8",
/* Properties */
array(
'permissions' => 'usage,contentadmin',

View file

@ -81,6 +81,13 @@ class tplShortArchives
}
$res .= '</ul>';
if ($core->url->getBase('archive') && !is_null($w->allarchivesslinktitle) && $w->allarchivesslinktitle !== '')
{
$res .=
'<p><strong><a href="'.$core->blog->url.$core->url->getURLFor("archive").'">'.
html::escapeHTML($w->allarchivesslinktitle).'</a></strong></p>';
}
return $w->renderDiv($w->content_only,'shortArchives '.$w->class,'',$res);
}
}

View file

@ -22,6 +22,7 @@ class shortArchivesWidgets
__('Blog Archive List an accordion menu, sorted by year'));
$w->shortArchives->setting('title',__('Title:'),__('Archives'));
$w->shortArchives->setting('postcount',__('With entries counts'),1,'check');
$w->shortArchives->setting('allarchivesslinktitle',__('Link to all archives:'),__('All archives'));
$w->shortArchives->setting('homeonly',__('Display on:'),0,'combo',
array(
__('All pages') => 0,

View file

@ -1,3 +1,6 @@
v1.8 - 08-06-2015 - Pierre Van Glabeke
* ajout lien vers toutes les archives
v1.7 - 28-05-2015 - Kozlika & Nikrou
* suppression d'image et gestion de l'indicateur via css
* ajout de classes sur chaque liste (année/mois)

View file

@ -14,3 +14,10 @@ msgstr "Afficher les archives du blog dans un menu accordéon, trié par années
msgid "Blog Archive List an accordion menu, sorted by year"
msgstr "Liste des archives du blog dans un menu accordéon, trié par années"
msgid "Link to all archives:"
msgstr "Lien vers toutes les archives :"
msgid "All archives"
msgstr "Toutes les archives"