本文整理汇总了PHP中maketplblockvalue函数的典型用法代码示例。如果您正苦于以下问题:PHP maketplblockvalue函数的具体用法?PHP maketplblockvalue怎么用?PHP maketplblockvalue使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了maketplblockvalue函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: atturl
function atturl($imageurl)
{
global $_SC;
return '<img src="' . $_SC['uchurl'] . '/' . $imageurl . '">';
}
$title = $blogdetail['subject'] . ' - ' . $_SCONFIG['sitename'];
$keywords = $blogdetail['subject'] . ',' . $lang['uchblog'];
$description = $blogdetail['subject'] . ',' . $lang['uchblog'];
$guidearr = array();
$guidearr[] = array('url' => geturl('action/uchblog'), 'name' => $channels['menus']['uchblog']['name']);
$guidearr[] = array('url' => geturl('action/bloglist'), 'name' => $lang['bloglist']);
$tplname = 'blog_detail';
$title = strip_tags($title);
$keywords = strip_tags($keywords);
$description = strip_tags($description);
include template($tplname);
ob_out();
if (!empty($_SCONFIG['htmlindex'])) {
ehtml('make');
} else {
maketplblockvalue('cache');
}
function addurlhttp($m)
{
global $_SC;
if (preg_grep("/^http\\:/", array($m[2]))) {
return 'src="' . $m[2] . '.' . $m[3] . '"';
} else {
return 'src="' . $_SC['uchurl'] . '/' . $m[2] . '.' . $m[3] . '"';
}
}
示例2: array
}
//取出tag数最多的一项
$tabarr = array('news' => $tag['spacenewsnum']);
arsort($tabarr);
$activation = true;
foreach ($tabarr as $key => $val) {
if ($activation) {
$tabarr[$key] = array('curtab', '');
$activation = false;
} else {
$tabarr[$key] = array('', ' style="display: none;"');
}
}
if (!empty($tag['uid'])) {
$tag['spaceurl'] = geturl('uid/' . $tag['uid'] . '/action/space');
} else {
$tag['spaceurl'] = '#';
}
$title = 'TAG: ' . $tag['tagname'];
$keywords = $tag['tagname'];
$description = $tag['tagname'];
$guidearr = array();
$guidearr[] = array('url' => geturl('action/tag/tagid/' . $tagid), 'name' => 'TAG: ' . $tag['tagname']);
$tplname = 'site_tag';
$title = strip_tags($title);
$keywords = strip_tags($keywords);
$description = strip_tags($description);
include template($tplname);
ob_out();
maketplblockvalue('tagcache');