芝麻web文件管理V1.00
编辑当前文件:/home/p/r/i/prismawe/clients/canaldegap.fr_old/plugins/function.metadata.php
GetConfig(); $pageinfo =& $gCms->variables['pageinfo']; $result = ''; $showbase = true; #Show a base tag unless showbase is false in config.php #It really can't hinder, only help. if( isset($config['showbase'])) $showbase = $config['showbase']; # but allow a parameter to override it. if (isset($params['showbase'])) { if ($params['showbase'] == 'false') { $showbase = false; } } if ($showbase) { $result .= "\n
\n"; } $result .= get_site_preference('metadata', ''); if (isset($pageinfo) && $pageinfo !== FALSE) { if (isset($pageinfo->content_metadata) && $pageinfo->content_metadata != '') { $result .= "\n" . $pageinfo->content_metadata; } } if ((!strpos($result,$smarty->left_delimiter) === false) and (!strpos($result,$smarty->right_delimiter) === false)) { $smarty->_compile_source('metadata template', $result, $_compiled); @ob_start(); $smarty->_eval('?>' . $_compiled); $result = @ob_get_contents(); @ob_end_clean(); } return $result; } function smarty_cms_help_function_metadata() { echo lang('help_function_metadata'); } function smarty_cms_about_function_metadata() { ?>
Author: Ted Kulp<ted@cmsmadesimple.org>
Version: 1.0
Change History:
None