aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorHaakon Meland Eriksen <haakon.eriksen@far.no>2017-10-29 16:41:49 +0100
committerMario <mario@mariovavti.com>2017-10-30 10:39:39 +0100
commit8467ecb1d7e71efb3d4fb016107b22a068642985 (patch)
tree934e96aa7697a63b24e4f3d1a7d50bd61f14b88d /Zotlabs
parent9a8071e01485e1ae9cdb91fc4d0eae04eb745d53 (diff)
downloadvolse-hubzilla-8467ecb1d7e71efb3d4fb016107b22a068642985.tar.gz
volse-hubzilla-8467ecb1d7e71efb3d4fb016107b22a068642985.tar.bz2
volse-hubzilla-8467ecb1d7e71efb3d4fb016107b22a068642985.zip
Added mode to Portfolio widget
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Widget/Portfolio.php12
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 {
}
}
+