diff options
author | git-marijus <mario@mariovavti.com> | 2017-10-30 10:38:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-30 10:38:17 +0100 |
commit | 1f47f4ff9644523f14898ecd6f55d0fd0438d253 (patch) | |
tree | ed83a3b46082bf9151419b45d8c205b26d8fa654 | |
parent | 9ce817bb6e80c693f0688b820af2487169bfd558 (diff) | |
parent | 1dc3253d4a8bac7c3186c4b5083b612e643d8694 (diff) | |
download | volse-hubzilla-1f47f4ff9644523f14898ecd6f55d0fd0438d253.tar.gz volse-hubzilla-1f47f4ff9644523f14898ecd6f55d0fd0438d253.tar.bz2 volse-hubzilla-1f47f4ff9644523f14898ecd6f55d0fd0438d253.zip |
Merge pull request #897 from HaakonME/dev
Added mode to Portfolio widget
-rw-r--r-- | Zotlabs/Widget/Portfolio.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Zotlabs/Widget/Portfolio.php b/Zotlabs/Widget/Portfolio.php index 216ca952c..0cd043246 100644 --- a/Zotlabs/Widget/Portfolio.php +++ b/Zotlabs/Widget/Portfolio.php @@ -20,6 +20,15 @@ class Portfolio { $album = $args['album']; if($args['title']) $title = $args['title']; + if(array_key_exists('mode', $args) && isset($args['mode'])) + $mode = $args['mode']; + else + $mode = ''; + if(array_key_exists('count', $args) && isset($args['count'])) + $count = $args['count']; + else + $count = ''; + /** * This may return incorrect permissions if you have multiple directories of the same name. @@ -92,6 +101,8 @@ class Portfolio { $tpl = get_markup_template('photo_album_portfolio.tpl'); $o .= replace_macros($tpl, array( '$photos' => $photos, + '$mode' => $mode, + '$count' => $count, '$album' => (($title) ? $title : $album), '$album_id' => rand(), '$album_edit' => array(t('Edit Album'), $album_edit), @@ -106,3 +117,4 @@ class Portfolio { } } + |