@@ -204,7 +204,7 @@ discard block |
||
| 204 | 204 | $toolbar_class = $toolbar_headings ? 'toolbar-extended' : false; |
| 205 | 205 | |
| 206 | 206 | // mobile styles |
| 207 | - $mobile_class = $is_mobile ? 'lasso-mobile' : false; |
|
| 207 | + $mobile_class = $is_mobile ? 'lasso-mobile' : false; |
|
| 208 | 208 | $mobile_style =$is_mobile ? 'style="bottom:0px;"' : null; |
| 209 | 209 | |
| 210 | 210 | //show color |
@@ -484,7 +484,7 @@ discard block |
||
| 484 | 484 | </div> |
| 485 | 485 | <?php |
| 486 | 486 | if ($allow_change_date) { |
| 487 | - $dateformat = get_option( 'date_format' ); |
|
| 487 | + $dateformat = get_option( 'date_format' ); |
|
| 488 | 488 | ?> |
| 489 | 489 | <label><?php _e( 'Post Date', 'lasso' ); ?></label> |
| 490 | 490 | <input type="text" class="editus_custom_date" name="post_date" value="<?php echo get_the_time($dateformat, $postid);?>"/> |
@@ -598,7 +598,7 @@ discard block |
||
| 598 | 598 | if ( !empty( $types ) ) { |
| 599 | 599 | // get the first element |
| 600 | 600 | $keys = array_keys($types); |
| 601 | - $type =$keys[0]; |
|
| 601 | + $type =$keys[0]; |
|
| 602 | 602 | $type = preg_replace( '/s\b/','', $type ); |
| 603 | 603 | printf( '<input type="hidden" name="object" value="%s">', lcfirst( esc_attr( $type ) ) ); |
| 604 | 604 | } |
@@ -626,8 +626,8 @@ discard block |
||
| 626 | 626 | global $post; |
| 627 | 627 | |
| 628 | 628 | global $wp_post_types; |
| 629 | - $labels = &$wp_post_types['post']->labels; |
|
| 630 | - $labels->name = 'Articles'; |
|
| 629 | + $labels = &$wp_post_types['post']->labels; |
|
| 630 | + $labels->name = 'Articles'; |
|
| 631 | 631 | |
| 632 | 632 | ob_start(); |
| 633 | 633 | |
@@ -870,9 +870,9 @@ discard block |
||
| 870 | 870 | $return .= '</form>'; |
| 871 | 871 | |
| 872 | 872 | // extra JS codes |
| 873 | - if (isset($shortcode['codes'])) { |
|
| 874 | - $return .= $shortcode['codes']; |
|
| 875 | - } |
|
| 873 | + if (isset($shortcode['codes'])) { |
|
| 874 | + $return .= $shortcode['codes']; |
|
| 875 | + } |
|
| 876 | 876 | $blob[$slug] = $return; |
| 877 | 877 | } |
| 878 | 878 | |
@@ -921,23 +921,23 @@ discard block |
||
| 921 | 921 | * @return string |
| 922 | 922 | */ |
| 923 | 923 | function lasso_editor_adjustBrightness($hex, $steps) { |
| 924 | - $steps = max(-255, min(255, $steps)); |
|
| 924 | + $steps = max(-255, min(255, $steps)); |
|
| 925 | 925 | |
| 926 | - // Normalize into a six character long hex string |
|
| 927 | - $hex = str_replace('#', '', $hex); |
|
| 928 | - if (strlen($hex) == 3) { |
|
| 929 | - $hex = str_repeat(substr($hex,0,1), 2).str_repeat(substr($hex,1,1), 2).str_repeat(substr($hex,2,1), 2); |
|
| 930 | - } |
|
| 926 | + // Normalize into a six character long hex string |
|
| 927 | + $hex = str_replace('#', '', $hex); |
|
| 928 | + if (strlen($hex) == 3) { |
|
| 929 | + $hex = str_repeat(substr($hex,0,1), 2).str_repeat(substr($hex,1,1), 2).str_repeat(substr($hex,2,1), 2); |
|
| 930 | + } |
|
| 931 | 931 | |
| 932 | - // Split into three parts: R, G and B |
|
| 933 | - $color_parts = str_split($hex, 2); |
|
| 934 | - $return = '#'; |
|
| 932 | + // Split into three parts: R, G and B |
|
| 933 | + $color_parts = str_split($hex, 2); |
|
| 934 | + $return = '#'; |
|
| 935 | 935 | |
| 936 | - foreach ($color_parts as $color) { |
|
| 937 | - $color = hexdec($color); // Convert to decimal |
|
| 938 | - $color = max(0,min(255,$color + $steps)); // Adjust color |
|
| 939 | - $return .= str_pad(dechex($color), 2, '0', STR_PAD_LEFT); // Make two char hex code |
|
| 940 | - } |
|
| 936 | + foreach ($color_parts as $color) { |
|
| 937 | + $color = hexdec($color); // Convert to decimal |
|
| 938 | + $color = max(0,min(255,$color + $steps)); // Adjust color |
|
| 939 | + $return .= str_pad(dechex($color), 2, '0', STR_PAD_LEFT); // Make two char hex code |
|
| 940 | + } |
|
| 941 | 941 | |
| 942 | - return $return; |
|
| 942 | + return $return; |
|
| 943 | 943 | } |