@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | */ |
13 | 13 | |
14 | 14 | // Exit if accessed directly. |
15 | -if ( ! defined( 'ABSPATH' ) ) { |
|
15 | +if ( ! defined('ABSPATH')) { |
|
16 | 16 | exit; |
17 | 17 | } |
18 | 18 | |
@@ -29,13 +29,13 @@ discard block |
||
29 | 29 | */ |
30 | 30 | public static function init() { |
31 | 31 | // Add theme support and preset the theme selectors. |
32 | - add_action( 'after_setup_theme', array( __CLASS__, 'add_theme_support' ) ); |
|
32 | + add_action('after_setup_theme', array(__CLASS__, 'add_theme_support')); |
|
33 | 33 | |
34 | 34 | // Display the post thumbnail before the content. |
35 | - add_action( 'alnp_load_before_content', array( __CLASS__, 'the_post_thumbnail' ), 10 ); |
|
35 | + add_action('alnp_load_before_content', array(__CLASS__, 'the_post_thumbnail'), 10); |
|
36 | 36 | |
37 | 37 | // Filters the repeater template location. |
38 | - add_filter( 'alnp_template_location', array( __CLASS__, 'alnp_poseidon_template_location' ) ); |
|
38 | + add_filter('alnp_template_location', array(__CLASS__, 'alnp_poseidon_template_location')); |
|
39 | 39 | } // END init() |
40 | 40 | |
41 | 41 | /** |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | * @static |
47 | 47 | */ |
48 | 48 | public static function the_post_thumbnail() { |
49 | - if ( is_single() && has_post_thumbnail() && 'header' == $theme_options['post_layout_single'] ) { |
|
49 | + if (is_single() && has_post_thumbnail() && 'header' == $theme_options['post_layout_single']) { |
|
50 | 50 | the_post_thumbnail(); |
51 | 51 | } |
52 | 52 | } // END the_post_thumbnail() |
@@ -69,14 +69,14 @@ discard block |
||
69 | 69 | * @static |
70 | 70 | */ |
71 | 71 | public static function add_theme_support() { |
72 | - add_theme_support( 'auto-load-next-post', array( |
|
72 | + add_theme_support('auto-load-next-post', array( |
|
73 | 73 | 'content_container' => 'main.site-main', |
74 | 74 | 'title_selector' => 'h1.entry-title', |
75 | 75 | 'navigation_container' => 'nav.post-navigation', |
76 | 76 | 'comments_container' => 'div#comments', |
77 | 77 | 'load_js_in_footer' => 'no', |
78 | 78 | 'lock_js_in_footer' => 'no', |
79 | - ) ); |
|
79 | + )); |
|
80 | 80 | } // END add_theme_support() |
81 | 81 | |
82 | 82 | } // END class |