/** * Merges the existing attributes with the new ones * * @param array|string $attributes Array of attribute 'name' => 'value' pairs * or HTML attribute string * @param array|string $attributes Array of attribute 'name' => 'value' pairs * or HTML attribute string * * @return string A string containing merged attributes * * @deprecated Use html_attr_merge(). */ function merge_attributes_and_classes($attributes, $extra_attributes) { return html_attr_merge($attributes, $extra_attributes); }
public function merge_attributes($tag = 'body', $attributes) { $this->set_attributes($tag, html_attr_merge($this->get_attributes($tag), $attributes)); }
function body_tag($attributes = null) { ci()->load->helper('html'); $data =& ci()->load->_ci_cached_vars; $attributes = html_attr_merge(isset($data['template_body_tag_attributes']) ? $data['template_body_tag_attributes'] : '', $attributes); return "\n<body{$attributes}>\n"; }