| @@ 64-71 (lines=8) @@ | ||
| 61 | * |
|
| 62 | * @return string |
|
| 63 | */ |
|
| 64 | public function openElement( $tag, $attributes = array() ) { |
|
| 65 | ||
| 66 | if ( is_array( $attributes ) && isset( $attributes[ 'id' ] ) ) { |
|
| 67 | $attributes[ 'id' ] = $this->getId( $attributes[ 'id' ] ); |
|
| 68 | } |
|
| 69 | ||
| 70 | return \Html::openElement( $tag, $attributes ); |
|
| 71 | } |
|
| 72 | ||
| 73 | /** |
|
| 74 | * @param null|string $id |
|
| @@ 114-121 (lines=8) @@ | ||
| 111 | * |
|
| 112 | * @return string |
|
| 113 | */ |
|
| 114 | public function element( $tag, $attributes = array(), $contents = '' ) { |
|
| 115 | ||
| 116 | if ( is_array( $attributes ) && isset( $attributes[ 'id' ] ) ) { |
|
| 117 | $attributes[ 'id' ] = $this->getId( $attributes[ 'id' ] ); |
|
| 118 | } |
|
| 119 | ||
| 120 | return \Html::rawElement( $tag, $attributes, $contents ); |
|
| 121 | } |
|
| 122 | } |
|
| 123 | ||