blocks.tag.php
来自「php 开发的内容管理系统」· PHP 代码 · 共 63 行
PHP
63 行
<?php
/**
* Tag blocks for article
*
* @copyright The XOOPS project http://www.xoops.org/
* @license http://www.fsf.org/copyleft/gpl.html GNU public license
* @author Taiwen Jiang (phppp or D.J.) <php_pp@hotmail.com>
* @since 1.00
* @version $Id$
* @package module::article/tag
*/
if (!defined('XOOPS_ROOT_PATH')) {
exit();
}
include dirname(dirname(__FILE__))."/include/vars.php";
mod_loadFunctions("parse", $GLOBALS["artdirname"]);
art_parse_function('
/**#@+
* Function to display tag cloud
*/
function [VAR_PREFIX]_tag_block_cloud_show($options)
{
if(!@include_once XOOPS_ROOT_PATH."/modules/tag/blocks/block.php"){
return null;
}
$block_content = tag_block_cloud_show($options, $GLOBALS["artdirname"]);
return $block_content;
}
function [VAR_PREFIX]_tag_block_cloud_edit($options)
{
if(!@include_once XOOPS_ROOT_PATH."/modules/tag/blocks/block.php"){
return null;
}
$form = tag_block_cloud_edit($options);
return $form;
}
/**#@+
* Function to display top tag list
*/
function [VAR_PREFIX]_tag_block_top_show($options)
{
if(!@include_once XOOPS_ROOT_PATH."/modules/tag/blocks/block.php"){
return null;
}
$block_content = tag_block_top_show($options, $GLOBALS["artdirname"]);
return $block_content;
}
function [VAR_PREFIX]_tag_block_top_edit($options) {
if(!@include_once XOOPS_ROOT_PATH."/modules/tag/blocks/block.php"){
return null;
}
$form = tag_block_top_edit($options);
return $form;
}
');
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?