Lines Matching refs:elem
110 $elem = array(
149 $elem['classes'] += array('webfont' => 'wf-'.$value);
152 $elem['declarations'] += array($name => $value);
157 foreach (array_keys($elem) as $key) {
158 if (empty($elem[$key])) unset($elem[$key]);
160 return $elem;
181 * @param array $elem holds 'declarations' and 'classes'
185 public function build_attributes(array $elem, array $addClasses=array()) argument
189 if (isset($elem['declarations'])) {
190 foreach ($elem['declarations'] as $name => $value) {
197 $elem['classes'] = isset($elem['classes']) ?: array();
198 $elem['classes'] = array_unique($elem['classes'] + $addClasses);
201 if (isset($elem['classes'])) {
202 $attr['class'] = implode(' ', $elem['classes']);