首页 > 其他 > 详细

Helpers\Tags

时间:2016-07-05 13:56:34      阅读:160      评论:0      收藏:0      [点我收藏+]

Helpers\Tags

The tags helper is a collection of useful methods:

Tags::clean($data)

Clean function to convert data into an array.

Tags::get($string)

This method converts the $string depending on the condition:

Tags::get(‘[year]‘)

Returns the year

Tags::get(‘[sitetitle]‘)

Returns the site title constant (SITETITLE)

Tags::get(‘[siteemail]‘)

Returns the site email constant (SITEEMAIL)

echo Tags::get(‘[feedburner username]‘);

Generates a Feedburner subscriber form

echo Tags::get(‘[googleplusbox username]‘);

Generates a Google+ box

echo Tags::get(‘[twitterfollowbutton username]‘);

Generates a Twitter follow button for the given username

echo Tags::get(‘[twittersharebutton username]‘);

Generates a Twitter share button for the given username

echo Tags::get(‘[youtube id]‘);

Generates an embed iframe for youtube, pass the video id only

echo Tags::get(‘[youtubesub username]‘);

Generates a youtube subscribe widget

echo Tags::get(‘[vimeo id]‘);

Generates an embed iframe for vimeo, pass the video id only

Helpers\Tags

原文:http://www.cnblogs.com/chunguang/p/5643202.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!