zoukankan      html  css  js  c++  java
  • HelpersTags

    HelpersTags

    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

  • 相关阅读:
    kbmmw 5.14.00 发布
    关于C++ auto使用要注意的一点
    git设置socks5代理
    电子书分享网站
    spring cache相关
    intellij idea开启debug热加载/热部署
    git 多次commit合并成一次提交
    es feature一览
    数据中台
    Java Agent
  • 原文地址:https://www.cnblogs.com/chunguang/p/5643202.html
Copyright © 2011-2022 走看看