@@ 224-231 (lines=8) @@ | ||
221 | * @access public |
|
222 | * @return string description string |
|
223 | */ |
|
224 | public function description() { |
|
225 | $output = null; |
|
226 | if ( isset( $this->struct['description'] ) ) { |
|
227 | $output .= '<span class="uix-control-description">' . esc_html( $this->struct['description'] ) . '</span>'; |
|
228 | } |
|
229 | ||
230 | return $output; |
|
231 | } |
|
232 | ||
233 | /** |
|
234 | * checks if the current control is active |
@@ 125-132 (lines=8) @@ | ||
122 | * @access public |
|
123 | * @return string description string |
|
124 | */ |
|
125 | public function sdescription() { |
|
126 | $output = null; |
|
127 | if ( isset( $this->struct['description'] ) ) { |
|
128 | $output .= '<span class="uix-toggle-description">' . esc_html( $this->struct['description'] ) . '</span>'; |
|
129 | } |
|
130 | ||
131 | return $output; |
|
132 | } |
|
133 | ||
134 | /** |
|
135 | * Enqueues specific tabs assets for the active pages |
@@ 94-101 (lines=8) @@ | ||
91 | * @access public |
|
92 | * @return string|null rendered html of label |
|
93 | */ |
|
94 | public function label() { |
|
95 | $output = null; |
|
96 | if ( ! empty( $this->struct['label'] ) ) { |
|
97 | $output .= '<span class="uix-text">' . esc_html( $this->struct['label'] ) . '</span>'; |
|
98 | } |
|
99 | ||
100 | return $output; |
|
101 | } |
|
102 | ||
103 | /** |
|
104 | * Render the panels Description |
|
@@ 110-117 (lines=8) @@ | ||
107 | * @access public |
|
108 | * @return string|null HTML of rendered description |
|
109 | */ |
|
110 | public function description() { |
|
111 | $output = null; |
|
112 | if ( ! empty( $this->struct['description'] ) ) { |
|
113 | $output .= ' <small>' . esc_html( $this->struct['description'] ) . '</small>'; |
|
114 | } |
|
115 | ||
116 | return $output; |
|
117 | } |
|
118 | ||
119 | /** |
|
120 | * Define core header styles |