Code Duplication    Length = 10-36 lines in 3 locations

src/wp-includes/customize/class-wp-customize-nav-menus-panel.php 1 location

@@ 71-99 (lines=29) @@
68
	 *
69
	 * @see WP_Customize_Panel::print_template()
70
	 */
71
	protected function content_template() {
72
		?>
73
		<li class="panel-meta customize-info accordion-section <# if ( ! data.description ) { #> cannot-expand<# } #>">
74
			<button type="button" class="customize-panel-back" tabindex="-1">
75
				<span class="screen-reader-text"><?php _e( 'Back' ); ?></span>
76
			</button>
77
			<div class="accordion-section-title">
78
				<span class="preview-notice">
79
					<?php
80
					/* translators: %s: the site/panel title in the Customizer */
81
					printf( __( 'You are customizing %s' ), '<strong class="panel-title">{{ data.title }}</strong>' );
82
					?>
83
				</span>
84
				<button type="button" class="customize-help-toggle dashicons dashicons-editor-help" aria-expanded="false">
85
					<span class="screen-reader-text"><?php _e( 'Help' ); ?></span>
86
				</button>
87
				<button type="button" class="customize-screen-options-toggle" aria-expanded="false">
88
					<span class="screen-reader-text"><?php _e( 'Menu Options' ); ?></span>
89
				</button>
90
			</div>
91
			<# if ( data.description ) { #>
92
			<div class="description customize-panel-description">{{{ data.description }}}</div>
93
			<# } #>
94
			<div id="screen-options-wrap">
95
				<?php $this->render_screen_options(); ?>
96
			</div>
97
		</li>
98
	<?php
99
	}
100
}
101

src/wp-admin/includes/template.php 1 location

@@ 463-472 (lines=10) @@
460
 *
461
 * @since 2.9.0
462
 */
463
function wp_comment_trashnotice() {
464
?>
465
<div class="hidden" id="trash-undo-holder">
466
	<div class="trash-undo-inside"><?php printf(__('Comment by %s moved to the trash.'), '<strong></strong>'); ?> <span class="undo untrash"><a href="#"><?php _e('Undo'); ?></a></span></div>
467
</div>
468
<div class="hidden" id="spam-undo-holder">
469
	<div class="spam-undo-inside"><?php printf(__('Comment by %s marked as spam.'), '<strong></strong>'); ?> <span class="undo unspam"><a href="#"><?php _e('Undo'); ?></a></span></div>
470
</div>
471
<?php
472
}
473
474
/**
475
 * Outputs a post's public meta data in the Custom Fields meta box.

src/wp-includes/class-wp-customize-nav-menus.php 1 location

@@ 904-939 (lines=36) @@
901
	 * @since 4.3.0
902
	 * @access public
903
	 */
904
	public function print_templates() {
905
		?>
906
		<script type="text/html" id="tmpl-available-menu-item">
907
			<li id="menu-item-tpl-{{ data.id }}" class="menu-item-tpl" data-menu-item-id="{{ data.id }}">
908
				<div class="menu-item-bar">
909
					<div class="menu-item-handle">
910
						<span class="item-type" aria-hidden="true">{{ data.type_label }}</span>
911
						<span class="item-title" aria-hidden="true">
912
							<span class="menu-item-title<# if ( ! data.title ) { #> no-title<# } #>">{{ data.title || wp.customize.Menus.data.l10n.untitled }}</span>
913
						</span>
914
						<button type="button" class="button-link item-add">
915
							<span class="screen-reader-text"><?php
916
								/* translators: 1: Title of a menu item, 2: Type of a menu item */
917
								printf( __( 'Add to menu: %1$s (%2$s)' ), '{{ data.title || wp.customize.Menus.data.l10n.untitled }}', '{{ data.type_label }}' );
918
							?></span>
919
						</button>
920
					</div>
921
				</div>
922
			</li>
923
		</script>
924
925
		<script type="text/html" id="tmpl-menu-item-reorder-nav">
926
			<div class="menu-item-reorder-nav">
927
				<?php
928
				printf(
929
					'<button type="button" class="menus-move-up">%1$s</button><button type="button" class="menus-move-down">%2$s</button><button type="button" class="menus-move-left">%3$s</button><button type="button" class="menus-move-right">%4$s</button>',
930
					__( 'Move up' ),
931
					__( 'Move down' ),
932
					__( 'Move one level up' ),
933
					__( 'Move one level down' )
934
				);
935
				?>
936
			</div>
937
		</script>
938
	<?php
939
	}
940
941
	/**
942
	 * Print the html template used to render the add-menu-item frame.