Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Claudio-Emmolo authored and github-actions[bot] committed Jun 6, 2024
1 parent 803bb54 commit 6ba2383
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Shortcodes/WidgetbayShortcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ public function register($shortcode)
$widgetbayLink = '';

if ($shortcode->id) {
$widgetbayLink = 'https://widgetbay.3labs.it/widgetbox/' . $shortcode->id;
$widgetbayLink = 'https://widgetbay.3labs.it/widgetbox/'.$shortcode->id;
}

if ($shortcode->link) {
$shortcode->link = str_replace('&', '%26', $shortcode->link);
$widgetbayLink = 'https://widgetbay.3labs.it/widgetbox?link=' . $shortcode->link;
$widgetbayLink = 'https://widgetbay.3labs.it/widgetbox?link='.$shortcode->link;
}

if ($shortcode->title) {
$widgetbayLink .= '&title=' . $shortcode->title;
$widgetbayLink .= '&title='.$shortcode->title;
}

if (empty($widgetbayLink)) {
Expand Down

0 comments on commit 6ba2383

Please sign in to comment.