action; $exported['text_before'] = $this->text_before; return $exported; } /** * Render a themes section as a JS template. * * The template is only rendered by PHP once, so all actions are prepared at once on the server side. * * @since 4.7.0 * @access protected */ protected function render_template() { ?>
  • <# if ( '' !== data.text_before ) { #>

    {{ data.text_before }}

    <# } #> <# if ( 'search' === data.action ) { #>
    <# } else { #> <# if ( 'favorites' === data.action || 'feature_filter' === data.action ) { var attr = ' aria-expanded="false"'; } else { var attr = ''; } #> <# } #> <# if ( 'installed' === data.action ) { #>

    <# } #> <# if ( 'favorites' === data.action ) { #>

    <# } else if ( 'feature_filter' === data.action ) { #>
    $features ) { echo '
    '; $feature_name = esc_html( $feature_name ); echo ''; echo '
    '; foreach ( $features as $feature => $feature_name ) { $feature = esc_attr( $feature ); echo ' '; echo '
    '; } echo '
    '; echo '
    '; } ?>
    <# } #>