Code Duplication    Length = 10-11 lines in 2 locations

classes/models/FrmPointers.php 2 locations

@@ 135-145 (lines=11) @@
132
	/**
133
	 * Render button 2, if needed
134
	 */
135
	private function button2() {
136
		if ( $this->button_array['button2']['text'] ) {
137
			?>
138
			lastOpenedPointer.find( '#pointer-close' ).after('<a id="pointer-primary" class="button-primary">' +
139
				'<?php echo esc_attr( $this->button_array['button2']['text'] ); ?>' + '</a>');
140
			lastOpenedPointer.find('#pointer-primary').click(function () {
141
			<?php echo $this->button_array['button2']['function']; ?>
142
			});
143
		<?php
144
		}
145
	}
146
147
	/**
148
	 * Render button 3, if needed. This is the previous button in most cases
@@ 150-159 (lines=10) @@
147
	/**
148
	 * Render button 3, if needed. This is the previous button in most cases
149
	 */
150
	private function button3() {
151
		if ( $this->button_array['button3']['text'] ) {
152
			?>
153
			lastOpenedPointer.find('#pointer-primary').after('<a id="pointer-ternary" style="float: left;" class="button-secondary">' +
154
				'<?php echo esc_attr( $this->button_array['button3']['text'] ); ?>' + '</a>');
155
			lastOpenedPointer.find('#pointer-ternary').click(function () {
156
			<?php echo $this->button_array['button3']['function']; ?>
157
			});
158
		<?php }
159
	}
160
161
	/**
162
	 * Show a pointer that starts the tour