Wordless
Stop writing themes like it's 1998.
|
Public Member Functions | |
content_tag ($name, $content, $options=NULL, $escape=false) | |
Generates an arbitrary HTML tag. More... | |
option_tag ($text, $name, $value, $selected=NULL) | |
Generates an <option> HTML tag. More... | |
link_to ($text='', $link=NULL, $attributes=NULL) | |
Generates an anchor. More... | |
content_type_meta_tag ($content=NULL) | |
Generates a <meta> tag for content type. More... | |
title_tag ($title=NULL, $attributes=array()) | |
Generates the <title> html tag. More... | |
pingback_link_tag ($url=NULL) | |
Generates a <link> tag for the pingback url. More... | |
TagHelper::content_tag | ( | $name, | |
$content, | |||
$options = NULL , |
|||
$escape = false |
|||
) |
Generates an arbitrary HTML tag.
string | $name | The tag name |
string | $content | Content of the tag. If empty the tag will be self-closing |
array | $options | (optional) Associative array of 'attribute' => 'value' for the HTML tag |
boolean | $escape | Request a return escaped with htmlentities() |
TagHelper::content_type_meta_tag | ( | $content = NULL | ) |
Generates a <meta> tag for content type.
string | $content | (optional) Custom content type |
TagHelper::link_to | ( | $text = '' , |
|
$link = NULL , |
|||
$attributes = NULL |
|||
) |
Generates an anchor.
string | $text | The text to be displayed |
string | $link | (optional) The href param of the tag. defaults to '#' |
array | $attributes | Associative array of 'attribute' => 'value' for the HTML tag |
TagHelper::option_tag | ( | $text, | |
$name, | |||
$value, | |||
$selected = NULL |
|||
) |
Generates an <option> HTML tag.
string | $text | The text to be displayed |
string | $name | The name of the tag |
string | $value | The value param of the HTML tag |
bool | $selected | The selected param of the HTML tag |
TagHelper::pingback_link_tag | ( | $url = NULL | ) |
Generates a <link> tag for the pingback url.
string | $url | (optional) The pingack url. Defaults to the WP's one |
TagHelper::title_tag | ( | $title = NULL , |
|
$attributes = array() |
|||
) |
Generates the <title> html tag.
string | $title | (optional) The title of your page |
array | $attributes | (optional) An associative array of 'attribute' => 'value' for the HTML tag |