@@ -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 | * get_font_family_name_array Function |
35 | 35 | * this function returns an array containing all of the font family names |
36 | - **/ |
|
36 | + **/ |
|
37 | 37 | function get_font_family_name_array() |
38 | 38 | { |
39 | 39 | $result; |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | /** |
48 | 48 | * get_title |
49 | 49 | * this function returns the font title |
50 | - **/ |
|
50 | + **/ |
|
51 | 51 | function get_title($key) |
52 | 52 | { |
53 | 53 | return $this->fonts[$key]->__get("title"); |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | /** |
57 | 57 | * get_location |
58 | 58 | * this function returns the font location |
59 | - **/ |
|
59 | + **/ |
|
60 | 60 | function get_location($key) |
61 | 61 | { |
62 | 62 | return $this->fonts[$key]->__get("location"); |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | /** |
66 | 66 | * get_css_declaration |
67 | 67 | * this function returns the font css declaration |
68 | - **/ |
|
68 | + **/ |
|
69 | 69 | function get_css_declaration($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 get_css_class_array() |
82 | 82 | { |
83 | 83 | $result; |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | /** |
92 | 92 | * get_total_number_of_fonts |
93 | 93 | * this function returns the total number of fonts |
94 | - **/ |
|
94 | + **/ |
|
95 | 95 | function get_total_number_of_fonts() |
96 | 96 | { |
97 | 97 | return count($this->fonts); |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | /** |
101 | 101 | * print_theme_customizer_css_locations |
102 | 102 | * this function prints the links to the css files for the theme customizer |
103 | - **/ |
|
103 | + **/ |
|
104 | 104 | function print_theme_customizer_css_locations() |
105 | 105 | { |
106 | 106 | foreach ($this->fonts as $key => $value) |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | /** |
117 | 117 | * print_theme_customizer_css_classes |
118 | 118 | * this function prints the theme customizer css classes necessary to display all of the fonts |
119 | - **/ |
|
119 | + **/ |
|
120 | 120 | function print_theme_customizer_css_classes() |
121 | 121 | { |
122 | 122 | ?> |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | |
13 | 13 | /** |
14 | 14 | * Constructor |
15 | - **/ |
|
15 | + **/ |
|
16 | 16 | public function __construct($title, $location, $css_declaration, $css_class) |
17 | 17 | { |
18 | 18 | $this->title = $title; |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | /** |
25 | 25 | * Getters |
26 | 26 | * taken from: http://stackoverflow.com/questions/4478661/getter-and-setter |
27 | - **/ |
|
27 | + **/ |
|
28 | 28 | public function __get($property) |
29 | 29 | { |
30 | 30 | if (property_exists($this, $property)) { |
@@ -123,11 +123,11 @@ discard block |
||
123 | 123 | * @category portfolio |
124 | 124 | */ |
125 | 125 | function lsx_remove_single_related_posts() { |
126 | - if ( is_single() && class_exists( 'Jetpack_RelatedPosts' ) ) { |
|
127 | - $jprp = Jetpack_RelatedPosts::init(); |
|
128 | - $callback = array( $jprp, 'filter_add_target_to_dom' ); |
|
129 | - remove_filter( 'the_content', $callback, 40 ); |
|
130 | - } |
|
126 | + if ( is_single() && class_exists( 'Jetpack_RelatedPosts' ) ) { |
|
127 | + $jprp = Jetpack_RelatedPosts::init(); |
|
128 | + $callback = array( $jprp, 'filter_add_target_to_dom' ); |
|
129 | + remove_filter( 'the_content', $callback, 40 ); |
|
130 | + } |
|
131 | 131 | } |
132 | 132 | add_filter( 'wp', 'lsx_remove_single_related_posts', 20 ); |
133 | 133 | |
@@ -315,7 +315,7 @@ discard block |
||
315 | 315 | if(is_array($types)){ |
316 | 316 | foreach ($types as $type) { |
317 | 317 | $content = '<li><a href="#" data-filter=".'.$type->slug.'">'; |
318 | - $content .= $type->name; |
|
318 | + $content .= $type->name; |
|
319 | 319 | $content .= '</a></li>'; |
320 | 320 | echo wp_kses_post( $content ); |
321 | 321 | echo "\n"; |
@@ -60,12 +60,12 @@ |
||
60 | 60 | <strong><?php esc_html_e( 'Get your Tourism Establishment Online', 'lsx' ); ?></strong> |
61 | 61 | |
62 | 62 | <?php |
63 | - if(is_singular('landing-page')){ |
|
64 | - $email_address = get_post_meta(get_the_ID(),'email_address',true); |
|
65 | - if(false === $email_address){ |
|
63 | + if(is_singular('landing-page')){ |
|
64 | + $email_address = get_post_meta(get_the_ID(),'email_address',true); |
|
65 | + if(false === $email_address){ |
|
66 | 66 | $email_address = '[email protected]'; |
67 | 67 | } |
68 | - } ?> |
|
68 | + } ?> |
|
69 | 69 | |
70 | 70 | <span class="email-address"><?php esc_html_e( 'Questions? Email Us: ', 'lsx' ); ?><a href="mailto:<?php echo esc_attr( $email_address ); ?>"><?php echo esc_html( $email_address ); ?></a></span> |
71 | 71 | </div> |
@@ -45,15 +45,15 @@ |
||
45 | 45 | add_action( 'widgets_init', 'lsx_widget_area_init' ); |
46 | 46 | |
47 | 47 | function lsx_sidebar_footer_params( $params ) { |
48 | - $sidebar_id = $params[0]['id']; |
|
48 | + $sidebar_id = $params[0]['id']; |
|
49 | 49 | |
50 | - if ( 'sidebar-footer' == $sidebar_id ) { |
|
51 | - $total_widgets = wp_get_sidebars_widgets(); |
|
52 | - $sidebar_widgets = count($total_widgets[$sidebar_id]); |
|
50 | + if ( 'sidebar-footer' == $sidebar_id ) { |
|
51 | + $total_widgets = wp_get_sidebars_widgets(); |
|
52 | + $sidebar_widgets = count($total_widgets[$sidebar_id]); |
|
53 | 53 | |
54 | - $params[0]['before_widget'] = str_replace('class="styler', 'class="col-md-' . floor(12 / $sidebar_widgets), $params[0]['before_widget']); |
|
55 | - } |
|
54 | + $params[0]['before_widget'] = str_replace('class="styler', 'class="col-md-' . floor(12 / $sidebar_widgets), $params[0]['before_widget']); |
|
55 | + } |
|
56 | 56 | |
57 | - return $params; |
|
57 | + return $params; |
|
58 | 58 | } |
59 | 59 | add_filter( 'dynamic_sidebar_params', 'lsx_sidebar_footer_params' ); |
60 | 60 | \ No newline at end of file |