Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
hissy committed May 6, 2022
1 parent a57ddeb commit f11349a
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions concrete/blocks/hero_image/controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function edit()
} elseif ($this->buttonFileLinkID) {
$this->set('imageLinkHandle', 'file');
$this->set('imageLinkValue', $this->buttonFileLinkID);
} elseif ((string) $this->buttonExternalLink !== '') {
} elseif ((string)$this->buttonExternalLink !== '') {
$this->set('imageLinkHandle', 'external_url');
$this->set('imageLinkValue', $this->buttonExternalLink);
} else {
Expand Down Expand Up @@ -148,20 +148,19 @@ public function view()

if ($this->buttonText || $this->getLinkURL()) {

$button = new Link($this->getLinkURL(), $this->buttonText);
$this->set('button', $button);
$button = new Link($this->getLinkURL(), $this->buttonText);
$this->set('button', $button);
}

$theme = Theme::getSiteTheme();
if ($theme && $theme->supportsFeature(Features::TYPOGRAPHY)) {
$theme = Theme::getSiteTheme();
if ($theme && $theme->supportsFeature(Features::TYPOGRAPHY)) {
$this->set('theme', $theme);
}

$this->set('button', $button);
$this->set('linkURL', $this->getLinkURL());
$this->set('buttonIcon', $this->icon);
$this->set('iconTag', FontAwesomeIcon::getFromClassNames(h($this->icon)));
$this->set('titleFormat', $this->titleFormat ?? 'h1');
}

$this->set('linkURL', $this->getLinkURL());
$this->set('buttonIcon', $this->icon);
$this->set('iconTag', FontAwesomeIcon::getFromClassNames(h($this->icon)));
$this->set('titleFormat', $this->titleFormat ?? 'h1');
}

public function validate($args)
Expand Down

0 comments on commit f11349a

Please sign in to comment.