Lines Matching defs:more
44 * filled up with the $default value. If the input string contains more elements, the last
322 //export minimal info to JS, plugins can add more
596 * The $more parameter should always be given as array, the function then
600 * @param mixed $more string or array with additional parameters
606 function ml($id = '', $more = '', $direct = true, $sep = '&', $abs = false)
614 if (is_array($more)) {
616 $w = $more['w'] ?? null;
617 $h = $more['h'] ?? null;
619 $more['tok'] = media_get_token($id, $w, $h);
622 if (isset($more['cache']) && $more['cache'] == 'cache') unset($more['cache']);
623 if (empty($more['w'])) unset($more['w']);
624 if (empty($more['h'])) unset($more['h']);
625 if (isset($more['id']) && $direct) unset($more['id']);
626 if (isset($more['rev']) && !$more['rev']) unset($more['rev']);
627 $more = buildURLparams($more, $sep);
630 if (preg_match_all('/\b(w|h)=(\d*)\b/', $more, $matches, PREG_SET_ORDER) || $isexternalimage) {
635 $more .= $more === '' ? '' : $sep;
636 $more .= 'tok=' . media_get_token($id, $resize['w'], $resize['h']);
638 $more = str_replace('cache=cache', '', $more); //skip default
639 $more = str_replace(',,', ',', $more);
640 $more = str_replace(',', $sep, $more);
652 $xlink .= '?' . $more;
675 if ($more) $xlink .= '?' . $more;
676 } elseif ($more) {
677 $xlink .= $script . '?' . $more;
887 * Convert one or more comma separated IPs to hostnames
1678 'more' => '',
2013 * Inlining SVGs saves on HTTP requests and more importantly allows for styling them through