function _print_meta_tag($meta, $meta_content) { if (empty($meta_content)) { return; } $attributes = array('name' => $meta, 'content' => $meta_content); $this->_head .= "\t" . ITUtility::get_open_tag('meta', $attributes) . "\n"; }
public static function get_self_closing_tag($tag_name, $attributes = array()) { $tag = ITUtility::get_open_tag($tag_name, $attributes); $tag = preg_replace('/>$/', ' />', $tag); return $tag; }