帝国CMS自动生成缩略图,无需修改代码!

2019-03-2616:25:36网站建设与开发Comments2,675 views字数 483阅读模式
Excerpt

帝国CMS怎么实现自动获取缩略图,选择 使用程序代码!

帝国CMS怎么实现自动获取缩略图,选择 使用程序代码文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/10393.html

if(empty($r[titlepic]))
{
        $r[titlepic]='/e/data/images/notimg.gif';
}else{
        $r[titlepic]=sys_ResizeImg($r[titlepic],220,150,1,'','e/data/tmp/titlepic/');
}
$listtemp='
<div class="layui-col-xs6 layui-col-md3">
    <div class="media border media-y">
        <a href="[!--titleurl--]" target="_blank">
            <img src="[!--titlepic--]" class="img-responsive">
        </a>
        <div class="media-body text-left padding-small">
            <div class="text-more"><a href="[!--titleurl--]">[!--title--]</a></div>
        </div>
    </div>
</div>
';
文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/10393.html
  • 本站内容整理自互联网,仅提供信息存储空间服务,以方便学习之用。如对文章、图片、字体等版权有疑问,请在下方留言,管理员看到后,将第一时间进行处理。
  • 转载请务必保留本文链接:https://www.cainiaoxueyuan.com/cms/10393.html

Comment

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定