Skip to content

Latest commit

 

History

History

RandomThumbnail

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Typecho随机图片挂件

Apache2 HitCount

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

支持自定义模板。

安装方法

  1. git clone或zip下载,将 Typecho-RandomThumbnail 中RandomThumbnail文件夹放入网站目录/usr/plugins文件夹内,文件夹权限0755,插件文件0644。
  2. 打开Typecho后台激活插件
  3. 添加图片链接
  4. 在挂件位置插入
<?php echo RandomThumbnail_Plugin::getThumbnail($seed); ?>

参数说明

调用函数参数

参数 参数名 参数类型 备注
$seed 随机数 int 可选

设置模板参数

参数 参数名 参数类型 备注
img_url 图片地址 String -

Demo

preview

Demo

鸣谢

Typecho

开源协议

Apache2.0