Skip to content

Commit 092488c

Browse files
committed
Space before ! in conditional statement
1 parent 2d61624 commit 092488c

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

multiloquent-base.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function multiloquent_register()
9090
$this->multiloquent_menu();
9191
set_post_thumbnail_size(605, 100);
9292
add_image_size('featured-post-thumbnail', 605, 100);
93-
if (! isset($content_width)) {
93+
if ( ! isset($content_width)) {
9494
$content_width = 900;
9595
}
9696
// sidebars
@@ -256,7 +256,7 @@ function multiloquent_register_and_generate_custom_control($setting_type, $setti
256256
*/
257257
function multiloquent_check_theme_mod_colour($item, $default_value, $mods)
258258
{
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)) {
260260
return true;
261261
} else {
262262
return false;
@@ -320,7 +320,7 @@ function multiloquent_customize_css()
320320
$output .= '}' . "\r\n";
321321
}
322322
// if there is any output, render it
323-
if (! empty($output)) {
323+
if ( ! empty($output)) {
324324
echo '<style type="text/css">' . $output . '</style>';
325325
}
326326
}
@@ -359,7 +359,7 @@ function multiloquent_stylesheet_method()
359359
{
360360
// todo - make is use the default one if none are set
361361
$mods = get_theme_mods();
362-
if (! empty($mods['bootswatch']) && $mods['bootswatch'] != 'default') {
362+
if ( ! empty($mods['bootswatch']) && $mods['bootswatch'] != 'default') {
363363
wp_enqueue_style('bootstrap', get_template_directory_uri() . '/bootstrap/css/' . esc_attr(get_theme_mod('bootswatch')) . '/bootstrap.min.css');
364364
wp_enqueue_style('style', get_stylesheet_uri());
365365
} else {
@@ -464,7 +464,7 @@ function multiloquent_widget_tag_cloud_args($args)
464464
*/
465465
function multiloquent_post_title($post_id = '')
466466
{
467-
if (! empty($post_id)) {
467+
if ( ! empty($post_id)) {
468468
$the_title = get_the_title($post_id);
469469
} else {
470470
$the_title = get_the_title();
@@ -500,7 +500,7 @@ function multiloquent_breadcrumbs()
500500
global $post;
501501
$return = '';
502502
// $image_url = get_template_directory_uri() ;
503-
if (! is_home()) {
503+
if ( ! is_home()) {
504504
$return .= '<li><a href="';
505505
$return .= home_url();
506506
$return .= '">';
@@ -585,7 +585,7 @@ function multiloquent_render_pagingation()
585585
function multiloquent_get_random_solid_class($class = '')
586586
{
587587
$mods = get_theme_mods();
588-
if (! empty($mods['bootswatch']) && $mods['bootswatch'] != 'default') {
588+
if ( ! empty($mods['bootswatch']) && $mods['bootswatch'] != 'default') {
589589
// if it uses one of the bootswatch themes, use the bootstrap colours
590590
$input = array(
591591
'label-primary',
@@ -631,7 +631,7 @@ function multiloquent_get_random_solid_class($class = '')
631631
'safari',
632632
'firefox'
633633
);
634-
if (! empty($class) && in_array($class, $apps)) {
634+
if ( ! empty($class) && in_array($class, $apps)) {
635635
return $tile_colour = $class;
636636
} else {
637637
$rand_keys = array_rand($input);
@@ -649,7 +649,7 @@ function multiloquent_get_random_solid_class($class = '')
649649
function multiloquent_get_random_blue_class()
650650
{
651651
$mods = get_theme_mods();
652-
if (! empty($mods['bootswatch']) && $mods['bootswatch'] != 'default') {
652+
if ( ! empty($mods['bootswatch']) && $mods['bootswatch'] != 'default') {
653653
// if it uses one of the bootswatch themes, use the bootstrap colours
654654
$input = array(
655655
'label-primary',
@@ -693,7 +693,7 @@ function multiloquent_get_random_blue_class()
693693
'safari',
694694
'firefox'
695695
);
696-
if (! empty($class) && in_array($class, $apps)) {
696+
if ( ! empty($class) && in_array($class, $apps)) {
697697
return $tile_colour = $class;
698698
} else {
699699
$rand_keys = array_rand($input);
@@ -712,7 +712,7 @@ function multiloquent_get_random_blue_class()
712712
function multiloquent_get_random_colour_class($class = '')
713713
{
714714
$mods = get_theme_mods();
715-
if (! empty($mods['bootswatch']) && $mods['bootswatch'] != 'default') {
715+
if ( ! empty($mods['bootswatch']) && $mods['bootswatch'] != 'default') {
716716
// if it uses one of the bootswatch themes, use the bootstrap colours
717717
$input = array(
718718
'label-primary',
@@ -758,7 +758,7 @@ function multiloquent_get_random_colour_class($class = '')
758758
'safari',
759759
'firefox'
760760
);
761-
if (! empty($class) && in_array($class, $apps)) {
761+
if ( ! empty($class) && in_array($class, $apps)) {
762762
return $tile_colour = $class;
763763
} else {
764764
$rand_keys = array_rand($input);
@@ -1028,7 +1028,7 @@ function multiloquent_render_the_archive($colour)
10281028
$id = get_the_ID();
10291029
$slider_image = array();
10301030
$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)) {
10321032
$theimg = $slider_image[0];
10331033
// $width = $slider_image[1];
10341034
// $height = $slider_image[2];
@@ -1071,7 +1071,7 @@ function multiloquent_render_tags($val, $force_tags = 0)
10711071
$output = '';
10721072
// check if they have selected tags or excerpt
10731073
$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)) {
10751075
// they have selected 'excerpt'
10761076
$excerpt = '';
10771077
// $excerpt = apply_filters( 'get_the_excerpt', $val->post_excerpt );
@@ -1080,7 +1080,7 @@ function multiloquent_render_tags($val, $force_tags = 0)
10801080
$excerpt = wp_trim_words($val->post_content);
10811081
}
10821082
$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)) {
10841084
// dont output anything, leave the tags thing empty
10851085
} else {
10861086
$posttags = wp_get_post_tags($val->ID);

0 commit comments

Comments
 (0)