Code Duplication    Length = 10-13 lines in 3 locations

includes/theme-support/class-alnp-twentythirteen.php 1 location

@@ 30-39 (lines=10) @@
27
	 * @access public
28
	 * @static
29
	 */
30
	public static function init() {
31
		// This removes the default post navigation in the repeater template.
32
		remove_action( 'alnp_load_after_content', 'auto_load_next_post_navigation', 1, 10 );
33
34
		// Add a compaitable post navigation.
35
		add_action( 'alnp_load_after_content', array( __CLASS__, 'alnp_twentythirteen_post_navigation' ), 1, 10 );
36
37
		// Add theme support and preset the theme selectors.
38
		add_action( 'after_setup_theme', array( __CLASS__, 'add_theme_support' ) );
39
	} // END init()
40
41
	/**
42
	 * Adds a compaitable post navigation.

includes/theme-support/class-alnp-twentytwelve.php 1 location

@@ 30-39 (lines=10) @@
27
	 * @access public
28
	 * @static
29
	 */
30
	public static function init() {
31
		// This removes the default post navigation in the repeater template.
32
		remove_action( 'alnp_load_after_content', 'auto_load_next_post_navigation', 1, 10 );
33
34
		// Add a compaitable post navigation.
35
		add_action( 'alnp_load_after_content', array( __CLASS__, 'alnp_twentytwelve_post_navigation' ), 1, 10 );
36
37
		// Add theme support and preset the theme selectors.
38
		add_action( 'after_setup_theme', array( __CLASS__, 'add_theme_support' ) );
39
	} // END init()
40
41
	/**
42
	 * Adds a compaitable post navigation.

includes/theme-support/class-alnp-oceanwp.php 1 location

@@ 30-42 (lines=13) @@
27
	 * @access public
28
	 * @static
29
	 */
30
	public static function init() {
31
		// Add theme support and preset the theme selectors.
32
		add_action( 'after_setup_theme', array( __CLASS__, 'add_theme_support' ) );
33
34
		// Filters the location of the repeater template.
35
		add_filter( 'alnp_template_redirect', array( __CLASS__, 'template_redirect' ) );
36
37
		// Filters the repeater template location.
38
		add_filter( 'alnp_template_location', array( __CLASS__, 'alnp_oceanwp_template_location' ) );
39
40
		// Remove Auto Load Next Post compatible post navigation.
41
		remove_action( 'alnp_load_after_content', 'auto_load_next_post_navigation', 1, 10 );
42
	} // END init()
43
44
	/**
45
	 * Filters the location of the repeater template to override the default repeater template.