@@ -14,6 +14,6 @@ |
||
14 | 14 | */ |
15 | 15 | |
16 | 16 | function lsx_wp_job_manager_styles() { |
17 | - wp_enqueue_style( 'wp_job_manager', get_template_directory_uri() . '/css/wp-job-manager.css' ); |
|
17 | + wp_enqueue_style( 'wp_job_manager', get_template_directory_uri() . '/css/wp-job-manager.css' ); |
|
18 | 18 | } |
19 | 19 | add_action( 'wp_enqueue_scripts', 'lsx_wp_job_manager_styles' ); |
20 | 20 | \ No newline at end of file |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | |
13 | 13 | /** |
14 | 14 | * Constructor |
15 | - **/ |
|
15 | + **/ |
|
16 | 16 | public function __construct($fonts) |
17 | 17 | { |
18 | 18 | if(empty($fonts)) |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | /** |
34 | 34 | * getFontFamilyNameArray Function |
35 | 35 | * this function returns an array containing all of the font family names |
36 | - **/ |
|
36 | + **/ |
|
37 | 37 | function getFontFamilyNameArray() |
38 | 38 | { |
39 | 39 | $result; |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | /** |
48 | 48 | * getTitle |
49 | 49 | * this function returns the font title |
50 | - **/ |
|
50 | + **/ |
|
51 | 51 | function getTitle($key) |
52 | 52 | { |
53 | 53 | return $this->fonts[$key]->__get("title"); |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | /** |
57 | 57 | * getLocation |
58 | 58 | * this function returns the font location |
59 | - **/ |
|
59 | + **/ |
|
60 | 60 | function getLocation($key) |
61 | 61 | { |
62 | 62 | return $this->fonts[$key]->__get("location"); |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | /** |
66 | 66 | * getCssDeclaration |
67 | 67 | * this function returns the font css declaration |
68 | - **/ |
|
68 | + **/ |
|
69 | 69 | function getCssDeclaration($key) |
70 | 70 | { |
71 | 71 | return $this->fonts[$key]->__get("cssDeclaration"); |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | * this function returns an array of css classes |
78 | 78 | * this function is used when displaying the fancy list of fonts in the theme customizer |
79 | 79 | * this function is used to send a JS file an array for the postMessage transport option in the theme customizer |
80 | - **/ |
|
80 | + **/ |
|
81 | 81 | function getCssClassArray() |
82 | 82 | { |
83 | 83 | $result; |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | /** |
92 | 92 | * getTotalNumberOfFonts |
93 | 93 | * this function returns the total number of fonts |
94 | - **/ |
|
94 | + **/ |
|
95 | 95 | function getTotalNumberOfFonts() |
96 | 96 | { |
97 | 97 | return count($this->fonts); |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | /** |
101 | 101 | * printThemeCustomizerCssLocations |
102 | 102 | * this function prints the links to the css files for the theme customizer |
103 | - **/ |
|
103 | + **/ |
|
104 | 104 | function printThemeCustomizerCssLocations() |
105 | 105 | { |
106 | 106 | foreach ($this->fonts as $key => $value) |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | /** |
117 | 117 | * printThemeCustomizerCssClasses |
118 | 118 | * this function prints the theme customizer css classes necessary to display all of the fonts |
119 | - **/ |
|
119 | + **/ |
|
120 | 120 | function printThemeCustomizerCssClasses() |
121 | 121 | { |
122 | 122 | ?> |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | |
15 | 15 | // Add post/page slug |
16 | 16 | if (is_single() || is_page() && !is_front_page()) { |
17 | - $classes[] = basename(get_permalink()); |
|
17 | + $classes[] = basename(get_permalink()); |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | if(!class_exists('Lsx_Banners')){ |
@@ -38,8 +38,8 @@ discard block |
||
38 | 38 | // Remove unnecessary classes |
39 | 39 | $home_id_class = 'page-id-' . get_option('page_on_front'); |
40 | 40 | $remove_classes = array( |
41 | - 'page-template-default', |
|
42 | - $home_id_class |
|
41 | + 'page-template-default', |
|
42 | + $home_id_class |
|
43 | 43 | ); |
44 | 44 | $classes = array_diff($classes, $remove_classes); |
45 | 45 | |
@@ -278,12 +278,12 @@ discard block |
||
278 | 278 | || (is_singular('jetpack-portfolio')) ) { ?> |
279 | 279 | |
280 | 280 | <?php |
281 | - $bg_image = ''; |
|
282 | - if(has_post_thumbnail()){ |
|
283 | - $bg_image = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()),'full'); |
|
284 | - $bg_image = $bg_image[0]; |
|
285 | - } |
|
286 | - ?> |
|
281 | + $bg_image = ''; |
|
282 | + if(has_post_thumbnail()){ |
|
283 | + $bg_image = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()),'full'); |
|
284 | + $bg_image = $bg_image[0]; |
|
285 | + } |
|
286 | + ?> |
|
287 | 287 | |
288 | 288 | <?php if ( ! empty( $bg_image ) ) : ?> |
289 | 289 | |
@@ -316,8 +316,8 @@ discard block |
||
316 | 316 | * @category mobile |
317 | 317 | */ |
318 | 318 | function lsx_allow_sms_protocol( $protocols ) { |
319 | - $protocols[] = 'sms'; |
|
320 | - return $protocols; |
|
319 | + $protocols[] = 'sms'; |
|
320 | + return $protocols; |
|
321 | 321 | } |
322 | 322 | add_filter( 'kses_allowed_protocols', 'lsx_allow_sms_protocol' ); |
323 | 323 | |
@@ -326,27 +326,27 @@ discard block |
||
326 | 326 | * Adding browser and user-agent classes to body |
327 | 327 | */ |
328 | 328 | function mv_browser_body_class($classes) { |
329 | - global $is_lynx, $is_gecko, $is_IE, $is_opera, $is_NS4, $is_safari, $is_chrome, $is_iphone; |
|
330 | - if($is_lynx) $classes[] = 'lynx'; |
|
331 | - elseif($is_gecko) $classes[] = 'gecko'; |
|
332 | - elseif($is_opera) $classes[] = 'opera'; |
|
333 | - elseif($is_NS4) $classes[] = 'ns4'; |
|
334 | - elseif($is_safari) $classes[] = 'safari'; |
|
335 | - elseif($is_chrome) $classes[] = 'chrome'; |
|
336 | - elseif($is_IE) { |
|
337 | - $classes[] = 'ie'; |
|
338 | - if(preg_match('/MSIE ([0-9]+)([a-zA-Z0-9.]+)/', $_SERVER['HTTP_USER_AGENT'], $browser_version)) |
|
339 | - $classes[] = 'ie'.$browser_version[1]; |
|
340 | - } else $classes[] = 'unknown'; |
|
341 | - if($is_iphone) $classes[] = 'iphone'; |
|
342 | - if ( stristr( $_SERVER['HTTP_USER_AGENT'],"mac") ) { |
|
343 | - $classes[] = 'osx'; |
|
344 | - } elseif ( stristr( $_SERVER['HTTP_USER_AGENT'],"linux") ) { |
|
345 | - $classes[] = 'linux'; |
|
346 | - } elseif ( stristr( $_SERVER['HTTP_USER_AGENT'],"windows") ) { |
|
347 | - $classes[] = 'windows'; |
|
348 | - } |
|
349 | - return $classes; |
|
329 | + global $is_lynx, $is_gecko, $is_IE, $is_opera, $is_NS4, $is_safari, $is_chrome, $is_iphone; |
|
330 | + if($is_lynx) $classes[] = 'lynx'; |
|
331 | + elseif($is_gecko) $classes[] = 'gecko'; |
|
332 | + elseif($is_opera) $classes[] = 'opera'; |
|
333 | + elseif($is_NS4) $classes[] = 'ns4'; |
|
334 | + elseif($is_safari) $classes[] = 'safari'; |
|
335 | + elseif($is_chrome) $classes[] = 'chrome'; |
|
336 | + elseif($is_IE) { |
|
337 | + $classes[] = 'ie'; |
|
338 | + if(preg_match('/MSIE ([0-9]+)([a-zA-Z0-9.]+)/', $_SERVER['HTTP_USER_AGENT'], $browser_version)) |
|
339 | + $classes[] = 'ie'.$browser_version[1]; |
|
340 | + } else $classes[] = 'unknown'; |
|
341 | + if($is_iphone) $classes[] = 'iphone'; |
|
342 | + if ( stristr( $_SERVER['HTTP_USER_AGENT'],"mac") ) { |
|
343 | + $classes[] = 'osx'; |
|
344 | + } elseif ( stristr( $_SERVER['HTTP_USER_AGENT'],"linux") ) { |
|
345 | + $classes[] = 'linux'; |
|
346 | + } elseif ( stristr( $_SERVER['HTTP_USER_AGENT'],"windows") ) { |
|
347 | + $classes[] = 'windows'; |
|
348 | + } |
|
349 | + return $classes; |
|
350 | 350 | } |
351 | 351 | add_filter('body_class','mv_browser_body_class'); |
352 | 352 |
@@ -15,9 +15,9 @@ discard block |
||
15 | 15 | */ |
16 | 16 | |
17 | 17 | function lsx_amp_init() { |
18 | - add_post_type_support( 'jetpack-portfolio', AMP_QUERY_VAR ); |
|
19 | - add_post_type_support( 'pages', AMP_QUERY_VAR ); |
|
20 | - add_post_type_support( 'product', AMP_QUERY_VAR ); |
|
18 | + add_post_type_support( 'jetpack-portfolio', AMP_QUERY_VAR ); |
|
19 | + add_post_type_support( 'pages', AMP_QUERY_VAR ); |
|
20 | + add_post_type_support( 'product', AMP_QUERY_VAR ); |
|
21 | 21 | } |
22 | 22 | add_action( 'amp_init', 'lsx_amp_init' ); |
23 | 23 | |
@@ -30,10 +30,10 @@ discard block |
||
30 | 30 | * @category template |
31 | 31 | */ |
32 | 32 | function lxs_amp_custom_template( $file, $type, $post ) { |
33 | - if ( 'single' === $type) { |
|
34 | - $file = get_template_directory() . '/mobile-templates/single-'.$post->post_type.'.php'; |
|
35 | - } |
|
36 | - return $file; |
|
33 | + if ( 'single' === $type) { |
|
34 | + $file = get_template_directory() . '/mobile-templates/single-'.$post->post_type.'.php'; |
|
35 | + } |
|
36 | + return $file; |
|
37 | 37 | } |
38 | 38 | add_filter( 'amp_post_template_file', 'lxs_amp_custom_template', 10, 3 ); |
39 | 39 |
@@ -69,6 +69,6 @@ |
||
69 | 69 | add_filter( 'woocommerce_enqueue_styles', '__return_empty_array' ); |
70 | 70 | |
71 | 71 | function lsx_woocommerce_styles() { |
72 | - wp_enqueue_style( 'woocommerce', get_template_directory_uri() . '/css/woocommerce.css' ); |
|
72 | + wp_enqueue_style( 'woocommerce', get_template_directory_uri() . '/css/woocommerce.css' ); |
|
73 | 73 | } |
74 | 74 | add_action( 'wp_enqueue_scripts', 'lsx_woocommerce_styles' ); |
75 | 75 | \ No newline at end of file |
@@ -18,7 +18,7 @@ |
||
18 | 18 | */ |
19 | 19 | |
20 | 20 | function lsx_events_styles() { |
21 | - wp_enqueue_style( 'events', get_template_directory_uri() . '/css/the-events-calendar.css' ); |
|
21 | + wp_enqueue_style( 'events', get_template_directory_uri() . '/css/the-events-calendar.css' ); |
|
22 | 22 | } |
23 | 23 | add_action( 'wp_enqueue_scripts', 'lsx_events_styles' ); |
24 | 24 |