mirror of
https://ghproxy.net/https://github.com/elementor/wp2static.git
synced 2025-10-04 01:36:51 +08:00
serve Strattic logo from remote
This commit is contained in:
parent
33e96c4282
commit
33395d690b
2 changed files with 7 additions and 2 deletions
|
@ -40,7 +40,6 @@ a[id*="wp2static-admin-notice-dismiss"] {
|
|||
}
|
||||
|
||||
.strattic-logo {
|
||||
height: 20px;
|
||||
margin-bottom: -5px;
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
|
|
@ -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>' .
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue