Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/markup/rule/PhabricatorNavigationRemarkupRule.php
| Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | foreach ($sequence as $item) { | ||||
| if ($item['icon']) { | if ($item['icon']) { | ||||
| $icon_name = 'fa-'.$item['icon']; | $icon_name = 'fa-'.$item['icon']; | ||||
| if (isset($icon_names[$icon_name])) { | if (isset($icon_names[$icon_name])) { | ||||
| $tag->setIcon($icon_name); | $tag->setIcon($icon_name); | ||||
| } | } | ||||
| } | } | ||||
| if ($item['href'] !== null) { | if ($item['href'] !== null) { | ||||
| if (PhabricatorEnv::isValidWebResource($item['href'])) { | if (PhabricatorEnv::isValidRemoteURIForLink($item['href'])) { | ||||
| $tag->setHref($item['href']); | $tag->setHref($item['href']); | ||||
| $tag->setExternal(true); | $tag->setExternal(true); | ||||
| } | } | ||||
| } | } | ||||
| $out[] = $tag; | $out[] = $tag; | ||||
| } | } | ||||
| Show All 30 Lines | |||||