@@ -188,8 +188,11 @@ discard block |
||
| 188 | 188 | <?php if ( class_exists ('Aesop_Events') ) { ?> |
| 189 | 189 | <li data-type="events" title="<?php esc_attr_e( 'Event', 'lasso' );?>" class="lasso-toolbar--component__event"></li> |
| 190 | 190 | <?php }?> |
| 191 | - <?php else: ?> |
|
| 192 | - <li data-type="wpimg" title="<?php esc_attr_e( 'WordPress Image', 'lasso' );?>" class="image lasso-toolbar--component__image"></li> |
|
| 191 | + <?php else { |
|
| 192 | + : ?> |
|
| 193 | + <li data-type="wpimg" title="<?php esc_attr_e( 'WordPress Image', 'lasso' ); |
|
| 194 | +} |
|
| 195 | +?>" class="image lasso-toolbar--component__image"></li> |
|
| 193 | 196 | <li data-type="wpquote" title="<?php esc_attr_e( 'WordPress Quote', 'lasso' );?>" class="quote lasso-toolbar--component__quote"></li> |
| 194 | 197 | <!--li data-type="wpvideo" title="<?php esc_attr_e( 'WordPress Video', 'lasso' );?>" class="video lasso-toolbar--component__video"></li--> |
| 195 | 198 | <?php endif; ?> |
@@ -712,8 +715,9 @@ discard block |
||
| 712 | 715 | |
| 713 | 716 | $blob = array(); |
| 714 | 717 | |
| 715 | - if ( empty( $codes ) ) |
|
| 716 | - return; |
|
| 718 | + if ( empty( $codes ) ) { |
|
| 719 | + return; |
|
| 720 | + } |
|
| 717 | 721 | |
| 718 | 722 | foreach ( $codes as $slug => $shortcode ) { |
| 719 | 723 | $return = ''; |
@@ -923,6 +923,7 @@ |
||
| 923 | 923 | * Takes a color code and returns an adjusted value |
| 924 | 924 | * @since 1.0.0 |
| 925 | 925 | * Steps should be between -255 and 255. Negative = darker, positive = lighter |
| 926 | + * @param integer $steps |
|
| 926 | 927 | * @return string |
| 927 | 928 | */ |
| 928 | 929 | function lasso_editor_adjustBrightness($hex, $steps) { |