Lines Matching refs:pagename
40 $pagename = substr($match, 10, -2); // Remove the markup to reveal the pagename.
41 $pagename = hsc($pagename); // Clean up html entities.
42 …$pagename = preg_replace('/\s\s+/', ' ', $pagename); // Eliminate excessive spaces to single space…
46 if (substr($pagename, 0, 1) == ' ') $left = true;
47 if (substr($pagename, -1, 1) == ' ') $right = true;
59 if ($spos = strpos($pagename, '?')) {
60 … $width = intval(substr($pagename, $spos+1)); // The user specified a width in the markup.
61 …$pagename = substr($pagename, 0, -(strlen($pagename)-$spos)); // Strip the width declaration off o…
67 $title = trim($pagename); // Save the original for a possible $title.
68 $pagename = trim($pagename);
69 $pagename = strtolower($pagename);
70 $pagename = strtr($pagename, ' ', '');
74 if (page_exists($pagename)) $pageexists = true;
78 $title = p_get_metadata($pagename, 'title', METADATA_DONT_RENDER);
84 $link = wl($pagename);
87 $image = (p_get_metadata($pagename, 'relation firstimage', METADATA_DONT_RENDER));