GC_Customize_Manager::get_document_title_template()

最后更新于:2021-11-27 00:57:35

GC_Customize_Manager::get_document_title_template()

Get the template string for the Customizer pane document title.

响应

(string) The template string for the document title.

源文件

文件: gc-includes/class-gc-customize-manager.php

	public function get_document_title_template() {
		if ( $this->is_theme_active() ) {
			/* translators: %s: Document title from the preview. */
			$document_title_tmpl = __( 'Customize: %s' );
		} else {
			/* translators: %s: Document title from the preview. */
			$document_title_tmpl = __( 'Live Preview: %s' );
		}
		$document_title_tmpl = html_entity_decode( $document_title_tmpl, ENT_QUOTES, 'UTF-8' ); // Because exported to JS and assigned to document.title.
		return $document_title_tmpl;
	}