1.8
ajout lien toutes les archives
This commit is contained in:
parent
8347589771
commit
074cd6cd16
@ -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',
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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,
|
||||
|
@ -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)
|
||||
|
@ -13,4 +13,11 @@ msgid "Display blog archives in an accordion menu, sorted by year"
|
||||
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"
|
||||
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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user