码迷,mamicode.com
首页 > 其他好文 > 详细

Helpers\Tags

时间:2016-07-05 13:57:16      阅读:130      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!