@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | |
15 | 15 | // Exit if accessed directly. |
16 | -if ( ! defined( 'ABSPATH' ) ) { |
|
16 | +if ( ! defined('ABSPATH')) { |
|
17 | 17 | exit; |
18 | 18 | } |
19 | 19 | |
@@ -30,13 +30,13 @@ discard block |
||
30 | 30 | */ |
31 | 31 | public static function init() { |
32 | 32 | // Add theme support and preset the theme selectors. |
33 | - add_action( 'after_setup_theme', array( __CLASS__, 'add_theme_support' ) ); |
|
33 | + add_action('after_setup_theme', array(__CLASS__, 'add_theme_support')); |
|
34 | 34 | |
35 | 35 | // Display the post thumbnail before the content. |
36 | - add_action( 'alnp_load_before_content', array( __CLASS__, 'the_post_thumbnail' ), 10 ); |
|
36 | + add_action('alnp_load_before_content', array(__CLASS__, 'the_post_thumbnail'), 10); |
|
37 | 37 | |
38 | 38 | // Filters the repeater template location. |
39 | - add_filter( 'alnp_template_location', array( __CLASS__, 'alnp_poseidon_template_location' ) ); |
|
39 | + add_filter('alnp_template_location', array(__CLASS__, 'alnp_poseidon_template_location')); |
|
40 | 40 | } // END init() |
41 | 41 | |
42 | 42 | /** |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | // Get theme options from database. |
53 | 53 | $theme_options = poseidon_theme_options(); |
54 | 54 | |
55 | - if ( is_single() && has_post_thumbnail() && 'header' == $theme_options['post_layout_single'] ) { |
|
55 | + if (is_single() && has_post_thumbnail() && 'header' == $theme_options['post_layout_single']) { |
|
56 | 56 | the_post_thumbnail(); |
57 | 57 | } |
58 | 58 | } // END the_post_thumbnail() |
@@ -75,14 +75,14 @@ discard block |
||
75 | 75 | * @static |
76 | 76 | */ |
77 | 77 | public static function add_theme_support() { |
78 | - add_theme_support( 'auto-load-next-post', array( |
|
78 | + add_theme_support('auto-load-next-post', array( |
|
79 | 79 | 'content_container' => 'main.site-main', |
80 | 80 | 'title_selector' => 'h1.entry-title', |
81 | 81 | 'navigation_container' => 'nav.post-navigation', |
82 | 82 | 'comments_container' => 'div#comments', |
83 | 83 | 'load_js_in_footer' => 'no', |
84 | 84 | 'lock_js_in_footer' => 'no', |
85 | - ) ); |
|
85 | + )); |
|
86 | 86 | } // END add_theme_support() |
87 | 87 | |
88 | 88 | } // END class |