diff options
author | friendica <info@friendica.com> | 2014-09-07 19:16:48 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-09-07 19:16:48 -0700 |
commit | 75fc3a8cebbf727b708ae164e0f4208cb3072b95 (patch) | |
tree | 36cc235559111e3a4e0ae7e561013a2fbc1dfc7e /mod/webpages.php | |
parent | 3c024ee446fe2a51b1e2739411701ea1ac4f655a (diff) | |
download | volse-hubzilla-75fc3a8cebbf727b708ae164e0f4208cb3072b95.tar.gz volse-hubzilla-75fc3a8cebbf727b708ae164e0f4208cb3072b95.tar.bz2 volse-hubzilla-75fc3a8cebbf727b708ae164e0f4208cb3072b95.zip |
for webpages, hide the mimetype selector unless in advanced mode. For pages that endless scroll and show blocky-block things, set the default items-per-page to 60. Why? It fits column-widths of 2,3,4,5,6,10,12,15, and 20 without leaving remaindered items dangling at the end. No other setting less than 100 has this much versatility.
Diffstat (limited to 'mod/webpages.php')
-rw-r--r-- | mod/webpages.php | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/mod/webpages.php b/mod/webpages.php index bfa2ebd7d..1b906a97f 100644 --- a/mod/webpages.php +++ b/mod/webpages.php @@ -46,11 +46,16 @@ function webpages_content(&$a) { // } - $mimetype = (($_REQUEST['mimetype']) ? $_REQUEST['mimetype'] : get_config('system','page_mimetype')); - if(! $mimetype) - $mimetype = 'choose'; + if(feature_enabled($owner,'expert_mode')) { + $mimetype = (($_REQUEST['mimetype']) ? $_REQUEST['mimetype'] : get_pconfig($owner,'system','page_mimetype')); + if(! $mimetype) + $mimetype = 'choose'; + } + else { + $mimetype = 'text/bbcode'; + } - $layout = (($_REQUEST['layout']) ? $_REQUEST['layout'] : get_config('system','page_layout')); + $layout = (($_REQUEST['layout']) ? $_REQUEST['layout'] : get_pconfig($owner,'system','page_layout')); if(! $layout) $layout = 'choose'; |