本文整理汇总了PHP中make_pagelink函数的典型用法代码示例。如果您正苦于以下问题:PHP make_pagelink函数的具体用法?PHP make_pagelink怎么用?PHP make_pagelink使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了make_pagelink函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: plugin_referer_action
function plugin_referer_action()
{
global $vars, $referer;
global $_referer_msg;
// Setting: Off
if (!$referer) {
return array('msg' => '', 'body' => '');
}
if (isset($vars['page']) && $vars['page'] != '' && is_page($vars['page'])) {
$sort = empty($vars['sort']) ? '0d' : $vars['sort'];
return array('msg' => $_referer_msg['msg_H0_Refer'], 'body' => plugin_referer_body($vars['page'], $sort));
}
$pages = auth::get_existpages(TRACKBACK_DIR, '.ref');
if (empty($pages)) {
return array('msg' => '', 'body' => '');
} else {
$body = '';
$sort = empty($vars['sort']) ? '0d' : $vars['sort'];
foreach ($pages as $page) {
$body .= '<h2>' . make_pagelink($page) . '</h2>';
$body .= plugin_referer_body($page, $sort);
}
return array('msg' => 'referer list', 'body' => $body);
}
}
示例2: plugin_basename_body
function plugin_basename_body()
{
global $vars;
global $defaultpage;
$options['page'] = isset($vars['page']) ? $vars['page'] : $defaultpage;
foreach (func_get_args() as $arg) {
list($key, $val) = array_pad(explode('=', $arg, 2), 2, TRUE);
$options[$key] = $val;
}
if ($options['page'] == '') {
return '';
}
$basename = htmlspecialchars(basename($options['page']));
if ($options['nolink'] || !is_page($options['page'])) {
$body = $basename;
} else {
global $link_compact;
$tmp = $link_compact;
$link_compact = 1;
$link = make_pagelink($options['page'], $basename);
$link_compact = $tmp;
return $link;
}
return $body;
}
示例3: make_pagelink_nopg
/**
* Make a hyperlink to the page without passage
*
* @param string $page pagename
* @param string $alias string to be displayed on the link
* @param string $anchor anchor
* @param string $refer reference pagename. query '&refer=' is added.
* @param bool $isautolink flag if this link is created via autolink or not
* @return string link html
* @uses lib/make_link.php#make_pagelink
*/
function make_pagelink_nopg($page, $alias = '', $anchor = '', $refer = '', $isautolink = FALSE)
{
// no passage
global $show_passage;
$tmp = $show_passage;
$show_passage = 0;
$link = make_pagelink($page, $alias, $anchor, $refer, $isautolink);
$show_passage = $tmp;
return $link;
}
示例4: plugin_read_action
function plugin_read_action()
{
global $vars, $_title_invalidwn, $_msg_invalidiwn;
$page = isset($vars['page']) ? $vars['page'] : '';
if (is_page($page)) {
// ページを表示
check_readable($page, true, true);
header_lastmod($page);
return array('msg' => '', 'body' => '');
// } else if (! PKWK_SAFE_MODE && is_interwiki($page)) {
} else {
if (!auth::check_role('safemode') && is_interwiki($page)) {
return do_plugin_action('interwiki');
// InterWikiNameを処理
} else {
if (is_pagename($page)) {
$realpages = get_autoaliases($page);
if (count($realpages) == 1) {
$realpage = $realpages[0];
if (is_page($realpage)) {
header('HTTP/1.0 301 Moved Permanently');
header('Location: ' . get_script_uri() . '?' . rawurlencode($realpage));
return;
} else {
// 存在しない場合、直接編集フォームに飛ばす // To avoid infinite loop
header('Location: ' . get_script_uri() . '?cmd=edit&page=' . rawurlencode($realpage));
return;
}
} elseif (count($realpages) >= 2) {
$body = '<p>';
$body .= _('This pagename is an alias to') . '<br />';
foreach ($realpages as $realpage) {
$body .= make_pagelink($realpage) . '<br />';
}
$body .= '</p>';
return array('msg' => _('Redirect'), 'body' => $body);
}
$vars['cmd'] = 'edit';
return do_plugin_action('edit');
// 存在しないので、編集フォームを表示
} else {
// 無効なページ名
return array('msg' => $_title_invalidwn, 'body' => str_replace('$1', htmlspecialchars($page), str_replace('$2', 'WikiName', $_msg_invalidiwn)));
}
}
}
}
示例5: plugin_topicpath_inline
function plugin_topicpath_inline()
{
global $vars, $defaultpage, $topicpath;
if (isset($topicpath) && $topicpath == false) {
return '';
}
$page = isset($vars['page']) ? $vars['page'] : '';
if ($page == '' || $page == $defaultpage) {
return '';
}
$parts = explode('/', $page);
$b_link = TRUE;
if (PLUGIN_TOPICPATH_THIS_PAGE_DISPLAY) {
$b_link = PLUGIN_TOPICPATH_THIS_PAGE_LINK;
} else {
array_pop($parts);
// Remove the page itself
}
$topic_path = array();
while (!empty($parts)) {
$_landing = join('/', $parts);
$element = htmlsc(array_pop($parts));
if (!$b_link) {
// This page ($_landing == $page)
$b_link = TRUE;
$topic_path[] = $element;
// } else if (PKWK_READONLY && ! is_page($_landing)) {
} else {
if (Auth::check_role('readonly') && !is_page($_landing)) {
// Page not exists
$topic_path[] = $element;
} else {
// Page exists or not exists
$topic_path[] = '<a href="' . get_page_uri($_landing) . '">' . $element . '</a>';
}
}
}
if (PLUGIN_TOPICPATH_TOP_DISPLAY) {
$topic_path[] = make_pagelink($defaultpage, PLUGIN_TOPICPATH_TOP_LABEL);
}
return '<ul><li>' . join('</li><li>', array_reverse($topic_path)) . '</li></ul>';
}
示例6: plugin_grepall_grep
function plugin_grepall_grep()
{
global $vars, $defaultpage;
$page = isset($vars['page']) ? $vars['page'] : $defultpage;
$filter = isset($vars['filter']) ? $vars['filter'] : '';
$grep = isset($vars['grep']) ? $vars['grep'] : '';
// page lists
if ($page !== '') {
if (!is_page($page)) {
$body = '<p>' . htmlspecialchars($page) . ' does not exist.</p>';
return $body;
}
$pages = (array) $page;
} else {
$pages = get_existpages();
if ($filter !== '') {
$pages = preg_grep('/' . preg_quote($filter, '/') . '/', $pages);
}
}
// grep
$body = '';
foreach ($pages as $page) {
if (!check_readable($page)) {
$body = '<p>' . htmlspecialchars($page) . ' is not readable.</p>';
return $body;
}
$lines = get_source($page);
$lines = preg_grep('/' . preg_quote($grep, '/') . '/', $lines);
if (empty($lines)) {
continue;
}
$contents = '';
foreach ($lines as $i => $line) {
$contents .= sprintf('%04d:', $i) . htmlspecialchars($line);
}
$body .= make_pagelink($page) . '<br />' . "\n";
$body .= '<pre>' . htmlspecialchars($contents) . '</pre>';
}
return $body;
}
示例7: plugin_topicpath_inline
function plugin_topicpath_inline()
{
global $script, $vars, $defaultpage;
$page = isset($vars['page']) ? $vars['page'] : '';
if ($page == '' || $page == $defaultpage) {
return '';
}
$parts = explode('/', $page);
$b_link = TRUE;
if (PLUGIN_TOPICPATH_THIS_PAGE_DISPLAY) {
$b_link = PLUGIN_TOPICPATH_THIS_PAGE_LINK;
} else {
array_pop($parts);
// Remove the page itself
}
$topic_path = array();
while (!empty($parts)) {
$_landing = join('/', $parts);
$landing = rawurlencode($_landing);
$element = htmlsc(array_pop($parts));
if (!$b_link) {
// This page ($_landing == $page)
$b_link = TRUE;
$topic_path[] = $element;
} else {
if (PKWK_READONLY && !is_page($_landing)) {
// Page not exists
$topic_path[] = $element;
} else {
// Page exists or not exists
$topic_path[] = '<a href="' . $script . '?' . $landing . '">' . $element . '</a>';
}
}
}
if (PLUGIN_TOPICPATH_TOP_DISPLAY) {
$topic_path[] = make_pagelink($defaultpage, PLUGIN_TOPICPATH_TOP_LABEL);
}
return join(PLUGIN_TOPICPATH_TOP_SEPARATOR, array_reverse($topic_path));
}
示例8: plugin_diff_delete
function plugin_diff_delete($page)
{
global $script, $vars;
global $_title_diff_delete, $_msg_diff_deleted;
global $_msg_diff_adminpass, $_btn_delete, $_msg_invalidpass;
$filename = DIFF_DIR . encode($page) . '.txt';
$body = '';
if (!is_pagename($page)) {
$body = 'Invalid page name';
}
if (!file_exists($filename)) {
$body = make_pagelink($page) . '\'s diff seems not found';
}
if ($body) {
return array('msg' => $_title_diff_delete, 'body' => $body);
}
if (isset($vars['pass'])) {
if (pkwk_login($vars['pass'])) {
unlink($filename);
return array('msg' => $_title_diff_delete, 'body' => str_replace('$1', make_pagelink($page), $_msg_diff_deleted));
} else {
$body .= '<p><strong>' . $_msg_invalidpass . '</strong></p>' . "\n";
}
}
$s_page = htmlsc($page);
$body .= <<<EOD
<p>{$_msg_diff_adminpass}</p>
<form action="{$script}" method="post">
<div>
<input type="hidden" name="cmd" value="diff" />
<input type="hidden" name="page" value="{$s_page}" />
<input type="hidden" name="action" value="delete" />
<input type="password" name="pass" size="12" />
<input type="submit" name="ok" value="{$_btn_delete}" />
</div>
</form>
EOD;
return array('msg' => $_title_diff_delete, 'body' => $body);
}
示例9: clean_cache
/**
* Clean Table of Contents Cache Files
*/
function clean_cache()
{
set_time_limit(0);
global $vars;
$page = isset($vars['page']) ? $vars['page'] : '';
if ($page != '') {
$toc = new PluginSonotsToc();
$file = $toc->syntax['cachefile']($page);
@unlink($file);
if (exec_page($page, '/^#contentsx/')) {
$body = 'Recreated a cache of ';
} else {
$body = 'No #contentsx in ';
}
$body .= make_pagelink($page);
} else {
$toc = new PluginSonotsToc();
$file = $toc->syntax['cachefile']('hoge');
$suffix = substr($file, strrpos($file, '.'));
// remove all files
$files = sonots::get_existfiles(CACHE_DIR, $suffix);
foreach ($files as $file) {
unlink($file);
}
// execute all pages
$exec_pages = sonots::exec_existpages('', '/^#contentsx/');
$links = array_map('make_pagelink', $exec_pages);
$body = '<p>Following pages were executed to assure:</p>' . '<p>' . implode("<br />\n", $links) . '</p>';
}
return $body;
}
示例10: plugin_tracker_getlist
function plugin_tracker_getlist($page, $refer, $config_name, $list, $order = '', $limit = NULL)
{
$config = new Config('plugin/tracker/' . $config_name);
if (!$config->read()) {
return "<p>config file '" . htmlsc($config_name) . "' is not exist.";
}
$config->config_name = $config_name;
if (!is_page($config->page . '/' . $list)) {
return "<p>config file '" . make_pagelink($config->page . '/' . $list) . "' not found.</p>";
}
$list =& new Tracker_list($page, $refer, $config, $list);
$list->sort($order);
return $list->toString($limit);
}
示例11: plugin_table_edit2_action
//.........这里部分代码省略.........
}
if (isset($vars['line_count']) && $vars['line_count'] === $line_count || strtolower($match_line[2]) === 'h' || $edit_mod == 'tdshow' || $td_edit || $row_title) {
// $match_t = explode("|", $match_line[1]);
if ($edit_mod == 'tdshow') {
//tdshow - td_title - 06.11.11
$show->td_title[$line_count] = $match_t[$td_title_count];
}
}
if ($edit_mod == 'show') {
//show header
if ($match_line[2] == 'h' && !$row_title) {
$show->table_header($match_t);
}
if ($line_count == $row_title) {
$show->table_header($match_t);
}
}
if ($vars['line_count'] == $line_count || $table_sub_num == $vars['table_sub_num']) {
// textarea 06.11.12
if ($edit_show) {
if ($show->t_type == 'textarea') {
$show->text_type_textarea(count($match_t));
}
}
}
if ($td_edit && $table_sub_num_chk == 0 && $table_sub_num == $vars['table_sub_num']) {
$source_s .= $edit->td_edit($match_t) . $match_line[2] . "\n";
$table_sub_num_count_chk = 1;
} else {
if (isset($vars['line_count']) && $vars['line_count'] == $line_count && !$td_edit) {
if ($tr_edit) {
//t_edit tr_add
if (isset($vars['add_show']) && $vars['add_show'] === 1) {
$source_s .= $args_line;
if ($edit->chose !== 2) {
$edit->chk_csv_source($args, $args_key);
}
}
$source_s .= $edit->tr_edit($args_line, $match_t, $match_line[2]);
} else {
if ($edit_show) {
//show or tdshow
$show->line_count = $line_count;
$body = $show->show_mod($match_t);
}
}
} else {
if ($edit_mod == 'tdshow') {
//tdshow and edit_td
$show->cells[$line_count] = $match_t;
}
$table_sub_num_count_chk = 1;
//td06.09.18
$source_s .= $args_line;
}
}
$line_count++;
} else {
if ($table_sub_num_count_chk == 1 && substr($args_line, 0, 2) != '//') {
//td
$table_sub_num++;
$table_sub_num_count_chk = 0;
}
$source_s .= $args_line;
}
} else {
$source_s .= $args_line . "\n";
}
}
if ($export) {
return $csv->csv_export($vars, $csv_export_data);
}
$collision = 0;
if ($tr_edit || $td_edit) {
if (Factory::Wiki($vars['refer'])->digest() !== $vars['digest']) {
global $_string, $_title;
$title = $_title['collided'];
$body = $_string['msg_collided_auto'] . make_pagelink($vars['refer']);
$collision = 1;
}
}
if ($tr_edit || $td_edit || isset($vars['table_mod']) || $setting || $import || $csv_cancel || isset($set_csv)) {
$source = explode("\n", $source_s);
array_pop($source);
// 末尾に余計な改行が入るので削除
// var_dump($source);
// die;
$wiki->set(explode("\n", $source_s), $notimestamp);
}
$get['page'] = $post['page'] = $vars['page'] = $page;
if ($collision) {
return array('msg' => $title, 'body' => $body);
}
if ($edit_show) {
return array('msg' => $show->title, 'body' => $body);
}
//header('Location: ' . $script_uri . '?' . rawurlencode($page) . $anchr_jump);
Utility::redirect($wiki->uri() . $anchr_jump);
exit;
}
示例12: plugin_commentx_write
function plugin_commentx_write()
{
global $script, $vars, $now;
global $_no_name;
// global $_msg_comment_collided, $_title_comment_collided, $_title_updated;
$_title_updated = _("\$1 was updated");
$_title_comment_collided = _("On updating \$1, a collision has occurred.");
$_msg_comment_collided = _("It seems that someone has already updated the page you were editing.<br />") . _("The comment was added, alhough it may be inserted in the wrong position.<br />");
if (!isset($vars['msg'])) {
return array('msg' => '', 'body' => '');
}
// Do nothing
if (preg_match(PLUGIN_COMMENTX_NGWORD, $vars['msg'])) {
return array('msg' => '', 'body' => '');
}
// Validate
if (is_spampost(array('msg'))) {
return plugin_commentx_honeypot();
}
$vars['msg'] = preg_replace('/\\s+$/', "", $vars['msg']);
// Cut last LF
if (PLUGIN_COMMENTX_LINE_BREAK) {
// Convert linebreaks into pukiwiki's linebreaks &br;
$vars['msg'] = str_replace("\n", "&br;\n", $vars['msg']);
} else {
// Replace empty lines into #br
$vars['msg'] = preg_replace('/^\\s*\\n/m', "#br\n", $vars['msg']);
}
$head = '';
$match = array();
if (preg_match('/^(-{1,2})-*\\s*(.*)/', $vars['msg'], $match)) {
$head =& $match[1];
$vars['msg'] =& $match[2];
}
if ($vars['msg'] == '') {
return array('msg' => '', 'body' => '');
}
// Do nothing
$comment = str_replace('$msg', $vars['msg'], PLUGIN_COMMENTX_FORMAT_MSG);
list($nick, $vars['name'], $disabled) = plugin_commentx_get_nick();
if (isset($vars['name']) || $vars['nodate'] != '1') {
$_name = !isset($vars['name']) || $vars['name'] == '' ? $_no_name : $vars['name'];
$_name = $_name == '' ? '' : str_replace('$name', $_name, PLUGIN_COMMENTX_FORMAT_NAME);
$_now = $vars['nodate'] == '1' ? '' : str_replace('$now', $now, PLUGIN_COMMENTX_FORMAT_NOW);
$comment = str_replace("MSG", $comment, PLUGIN_COMMENTX_FORMAT_STRING);
$comment = str_replace("NAME", $_name, $comment);
$comment = str_replace("NOW", $_now, $comment);
}
$comment = '-' . $head . ' ' . $comment;
$postdata = '';
$comment_no = 0;
$above = isset($vars['above']) && $vars['above'] == '1';
foreach (get_source($vars['refer']) as $line) {
if (!$above) {
$postdata .= $line;
}
if (preg_match('/^#commentx/i', $line) && $comment_no++ == $vars['comment_no']) {
if ($above) {
$postdata = rtrim($postdata) . "\n" . $comment . "\n" . "\n";
// Insert one blank line above #commment, to avoid indentation
} else {
$postdata = rtrim($postdata) . "\n" . $comment . "\n";
// Insert one blank line below #commment
}
}
if ($above) {
$postdata .= $line;
}
}
$title = $_title_updated;
$body = '';
if (md5(@join('', get_source($vars['refer']))) != $vars['digest']) {
$title = $_title_comment_collided;
$body = $_msg_comment_collided . make_pagelink($vars['refer']);
}
page_write($vars['refer'], $postdata);
$retvars['msg'] = $title;
$retvars['body'] = $body;
if ($vars['refpage']) {
header("Location: {$script}?" . rawurlencode($vars['refpage']));
exit;
}
$vars['page'] = $vars['refer'];
return $retvars;
}
示例13: toString
function toString($flat)
{
global $_title_cannotread;
if (!$this->func->check_readable($this->page, FALSE, FALSE)) {
return str_replace('$1', make_pagelink($this->page), $_title_cannotread);
} else {
if ($flat) {
return $this->to_flat();
}
}
$ret = '';
$files = array_keys($this->files);
sort($files);
foreach ($files as $file) {
$_files = array();
foreach (array_keys($this->files[$file]) as $age) {
$_files[$age] = $this->files[$file][$age]->toString(FALSE, TRUE);
}
if (!isset($_files[0])) {
$_files[0] = htmlspecialchars($file);
}
ksort($_files);
$_file = $_files[0];
unset($_files[0]);
$ret .= " <li>{$_file}\n";
if (count($_files)) {
$ret .= "<ul>\n<li>" . join("</li>\n<li>", $_files) . "</li>\n</ul>\n";
}
$ret .= " </li>\n";
}
return $this->func->make_pagelink($this->page) . "\n<ul>\n{$ret}</ul>\n";
}
示例14: plugin_calendar2_convert
//.........这里部分代码省略.........
$now_day = get_date('d');
$other_month = 0;
}
$today = getdate(mktime(0, 0, 0, $mon, $now_day, $yr) - LOCALZONE + ZONETIME);
$m_num = $today['mon'];
$d_num = $today['mday'];
$year = $today['year'];
$f_today = getdate(mktime(0, 0, 0, $m_num, 1, $year) - LOCALZONE + ZONETIME);
$wday = $f_today['wday'];
$day = 1;
$m_name = $year . '.' . $m_num;
$y = substr($date_str, 0, 4) + 0;
$m = substr($date_str, 4, 2) + 0;
$prev_date_str = $m == 1 ? sprintf('%04d%02d', $y - 1, 12) : sprintf('%04d%02d', $y, $m - 1);
$next_date_str = $m == 12 ? sprintf('%04d%02d', $y + 1, 1) : sprintf('%04d%02d', $y, $m + 1);
$ret = '';
if ($today_view) {
$ret = '<table border="0" summary="calendar frame">' . "\n" . ' <tr>' . "\n" . ' <td valign="top">' . "\n";
}
$ret .= <<<EOD
<table class="style_calendar" cellspacing="1" width="150" border="0" summary="calendar body">
<tr>
<td class="style_td_caltop" colspan="7">
<a href="{$script}?plugin=calendar2&file={$r_base}&date={$prev_date_str}"><<</a>
<strong>{$m_name}</strong>
<a href="{$script}?plugin=calendar2&file={$r_base}&date={$next_date_str}">>></a>
EOD;
if ($prefix) {
$ret .= "\n" . ' <br />[<a href="' . $script . '?' . $r_base . '">' . $s_base . '</a>]';
}
$ret .= "\n" . ' </td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n";
foreach ($weeklabels as $label) {
$ret .= ' <td class="style_td_week">' . $label . '</td>' . "\n";
}
$ret .= ' </tr>' . "\n" . ' <tr>' . "\n";
// Blank
for ($i = 0; $i < $wday; $i++) {
$ret .= ' <td class="style_td_blank"> </td>' . "\n";
}
while (checkdate($m_num, $day, $year)) {
$dt = sprintf('%4d-%02d-%02d', $year, $m_num, $day);
$page = $prefix . $dt;
$r_page = rawurlencode($page);
$s_page = htmlsc($page);
if ($wday == 0 && $day > 1) {
$ret .= ' </tr>' . "\n" . ' <tr>' . "\n";
}
$style = 'style_td_day';
// Weekday
if (!$other_month && $day == $today['mday'] && $m_num == $today['mon'] && $year == $today['year']) {
// Today
$style = 'style_td_today';
} else {
if ($wday == 0) {
// Sunday
$style = 'style_td_sun';
} else {
if ($wday == 6) {
// Saturday
$style = 'style_td_sat';
}
}
}
if (is_page($page)) {
$link = '<a href="' . $script . '?' . $r_page . '" title="' . $s_page . '"><strong>' . $day . '</strong></a>';
} else {
if (PKWK_READONLY) {
$link = '<span class="small">' . $day . '</small>';
} else {
$link = $script . '?cmd=edit&page=' . $r_page . '&refer=' . $r_base;
$link = '<a class="small" href="' . $link . '" title="' . $s_page . '">' . $day . '</a>';
}
}
$ret .= ' <td class="' . $style . '">' . "\n" . ' ' . $link . "\n" . ' </td>' . "\n";
++$day;
$wday = ++$wday % 7;
}
if ($wday > 0) {
while ($wday++ < 7) {
// Blank
$ret .= ' <td class="style_td_blank"> </td>' . "\n";
}
}
$ret .= ' </tr>' . "\n" . ' </table>' . "\n";
if ($today_view) {
$tpage = $prefix . sprintf('%4d-%02d-%02d', $today['year'], $today['mon'], $today['mday']);
$r_tpage = rawurlencode($tpage);
if (is_page($tpage)) {
$_page = $vars['page'];
$get['page'] = $post['page'] = $vars['page'] = $tpage;
$str = convert_html(get_source($tpage));
$str .= '<hr /><a class="small" href="' . $script . '?cmd=edit&page=' . $r_tpage . '">' . $_calendar2_plugin_edit . '</a>';
$get['page'] = $post['page'] = $vars['page'] = $_page;
} else {
$str = sprintf($_calendar2_plugin_empty, make_pagelink(sprintf('%s%4d-%02d-%02d', $prefix, $today['year'], $today['mon'], $today['mday'])));
}
$ret .= ' </td>' . "\n" . ' <td valign="top">' . $str . '</td>' . "\n" . ' </tr>' . "\n" . '</table>' . "\n";
}
return $ret;
}
示例15: get_title
function get_title($inclpage, $titlestr, $option = true)
{
global $fixed_heading_edited;
$anchorlink = ' ' . PluginIncludex::get_page_anchorlink($inclpage);
$editlink = $fixed_heading_edited ? ' ' . PluginIncludex::get_page_editlink($inclpage) : '';
if ($titlestr == '') {
//return $ret = '<div class="' .$this->plugin . '">' . $anchorlink . '</div>';
return '';
}
switch ($option) {
case false:
$ret = '<h1 class="includex">' . $titlestr . $editlink . $anchorlink . '</h1>';
break;
case true:
default:
$link = make_pagelink($inclpage, $titlestr);
$ret = '<h1 class="includex">' . $link . $editlink . $anchorlink . '</h1>';
break;
}
return $ret;
}