@@ 52-60 (lines=9) @@ | ||
49 | * @return string |
|
50 | * @static |
|
51 | */ |
|
52 | public static function tag($name, array $attributes = []) |
|
53 | { |
|
54 | $result = ''; |
|
55 | foreach ($attributes AS $elem => $value) { |
|
56 | $result .= ' ' . $elem . '="' . $value . '" '; |
|
57 | } |
|
58 | ||
59 | return '<' . $name . $result . '/>'; |
|
60 | } |
|
61 | ||
62 | /** |
|
63 | * Render link tag |
|
@@ 94-102 (lines=9) @@ | ||
91 | * @return string |
|
92 | * @static |
|
93 | */ |
|
94 | public static function openTag($name, array $attributes = []) |
|
95 | { |
|
96 | $result = ''; |
|
97 | foreach ($attributes AS $key => $value) { |
|
98 | $result .= ' ' . $key . '="' . $value . '"'; |
|
99 | } |
|
100 | ||
101 | return '<' . $name . $result . '>'; |
|
102 | } |
|
103 | ||
104 | /** |
|
105 | * Render close tag |