@@ -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 | |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | { |
| 68 | 68 | $variables = [ |
| 69 | 69 | 'action' => Application::PREFIX.'action', |
| 70 | - 'ajaxpagination' => ['#wpadminbar','.site-navigation-fixed'], |
|
| 70 | + 'ajaxpagination' => ['#wpadminbar', '.site-navigation-fixed'], |
|
| 71 | 71 | 'ajaxurl' => admin_url( 'admin-ajax.php' ), |
| 72 | 72 | ]; |
| 73 | 73 | $variables = apply_filters( 'site-reviews/enqueue/public/localize', $variables ); |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | protected function getStylesheet() |
| 81 | 81 | { |
| 82 | 82 | $currentStyle = glsr( Style::class )->style; |
| 83 | - return file_exists( glsr()->path( 'assets/styles/custom/'.$currentStyle.'.css' )) |
|
| 83 | + return file_exists( glsr()->path( 'assets/styles/custom/'.$currentStyle.'.css' ) ) |
|
| 84 | 84 | ? glsr()->url( 'assets/styles/custom/'.$currentStyle.'.css' ) |
| 85 | 85 | : glsr()->url( 'assets/styles/'.Application::ID.'.css' ); |
| 86 | 86 | } |