diff options
author | friendica <info@friendica.com> | 2014-11-17 23:48:03 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-11-17 23:48:03 -0800 |
commit | db3015e34ed3827e68d8debc70321ed6df5dc699 (patch) | |
tree | 776e7bf5b437e381e68f7f220d343d585a7cd88d /mod/channel.php | |
parent | 7b39fac5f07cd2e85e4e978de8b259d40c03a173 (diff) | |
download | volse-hubzilla-db3015e34ed3827e68d8debc70321ed6df5dc699.tar.gz volse-hubzilla-db3015e34ed3827e68d8debc70321ed6df5dc699.tar.bz2 volse-hubzilla-db3015e34ed3827e68d8debc70321ed6df5dc699.zip |
allow members to set the per-item "show more" height (separately for network and matrix, display and search are system pages and therefore set at 400)
Diffstat (limited to 'mod/channel.php')
-rw-r--r-- | mod/channel.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mod/channel.php b/mod/channel.php index b91b6bcef..54b25ad8b 100644 --- a/mod/channel.php +++ b/mod/channel.php @@ -251,9 +251,14 @@ function channel_content(&$a, $update = 0, $load = false) { // This is ugly, but we can't pass the profile_uid through the session to the ajax updater, // because browser prefetching might change it on us. We have to deliver it with the page. + $maxheight = get_pconfig($a->profile['profile_uid'],'system','channel_divmore_height'); + if(! $maxheight) + $maxheight = 400; + $o .= '<div id="live-channel"></div>' . "\r\n"; $o .= "<script> var profile_uid = " . $a->profile['profile_uid'] - . "; var netargs = '?f='; var profile_page = " . $a->pager['page'] . "; </script>\r\n"; + . "; var netargs = '?f='; var profile_page = " . $a->pager['page'] + . "; divmore_height = " . intval($maxheight) . "; </script>\r\n"; $a->page['htmlhead'] .= replace_macros(get_markup_template("build_query.tpl"),array( '$baseurl' => z_root(), |