@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | */ |
25 | 25 | public function enqueueAssets() |
26 | 26 | { |
27 | - if( apply_filters( 'site-reviews/assets/css', true )) { |
|
27 | + if( apply_filters( 'site-reviews/assets/css', true ) ) { |
|
28 | 28 | wp_enqueue_style( |
29 | 29 | Application::ID, |
30 | 30 | $this->getStylesheet(), |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | glsr()->version |
33 | 33 | ); |
34 | 34 | } |
35 | - if( apply_filters( 'site-reviews/assets/js', true )) { |
|
35 | + if( apply_filters( 'site-reviews/assets/js', true ) ) { |
|
36 | 36 | $dependencies = apply_filters( 'site-reviews/enqueue/public/dependencies', [] ); |
37 | 37 | wp_enqueue_script( |
38 | 38 | Application::ID, |
@@ -51,12 +51,12 @@ discard block |
||
51 | 51 | { |
52 | 52 | if( glsr( OptionManager::class )->get( 'settings.submissions.recaptcha.integration' ) != 'custom' )return; |
53 | 53 | $language = apply_filters( 'site-reviews/recaptcha/language', get_locale() ); |
54 | - wp_enqueue_script( Application::ID.'/google-recaptcha', add_query_arg([ |
|
54 | + wp_enqueue_script( Application::ID.'/google-recaptcha', add_query_arg( [ |
|
55 | 55 | 'hl' => $language, |
56 | 56 | 'onload' => 'glsr_render_recaptcha', |
57 | 57 | 'render' => 'explicit', |
58 | - ], 'https://www.google.com/recaptcha/api.js' )); |
|
59 | - $inlineScript = file_get_contents( glsr()->path( 'assets/scripts/recaptcha.js' )); |
|
58 | + ], 'https://www.google.com/recaptcha/api.js' ) ); |
|
59 | + $inlineScript = file_get_contents( glsr()->path( 'assets/scripts/recaptcha.js' ) ); |
|
60 | 60 | wp_add_inline_script( Application::ID.'/google-recaptcha', $inlineScript, 'before' ); |
61 | 61 | } |
62 | 62 | |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | */ |
82 | 82 | protected function getFixedSelectorsForPagination() |
83 | 83 | { |
84 | - $selectors = ['#wpadminbar','.site-navigation-fixed']; |
|
84 | + $selectors = ['#wpadminbar', '.site-navigation-fixed']; |
|
85 | 85 | return apply_filters( 'site-reviews/localize/pagination/selectors', $selectors ); |
86 | 86 | |
87 | 87 | } |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | protected function getStylesheet() |
93 | 93 | { |
94 | 94 | $currentStyle = glsr( Style::class )->style; |
95 | - return file_exists( glsr()->path( 'assets/styles/custom/'.$currentStyle.'.css' )) |
|
95 | + return file_exists( glsr()->path( 'assets/styles/custom/'.$currentStyle.'.css' ) ) |
|
96 | 96 | ? glsr()->url( 'assets/styles/custom/'.$currentStyle.'.css' ) |
97 | 97 | : glsr()->url( 'assets/styles/'.Application::ID.'.css' ); |
98 | 98 | } |