provide 'style' option to archive widget to choose between 'select' and 'list' format

This commit is contained in:
friendica
2014-03-23 16:20:44 -07:00
parent ba6765a403
commit 34eb79e6ba
3 changed files with 12 additions and 2 deletions

View File

@@ -306,6 +306,7 @@ function widget_archive($arr) {
$wall = ((array_key_exists('wall', $arr)) ? intval($arr['wall']) : 0);
$style = ((array_key_exists('style', $arr)) ? $arr['style'] : 'select');
$url = z_root() . '/' . $a->cmd;
@@ -318,6 +319,7 @@ function widget_archive($arr) {
'$title' => t('Archives'),
'$size' => ((count($ret) > 6) ? 6 : count($ret)),
'$url' => $url,
'$style' => $style,
'$dates' => $ret
));
return $o;