Wordless
Stop writing themes like it's 1998.
Public Member Functions | Protected Member Functions | List of all members
AssetTagHelper Class Reference

Provides methods for generating HTML that links views to assets such as images, javascripts, stylesheets, and feeds. More...

Public Member Functions

 asset_version ($source)
 Appends version information to asset source. More...
 
 audio_tag ($source, $attributes=array())
 Builds a valid <audio /> HTML tag. More...
 
 auto_discovery_link_tag ($model_or_url="posts", $type="rss", $additional_options=NULL)
 Builds a valid <link /> HTML tag to a feed (rss or atom). More...
 
 favicon_link_tag ($source="favicon.ico", $attributes=NULL)
 Builds a valid <link /> HTML tag to a favicon. More...
 
 get_feed_url ($model, $type="rss")
 Returns a WP valid feed, depending on the type or feed requested and of the content for which the feed is created. More...
 
 image_tag ($source, $attributes=NULL)
 Builds a valid <img /> HTML tag. More...
 
 video_tag ($sources, $attributes=NULL)
 Builds a valid <video /> HTML tag. More...
 
 stylesheet_link_tag ()
 Returns a stylesheet link tag for the sources specified as arguments. More...
 
 javascript_include_tag ()
 Returns an HTML script tag for each of the sources provided as arguments. More...
 

Protected Member Functions

 get_asset_version_string ()
 Return the theme version, based on prederence set in Wordless config file. More...
 

Detailed Description

Provides methods for generating HTML that links views to assets such as images, javascripts, stylesheets, and feeds.

These methods do not verify the assets exist before linking to them.