@@ -90,7 +90,7 @@ function multiloquent_register()
90
90
$ this ->multiloquent_menu ();
91
91
set_post_thumbnail_size (605 , 100 );
92
92
add_image_size ('featured-post-thumbnail ' , 605 , 100 );
93
- if (! isset ($ content_width )) {
93
+ if ( ! isset ($ content_width )) {
94
94
$ content_width = 900 ;
95
95
}
96
96
// sidebars
@@ -256,7 +256,7 @@ function multiloquent_register_and_generate_custom_control($setting_type, $setti
256
256
*/
257
257
function multiloquent_check_theme_mod_colour ($ item , $ default_value , $ mods )
258
258
{
259
- if ((! empty ($ mods ['bootswatch ' ]) && $ mods ['bootswatch ' ] != 'default ' && ! empty ($ mods [$ item ])) || (! empty ($ mods [$ item ]) && $ mods [$ item ] != $ default_value )) {
259
+ if (( ! empty ($ mods ['bootswatch ' ]) && $ mods ['bootswatch ' ] != 'default ' && ! empty ($ mods [$ item ])) || ( ! empty ($ mods [$ item ]) && $ mods [$ item ] != $ default_value )) {
260
260
return true ;
261
261
} else {
262
262
return false ;
@@ -320,7 +320,7 @@ function multiloquent_customize_css()
320
320
$ output .= '} ' . "\r\n" ;
321
321
}
322
322
// if there is any output, render it
323
- if (! empty ($ output )) {
323
+ if ( ! empty ($ output )) {
324
324
echo '<style type="text/css"> ' . $ output . '</style> ' ;
325
325
}
326
326
}
@@ -359,7 +359,7 @@ function multiloquent_stylesheet_method()
359
359
{
360
360
// todo - make is use the default one if none are set
361
361
$ mods = get_theme_mods ();
362
- if (! empty ($ mods ['bootswatch ' ]) && $ mods ['bootswatch ' ] != 'default ' ) {
362
+ if ( ! empty ($ mods ['bootswatch ' ]) && $ mods ['bootswatch ' ] != 'default ' ) {
363
363
wp_enqueue_style ('bootstrap ' , get_template_directory_uri () . '/bootstrap/css/ ' . esc_attr (get_theme_mod ('bootswatch ' )) . '/bootstrap.min.css ' );
364
364
wp_enqueue_style ('style ' , get_stylesheet_uri ());
365
365
} else {
@@ -464,7 +464,7 @@ function multiloquent_widget_tag_cloud_args($args)
464
464
*/
465
465
function multiloquent_post_title ($ post_id = '' )
466
466
{
467
- if (! empty ($ post_id )) {
467
+ if ( ! empty ($ post_id )) {
468
468
$ the_title = get_the_title ($ post_id );
469
469
} else {
470
470
$ the_title = get_the_title ();
@@ -500,7 +500,7 @@ function multiloquent_breadcrumbs()
500
500
global $ post ;
501
501
$ return = '' ;
502
502
// $image_url = get_template_directory_uri() ;
503
- if (! is_home ()) {
503
+ if ( ! is_home ()) {
504
504
$ return .= '<li><a href=" ' ;
505
505
$ return .= home_url ();
506
506
$ return .= '"> ' ;
@@ -585,7 +585,7 @@ function multiloquent_render_pagingation()
585
585
function multiloquent_get_random_solid_class ($ class = '' )
586
586
{
587
587
$ mods = get_theme_mods ();
588
- if (! empty ($ mods ['bootswatch ' ]) && $ mods ['bootswatch ' ] != 'default ' ) {
588
+ if ( ! empty ($ mods ['bootswatch ' ]) && $ mods ['bootswatch ' ] != 'default ' ) {
589
589
// if it uses one of the bootswatch themes, use the bootstrap colours
590
590
$ input = array (
591
591
'label-primary ' ,
@@ -631,7 +631,7 @@ function multiloquent_get_random_solid_class($class = '')
631
631
'safari ' ,
632
632
'firefox '
633
633
);
634
- if (! empty ($ class ) && in_array ($ class , $ apps )) {
634
+ if ( ! empty ($ class ) && in_array ($ class , $ apps )) {
635
635
return $ tile_colour = $ class ;
636
636
} else {
637
637
$ rand_keys = array_rand ($ input );
@@ -649,7 +649,7 @@ function multiloquent_get_random_solid_class($class = '')
649
649
function multiloquent_get_random_blue_class ()
650
650
{
651
651
$ mods = get_theme_mods ();
652
- if (! empty ($ mods ['bootswatch ' ]) && $ mods ['bootswatch ' ] != 'default ' ) {
652
+ if ( ! empty ($ mods ['bootswatch ' ]) && $ mods ['bootswatch ' ] != 'default ' ) {
653
653
// if it uses one of the bootswatch themes, use the bootstrap colours
654
654
$ input = array (
655
655
'label-primary ' ,
@@ -693,7 +693,7 @@ function multiloquent_get_random_blue_class()
693
693
'safari ' ,
694
694
'firefox '
695
695
);
696
- if (! empty ($ class ) && in_array ($ class , $ apps )) {
696
+ if ( ! empty ($ class ) && in_array ($ class , $ apps )) {
697
697
return $ tile_colour = $ class ;
698
698
} else {
699
699
$ rand_keys = array_rand ($ input );
@@ -712,7 +712,7 @@ function multiloquent_get_random_blue_class()
712
712
function multiloquent_get_random_colour_class ($ class = '' )
713
713
{
714
714
$ mods = get_theme_mods ();
715
- if (! empty ($ mods ['bootswatch ' ]) && $ mods ['bootswatch ' ] != 'default ' ) {
715
+ if ( ! empty ($ mods ['bootswatch ' ]) && $ mods ['bootswatch ' ] != 'default ' ) {
716
716
// if it uses one of the bootswatch themes, use the bootstrap colours
717
717
$ input = array (
718
718
'label-primary ' ,
@@ -758,7 +758,7 @@ function multiloquent_get_random_colour_class($class = '')
758
758
'safari ' ,
759
759
'firefox '
760
760
);
761
- if (! empty ($ class ) && in_array ($ class , $ apps )) {
761
+ if ( ! empty ($ class ) && in_array ($ class , $ apps )) {
762
762
return $ tile_colour = $ class ;
763
763
} else {
764
764
$ rand_keys = array_rand ($ input );
@@ -1028,7 +1028,7 @@ function multiloquent_render_the_archive($colour)
1028
1028
$ id = get_the_ID ();
1029
1029
$ slider_image = array ();
1030
1030
$ slider_image = wp_get_attachment_image_src (get_post_thumbnail_id ($ id ), 'single-post-thumbnail ' );
1031
- if (! empty ($ slider_image )) {
1031
+ if ( ! empty ($ slider_image )) {
1032
1032
$ theimg = $ slider_image [0 ];
1033
1033
// $width = $slider_image[1];
1034
1034
// $height = $slider_image[2];
@@ -1071,7 +1071,7 @@ function multiloquent_render_tags($val, $force_tags = 0)
1071
1071
$ output = '' ;
1072
1072
// check if they have selected tags or excerpt
1073
1073
$ mods = get_theme_mods ();
1074
- if (! empty ($ mods ['paralax_featured ' ]) && $ mods ['paralax_featured ' ] == 'excerpt ' && empty ($ force_tags )) {
1074
+ if ( ! empty ($ mods ['paralax_featured ' ]) && $ mods ['paralax_featured ' ] == 'excerpt ' && empty ($ force_tags )) {
1075
1075
// they have selected 'excerpt'
1076
1076
$ excerpt = '' ;
1077
1077
// $excerpt = apply_filters( 'get_the_excerpt', $val->post_excerpt );
@@ -1080,7 +1080,7 @@ function multiloquent_render_tags($val, $force_tags = 0)
1080
1080
$ excerpt = wp_trim_words ($ val ->post_content );
1081
1081
}
1082
1082
$ output .= $ excerpt ;
1083
- } elseif (! empty ($ mods ['paralax_featured ' ]) && $ mods ['paralax_featured ' ] == 'empty ' && empty ($ force_tags )) {
1083
+ } elseif ( ! empty ($ mods ['paralax_featured ' ]) && $ mods ['paralax_featured ' ] == 'empty ' && empty ($ force_tags )) {
1084
1084
// dont output anything, leave the tags thing empty
1085
1085
} else {
1086
1086
$ posttags = wp_get_post_tags ($ val ->ID );
0 commit comments