Skip to content

Latest commit

 

History

History
 
 

RandomThumbnail

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Typecho随机图片挂件

Apache2 HitCount

根据后台设置链接随机生成图片。

安装方法

  1. git clone或zip下载,将 Typecho-RandomThumbnail 文件夹放入网站目录/usr/plugins文件夹内,文件夹权限0755,插件文件0644。
  2. 打开Typecho后台激活插件
  3. 添加图片链接
  4. 在挂件位置插入
<?php echo RandomThumbnail_Plugin::getThumbnail($seed, $height, $width, $class, $style) ?>
参数 参数名 参数类型 备注
$seed 随机数 int 可选
$height 图片高度 int 可选
$width 图片宽度 int 可选
$class 自定义class string 可选
$style 自定义样式 string 可选

Demo

preview

Demo

鸣谢

Typecho

开源协议

基于Apache2.0