Code Duplication    Length = 10-36 lines in 3 locations

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.

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

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

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