button_url; if ( ! $this->button_url && $theme->get( 'ThemeURI' ) ) { // Fall back to the `Theme URI` defined in `style.css`. $button_url = $theme->get( 'ThemeURI' ); } elseif ( ! $this->button_url && $theme->get( 'AuthorURI' ) ) { // Fall back to the `Author URI` defined in `style.css`. $button_url = $theme->get( 'AuthorURI' ); } $json['button_text'] = $this->button_text ? esc_html( $this->button_text ) : $theme->get( 'Name' ); $json['button_url'] = esc_url( $button_url ); return $json; } /** * Outputs the template. * * @return void */ protected function render_template() { ?>