diff options
author | friendica <info@friendica.com> | 2014-03-23 16:20:44 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-03-23 16:20:44 -0700 |
commit | 34eb79e6ba2255113eca6d30ae6c65b28d63abfa (patch) | |
tree | 305d842c180447803a838333dd9337fdc647a035 /include | |
parent | ba6765a40301a549f2fcbe5ddcf0dffd53e205fc (diff) | |
download | volse-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.php | 2 |
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; |