@@ -311,7 +311,7 @@ discard block |
||
| 311 | 311 | * @access public |
| 312 | 312 | * @since 1.5.0 |
| 313 | 313 | * @static |
| 314 | - * @return string|boolean |
|
| 314 | + * @return string|false |
|
| 315 | 315 | */ |
| 316 | 316 | public static function is_alnp_using_customizer() { |
| 317 | 317 | if ( is_customize_preview() ) { |
@@ -331,7 +331,7 @@ discard block |
||
| 331 | 331 | * @param string $name The ID to register with WordPress. |
| 332 | 332 | * @param string $file_path The path to the actual file. |
| 333 | 333 | * @param bool $is_script Optional, argument for if the incoming file_path is a JavaScript source file. |
| 334 | - * @param array $support Optional, for requiring other javascripts for the source file you are calling. |
|
| 334 | + * @param string[] $support Optional, for requiring other javascripts for the source file you are calling. |
|
| 335 | 335 | * @param string $version Optional, can match the version of the plugin or version of the source file. |
| 336 | 336 | * @param bool $footer Optional, can set the JavaScript to load in the footer instead. |
| 337 | 337 | * @global string $wp_version |
@@ -31,9 +31,11 @@ |
||
| 31 | 31 | // Load content after the loop. |
| 32 | 32 | do_action( 'alnp_load_after_loop' ); |
| 33 | 33 | |
| 34 | -else : |
|
| 34 | +else { |
|
| 35 | + : |
|
| 35 | 36 | |
| 36 | 37 | // Load content if there are no more posts. |
| 37 | 38 | do_action( 'alnp_no_more_posts' ); |
| 39 | +} |
|
| 38 | 40 | |
| 39 | 41 | endif; // END if have_posts() |
@@ -39,9 +39,11 @@ |
||
| 39 | 39 | // Load content after the loop. |
| 40 | 40 | do_action( 'alnp_load_after_loop' ); |
| 41 | 41 | |
| 42 | - else : |
|
| 42 | + else { |
|
| 43 | + : |
|
| 43 | 44 | |
| 44 | 45 | // Load content if there are no more posts. |
| 45 | 46 | do_action( 'alnp_no_more_posts' ); |
| 47 | + } |
|
| 46 | 48 | |
| 47 | 49 | endif; // END if have_posts() |
@@ -46,7 +46,9 @@ |
||
| 46 | 46 | // Preferred implementation, where theme provides an array of options |
| 47 | 47 | if ( isset( $theme_support[0] ) && is_array( $theme_support[0] ) ) { |
| 48 | 48 | foreach( $theme_support[0] as $key => $value ) { |
| 49 | - if ( ! empty( $value ) ) update_option( 'auto_load_next_post_' . $key, $value ); |
|
| 49 | + if ( ! empty( $value ) ) { |
|
| 50 | + update_option( 'auto_load_next_post_' . $key, $value ); |
|
| 51 | + } |
|
| 50 | 52 | } |
| 51 | 53 | } |
| 52 | 54 | } |
@@ -124,8 +124,7 @@ |
||
| 124 | 124 | add_action( 'admin_notices', array( $this, 'theme_ready_notice' ) ); |
| 125 | 125 | update_option( 'auto_load_next_post_theme_supported', $template ); |
| 126 | 126 | } |
| 127 | - } |
|
| 128 | - else { |
|
| 127 | + } else { |
|
| 129 | 128 | // If theme not supported then delete option. |
| 130 | 129 | delete_option( 'auto_load_next_post_theme_supported' ); |
| 131 | 130 | } |
@@ -31,9 +31,11 @@ |
||
| 31 | 31 | // Load content after the loop. |
| 32 | 32 | do_action( 'alnp_load_after_loop' ); |
| 33 | 33 | |
| 34 | -else : |
|
| 34 | +else { |
|
| 35 | + : |
|
| 35 | 36 | |
| 36 | 37 | // Load content if there are no more posts. |
| 37 | 38 | do_action( 'alnp_no_more_posts' ); |
| 39 | +} |
|
| 38 | 40 | |
| 39 | 41 | endif; // END if have_posts() |
@@ -31,9 +31,11 @@ |
||
| 31 | 31 | // Load content after the loop. |
| 32 | 32 | do_action( 'alnp_load_after_loop' ); |
| 33 | 33 | |
| 34 | -else : |
|
| 34 | +else { |
|
| 35 | + : |
|
| 35 | 36 | |
| 36 | 37 | // Load content if there are no more posts. |
| 37 | 38 | do_action( 'alnp_no_more_posts' ); |
| 39 | +} |
|
| 38 | 40 | |
| 39 | 41 | endif; // END if have_posts() |
@@ -31,9 +31,11 @@ |
||
| 31 | 31 | // Load content after the loop. |
| 32 | 32 | do_action( 'alnp_load_after_loop' ); |
| 33 | 33 | |
| 34 | -else : |
|
| 34 | +else { |
|
| 35 | + : |
|
| 35 | 36 | |
| 36 | 37 | // Load content if there are no more posts. |
| 37 | 38 | do_action( 'alnp_no_more_posts' ); |
| 39 | +} |
|
| 38 | 40 | |
| 39 | 41 | endif; // END if have_posts() |
@@ -52,8 +52,7 @@ |
||
| 52 | 52 | // Checks if Auto Load Next Post Pro is installed before displaying sidebar. |
| 53 | 53 | if ( ! is_alnp_pro_version_installed() ) { |
| 54 | 54 | include_once( dirname( __FILE__ ) . '/html-admin-sidebar.php' ); |
| 55 | - } |
|
| 56 | - else { |
|
| 55 | + } else { |
|
| 57 | 56 | echo '<div class="alnp-sidebar">'; |
| 58 | 57 | |
| 59 | 58 | do_action( 'auto_load_next_post_after_settings' ); |