aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-03-23 16:20:44 -0700
committerfriendica <info@friendica.com>2014-03-23 16:20:44 -0700
commit34eb79e6ba2255113eca6d30ae6c65b28d63abfa (patch)
tree305d842c180447803a838333dd9337fdc647a035 /include
parentba6765a40301a549f2fcbe5ddcf0dffd53e205fc (diff)
downloadvolse-hubzilla-34eb79e6ba2255113eca6d30ae6c65b28d63abfa.tar.gz
volse-hubzilla-34eb79e6ba2255113eca6d30ae6c65b28d63abfa.tar.bz2
volse-hubzilla-34eb79e6ba2255113eca6d30ae6c65b28d63abfa.zip
provide 'style' option to archive widget to choose between 'select' and 'list' format
Diffstat (limited to 'include')
-rw-r--r--include/widgets.php2
1 files changed, 2 insertions, 0 deletions
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;