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/network.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/network.php')
-rw-r--r-- | mod/network.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mod/network.php b/mod/network.php index c79ff8d6a..522622f03 100644 --- a/mod/network.php +++ b/mod/network.php @@ -208,8 +208,15 @@ function network_content(&$a, $update = 0, $load = false) { if($gid || $cid || $cmin || ($cmax != 99) || $star || $liked || $conv || $spam || $nouveau || $list) $firehose = 0; + $maxheight = get_pconfig(local_user(),'system','network_divmore_height'); + if(! $maxheight) + $maxheight = 400; + + $o .= '<div id="live-network"></div>' . "\r\n"; - $o .= "<script> var profile_uid = " . local_user() . "; var profile_page = " . $a->pager['page'] . ";</script>"; + $o .= "<script> var profile_uid = " . local_user() + . "; 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(), |