MetInfo showimg图片内容
来自站长百科
导航:返回上一页
典型showimg图片内容文件代码及相关说明如下所示:
<!--<?php
require_once template('head');
$met_img=methtml_showimg('all'); //调用图片参数显示函数
$methits=methtml_hits('img'); //点击次数显示函数
echo <<<EOT
-->
<div class="web">
<div class="webleft">
<div class="nav_x"> <a href='$index_url'>{$lang_home}</a> > $nav_x[name]</div>
<div class="content"> <h1>$img[title]</h1> //图片标题
<div class='img_content' >{$met_img}</div> //图片参数及所有图片播放
</div>
<div class="content">
<div class="content">$img[content]</div> //图片详细描述
<div class="hits" >$methits</div> //点击次数显示
</div>
</div>
<!--
EOT;
require_once template('rightlist');
echo <<<EOT
-->
</div>
<!--
EOT;
require_once template('foot');
?>
制作要点
- 图片标题建议使用H1控制,以便SEO优化;
- 点击次数及上一条下一条建议直接使用系统自带标签,以便正确显示;
- 图片参数及图片请使用标签函数,以便后台界面风格中图片内容页设置功能正常使用;