Stampa i modelli JavaScript usati per rendere i componenti del Customizer Menu.

Descrizione

I modelli sono importati nell'uso JS wp.template.

Fonte

File: wp-includes/class-wp-customize-nav-menus.php

public function print_templates() {
		?>
		<scripttype="text/html"id="tmpl-available-menu-item"><li id="menu-item-tpl-{{ data.id }}"class="menu-item-tpl" data-menu-item-id="{{ data.id }}"><div class="menu-item-bar"><div class="menu-item-handle"><span class="item-type" aria-hidden="true">{{ datatype_label }}</span><span class="item-title" aria-hidden="true"><span class="menu-item-title<# if ( ! data.title ) { #> no-title<# } #>">{{ datatitle || wpcustomizeMenusdatal10nuntitled }}</span></span><button type="button"class="button-link item-add"><span class="screen-reader-text">/* translators: 1: Title of a menu item, 2: Type of a menu item. */printf(__('Add to menu: %1$s (%2$s)'),'{{ data.title || wp.customize.Menus.data.l10n.untitled }}','{{ data.type_label }}');?></span></button></div></div></li>script><scripttype="text/html"id="tmpl-menu-item-reorder-nav"><div class="menu-item-reorder-nav">printf('',__('Move up'),__('Move down'),__('Move one level up'),__('Move one level down'));?></div>script><scripttype="text/html"id="tmpl-nav-menu-delete-button"><div class="menu-delete-item"><button type="button"class="button-link button-link-delete">_e('Delete Menu');?></button></div>script><scripttype="text/html"id="tmpl-nav-menu-submit-new-button"><p id="customize-new-menu-submit-description">_e('Click “Next” to start adding links to your new menu.');?></p><button id="customize-new-menu-submit" type="button"class="button" aria-describedby="customize-new-menu-submit-description">_e('Next');?></button>script><scripttype="text/html"id="tmpl-nav-menu-locations-header"><span class="customize-control-title customize-section-title-menu_locations-heading">{{ datal10nlocationsTitle }}</span><p class="customize-control-description customize-section-title-menu_locations-description">{{ datal10nlocationsDescription }}</p>script><scripttype="text/html"id="tmpl-nav-menu-create-menu-section-title"><p class="add-new-menu-notice">_e('It doesn’t look like your site has any menus yet. Want to build one? Click the button to start.');?></p><p class="add-new-menu-notice">_e('You’ll create a menu, assign it a location, and add menu items like links to pages and categories. If your theme has multiple menu areas, you might need to create more than one.');?></p><h3><button type="button"class="button customize-add-menu-button">_e('Create New Menu');?></button></h3>script>}

Correlato

Utilizzi

Usi Descrizione
wp-includes/l10n.php: __()

Recupera la traduzione di $testo.

wp-includes/l10n.php: _e()

Mostra il testo tradotto.

Changelog

Versione Descrizione
4.3.0 Introdotto.