Skip to content

Commit

Permalink
Tweak to manual usage
Browse files Browse the repository at this point in the history
Signed-off-by: Marty Friedel <[email protected]>
  • Loading branch information
martyf committed Oct 14, 2022
1 parent 955d3d6 commit 66c8a4f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Tags/Iconamic.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,10 @@ protected function _getIcon(string $handle = null, bool $checkIconExistsOnly = f
}

$icon = null;
if (is_array($this->context) && array_key_exists($handle, $this->context) || isset($this->context[$handle])) {
// if the context is NOT a string (if its a string, treat it as a manual one)
if ($this->params->has('icon') && $this->params->has('path')) {
// do nothing, treat it as a manual
} elseif (is_array($this->context) && array_key_exists($handle, $this->context) || isset($this->context[$handle])) {
// if the context is NOT a string (if its a string, treat it as a manual one)
if (!is_string($this->context[$handle])) {
$icon = $this->context[$handle];
}
Expand Down

0 comments on commit 66c8a4f

Please sign in to comment.