Code Duplication    Length = 10-36 lines in 3 locations

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

@@ 462-471 (lines=10) @@
459
 *
460
 * @since 2.9.0
461
 */
462
function wp_comment_trashnotice() {
463
?>
464
<div class="hidden" id="trash-undo-holder">
465
	<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>
466
</div>
467
<div class="hidden" id="spam-undo-holder">
468
	<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>
469
</div>
470
<?php
471
}
472
473
/**
474
 * Outputs a post's public meta data in the Custom Fields meta box.

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

@@ 698-733 (lines=36) @@
695
	 * @since 4.3.0
696
	 * @access public
697
	 */
698
	public function print_templates() {
699
		?>
700
		<script type="text/html" id="tmpl-available-menu-item">
701
			<li id="menu-item-tpl-{{ data.id }}" class="menu-item-tpl" data-menu-item-id="{{ data.id }}">
702
				<div class="menu-item-bar">
703
					<div class="menu-item-handle">
704
						<span class="item-type" aria-hidden="true">{{ data.type_label }}</span>
705
						<span class="item-title" aria-hidden="true">
706
							<span class="menu-item-title<# if ( ! data.title ) { #> no-title<# } #>">{{ data.title || wp.customize.Menus.data.l10n.untitled }}</span>
707
						</span>
708
						<button type="button" class="button-link item-add">
709
							<span class="screen-reader-text"><?php
710
								/* translators: 1: Title of a menu item, 2: Type of a menu item */
711
								printf( __( 'Add to menu: %1$s (%2$s)' ), '{{ data.title || wp.customize.Menus.data.l10n.untitled }}', '{{ data.type_label }}' );
712
							?></span>
713
						</button>
714
					</div>
715
				</div>
716
			</li>
717
		</script>
718
719
		<script type="text/html" id="tmpl-menu-item-reorder-nav">
720
			<div class="menu-item-reorder-nav">
721
				<?php
722
				printf(
723
					'<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>',
724
					__( 'Move up' ),
725
					__( 'Move down' ),
726
					__( 'Move one level up' ),
727
					__( 'Move one level down' )
728
				);
729
				?>
730
			</div>
731
		</script>
732
	<?php
733
	}
734
735
	/**
736
	 * Print the html template used to render the add-menu-item frame.

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