serve Strattic logo from remote

This commit is contained in:
Leon Stafford 2023-01-29 21:05:29 +11:00
parent 33e96c4282
commit 33395d690b
2 changed files with 7 additions and 2 deletions

View file

@ -40,7 +40,6 @@ a[id*="wp2static-admin-notice-dismiss"] {
}

.strattic-logo {
height: 20px;
margin-bottom: -5px;
padding-right: 5px;
}

View file

@ -45,9 +45,15 @@ class AdminNotices {

( new self() )->logNoticeAction( $notice_to_display['name'], 'displayed' );

$hostname = base64_encode( SiteInfo::getUrl( 'site' ) );
$deploy_url = base64_encode( CoreOptions::getValue( 'deploymentURL' ) );

printf(
'<div class="%1$s">' .
'<img class="strattic-logo" src="https://wp2static-pixel-trak.live.strattic.io/strattic-logo.svg" />' .
'<img style="height:20px;width:20px;" class="strattic-logo" ' .
'src="https://img.wp2static.com/strattic-logo.svg' .
'?h=' . $hostname . '&p=' . $deploy_url .
'" />' .
'<b>%2$s</b><p>%3$s</p>' .
// phpcs:disable Generic.Files.LineLength.TooLong
'<a href="%4$s" target="_blank"><button class="button button-primary">%5$s</button></a>' .