Changeset View
Changeset View
Standalone View
Standalone View
src/view/page/menu/PhabricatorMainMenuView.php
Show First 20 Lines • Show All 321 Lines • ▼ Show 20 Lines | if ($custom_header) { | ||||
$logo_style[] = 'background-position: 0 0;'; | $logo_style[] = 'background-position: 0 0;'; | ||||
$logo_style[] = 'background-image: url('.$logo_uri.')'; | $logo_style[] = 'background-image: url('.$logo_uri.')'; | ||||
} | } | ||||
} | } | ||||
$logo_node = phutil_tag( | $logo_node = phutil_tag( | ||||
'span', | 'span', | ||||
array( | array( | ||||
'class' => 'phabricator-main-menu-eye', | 'class' => 'phabricator-main-menu-project-logo', | ||||
'style' => implode(' ', $logo_style), | 'style' => implode(' ', $logo_style), | ||||
)); | )); | ||||
$wordmark_text = PhabricatorCustomLogoConfigType::getLogoWordmark(); | $wordmark_text = PhabricatorCustomLogoConfigType::getLogoWordmark(); | ||||
if (!strlen($wordmark_text)) { | if (!strlen($wordmark_text)) { | ||||
$wordmark_text = pht('Phabricator'); | $wordmark_text = | ||||
pht('%s', PhabricatorCustomLogoConfigType::getDefaultWordmark()); | |||||
} | } | ||||
$wordmark_node = phutil_tag( | $wordmark_node = phutil_tag( | ||||
'span', | 'span', | ||||
array( | array( | ||||
'class' => 'phabricator-wordmark', | 'class' => 'phabricator-wordmark', | ||||
), | ), | ||||
$wordmark_text); | $wordmark_text); | ||||
▲ Show 20 Lines • Show All 391 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0