@@ 221-228 (lines=8) @@ | ||
218 | * @access public |
|
219 | * @return string|null rendered html of label |
|
220 | */ |
|
221 | public function label() { |
|
222 | $output = null; |
|
223 | if ( ! empty( $this->struct['label'] ) ) { |
|
224 | $output .= '<div class="uix-' . esc_attr( $this->type ) . '-heading"><h3 class="uix-' . esc_attr( $this->type ) . '-title">' . esc_html( $this->struct['label'] ) . '</h3></div>'; |
|
225 | } |
|
226 | ||
227 | return $output; |
|
228 | } |
|
229 | ||
230 | /** |
|
231 | * Render the panels Description |
|
@@ 237-244 (lines=8) @@ | ||
234 | * @access public |
|
235 | * @return string|null HTML of rendered description |
|
236 | */ |
|
237 | public function description() { |
|
238 | $output = null; |
|
239 | if ( ! empty( $this->struct['description'] ) ) { |
|
240 | $output .= '<div class="uix-' . esc_attr( $this->type ) . '-heading"><p class="uix-' . esc_attr( $this->type ) . '-subtitle description">' . esc_html( $this->struct['description'] ) . '</p></div>'; |
|
241 | } |
|
242 | ||
243 | return $output; |
|
244 | } |
|
245 | ||
246 | /** |
|
247 | * Render the panels navigation tabs |