@@ -6,11 +6,11 @@ discard block |
||
6 | 6 | * @subpackage customizer |
7 | 7 | */ |
8 | 8 | |
9 | -if ( ! defined( 'ABSPATH' ) ) { |
|
9 | +if ( ! defined('ABSPATH')) { |
|
10 | 10 | exit; |
11 | 11 | } |
12 | 12 | |
13 | -if ( ! class_exists( 'LSX_Theme_Customizer' ) ) : |
|
13 | +if ( ! class_exists('LSX_Theme_Customizer')) : |
|
14 | 14 | |
15 | 15 | /** |
16 | 16 | * Customizer Configuration File |
@@ -26,90 +26,90 @@ discard block |
||
26 | 26 | /** |
27 | 27 | * Initialize the plugin by setting localization and loading public scripts and styles. |
28 | 28 | */ |
29 | - public function __construct( $controls ) { |
|
29 | + public function __construct($controls) { |
|
30 | 30 | require get_template_directory() . '/includes/classes/class-lsx-customize-core-control.php'; |
31 | 31 | require get_template_directory() . '/includes/classes/class-lsx-customize-layout-control.php'; |
32 | 32 | require get_template_directory() . '/includes/classes/class-lsx-customize-header-layout-control.php'; |
33 | 33 | |
34 | 34 | $this->controls = $controls; |
35 | 35 | |
36 | - add_action( 'customize_preview_init', array( $this, 'customize_preview_js' ), 20 ); |
|
37 | - add_action( 'customize_register', array( $this, 'customizer' ), 11 ); |
|
36 | + add_action('customize_preview_init', array($this, 'customize_preview_js'), 20); |
|
37 | + add_action('customize_register', array($this, 'customizer'), 11); |
|
38 | 38 | } |
39 | 39 | |
40 | 40 | /** |
41 | 41 | * Binds JS handlers to make Theme Customizer preview reload changes asynchronously. |
42 | 42 | */ |
43 | 43 | public function customize_preview_js() { |
44 | - wp_enqueue_script( 'lsx_customizer', get_template_directory_uri() . '/assets/js/admin/customizer.js', array( 'customize-preview' ), LSX_VERSION, true ); |
|
44 | + wp_enqueue_script('lsx_customizer', get_template_directory_uri() . '/assets/js/admin/customizer.js', array('customize-preview'), LSX_VERSION, true); |
|
45 | 45 | |
46 | - wp_localize_script( 'lsx_customizer', 'lsx_customizer_params', array( |
|
46 | + wp_localize_script('lsx_customizer', 'lsx_customizer_params', array( |
|
47 | 47 | 'template_directory' => get_template_directory_uri(), |
48 | - ) ); |
|
48 | + )); |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | /** |
52 | 52 | * Create customiser controls. |
53 | 53 | */ |
54 | - public function customizer( $wp_customize ) { |
|
54 | + public function customizer($wp_customize) { |
|
55 | 55 | // Start panels. |
56 | - if ( ! empty( $this->controls['panels'] ) ) { |
|
57 | - foreach ( $this->controls['panels'] as $panel_slug => $args ) { |
|
58 | - $this->add_panel( $panel_slug, $args, $wp_customize ); |
|
56 | + if ( ! empty($this->controls['panels'])) { |
|
57 | + foreach ($this->controls['panels'] as $panel_slug => $args) { |
|
58 | + $this->add_panel($panel_slug, $args, $wp_customize); |
|
59 | 59 | } |
60 | 60 | } |
61 | 61 | |
62 | 62 | // Start sections. |
63 | - if ( ! empty( $this->controls['sections'] ) ) { |
|
64 | - foreach ( $this->controls['sections'] as $section_slug => $args ) { |
|
65 | - $this->add_section( $section_slug, $args, $wp_customize ); |
|
63 | + if ( ! empty($this->controls['sections'])) { |
|
64 | + foreach ($this->controls['sections'] as $section_slug => $args) { |
|
65 | + $this->add_section($section_slug, $args, $wp_customize); |
|
66 | 66 | } |
67 | 67 | } |
68 | 68 | |
69 | 69 | // Start settings. |
70 | - if ( ! empty( $this->controls['settings'] ) ) { |
|
71 | - foreach ( $this->controls['settings'] as $settings_slug => $args ) { |
|
72 | - $this->add_setting( $settings_slug, $args, $wp_customize ); |
|
70 | + if ( ! empty($this->controls['settings'])) { |
|
71 | + foreach ($this->controls['settings'] as $settings_slug => $args) { |
|
72 | + $this->add_setting($settings_slug, $args, $wp_customize); |
|
73 | 73 | } |
74 | 74 | } |
75 | 75 | |
76 | 76 | // Start fields. |
77 | - if ( ! empty( $this->controls['fields'] ) ) { |
|
78 | - foreach ( $this->controls['fields'] as $field_slug => $args ) { |
|
79 | - $this->add_control( $field_slug, $args, $wp_customize ); |
|
77 | + if ( ! empty($this->controls['fields'])) { |
|
78 | + foreach ($this->controls['fields'] as $field_slug => $args) { |
|
79 | + $this->add_control($field_slug, $args, $wp_customize); |
|
80 | 80 | } |
81 | 81 | } |
82 | 82 | |
83 | 83 | // Start selective refresh. |
84 | - if ( ! empty( $this->controls['selective_refresh'] ) ) { |
|
85 | - foreach ( $this->controls['selective_refresh'] as $field_slug => $args ) { |
|
86 | - $this->add_selective_refresh( $field_slug, $args, $wp_customize ); |
|
84 | + if ( ! empty($this->controls['selective_refresh'])) { |
|
85 | + foreach ($this->controls['selective_refresh'] as $field_slug => $args) { |
|
86 | + $this->add_selective_refresh($field_slug, $args, $wp_customize); |
|
87 | 87 | } |
88 | 88 | } |
89 | 89 | |
90 | - $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; |
|
91 | - $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; |
|
92 | - $wp_customize->get_setting( 'background_color' )->transport = 'postMessage'; |
|
90 | + $wp_customize->get_setting('blogname')->transport = 'postMessage'; |
|
91 | + $wp_customize->get_setting('blogdescription')->transport = 'postMessage'; |
|
92 | + $wp_customize->get_setting('background_color')->transport = 'postMessage'; |
|
93 | 93 | |
94 | - $wp_customize->selective_refresh->add_partial( 'blogname', array( |
|
94 | + $wp_customize->selective_refresh->add_partial('blogname', array( |
|
95 | 95 | 'selector' => 'h1.site-title a', |
96 | 96 | 'render_callback' => function() { |
97 | - bloginfo( 'name' ); |
|
97 | + bloginfo('name'); |
|
98 | 98 | }, |
99 | - ) ); |
|
99 | + )); |
|
100 | 100 | |
101 | - $wp_customize->selective_refresh->add_partial( 'blogdescription', array( |
|
101 | + $wp_customize->selective_refresh->add_partial('blogdescription', array( |
|
102 | 102 | 'selector' => '.site-description', |
103 | 103 | 'render_callback' => function() { |
104 | - bloginfo( 'description' ); |
|
104 | + bloginfo('description'); |
|
105 | 105 | }, |
106 | - ) ); |
|
106 | + )); |
|
107 | 107 | } |
108 | 108 | |
109 | 109 | /** |
110 | 110 | * Create a panel. |
111 | 111 | */ |
112 | - private function add_panel( $slug, $args, $wp_customize ) { |
|
112 | + private function add_panel($slug, $args, $wp_customize) { |
|
113 | 113 | $default_args = array( |
114 | 114 | 'title' => null, |
115 | 115 | 'description' => null, |
@@ -117,57 +117,57 @@ discard block |
||
117 | 117 | |
118 | 118 | $wp_customize->add_panel( |
119 | 119 | $slug, |
120 | - array_merge( $default_args, $args ) |
|
120 | + array_merge($default_args, $args) |
|
121 | 121 | ); |
122 | 122 | } |
123 | 123 | |
124 | 124 | /** |
125 | 125 | * Create a section. |
126 | 126 | */ |
127 | - private function add_section( $slug, $args, $wp_customize ) { |
|
127 | + private function add_section($slug, $args, $wp_customize) { |
|
128 | 128 | $default_args = array( |
129 | 129 | 'capability' => 'edit_theme_options', |
130 | 130 | 'description' => null, |
131 | 131 | ); |
132 | 132 | |
133 | - $wp_customize->add_section( $slug, array_merge( $default_args, $args ) ); |
|
133 | + $wp_customize->add_section($slug, array_merge($default_args, $args)); |
|
134 | 134 | } |
135 | 135 | |
136 | 136 | /** |
137 | 137 | * Create a setting. |
138 | 138 | */ |
139 | - private function add_setting( $slug, $args, $wp_customize ) { |
|
140 | - $wp_customize->add_setting( $slug, |
|
141 | - array_merge( array( |
|
139 | + private function add_setting($slug, $args, $wp_customize) { |
|
140 | + $wp_customize->add_setting($slug, |
|
141 | + array_merge(array( |
|
142 | 142 | 'default' => null, |
143 | 143 | 'type' => 'theme_mod', |
144 | 144 | 'capability' => 'edit_theme_options', |
145 | 145 | 'transport' => 'postMessage', |
146 | 146 | 'sanitize_callback' => 'lsx_sanitize_choices', |
147 | - ), $args ) |
|
147 | + ), $args) |
|
148 | 148 | ); |
149 | 149 | } |
150 | 150 | |
151 | 151 | /** |
152 | 152 | * Create a control. |
153 | 153 | */ |
154 | - private function add_control( $slug, $args, $wp_customize ) { |
|
154 | + private function add_control($slug, $args, $wp_customize) { |
|
155 | 155 | $default_args = array(); |
156 | 156 | |
157 | - if ( isset( $args['control'] ) && class_exists( $args['control'] ) ) { |
|
157 | + if (isset($args['control']) && class_exists($args['control'])) { |
|
158 | 158 | $control_class = $args['control']; |
159 | - unset( $args['control'] ); |
|
159 | + unset($args['control']); |
|
160 | 160 | |
161 | - $control = new $control_class( $wp_customize, $slug, array_merge( $default_args, $args ) ); |
|
162 | - $wp_customize->add_control( $control ); |
|
161 | + $control = new $control_class($wp_customize, $slug, array_merge($default_args, $args)); |
|
162 | + $wp_customize->add_control($control); |
|
163 | 163 | } else { |
164 | - if ( isset( $args['control'] ) ) { |
|
165 | - unset( $args['control'] ); |
|
164 | + if (isset($args['control'])) { |
|
165 | + unset($args['control']); |
|
166 | 166 | } |
167 | 167 | |
168 | 168 | $wp_customize->add_control( |
169 | 169 | $slug, |
170 | - array_merge( $default_args, $args ) |
|
170 | + array_merge($default_args, $args) |
|
171 | 171 | ); |
172 | 172 | } |
173 | 173 | } |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | /** |
176 | 176 | * Create a selective refresh. |
177 | 177 | */ |
178 | - private function add_selective_refresh( $slug, $args, $wp_customize ) { |
|
178 | + private function add_selective_refresh($slug, $args, $wp_customize) { |
|
179 | 179 | $default_args = array( |
180 | 180 | 'selector' => null, |
181 | 181 | 'render_callback' => null, |
@@ -183,23 +183,23 @@ discard block |
||
183 | 183 | |
184 | 184 | $wp_customize->selective_refresh->add_partial( |
185 | 185 | $slug, |
186 | - array_merge( $default_args, $args ) |
|
186 | + array_merge($default_args, $args) |
|
187 | 187 | ); |
188 | 188 | } |
189 | 189 | |
190 | 190 | /** |
191 | 191 | * Returns a registered field. |
192 | 192 | */ |
193 | - public function get_control( $id ) { |
|
194 | - $field = $this->controls['fields'][ $id ]; |
|
193 | + public function get_control($id) { |
|
194 | + $field = $this->controls['fields'][$id]; |
|
195 | 195 | return $field; |
196 | 196 | } |
197 | 197 | |
198 | 198 | /** |
199 | 199 | * Returns a registered setting. |
200 | 200 | */ |
201 | - public function get_setting( $id ) { |
|
202 | - $setting = $this->controls['settings'][ $id ]; |
|
201 | + public function get_setting($id) { |
|
202 | + $setting = $this->controls['settings'][$id]; |
|
203 | 203 | return $setting; |
204 | 204 | } |
205 | 205 |
@@ -6,11 +6,11 @@ discard block |
||
6 | 6 | * @subpackage scripts |
7 | 7 | */ |
8 | 8 | |
9 | -if ( ! defined( 'ABSPATH' ) ) { |
|
9 | +if ( ! defined('ABSPATH')) { |
|
10 | 10 | exit; |
11 | 11 | } |
12 | 12 | |
13 | -if ( ! function_exists( 'lsx_scripts' ) ) : |
|
13 | +if ( ! function_exists('lsx_scripts')) : |
|
14 | 14 | |
15 | 15 | /** |
16 | 16 | * Enqueue scripts, fonts and styles. |
@@ -26,9 +26,9 @@ discard block |
||
26 | 26 | |
27 | 27 | endif; |
28 | 28 | |
29 | -add_action( 'wp_enqueue_scripts', 'lsx_scripts', 5 ); |
|
29 | +add_action('wp_enqueue_scripts', 'lsx_scripts', 5); |
|
30 | 30 | |
31 | -if ( ! function_exists( 'lsx_admin_scripts' ) ) : |
|
31 | +if ( ! function_exists('lsx_admin_scripts')) : |
|
32 | 32 | |
33 | 33 | /** |
34 | 34 | * Enqueue scripts (admin). |
@@ -37,14 +37,14 @@ discard block |
||
37 | 37 | * @subpackage scripts |
38 | 38 | */ |
39 | 39 | function lsx_admin_scripts() { |
40 | - wp_enqueue_script( 'lsx-admin', get_template_directory_uri() . '/assets/js/admin/lsx-admin.js', array( 'jquery' ), LSX_VERSION, true ); |
|
40 | + wp_enqueue_script('lsx-admin', get_template_directory_uri() . '/assets/js/admin/lsx-admin.js', array('jquery'), LSX_VERSION, true); |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | endif; |
44 | 44 | |
45 | -add_action( 'admin_enqueue_scripts', 'lsx_admin_scripts' ); |
|
45 | +add_action('admin_enqueue_scripts', 'lsx_admin_scripts'); |
|
46 | 46 | |
47 | -if ( ! function_exists( 'lsx_scripts_add_styles' ) ) : |
|
47 | +if ( ! function_exists('lsx_scripts_add_styles')) : |
|
48 | 48 | |
49 | 49 | /** |
50 | 50 | * Enqueue styles. |
@@ -53,23 +53,23 @@ discard block |
||
53 | 53 | * @subpackage scripts |
54 | 54 | */ |
55 | 55 | function lsx_scripts_add_styles() { |
56 | - wp_register_style( 'fontawesome', get_template_directory_uri() . '/assets/css/vendor/font-awesome.css', array(), LSX_VERSION ); |
|
57 | - wp_style_add_data( 'fontawesome', 'rtl', 'replace' ); |
|
56 | + wp_register_style('fontawesome', get_template_directory_uri() . '/assets/css/vendor/font-awesome.css', array(), LSX_VERSION); |
|
57 | + wp_style_add_data('fontawesome', 'rtl', 'replace'); |
|
58 | 58 | |
59 | - wp_register_style( 'bootstrap', get_template_directory_uri() . '/assets/css/vendor/bootstrap.css', array(), LSX_VERSION ); |
|
60 | - wp_style_add_data( 'bootstrap', 'rtl', 'replace' ); |
|
59 | + wp_register_style('bootstrap', get_template_directory_uri() . '/assets/css/vendor/bootstrap.css', array(), LSX_VERSION); |
|
60 | + wp_style_add_data('bootstrap', 'rtl', 'replace'); |
|
61 | 61 | |
62 | - wp_enqueue_style( 'slick', get_template_directory_uri() . '/assets/css/vendor/slick.css', array(), LSX_VERSION, null ); |
|
63 | - wp_enqueue_style( 'slick-lightbox', get_template_directory_uri() . '/assets/css/vendor/slick-lightbox.css', array( 'slick' ), LSX_VERSION, null ); |
|
62 | + wp_enqueue_style('slick', get_template_directory_uri() . '/assets/css/vendor/slick.css', array(), LSX_VERSION, null); |
|
63 | + wp_enqueue_style('slick-lightbox', get_template_directory_uri() . '/assets/css/vendor/slick-lightbox.css', array('slick'), LSX_VERSION, null); |
|
64 | 64 | |
65 | - wp_enqueue_style( 'lsx_main_style', get_template_directory_uri() . '/style.css', array(), LSX_VERSION ); |
|
66 | - wp_enqueue_style( 'lsx_main', get_template_directory_uri() . '/assets/css/lsx.css', array( 'lsx_main_style', 'fontawesome', 'bootstrap', 'slick', 'slick-lightbox' ), LSX_VERSION ); |
|
67 | - wp_style_add_data( 'lsx_main', 'rtl', 'replace' ); |
|
65 | + wp_enqueue_style('lsx_main_style', get_template_directory_uri() . '/style.css', array(), LSX_VERSION); |
|
66 | + wp_enqueue_style('lsx_main', get_template_directory_uri() . '/assets/css/lsx.css', array('lsx_main_style', 'fontawesome', 'bootstrap', 'slick', 'slick-lightbox'), LSX_VERSION); |
|
67 | + wp_style_add_data('lsx_main', 'rtl', 'replace'); |
|
68 | 68 | } |
69 | 69 | |
70 | 70 | endif; |
71 | 71 | |
72 | -if ( ! function_exists( 'lsx_scripts_add_fonts' ) ) : |
|
72 | +if ( ! function_exists('lsx_scripts_add_fonts')) : |
|
73 | 73 | |
74 | 74 | /** |
75 | 75 | * Enqueue fonts. |
@@ -79,8 +79,8 @@ discard block |
||
79 | 79 | */ |
80 | 80 | function lsx_scripts_add_fonts() { |
81 | 81 | |
82 | - $disable_fonts = get_theme_mod( 'lsx_disable_fonts', false ); |
|
83 | - if ( false !== $disable_fonts ) { |
|
82 | + $disable_fonts = get_theme_mod('lsx_disable_fonts', false); |
|
83 | + if (false !== $disable_fonts) { |
|
84 | 84 | return; |
85 | 85 | } |
86 | 86 | |
@@ -145,14 +145,14 @@ discard block |
||
145 | 145 | .single-testimonial .entry-content:before{font-family:\'Lora\',serif} |
146 | 146 | '; |
147 | 147 | |
148 | - if ( ! empty( $font_styles ) ) { |
|
149 | - wp_add_inline_style( 'lsx_main', $font_styles ); |
|
148 | + if ( ! empty($font_styles)) { |
|
149 | + wp_add_inline_style('lsx_main', $font_styles); |
|
150 | 150 | } |
151 | 151 | } |
152 | 152 | |
153 | 153 | endif; |
154 | 154 | |
155 | -if ( ! function_exists( 'lsx_scripts_add_scripts' ) ) : |
|
155 | +if ( ! function_exists('lsx_scripts_add_scripts')) : |
|
156 | 156 | |
157 | 157 | /** |
158 | 158 | * Enqueue scripts. |
@@ -161,31 +161,31 @@ discard block |
||
161 | 161 | * @subpackage scripts |
162 | 162 | */ |
163 | 163 | function lsx_scripts_add_scripts() { |
164 | - if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { |
|
165 | - wp_enqueue_script( 'comment-reply' ); |
|
164 | + if (is_singular() && comments_open() && get_option('thread_comments')) { |
|
165 | + wp_enqueue_script('comment-reply'); |
|
166 | 166 | } |
167 | 167 | |
168 | - wp_enqueue_script( 'platform', get_template_directory_uri() . '/assets/js/vendor/platform.min.js', array(), LSX_VERSION, true ); |
|
169 | - wp_enqueue_script( 'bootstrap', get_template_directory_uri() . '/assets/js/vendor/bootstrap.min.js', array( 'jquery' ), LSX_VERSION, true ); |
|
168 | + wp_enqueue_script('platform', get_template_directory_uri() . '/assets/js/vendor/platform.min.js', array(), LSX_VERSION, true); |
|
169 | + wp_enqueue_script('bootstrap', get_template_directory_uri() . '/assets/js/vendor/bootstrap.min.js', array('jquery'), LSX_VERSION, true); |
|
170 | 170 | |
171 | - wp_enqueue_script( 'imagesLoaded', get_template_directory_uri() . '/assets/js/vendor/imagesloaded.pkgd.min.js', array( 'masonry' ), LSX_VERSION, true ); |
|
172 | - wp_enqueue_script( 'scrolltofixed', get_template_directory_uri() . '/assets/js/vendor/jquery-scrolltofixed-min.js', array( 'jquery' ), LSX_VERSION, true ); |
|
173 | - wp_enqueue_script( 'slick', get_template_directory_uri() . '/assets/js/vendor/slick.min.js', array( 'jquery' ), LSX_VERSION, true ); |
|
174 | - wp_enqueue_script( 'slick-lightbox', get_template_directory_uri() . '/assets/js/vendor/slick-lightbox.min.js', array( 'jquery', 'slick' ), LSX_VERSION, true ); |
|
175 | - wp_enqueue_script( 'picturefill', get_template_directory_uri() . '/assets/js/vendor/picturefill.min.js', array(), LSX_VERSION, true ); |
|
171 | + wp_enqueue_script('imagesLoaded', get_template_directory_uri() . '/assets/js/vendor/imagesloaded.pkgd.min.js', array('masonry'), LSX_VERSION, true); |
|
172 | + wp_enqueue_script('scrolltofixed', get_template_directory_uri() . '/assets/js/vendor/jquery-scrolltofixed-min.js', array('jquery'), LSX_VERSION, true); |
|
173 | + wp_enqueue_script('slick', get_template_directory_uri() . '/assets/js/vendor/slick.min.js', array('jquery'), LSX_VERSION, true); |
|
174 | + wp_enqueue_script('slick-lightbox', get_template_directory_uri() . '/assets/js/vendor/slick-lightbox.min.js', array('jquery', 'slick'), LSX_VERSION, true); |
|
175 | + wp_enqueue_script('picturefill', get_template_directory_uri() . '/assets/js/vendor/picturefill.min.js', array(), LSX_VERSION, true); |
|
176 | 176 | |
177 | - wp_enqueue_script( 'lsx_script', get_template_directory_uri() . '/assets/js/lsx.min.js', array( 'jquery', 'platform', 'bootstrap', 'masonry', 'imagesLoaded', 'scrolltofixed', 'slick', 'slick-lightbox', 'picturefill' ), LSX_VERSION, true ); |
|
177 | + wp_enqueue_script('lsx_script', get_template_directory_uri() . '/assets/js/lsx.min.js', array('jquery', 'platform', 'bootstrap', 'masonry', 'imagesLoaded', 'scrolltofixed', 'slick', 'slick-lightbox', 'picturefill'), LSX_VERSION, true); |
|
178 | 178 | |
179 | 179 | $param_array = array( |
180 | - 'columns' => apply_filters( 'lsx_archive_column_number', 3 ), |
|
180 | + 'columns' => apply_filters('lsx_archive_column_number', 3), |
|
181 | 181 | ); |
182 | 182 | |
183 | - wp_localize_script( 'lsx_script', 'lsx_params', $param_array ); |
|
183 | + wp_localize_script('lsx_script', 'lsx_params', $param_array); |
|
184 | 184 | } |
185 | 185 | |
186 | 186 | endif; |
187 | 187 | |
188 | -if ( ! function_exists( 'lsx_scripts_child_theme' ) ) : |
|
188 | +if ( ! function_exists('lsx_scripts_child_theme')) : |
|
189 | 189 | |
190 | 190 | /** |
191 | 191 | * Enqueue scripts and styles (for child theme). |
@@ -194,12 +194,12 @@ discard block |
||
194 | 194 | * @subpackage scripts |
195 | 195 | */ |
196 | 196 | function lsx_scripts_child_theme() { |
197 | - if ( is_child_theme() && file_exists( get_stylesheet_directory() . '/assets/css/custom.css' ) ) { |
|
198 | - wp_enqueue_style( 'child-css', get_stylesheet_directory_uri() . '/assets/css/custom.css', array( 'lsx_main' ), LSX_VERSION ); |
|
199 | - wp_style_add_data( 'child-css', 'rtl', 'replace' ); |
|
197 | + if (is_child_theme() && file_exists(get_stylesheet_directory() . '/assets/css/custom.css')) { |
|
198 | + wp_enqueue_style('child-css', get_stylesheet_directory_uri() . '/assets/css/custom.css', array('lsx_main'), LSX_VERSION); |
|
199 | + wp_style_add_data('child-css', 'rtl', 'replace'); |
|
200 | 200 | } |
201 | 201 | } |
202 | 202 | |
203 | 203 | endif; |
204 | 204 | |
205 | -add_action( 'wp_enqueue_scripts', 'lsx_scripts_child_theme', 1999 ); |
|
205 | +add_action('wp_enqueue_scripts', 'lsx_scripts_child_theme', 1999); |
@@ -6,11 +6,11 @@ discard block |
||
6 | 6 | * @subpackage customizer |
7 | 7 | */ |
8 | 8 | |
9 | -if ( ! defined( 'ABSPATH' ) ) { |
|
9 | +if ( ! defined('ABSPATH')) { |
|
10 | 10 | exit; |
11 | 11 | } |
12 | 12 | |
13 | -if ( ! function_exists( 'lsx_customizer_core_controls' ) ) : |
|
13 | +if ( ! function_exists('lsx_customizer_core_controls')) : |
|
14 | 14 | |
15 | 15 | /** |
16 | 16 | * Returns an array of the core panel. |
@@ -20,10 +20,10 @@ discard block |
||
20 | 20 | * |
21 | 21 | * @return $lsx_controls array() |
22 | 22 | */ |
23 | - function lsx_customizer_core_controls( $lsx_controls ) { |
|
23 | + function lsx_customizer_core_controls($lsx_controls) { |
|
24 | 24 | $lsx_controls['sections']['lsx-core'] = array( |
25 | - 'title' => esc_html__( 'Core Settings', 'lsx' ), |
|
26 | - 'description' => esc_html__( 'Change the core settings.', 'lsx' ), |
|
25 | + 'title' => esc_html__('Core Settings', 'lsx'), |
|
26 | + 'description' => esc_html__('Change the core settings.', 'lsx'), |
|
27 | 27 | 'priority' => 21, |
28 | 28 | ); |
29 | 29 | |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | ); |
35 | 35 | |
36 | 36 | $lsx_controls['fields']['lsx_lazyload_status'] = array( |
37 | - 'label' => esc_html__( 'Lazy Loading Images', 'lsx' ), |
|
37 | + 'label' => esc_html__('Lazy Loading Images', 'lsx'), |
|
38 | 38 | 'section' => 'lsx-core', |
39 | 39 | 'type' => 'checkbox', |
40 | 40 | ); |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | ); |
47 | 47 | |
48 | 48 | $lsx_controls['fields']['lsx_preloader_content_status'] = array( |
49 | - 'label' => esc_html__( 'Preloader Content', 'lsx' ), |
|
49 | + 'label' => esc_html__('Preloader Content', 'lsx'), |
|
50 | 50 | 'section' => 'lsx-core', |
51 | 51 | 'type' => 'checkbox', |
52 | 52 | ); |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | ); |
59 | 59 | |
60 | 60 | $lsx_controls['fields']['lsx_disable_fonts'] = array( |
61 | - 'label' => esc_html__( 'Disable Fonts', 'lsx' ), |
|
61 | + 'label' => esc_html__('Disable Fonts', 'lsx'), |
|
62 | 62 | 'section' => 'lsx-core', |
63 | 63 | 'type' => 'checkbox', |
64 | 64 | ); |
@@ -68,9 +68,9 @@ discard block |
||
68 | 68 | |
69 | 69 | endif; |
70 | 70 | |
71 | -add_filter( 'lsx_customizer_controls', 'lsx_customizer_core_controls' ); |
|
71 | +add_filter('lsx_customizer_controls', 'lsx_customizer_core_controls'); |
|
72 | 72 | |
73 | -if ( ! function_exists( 'lsx_customizer_layout_controls' ) ) : |
|
73 | +if ( ! function_exists('lsx_customizer_layout_controls')) : |
|
74 | 74 | |
75 | 75 | /** |
76 | 76 | * Returns an array of the layout panel. |
@@ -80,10 +80,10 @@ discard block |
||
80 | 80 | * |
81 | 81 | * @return $lsx_controls array() |
82 | 82 | */ |
83 | - function lsx_customizer_layout_controls( $lsx_controls ) { |
|
83 | + function lsx_customizer_layout_controls($lsx_controls) { |
|
84 | 84 | $lsx_controls['sections']['lsx-layout'] = array( |
85 | - 'title' => esc_html__( 'Layout', 'lsx' ), |
|
86 | - 'description' => esc_html__( 'Change the layout sitewide. If your homepage is set to use a page with a template, the following will not apply to it.', 'lsx' ), |
|
85 | + 'title' => esc_html__('Layout', 'lsx'), |
|
86 | + 'description' => esc_html__('Change the layout sitewide. If your homepage is set to use a page with a template, the following will not apply to it.', 'lsx'), |
|
87 | 87 | 'priority' => 22, |
88 | 88 | ); |
89 | 89 | |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | ); |
95 | 95 | |
96 | 96 | $lsx_controls['fields']['lsx_header_layout'] = array( |
97 | - 'label' => esc_html__( 'Header', 'lsx' ), |
|
97 | + 'label' => esc_html__('Header', 'lsx'), |
|
98 | 98 | 'section' => 'lsx-layout', |
99 | 99 | 'control' => 'LSX_Customize_Header_Layout_Control', |
100 | 100 | 'choices' => array( |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | ); |
112 | 112 | |
113 | 113 | $lsx_controls['fields']['lsx_layout'] = array( |
114 | - 'label' => esc_html__( 'Body', 'lsx' ), |
|
114 | + 'label' => esc_html__('Body', 'lsx'), |
|
115 | 115 | 'section' => 'lsx-layout', |
116 | 116 | 'control' => 'LSX_Customize_Layout_Control', |
117 | 117 | 'choices' => array( |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | ); |
129 | 129 | |
130 | 130 | $lsx_controls['fields']['lsx_header_fixed'] = array( |
131 | - 'label' => esc_html__( 'Fixed Header', 'lsx' ), |
|
131 | + 'label' => esc_html__('Fixed Header', 'lsx'), |
|
132 | 132 | 'section' => 'lsx-layout', |
133 | 133 | 'type' => 'checkbox', |
134 | 134 | ); |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | ); |
141 | 141 | |
142 | 142 | $lsx_controls['fields']['lsx_header_search'] = array( |
143 | - 'label' => esc_html__( 'Search Box in Header', 'lsx' ), |
|
143 | + 'label' => esc_html__('Search Box in Header', 'lsx'), |
|
144 | 144 | 'section' => 'lsx-layout', |
145 | 145 | 'type' => 'checkbox', |
146 | 146 | ); |
@@ -148,9 +148,9 @@ discard block |
||
148 | 148 | $lsx_controls['selective_refresh']['lsx_header_search'] = array( |
149 | 149 | 'selector' => '#lsx-header-search-css', |
150 | 150 | 'render_callback' => function() { |
151 | - $search_form = get_theme_mod( 'lsx_header_search' ); |
|
151 | + $search_form = get_theme_mod('lsx_header_search'); |
|
152 | 152 | |
153 | - if ( false !== $search_form ) { |
|
153 | + if (false !== $search_form) { |
|
154 | 154 | echo 'body #searchform { display: block; }'; |
155 | 155 | } else { |
156 | 156 | echo 'body #searchform { display: none; }'; |
@@ -163,9 +163,9 @@ discard block |
||
163 | 163 | |
164 | 164 | endif; |
165 | 165 | |
166 | -add_filter( 'lsx_customizer_controls', 'lsx_customizer_layout_controls' ); |
|
166 | +add_filter('lsx_customizer_controls', 'lsx_customizer_layout_controls'); |
|
167 | 167 | |
168 | -if ( ! function_exists( 'lsx_get_customizer_controls' ) ) : |
|
168 | +if ( ! function_exists('lsx_get_customizer_controls')) : |
|
169 | 169 | |
170 | 170 | /** |
171 | 171 | * Returns an array of $controls for the customizer class to generate. |
@@ -177,10 +177,10 @@ discard block |
||
177 | 177 | */ |
178 | 178 | function lsx_get_customizer_controls() { |
179 | 179 | $lsx_controls = array(); |
180 | - $lsx_controls = apply_filters( 'lsx_customizer_controls', $lsx_controls ); |
|
180 | + $lsx_controls = apply_filters('lsx_customizer_controls', $lsx_controls); |
|
181 | 181 | return $lsx_controls; |
182 | 182 | } |
183 | 183 | |
184 | 184 | endif; |
185 | 185 | |
186 | -$lsx_customizer = new LSX_Theme_Customizer( lsx_get_customizer_controls() ); |
|
186 | +$lsx_customizer = new LSX_Theme_Customizer(lsx_get_customizer_controls()); |
@@ -6,11 +6,11 @@ discard block |
||
6 | 6 | * @subpackage template-tags |
7 | 7 | */ |
8 | 8 | |
9 | -if ( ! defined( 'ABSPATH' ) ) { |
|
9 | +if ( ! defined('ABSPATH')) { |
|
10 | 10 | exit; |
11 | 11 | } |
12 | 12 | |
13 | -if ( ! function_exists( 'lsx_breadcrumbs' ) ) : |
|
13 | +if ( ! function_exists('lsx_breadcrumbs')) : |
|
14 | 14 | |
15 | 15 | /** |
16 | 16 | * Breadcrumbs. |
@@ -19,53 +19,53 @@ discard block |
||
19 | 19 | * @subpackage template-tags |
20 | 20 | */ |
21 | 21 | function lsx_breadcrumbs() { |
22 | - if ( ! function_exists( 'yoast_breadcrumb' ) && ! function_exists( 'woocommerce_breadcrumb' ) ) { |
|
22 | + if ( ! function_exists('yoast_breadcrumb') && ! function_exists('woocommerce_breadcrumb')) { |
|
23 | 23 | return null; |
24 | 24 | } |
25 | 25 | |
26 | - $show_on_front = get_option( 'show_on_front' ); |
|
26 | + $show_on_front = get_option('show_on_front'); |
|
27 | 27 | |
28 | - if ( ( 'posts' === $show_on_front && is_home() ) || ( 'page' === $show_on_front && is_front_page() ) ) { |
|
28 | + if (('posts' === $show_on_front && is_home()) || ('page' === $show_on_front && is_front_page())) { |
|
29 | 29 | return; |
30 | 30 | } |
31 | 31 | |
32 | - if ( function_exists( 'woocommerce_breadcrumb' ) ) { |
|
32 | + if (function_exists('woocommerce_breadcrumb')) { |
|
33 | 33 | ob_start(); |
34 | 34 | |
35 | - woocommerce_breadcrumb( array( |
|
35 | + woocommerce_breadcrumb(array( |
|
36 | 36 | 'wrap_before' => '<div class="breadcrumbs-container breadcrumbs-woocommerce"><div class="container"><div class="row"><div class="col-xs-12">', |
37 | 37 | 'wrap_after' => '</div></div></div></div>', |
38 | 38 | 'before' => '<span>', |
39 | 39 | 'after' => '</span>', |
40 | - ) ); |
|
40 | + )); |
|
41 | 41 | |
42 | 42 | $output = ob_get_clean(); |
43 | - } elseif ( function_exists( 'yoast_breadcrumb' ) ) { |
|
44 | - $output = yoast_breadcrumb( null, null, false ); |
|
43 | + } elseif (function_exists('yoast_breadcrumb')) { |
|
44 | + $output = yoast_breadcrumb(null, null, false); |
|
45 | 45 | $output = '<div class="breadcrumbs-container breadcrumbs-yoast"><div class="container"><div class="row"><div class="col-xs-12">' . $output . '</div></div></div></div>'; |
46 | 46 | } |
47 | 47 | |
48 | - $output = apply_filters( 'lsx_breadcrumbs', $output ); |
|
48 | + $output = apply_filters('lsx_breadcrumbs', $output); |
|
49 | 49 | |
50 | - echo wp_kses_post( $output ); |
|
50 | + echo wp_kses_post($output); |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | endif; |
54 | 54 | |
55 | 55 | function lsx_breadcrumbs_placements() { |
56 | 56 | global $wpdb; |
57 | - if ( class_exists( 'LSX_Banners' ) || is_singular( 'post' ) ) { |
|
58 | - add_action( 'lsx_banner_inner_top', 'lsx_breadcrumbs', 100 ); |
|
57 | + if (class_exists('LSX_Banners') || is_singular('post')) { |
|
58 | + add_action('lsx_banner_inner_top', 'lsx_breadcrumbs', 100); |
|
59 | 59 | } else { |
60 | - add_action( 'lsx_header_after', 'lsx_breadcrumbs', 100 ); |
|
60 | + add_action('lsx_header_after', 'lsx_breadcrumbs', 100); |
|
61 | 61 | } |
62 | 62 | } |
63 | -add_action( 'wp', 'lsx_breadcrumbs_placements' ); |
|
63 | +add_action('wp', 'lsx_breadcrumbs_placements'); |
|
64 | 64 | |
65 | 65 | //add_action( 'lsx_banner_inner_bottom', 'lsx_breadcrumbs', 100 ); |
66 | 66 | //add_action( 'lsx_global_header_inner_bottom', 'lsx_breadcrumbs', 100 ); |
67 | 67 | |
68 | -if ( ! function_exists( 'lsx_breadcrumbs_wpseo_seperator_filter' ) ) : |
|
68 | +if ( ! function_exists('lsx_breadcrumbs_wpseo_seperator_filter')) : |
|
69 | 69 | |
70 | 70 | /** |
71 | 71 | * Replaces the seperator. |
@@ -73,16 +73,16 @@ discard block |
||
73 | 73 | * @package lsx |
74 | 74 | * @subpackage template-tags |
75 | 75 | */ |
76 | - function lsx_breadcrumbs_wpseo_seperator_filter( $seperator ) { |
|
76 | + function lsx_breadcrumbs_wpseo_seperator_filter($seperator) { |
|
77 | 77 | $seperator = '<i class="fa fa-angle-right" aria-hidden="true"></i>'; |
78 | 78 | return $seperator; |
79 | 79 | } |
80 | 80 | |
81 | 81 | endif; |
82 | 82 | |
83 | -add_filter( 'wpseo_breadcrumb_separator', 'lsx_breadcrumbs_wpseo_seperator_filter' ); |
|
83 | +add_filter('wpseo_breadcrumb_separator', 'lsx_breadcrumbs_wpseo_seperator_filter'); |
|
84 | 84 | |
85 | -if ( ! function_exists( 'lsx_breadcrumbs_woocommerce_seperator_filter' ) ) : |
|
85 | +if ( ! function_exists('lsx_breadcrumbs_woocommerce_seperator_filter')) : |
|
86 | 86 | |
87 | 87 | /** |
88 | 88 | * Replaces the seperator. |
@@ -90,16 +90,16 @@ discard block |
||
90 | 90 | * @package lsx |
91 | 91 | * @subpackage template-tags |
92 | 92 | */ |
93 | - function lsx_breadcrumbs_woocommerce_seperator_filter( $defaults ) { |
|
93 | + function lsx_breadcrumbs_woocommerce_seperator_filter($defaults) { |
|
94 | 94 | $defaults['delimiter'] = '<i class="fa fa-angle-right" aria-hidden="true"></i>'; |
95 | 95 | return $defaults; |
96 | 96 | } |
97 | 97 | |
98 | 98 | endif; |
99 | 99 | |
100 | -add_filter( 'woocommerce_breadcrumb_defaults', 'lsx_breadcrumbs_woocommerce_seperator_filter' ); |
|
100 | +add_filter('woocommerce_breadcrumb_defaults', 'lsx_breadcrumbs_woocommerce_seperator_filter'); |
|
101 | 101 | |
102 | -if ( ! function_exists( 'lsx_site_title' ) ) : |
|
102 | +if ( ! function_exists('lsx_site_title')) : |
|
103 | 103 | |
104 | 104 | /** |
105 | 105 | * Displays logo when applicable. |
@@ -110,15 +110,15 @@ discard block |
||
110 | 110 | function lsx_site_title() { |
111 | 111 | ?> |
112 | 112 | <div class="site-branding"> |
113 | - <h1 class="site-title"><a title="<?php bloginfo( 'name' ); ?>" href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> |
|
114 | - <p class="site-description"><?php bloginfo( 'description' ); ?></p> |
|
113 | + <h1 class="site-title"><a title="<?php bloginfo('name'); ?>" href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('name'); ?></a></h1> |
|
114 | + <p class="site-description"><?php bloginfo('description'); ?></p> |
|
115 | 115 | </div> |
116 | 116 | <?php |
117 | 117 | } |
118 | 118 | |
119 | 119 | endif; |
120 | 120 | |
121 | -if ( ! function_exists( 'lsx_post_meta_list_top' ) ) : |
|
121 | +if ( ! function_exists('lsx_post_meta_list_top')) : |
|
122 | 122 | |
123 | 123 | /** |
124 | 124 | * Add customisable post meta (post list - above title). |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | |
140 | 140 | endif; |
141 | 141 | |
142 | -if ( ! function_exists( 'lsx_post_meta_single_top' ) ) : |
|
142 | +if ( ! function_exists('lsx_post_meta_single_top')) : |
|
143 | 143 | |
144 | 144 | /** |
145 | 145 | * Add customisable post meta (single post - above title). |
@@ -158,11 +158,11 @@ discard block |
||
158 | 158 | |
159 | 159 | endif; |
160 | 160 | |
161 | -add_action( 'lsx_post_meta_top', 'lsx_post_meta_avatar' ); |
|
162 | -add_action( 'lsx_post_meta_top', 'lsx_post_meta_date' ); |
|
163 | -add_action( 'lsx_post_meta_top', 'lsx_post_meta_author' ); |
|
161 | +add_action('lsx_post_meta_top', 'lsx_post_meta_avatar'); |
|
162 | +add_action('lsx_post_meta_top', 'lsx_post_meta_date'); |
|
163 | +add_action('lsx_post_meta_top', 'lsx_post_meta_author'); |
|
164 | 164 | |
165 | -if ( ! function_exists( 'lsx_post_meta_single_bottom' ) ) : |
|
165 | +if ( ! function_exists('lsx_post_meta_single_bottom')) : |
|
166 | 166 | |
167 | 167 | /** |
168 | 168 | * Add customisable post meta (single post - below title). |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | |
182 | 182 | endif; |
183 | 183 | |
184 | -if ( ! function_exists( 'lsx_post_meta_avatar' ) ) : |
|
184 | +if ( ! function_exists('lsx_post_meta_avatar')) : |
|
185 | 185 | |
186 | 186 | /** |
187 | 187 | * Add customisable post meta: author's avatar. |
@@ -191,20 +191,20 @@ discard block |
||
191 | 191 | */ |
192 | 192 | function lsx_post_meta_avatar() { |
193 | 193 | $author = get_the_author(); |
194 | - $author_id = get_the_author_meta( 'ID' ); |
|
195 | - $author_avatar = get_avatar( $author_id, 80 ); |
|
196 | - $author_url = get_author_posts_url( $author_id ); |
|
194 | + $author_id = get_the_author_meta('ID'); |
|
195 | + $author_avatar = get_avatar($author_id, 80); |
|
196 | + $author_url = get_author_posts_url($author_id); |
|
197 | 197 | |
198 | 198 | printf( |
199 | 199 | '<a href="%1$s" class="post-meta-avatar">%2$s</a>', |
200 | - esc_url( $author_url ), |
|
201 | - wp_kses_post( $author_avatar ) |
|
200 | + esc_url($author_url), |
|
201 | + wp_kses_post($author_avatar) |
|
202 | 202 | ); |
203 | 203 | } |
204 | 204 | |
205 | 205 | endif; |
206 | 206 | |
207 | -if ( ! function_exists( 'lsx_post_meta_date' ) ) : |
|
207 | +if ( ! function_exists('lsx_post_meta_date')) : |
|
208 | 208 | |
209 | 209 | /** |
210 | 210 | * Add customisable post meta: post date. |
@@ -215,23 +215,23 @@ discard block |
||
215 | 215 | function lsx_post_meta_date() { |
216 | 216 | $time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>'; |
217 | 217 | |
218 | - $time_string = sprintf( $time_string, |
|
219 | - esc_attr( get_the_date( 'c' ) ), |
|
218 | + $time_string = sprintf($time_string, |
|
219 | + esc_attr(get_the_date('c')), |
|
220 | 220 | get_the_date(), |
221 | - esc_attr( get_the_modified_date( 'c' ) ), |
|
221 | + esc_attr(get_the_modified_date('c')), |
|
222 | 222 | get_the_modified_date() |
223 | 223 | ); |
224 | 224 | |
225 | 225 | printf( |
226 | 226 | '<span class="post-meta-time updated"><a href="%1$s" rel="bookmark">%2$s</a></span>', |
227 | - esc_url( get_permalink() ), |
|
228 | - wp_kses_post( $time_string ) |
|
227 | + esc_url(get_permalink()), |
|
228 | + wp_kses_post($time_string) |
|
229 | 229 | ); |
230 | 230 | } |
231 | 231 | |
232 | 232 | endif; |
233 | 233 | |
234 | -if ( ! function_exists( 'lsx_post_meta_author' ) ) : |
|
234 | +if ( ! function_exists('lsx_post_meta_author')) : |
|
235 | 235 | |
236 | 236 | /** |
237 | 237 | * Add customisable post meta: post author. |
@@ -241,27 +241,27 @@ discard block |
||
241 | 241 | */ |
242 | 242 | function lsx_post_meta_author() { |
243 | 243 | $author = get_the_author(); |
244 | - $author_url = get_author_posts_url( get_the_author_meta( 'ID' ) ); |
|
244 | + $author_url = get_author_posts_url(get_the_author_meta('ID')); |
|
245 | 245 | |
246 | - if ( empty( $author ) ) { |
|
246 | + if (empty($author)) { |
|
247 | 247 | global $post; |
248 | 248 | |
249 | - $author = get_user_by( 'ID', $post->post_author ); |
|
249 | + $author = get_user_by('ID', $post->post_author); |
|
250 | 250 | $author = $author->display_name; |
251 | - $author_url = get_author_posts_url( $post->post_author ); |
|
251 | + $author_url = get_author_posts_url($post->post_author); |
|
252 | 252 | } |
253 | 253 | |
254 | 254 | printf( |
255 | 255 | '<span class="vcard post-meta-author"><span>%1$s</span> <span class="fn"><a href="%2$s">%3$s</a></span></span>', |
256 | - esc_html__( 'by', 'lsx' ), |
|
257 | - esc_url( $author_url ), |
|
258 | - esc_html( $author ) |
|
256 | + esc_html__('by', 'lsx'), |
|
257 | + esc_url($author_url), |
|
258 | + esc_html($author) |
|
259 | 259 | ); |
260 | 260 | } |
261 | 261 | |
262 | 262 | endif; |
263 | 263 | |
264 | -if ( ! function_exists( 'lsx_post_meta_category' ) ) : |
|
264 | +if ( ! function_exists('lsx_post_meta_category')) : |
|
265 | 265 | |
266 | 266 | /** |
267 | 267 | * Add customisable post meta: post category(ies). |
@@ -270,25 +270,25 @@ discard block |
||
270 | 270 | * @subpackage template-tags |
271 | 271 | */ |
272 | 272 | function lsx_post_meta_category() { |
273 | - $post_categories = wp_get_post_categories( get_the_ID() ); |
|
273 | + $post_categories = wp_get_post_categories(get_the_ID()); |
|
274 | 274 | $cats = array(); |
275 | 275 | |
276 | - foreach ( $post_categories as $c ) { |
|
277 | - $cat = get_category( $c ); |
|
276 | + foreach ($post_categories as $c) { |
|
277 | + $cat = get_category($c); |
|
278 | 278 | /* Translators: %s: category name */ |
279 | - $cats[] = '<a href="' . esc_url( get_category_link( $cat->term_id ) ) . '" title="' . sprintf( esc_html__( 'View all posts in %s' , 'lsx' ), $cat->name ) . '">' . $cat->name . '</a>'; |
|
279 | + $cats[] = '<a href="' . esc_url(get_category_link($cat->term_id)) . '" title="' . sprintf(esc_html__('View all posts in %s', 'lsx'), $cat->name) . '">' . $cat->name . '</a>'; |
|
280 | 280 | } |
281 | 281 | |
282 | - if ( ! empty( $cats ) ) { |
|
282 | + if ( ! empty($cats)) { |
|
283 | 283 | ?> |
284 | - <span class="post-meta-categories"><span><?php esc_html_e( 'Posted in', 'lsx' ); ?></span> <?php echo wp_kses_post( implode( ', ', $cats ) ); ?></span> |
|
284 | + <span class="post-meta-categories"><span><?php esc_html_e('Posted in', 'lsx'); ?></span> <?php echo wp_kses_post(implode(', ', $cats)); ?></span> |
|
285 | 285 | <?php |
286 | 286 | } |
287 | 287 | } |
288 | 288 | |
289 | 289 | endif; |
290 | 290 | |
291 | -if ( ! function_exists( 'lsx_post_tags' ) ) : |
|
291 | +if ( ! function_exists('lsx_post_tags')) : |
|
292 | 292 | |
293 | 293 | /** |
294 | 294 | * Add customisable post meta: post tag(s). |
@@ -297,10 +297,10 @@ discard block |
||
297 | 297 | * @subpackage template-tags |
298 | 298 | */ |
299 | 299 | function lsx_post_tags() { |
300 | - if ( has_tag() ) : |
|
300 | + if (has_tag()) : |
|
301 | 301 | ?> |
302 | 302 | <div class="post-tags"> |
303 | - <?php echo wp_kses_post( get_the_tag_list( '' ) ); ?> |
|
303 | + <?php echo wp_kses_post(get_the_tag_list('')); ?> |
|
304 | 304 | </div> |
305 | 305 | <?php |
306 | 306 | endif; |
@@ -308,9 +308,9 @@ discard block |
||
308 | 308 | |
309 | 309 | endif; |
310 | 310 | |
311 | -add_action( 'lsx_content_post_tags', 'lsx_post_tags', 10 ); |
|
311 | +add_action('lsx_content_post_tags', 'lsx_post_tags', 10); |
|
312 | 312 | |
313 | -if ( ! function_exists( 'lsx_sharing_output' ) ) : |
|
313 | +if ( ! function_exists('lsx_sharing_output')) : |
|
314 | 314 | |
315 | 315 | /** |
316 | 316 | * Display sharing buttons. |
@@ -320,14 +320,14 @@ discard block |
||
320 | 320 | */ |
321 | 321 | function lsx_sharing_output() { |
322 | 322 | global $lsx_sharing; |
323 | - echo wp_kses_post( $lsx_sharing->sharing_buttons() ); |
|
323 | + echo wp_kses_post($lsx_sharing->sharing_buttons()); |
|
324 | 324 | } |
325 | 325 | |
326 | 326 | endif; |
327 | 327 | |
328 | -add_action( 'lsx_content_sharing', 'lsx_sharing_output', 20 ); |
|
328 | +add_action('lsx_content_sharing', 'lsx_sharing_output', 20); |
|
329 | 329 | |
330 | -if ( ! function_exists( 'lsx_translate_format_to_fontawesome' ) ) : |
|
330 | +if ( ! function_exists('lsx_translate_format_to_fontawesome')) : |
|
331 | 331 | |
332 | 332 | /** |
333 | 333 | * Translate post format to Font Awesome class. |
@@ -335,8 +335,8 @@ discard block |
||
335 | 335 | * @package lsx |
336 | 336 | * @subpackage template-tags |
337 | 337 | */ |
338 | - function lsx_translate_format_to_fontawesome( $format ) { |
|
339 | - switch ( $format ) { |
|
338 | + function lsx_translate_format_to_fontawesome($format) { |
|
339 | + switch ($format) { |
|
340 | 340 | case 'image': |
341 | 341 | $format = 'camera'; |
342 | 342 | break; |
@@ -368,7 +368,7 @@ discard block |
||
368 | 368 | |
369 | 369 | endif; |
370 | 370 | |
371 | -if ( ! function_exists( 'lsx_paging_nav' ) ) : |
|
371 | +if ( ! function_exists('lsx_paging_nav')) : |
|
372 | 372 | |
373 | 373 | /** |
374 | 374 | * Display navigation to next/previous set of posts when applicable. |
@@ -379,37 +379,37 @@ discard block |
||
379 | 379 | function lsx_paging_nav() { |
380 | 380 | global $wp_query; |
381 | 381 | |
382 | - if ( $wp_query->max_num_pages < 2 ) { |
|
382 | + if ($wp_query->max_num_pages < 2) { |
|
383 | 383 | return; |
384 | 384 | } |
385 | 385 | |
386 | - if ( true === apply_filters( 'lsx_paging_nav_disable', false ) ) { |
|
386 | + if (true === apply_filters('lsx_paging_nav_disable', false)) { |
|
387 | 387 | return true; |
388 | - } elseif ( current_theme_supports( 'infinite-scroll' ) && class_exists( 'The_Neverending_Home_Page' ) ) { |
|
388 | + } elseif (current_theme_supports('infinite-scroll') && class_exists('The_Neverending_Home_Page')) { |
|
389 | 389 | return true; |
390 | 390 | } else { |
391 | 391 | $html = ''; |
392 | 392 | $html .= '<div class="lsx-pagination-wrapper">' . PHP_EOL; |
393 | 393 | $html .= '<div class="lsx-breaker"></div>' . PHP_EOL; |
394 | 394 | $html .= '<div class="lsx-pagination">' . PHP_EOL; |
395 | - $html .= paginate_links( array( |
|
396 | - 'base' => str_replace( 999999999, '%#%', esc_url( get_pagenum_link( 999999999 ) ) ), |
|
395 | + $html .= paginate_links(array( |
|
396 | + 'base' => str_replace(999999999, '%#%', esc_url(get_pagenum_link(999999999))), |
|
397 | 397 | 'format' => '?paged=%#%', |
398 | 398 | 'total' => $wp_query->max_num_pages, |
399 | - 'current' => max( 1, intval( get_query_var( 'paged' ) ) ), |
|
400 | - 'prev_text' => '<span class="meta-nav">←</span> ' . esc_html__( 'Previous', 'lsx' ), |
|
401 | - 'next_text' => esc_html__( 'Next', 'lsx' ) . ' <span class="meta-nav">→</span>', |
|
402 | - ) ); |
|
399 | + 'current' => max(1, intval(get_query_var('paged'))), |
|
400 | + 'prev_text' => '<span class="meta-nav">←</span> ' . esc_html__('Previous', 'lsx'), |
|
401 | + 'next_text' => esc_html__('Next', 'lsx') . ' <span class="meta-nav">→</span>', |
|
402 | + )); |
|
403 | 403 | $html .= '</div>' . PHP_EOL; |
404 | 404 | $html .= '</div>' . PHP_EOL; |
405 | 405 | |
406 | - echo wp_kses_post( $html ); |
|
406 | + echo wp_kses_post($html); |
|
407 | 407 | } |
408 | 408 | } |
409 | 409 | |
410 | 410 | endif; |
411 | 411 | |
412 | -if ( ! function_exists( 'lsx_post_nav' ) ) : |
|
412 | +if ( ! function_exists('lsx_post_nav')) : |
|
413 | 413 | |
414 | 414 | /** |
415 | 415 | * Display navigation to next/previous post when applicable. |
@@ -418,24 +418,24 @@ discard block |
||
418 | 418 | * @subpackage template-tags |
419 | 419 | */ |
420 | 420 | function lsx_post_nav() { |
421 | - $previous = ( is_attachment() ) ? get_post( get_post()->post_parent ) : get_adjacent_post( false, '', true ); |
|
422 | - $next = get_adjacent_post( false, '', false ); |
|
421 | + $previous = (is_attachment()) ? get_post(get_post()->post_parent) : get_adjacent_post(false, '', true); |
|
422 | + $next = get_adjacent_post(false, '', false); |
|
423 | 423 | |
424 | - if ( ! $next && ! $previous ) { |
|
424 | + if ( ! $next && ! $previous) { |
|
425 | 425 | return; |
426 | 426 | } |
427 | 427 | |
428 | 428 | $default_size = 'sm'; |
429 | - $size = apply_filters( 'lsx_bootstrap_column_size', $default_size ); |
|
429 | + $size = apply_filters('lsx_bootstrap_column_size', $default_size); |
|
430 | 430 | ?> |
431 | 431 | <nav class="navigation post-navigation" role="navigation"> |
432 | 432 | <div class="lsx-breaker"></div> |
433 | 433 | <div class="nav-links pager row"> |
434 | - <div class="previous <?php echo 'col-' . esc_attr( $size ) . '-6'; ?>"> |
|
435 | - <?php previous_post_link( '%link', '<p class="nav-links-description">' . esc_html_x( 'Previous Post', 'Previous post link', 'lsx' ) . '</p><h3>%title</h3>' ); ?> |
|
434 | + <div class="previous <?php echo 'col-' . esc_attr($size) . '-6'; ?>"> |
|
435 | + <?php previous_post_link('%link', '<p class="nav-links-description">' . esc_html_x('Previous Post', 'Previous post link', 'lsx') . '</p><h3>%title</h3>'); ?> |
|
436 | 436 | </div> |
437 | - <div class="next <?php echo 'col-' . esc_attr( $size ) . '-6'; ?>"> |
|
438 | - <?php next_post_link( '%link', '<p class="nav-links-description">' . esc_html_x( 'Next Post', 'Next post link', 'lsx' ) . '</p><h3>%title</h3>' ); ?> |
|
437 | + <div class="next <?php echo 'col-' . esc_attr($size) . '-6'; ?>"> |
|
438 | + <?php next_post_link('%link', '<p class="nav-links-description">' . esc_html_x('Next Post', 'Next post link', 'lsx') . '</p><h3>%title</h3>'); ?> |
|
439 | 439 | </div> |
440 | 440 | </div><!-- .nav-links --> |
441 | 441 | </nav><!-- .navigation --> |
@@ -444,7 +444,7 @@ discard block |
||
444 | 444 | |
445 | 445 | endif; |
446 | 446 | |
447 | -if ( ! function_exists( 'lsx_site_identity' ) ) : |
|
447 | +if ( ! function_exists('lsx_site_identity')) : |
|
448 | 448 | |
449 | 449 | /** |
450 | 450 | * Outputs either the Site Title or the Site Logo. |
@@ -453,10 +453,10 @@ discard block |
||
453 | 453 | * @subpackage template-tags |
454 | 454 | */ |
455 | 455 | function lsx_site_identity() { |
456 | - if ( function_exists( 'has_custom_logo' ) && has_custom_logo() ) { |
|
456 | + if (function_exists('has_custom_logo') && has_custom_logo()) { |
|
457 | 457 | the_custom_logo(); |
458 | 458 | } else { |
459 | - if ( get_theme_mod( 'site_logo_header_text', 1 ) ) { |
|
459 | + if (get_theme_mod('site_logo_header_text', 1)) { |
|
460 | 460 | lsx_site_title(); |
461 | 461 | } |
462 | 462 | } |
@@ -464,7 +464,7 @@ discard block |
||
464 | 464 | |
465 | 465 | endif; |
466 | 466 | |
467 | -if ( ! function_exists( 'lsx_navbar_header' ) ) : |
|
467 | +if ( ! function_exists('lsx_navbar_header')) : |
|
468 | 468 | /** |
469 | 469 | * Outputs the Nav Menu. |
470 | 470 | * |
@@ -475,17 +475,17 @@ discard block |
||
475 | 475 | ?> |
476 | 476 | <div class="navbar-header" itemscope itemtype="http://schema.org/WebPage"> |
477 | 477 | <?php |
478 | - if ( has_nav_menu( 'primary' ) ) : |
|
478 | + if (has_nav_menu('primary')) : |
|
479 | 479 | ?> |
480 | 480 | <div class="wrapper-toggle" data-toggle="collapse" data-target=".primary-navbar"> |
481 | 481 | <button type="button" class="navbar-toggle"> |
482 | - <span class="sr-only"><?php esc_html_e( 'Toggle navigation', 'lsx' ); ?></span> |
|
482 | + <span class="sr-only"><?php esc_html_e('Toggle navigation', 'lsx'); ?></span> |
|
483 | 483 | <span class="icon-bar"></span> |
484 | 484 | <span class="icon-bar"></span> |
485 | 485 | <span class="icon-bar"></span> |
486 | 486 | <span class="icon-bar"></span> |
487 | 487 | </button> |
488 | - <span class="mobile-menu-title"><?php esc_html_e( 'Menu', 'lsx' ); ?></span> |
|
488 | + <span class="mobile-menu-title"><?php esc_html_e('Menu', 'lsx'); ?></span> |
|
489 | 489 | </div> |
490 | 490 | <?php |
491 | 491 | endif; |
@@ -498,9 +498,9 @@ discard block |
||
498 | 498 | |
499 | 499 | endif; |
500 | 500 | |
501 | -add_action( 'lsx_nav_before', 'lsx_navbar_header' ); |
|
501 | +add_action('lsx_nav_before', 'lsx_navbar_header'); |
|
502 | 502 | |
503 | -if ( ! function_exists( 'lsx_nav_menu' ) ) : |
|
503 | +if ( ! function_exists('lsx_nav_menu')) : |
|
504 | 504 | |
505 | 505 | /** |
506 | 506 | * Outputs the Nav Menu. |
@@ -509,17 +509,17 @@ discard block |
||
509 | 509 | * @subpackage template-tags |
510 | 510 | */ |
511 | 511 | function lsx_nav_menu() { |
512 | - if ( has_nav_menu( 'primary' ) ) : |
|
512 | + if (has_nav_menu('primary')) : |
|
513 | 513 | ?> |
514 | 514 | <nav class="primary-navbar collapse navbar-collapse"> |
515 | 515 | <?php |
516 | - wp_nav_menu( array( |
|
516 | + wp_nav_menu(array( |
|
517 | 517 | 'theme_location' => 'primary', |
518 | 518 | 'depth' => 3, |
519 | 519 | 'container' => false, |
520 | 520 | 'menu_class' => 'nav navbar-nav', |
521 | 521 | 'walker' => new LSX_Bootstrap_Navwalker(), |
522 | - ) ); |
|
522 | + )); |
|
523 | 523 | ?> |
524 | 524 | </nav> |
525 | 525 | <?php |
@@ -528,7 +528,7 @@ discard block |
||
528 | 528 | |
529 | 529 | endif; |
530 | 530 | |
531 | -if ( ! function_exists( 'lsx_sitemap_pages' ) ) : |
|
531 | +if ( ! function_exists('lsx_sitemap_pages')) : |
|
532 | 532 | |
533 | 533 | /** |
534 | 534 | * Outputs Pages for the Sitemap Template. |
@@ -544,15 +544,15 @@ discard block |
||
544 | 544 | 'post_type' => 'page', |
545 | 545 | ); |
546 | 546 | |
547 | - $pages = new WP_Query( $page_args ); |
|
547 | + $pages = new WP_Query($page_args); |
|
548 | 548 | |
549 | - if ( $pages->have_posts() ) { |
|
550 | - echo '<h2>' . esc_html__( 'Pages', 'lsx' ) . '</h2>'; |
|
549 | + if ($pages->have_posts()) { |
|
550 | + echo '<h2>' . esc_html__('Pages', 'lsx') . '</h2>'; |
|
551 | 551 | echo '<ul>'; |
552 | 552 | |
553 | - while ( $pages->have_posts() ) { |
|
553 | + while ($pages->have_posts()) { |
|
554 | 554 | $pages->the_post(); |
555 | - echo '<li class="page_item page-item-' . esc_attr( get_the_ID() ) . '"><a href="' . esc_url( get_permalink() ) . '" title="">' . get_the_title() . '</a></li>'; |
|
555 | + echo '<li class="page_item page-item-' . esc_attr(get_the_ID()) . '"><a href="' . esc_url(get_permalink()) . '" title="">' . get_the_title() . '</a></li>'; |
|
556 | 556 | } |
557 | 557 | |
558 | 558 | echo '</ul>'; |
@@ -562,7 +562,7 @@ discard block |
||
562 | 562 | |
563 | 563 | endif; |
564 | 564 | |
565 | -if ( ! function_exists( 'lsx_sitemap_custom_post_type' ) ) : |
|
565 | +if ( ! function_exists('lsx_sitemap_custom_post_type')) : |
|
566 | 566 | |
567 | 567 | /** |
568 | 568 | * Outputs a custom post type section. |
@@ -576,9 +576,9 @@ discard block |
||
576 | 576 | '_builtin' => false, |
577 | 577 | ); |
578 | 578 | |
579 | - $post_types = get_post_types( $args , 'names' ); |
|
579 | + $post_types = get_post_types($args, 'names'); |
|
580 | 580 | |
581 | - foreach ( $post_types as $post_type ) { |
|
581 | + foreach ($post_types as $post_type) { |
|
582 | 582 | $post_type_args = array( |
583 | 583 | 'post_type' => 'page', |
584 | 584 | 'posts_per_page' => 99, |
@@ -586,22 +586,22 @@ discard block |
||
586 | 586 | 'post_type' => $post_type, |
587 | 587 | ); |
588 | 588 | |
589 | - $post_type_items = new WP_Query( $post_type_args ); |
|
590 | - $post_type_object = get_post_type_object( $post_type ); |
|
589 | + $post_type_items = new WP_Query($post_type_args); |
|
590 | + $post_type_object = get_post_type_object($post_type); |
|
591 | 591 | |
592 | - if ( ! empty( $post_type_object ) ) { |
|
592 | + if ( ! empty($post_type_object)) { |
|
593 | 593 | $title = $post_type_object->labels->name; |
594 | 594 | } else { |
595 | - $title = ucwords( $post_type ); |
|
595 | + $title = ucwords($post_type); |
|
596 | 596 | } |
597 | 597 | |
598 | - if ( $post_type_items->have_posts() ) { |
|
599 | - echo '<h2>' . esc_html( $title ) . '</h2>'; |
|
598 | + if ($post_type_items->have_posts()) { |
|
599 | + echo '<h2>' . esc_html($title) . '</h2>'; |
|
600 | 600 | echo '<ul>'; |
601 | 601 | |
602 | - while ( $post_type_items->have_posts() ) { |
|
602 | + while ($post_type_items->have_posts()) { |
|
603 | 603 | $post_type_items->the_post(); |
604 | - echo '<li class="' . esc_attr( get_post_type() ) . '_item ' . esc_attr( get_post_type() ) . '-item-' . esc_attr( get_the_ID() ) . '"><a href="' . esc_url( get_permalink() ) . '" title="">' . get_the_title() . '</a></li>'; |
|
604 | + echo '<li class="' . esc_attr(get_post_type()) . '_item ' . esc_attr(get_post_type()) . '-item-' . esc_attr(get_the_ID()) . '"><a href="' . esc_url(get_permalink()) . '" title="">' . get_the_title() . '</a></li>'; |
|
605 | 605 | } |
606 | 606 | |
607 | 607 | echo '</ul>'; |
@@ -612,7 +612,7 @@ discard block |
||
612 | 612 | |
613 | 613 | endif; |
614 | 614 | |
615 | -if ( ! function_exists( 'lsx_sitemap_taxonomy_clouds' ) ) : |
|
615 | +if ( ! function_exists('lsx_sitemap_taxonomy_clouds')) : |
|
616 | 616 | |
617 | 617 | /** |
618 | 618 | * Outputs the public taxonomies. |
@@ -626,18 +626,18 @@ discard block |
||
626 | 626 | '_builtin' => false, |
627 | 627 | ); |
628 | 628 | |
629 | - $taxonomies = get_taxonomies( $taxonomy_args ); |
|
629 | + $taxonomies = get_taxonomies($taxonomy_args); |
|
630 | 630 | |
631 | - if ( ! empty( $taxonomies ) ) { |
|
632 | - foreach ( $taxonomies as $taxonomy_id => $taxonomy ) { |
|
633 | - $tag_cloud = wp_tag_cloud( array( |
|
631 | + if ( ! empty($taxonomies)) { |
|
632 | + foreach ($taxonomies as $taxonomy_id => $taxonomy) { |
|
633 | + $tag_cloud = wp_tag_cloud(array( |
|
634 | 634 | 'taxonomy' => $taxonomy_id, |
635 | 635 | 'echo' => false, |
636 | - ) ); |
|
636 | + )); |
|
637 | 637 | |
638 | - if ( ! empty( $tag_cloud ) ) { |
|
639 | - echo '<h2>' . esc_html( $taxonomy ) . '</h2>'; |
|
640 | - echo '<aside id="' . esc_attr( $taxonomy_id ) . '" class="widget widget_' . esc_attr( $taxonomy_id ) . '">' . esc_html( $tag_cloud ) . '</aside>'; |
|
638 | + if ( ! empty($tag_cloud)) { |
|
639 | + echo '<h2>' . esc_html($taxonomy) . '</h2>'; |
|
640 | + echo '<aside id="' . esc_attr($taxonomy_id) . '" class="widget widget_' . esc_attr($taxonomy_id) . '">' . esc_html($tag_cloud) . '</aside>'; |
|
641 | 641 | } |
642 | 642 | } |
643 | 643 | } |
@@ -645,7 +645,7 @@ discard block |
||
645 | 645 | |
646 | 646 | endif; |
647 | 647 | |
648 | -if ( ! function_exists( 'lsx_add_top_menu' ) ) : |
|
648 | +if ( ! function_exists('lsx_add_top_menu')) : |
|
649 | 649 | |
650 | 650 | /** |
651 | 651 | * Adds our top menu to the theme. |
@@ -654,28 +654,28 @@ discard block |
||
654 | 654 | * @subpackage template-tags |
655 | 655 | */ |
656 | 656 | function lsx_add_top_menu() { |
657 | - if ( has_nav_menu( 'top-menu' ) || has_nav_menu( 'top-menu-left' ) ) : |
|
657 | + if (has_nav_menu('top-menu') || has_nav_menu('top-menu-left')) : |
|
658 | 658 | ?> |
659 | 659 | <div id="top-menu" class="<?php lsx_top_menu_classes(); ?>"> |
660 | 660 | <div class="container"> |
661 | - <?php if ( has_nav_menu( 'top-menu' ) ) : ?> |
|
661 | + <?php if (has_nav_menu('top-menu')) : ?> |
|
662 | 662 | <nav class="top-menu"> |
663 | 663 | <?php |
664 | - wp_nav_menu( array( |
|
664 | + wp_nav_menu(array( |
|
665 | 665 | 'theme_location' => 'top-menu', |
666 | 666 | 'walker' => new LSX_Bootstrap_Navwalker(), |
667 | - ) ); |
|
667 | + )); |
|
668 | 668 | ?> |
669 | 669 | </nav> |
670 | 670 | <?php endif; ?> |
671 | 671 | |
672 | - <?php if ( has_nav_menu( 'top-menu-left' ) ) : ?> |
|
672 | + <?php if (has_nav_menu('top-menu-left')) : ?> |
|
673 | 673 | <nav class="top-menu pull-left"> |
674 | 674 | <?php |
675 | - wp_nav_menu( array( |
|
675 | + wp_nav_menu(array( |
|
676 | 676 | 'theme_location' => 'top-menu-left', |
677 | 677 | 'walker' => new LSX_Bootstrap_Navwalker(), |
678 | - ) ); |
|
678 | + )); |
|
679 | 679 | ?> |
680 | 680 | </nav> |
681 | 681 | <?php endif; ?> |
@@ -687,9 +687,9 @@ discard block |
||
687 | 687 | |
688 | 688 | endif; |
689 | 689 | |
690 | -add_action( 'lsx_header_before', 'lsx_add_top_menu' ); |
|
690 | +add_action('lsx_header_before', 'lsx_add_top_menu'); |
|
691 | 691 | |
692 | -if ( ! function_exists( 'lsx_get_my_url' ) ) : |
|
692 | +if ( ! function_exists('lsx_get_my_url')) : |
|
693 | 693 | |
694 | 694 | /** |
695 | 695 | * Return URL from a link in the content. |
@@ -698,11 +698,11 @@ discard block |
||
698 | 698 | * @subpackage template-tags |
699 | 699 | */ |
700 | 700 | function lsx_get_my_url() { |
701 | - if ( ! preg_match( '/<a\s[^>]*?href=[\'"](.+?)[\'"]/is', get_the_content(), $matches ) ) { |
|
701 | + if ( ! preg_match('/<a\s[^>]*?href=[\'"](.+?)[\'"]/is', get_the_content(), $matches)) { |
|
702 | 702 | return false; |
703 | 703 | } |
704 | 704 | |
705 | - return esc_url_raw( $matches[1] ); |
|
705 | + return esc_url_raw($matches[1]); |
|
706 | 706 | } |
707 | 707 | |
708 | 708 | endif; |