aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-11-01 22:34:54 -0700
committerzotlabs <mike@macgirvin.com>2017-11-01 22:34:54 -0700
commitbdf50a824e6ee7f72532ba9b6e31c8730a8a497e (patch)
treeb872dadb1b368b1cd224ae27cc2ce4d4e279bd8f
parent52657b6215b3b7104a89c8c3fea09a7f37ebf71e (diff)
parent11cdc36bcc7414002c2e72fd0c45d285d9515f0c (diff)
downloadvolse-hubzilla-bdf50a824e6ee7f72532ba9b6e31c8730a8a497e.tar.gz
volse-hubzilla-bdf50a824e6ee7f72532ba9b6e31c8730a8a497e.tar.bz2
volse-hubzilla-bdf50a824e6ee7f72532ba9b6e31c8730a8a497e.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into xdev_merge
-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 {
}
}
+