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