Stores some static methods that may be useful for html management
author | etessore |
---|---|
version | 1.0.5 |
package | classes |
add_this()
anchor(string $href, string $label, array | string $parms) : string
string
the url to be pointed
string
the text
array
string
some html attributes in key=>value pairs or a plain string
string
the markup for an html tagarray_to_html_attributes(string $glue, array | string $pieces) : string
author | http://blog.teknober.com/2011/04/13/php-array-to-html-attributes/ |
---|
string
array
string
string
body_class(array $classes)
array
the classes already added by wordpress or some other plugin
build_url(array $url_arr)
see | \http://php.net/manual/en/function.parse-url.php |
---|
array
the array of attributes
doctype(string $type)
string
the type, default is html5
get_the_content_after_more(string $more_link_text, int | object $post_id, bool $apply_filters, bool $remove_more)
string
Optional. Content for when there is more text
int
object
Post ID or post object.
bool
true if you want the_content filter applyed on the return value
bool
if true the function will remove the #more span added by WordPress
get_the_content_before_more(string $more_link_text, int | object $post_id, bool $apply_filters)
string
Optional. Content for when there is more text
int
object
Post ID or post object.
bool
true if you want the_content filter applyed on the return value
get_the_seo_description()
get_the_seo_h1($post)
int|object the post
get_the_seo_span($post)
int|object the post
get_the_seo_title()
Choose in order from: FB SEO Plugin YOAST Seo TODO Blog Name
has_more_tag($post)
has_shortcode($code, $post) : boolean
boolean
true if the shortcode is used at least once in the bodyheading()
image(string $src, array | string $parms)
string
the image source
array
string
additional parameters
load_css(string $handle)
It can be called after wp_head(). In this case the asset will be loaded on the next page view. This is beacuse the assets list will be stored in a transient. @see AutomaticAssetsManager::enable_automatic_manager()
string
the registered handle for the stylesheet.
load_js(string $handle)
It can be called after wp_head(). In this case the asset will be loaded on the next page view. This is beacuse the assets list will be stored in a transient. @see AutomaticAssetsManager::enable_automatic_manager()
string
the registered handle for the javascript
merge_images(array $images, array $config) : string
Stores it in a cache folder. To disable the cache system set IMAGE_MERGE_FORCE_REFRESH constant to true
array
an array of images: for every element $image['path'] and $image['url'] have to be defined
array
timthumb config, default 'w'=>'700', 'h'=>'370', 'q'=>'50', 'r'=>false
string
the url for the big imageparams(string | array $parms)
string
array
list of html attributes
remove_wpml_assets()
script(string $content, array $parms)
deprecated |
---|
string
the inner content
array
some parameters
$assets : array
textdomain : string