179 | | <li class="accordion-section control-section<?php if ( empty( $this->description ) ) echo ' cannot-expand'; ?>"> |
180 | | <div class="accordion-section-title" tabindex="0"> |
181 | | <span class="preview-notice"><?php |
182 | | /* translators: %s is the site/panel title in the Customizer */ |
183 | | echo sprintf( __( 'You are customizing %s' ), '<strong class="panel-title">' . esc_html( $this->title ) . '</strong>' ); |
184 | | ?></span> |
185 | | </div> |
186 | | <?php if ( ! empty( $this->description ) ) : ?> |
187 | | <div class="accordion-section-content description"> |
188 | | <?php echo $this->description; ?> |
189 | | </div> |
190 | | <?php endif; ?> |
191 | | </li> |
192 | | <?php |
193 | | foreach ( $this->sections as $section ) { |
194 | | $section->maybe_render(); |
195 | | } |
196 | | ?> |
| 179 | <?php $this->render_content(); ?> |
| 184 | |
| 185 | /** |
| 186 | * Render the sections that have been added to the panel. |
| 187 | * |
| 188 | * @since 4.0.0 |
| 189 | * @access protected |
| 190 | */ |
| 191 | protected function render_content() { |
| 192 | ?> |
| 193 | <li class="accordion-section control-section<?php if ( empty( $this->description ) ) echo ' cannot-expand'; ?>"> |
| 194 | <div class="accordion-section-title" tabindex="0"> |
| 195 | <span class="preview-notice"><?php |
| 196 | /* translators: %s is the site/panel title in the Customizer */ |
| 197 | echo sprintf( __( 'You are customizing %s' ), '<strong class="panel-title">' . esc_html( $this->title ) . '</strong>' ); |
| 198 | ?></span> |
| 199 | </div> |
| 200 | <?php if ( ! empty( $this->description ) ) : ?> |
| 201 | <div class="accordion-section-content description"> |
| 202 | <?php echo $this->description; ?> |
| 203 | </div> |
| 204 | <?php endif; ?> |
| 205 | </li> |
| 206 | <?php |
| 207 | foreach ( $this->sections as $section ) { |
| 208 | $section->maybe_render(); |
| 209 | } |
| 210 | } |