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.
This commit is contained in:
parent
3c024ee446
commit
75fc3a8ceb
@ -5,7 +5,7 @@ require_once('include/widgets.php');
|
|||||||
|
|
||||||
|
|
||||||
function directory_init(&$a) {
|
function directory_init(&$a) {
|
||||||
$a->set_pager_itemspage(80);
|
$a->set_pager_itemspage(60);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ require_once('include/dir_fns.php');
|
|||||||
|
|
||||||
|
|
||||||
function dirsearch_init(&$a) {
|
function dirsearch_init(&$a) {
|
||||||
$a->set_pager_itemspage(80);
|
$a->set_pager_itemspage(60);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -122,7 +122,7 @@ function dirsearch_content(&$a) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$perpage = (($_REQUEST['n']) ? $_REQUEST['n'] : 80);
|
$perpage = (($_REQUEST['n']) ? $_REQUEST['n'] : 60);
|
||||||
$page = (($_REQUEST['p']) ? intval($_REQUEST['p'] - 1) : 0);
|
$page = (($_REQUEST['p']) ? intval($_REQUEST['p'] - 1) : 0);
|
||||||
$startrec = (($page+1) * $perpage) - $perpage;
|
$startrec = (($page+1) * $perpage) - $perpage;
|
||||||
$limit = (($_REQUEST['limit']) ? intval($_REQUEST['limit']) : 0);
|
$limit = (($_REQUEST['limit']) ? intval($_REQUEST['limit']) : 0);
|
||||||
|
@ -635,7 +635,7 @@ function photos_content(&$a) {
|
|||||||
);
|
);
|
||||||
if(count($r)) {
|
if(count($r)) {
|
||||||
$a->set_pager_total(count($r));
|
$a->set_pager_total(count($r));
|
||||||
$a->set_pager_itemspage(40);
|
$a->set_pager_itemspage(60);
|
||||||
}
|
}
|
||||||
|
|
||||||
if($_GET['order'] === 'posted')
|
if($_GET['order'] === 'posted')
|
||||||
@ -1156,7 +1156,7 @@ function photos_content(&$a) {
|
|||||||
);
|
);
|
||||||
if(count($r)) {
|
if(count($r)) {
|
||||||
$a->set_pager_total(count($r));
|
$a->set_pager_total(count($r));
|
||||||
$a->set_pager_itemspage(20);
|
$a->set_pager_itemspage(60);
|
||||||
}
|
}
|
||||||
|
|
||||||
$r = q("SELECT `resource_id`, `id`, `filename`, type, `album`, max(`scale`) AS `scale` FROM `photo`
|
$r = q("SELECT `resource_id`, `id`, `filename`, type, `album`, max(`scale`) AS `scale` FROM `photo`
|
||||||
|
@ -46,11 +46,16 @@ function webpages_content(&$a) {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
|
|
||||||
$mimetype = (($_REQUEST['mimetype']) ? $_REQUEST['mimetype'] : get_config('system','page_mimetype'));
|
if(feature_enabled($owner,'expert_mode')) {
|
||||||
|
$mimetype = (($_REQUEST['mimetype']) ? $_REQUEST['mimetype'] : get_pconfig($owner,'system','page_mimetype'));
|
||||||
if(! $mimetype)
|
if(! $mimetype)
|
||||||
$mimetype = 'choose';
|
$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)
|
if(! $layout)
|
||||||
$layout = 'choose';
|
$layout = 'choose';
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user