Skip to content

Commit

Permalink
remove unneccessary slash
Browse files Browse the repository at this point in the history
  • Loading branch information
kprajapatii committed Jul 11, 2024
1 parent 5e49e39 commit 1633973
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions blocks/class-blockstrap-widget-image.php
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ public function output( $args = array(), $widget_args = array(), $content = '' )
$image_class .= ! empty( $args['img_aspect'] ) ? ' embed-responsive-item' : '';

// image mask
$image_styles = ! empty( $args['img_mask'] ) ? '-webkit-mask-image: url("' . BLOCKSTRAP_BLOCKS_PLUGIN_URL . '/assets/masks/' . esc_attr( $args['img_mask'] ) . '.svg");' : '';
$image_styles = ! empty( $args['img_mask'] ) ? '-webkit-mask-image: url("' . BLOCKSTRAP_BLOCKS_PLUGIN_URL . 'assets/masks/' . esc_attr( $args['img_mask'] ) . '.svg");' : '';
$image_styles .= ! empty( $args['img_mask'] ) ? '-webkit-mask-size: contain;-webkit-mask-repeat: no-repeat;' : '';
$image_styles .= ! empty( $args['img_mask'] ) && ! empty( $args['img_mask_position'] ) ? '-webkit-mask-position: ' . esc_attr( $args['img_mask_position'] ) . ';' : '';
$image_style = $image_styles ? "style='$image_styles'" : '';
Expand Down Expand Up @@ -603,7 +603,7 @@ public function output( $args = array(), $widget_args = array(), $content = '' )
}

if ( ! $image_src && $this->is_block_content_call() ) {
$image = '<img src="' . BLOCKSTRAP_BLOCKS_PLUGIN_URL . '/assets/images/block-image-placeholder.jpg" class="' . sd_sanitize_html_classes( $image_class ) . '" />';
$image = '<img src="' . BLOCKSTRAP_BLOCKS_PLUGIN_URL . 'assets/images/block-image-placeholder.jpg" class="' . sd_sanitize_html_classes( $image_class ) . '" />';
} elseif ( ! $image ) {
if ( 'featured' === $args['img_src'] && 'upload' === $args['fallback_img_src'] && ! empty( $args['fallback_img_image_id'] ) ) {
$image = wp_get_attachment_image( absint( $args['fallback_img_image_id'] ), $image_size, false, $img_attr );
Expand All @@ -624,7 +624,7 @@ public function output( $args = array(), $widget_args = array(), $content = '' )
}

if ( ! $image_src ) {
$image_src = BLOCKSTRAP_BLOCKS_PLUGIN_URL . '/assets/images/block-image-placeholder.jpg';
$image_src = BLOCKSTRAP_BLOCKS_PLUGIN_URL . 'assets/images/block-image-placeholder.jpg';
}

if ( ! $img_alt ) {
Expand Down
2 changes: 1 addition & 1 deletion blocks/class-blockstrap-widget-map.php
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ public function output( $args = array(), $widget_args = array(), $content = '' )
$wrap_styles = sd_build_aui_styles( $args );

// map mask
$wrap_styles .= ! empty( $args['mask'] ) ? '-webkit-mask-image: url("' . BLOCKSTRAP_BLOCKS_PLUGIN_URL . '/assets/masks/' . esc_attr( $args['mask'] ) . '.svg");' : '';
$wrap_styles .= ! empty( $args['mask'] ) ? '-webkit-mask-image: url("' . BLOCKSTRAP_BLOCKS_PLUGIN_URL . 'assets/masks/' . esc_attr( $args['mask'] ) . '.svg");' : '';
$wrap_styles .= ! empty( $args['mask'] ) ? '-webkit-mask-size: contain;-webkit-mask-repeat: no-repeat;' : '';
$wrap_styles .= ! empty( $args['mask'] ) && ! empty( $args['mask_position'] ) ? '-webkit-mask-position: ' . esc_attr( $args['mask_position'] ) . ';' : '';

Expand Down
4 changes: 2 additions & 2 deletions blocks/class-blockstrap-widget-navbar-brand.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function __construct() {
'class' => '',
'alt' => __( 'Site logo', 'blockstrap-page-builder-blocks' ),
'element_require' => '[%icon_image%]!=""',
'if_src' => '[%icon_image%]==="Blockstrap-white.png" ? "' . BLOCKSTRAP_BLOCKS_PLUGIN_URL . '/assets/images/Blockstrap-white.png" : [%icon_image%]',
'if_src' => '[%icon_image%]==="Blockstrap-white.png" ? "' . BLOCKSTRAP_BLOCKS_PLUGIN_URL . 'assets/images/Blockstrap-white.png" : [%icon_image%]',
'style' => '{maxWidth:\'[%img_max_width%]px\'}',
'width' => '[%img_max_width%]',
'height' => '50',
Expand All @@ -54,7 +54,7 @@ public function __construct() {
'class' => '',
'alt' => __( 'Site logo', 'blockstrap-page-builder-blocks' ),
'element_require' => '[%icon_image%]!=""',
'if_src' => '[%icon_image%]==="Blockstrap-white.png" ? "' . BLOCKSTRAP_BLOCKS_PLUGIN_URL . '/assets/images/Blockstrap-white.png" : [%icon_image%]',
'if_src' => '[%icon_image%]==="Blockstrap-white.png" ? "' . BLOCKSTRAP_BLOCKS_PLUGIN_URL . 'assets/images/Blockstrap-white.png" : [%icon_image%]',
'style' => '{maxWidth:\'[%img_max_width%]px\'}',
'width' => '[%img_max_width%]',
'height' => '50',
Expand Down

0 comments on commit 1633973

Please sign in to comment.