From 34eb79e6ba2255113eca6d30ae6c65b28d63abfa Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 23 Mar 2014 16:20:44 -0700 Subject: provide 'style' option to archive widget to choose between 'select' and 'list' format --- include/widgets.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/widgets.php') diff --git a/include/widgets.php b/include/widgets.php index 90586397f..82769d925 100644 --- a/include/widgets.php +++ b/include/widgets.php @@ -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; -- cgit v1.2.3