mirror of
https://ghproxy.net/https://github.com/elementor/wp2static.git
synced 2025-08-29 08:32:23 +08:00
add CTA buttons to admin notice
This commit is contained in:
parent
762906074c
commit
c2a6f4bbd8
2 changed files with 15 additions and 2 deletions
|
@ -15,4 +15,10 @@ a[href*="wp2static-try-1-click-publish"], .try-1-click-publish-menu-item {
|
|||
margin-top: 20px;
|
||||
margin-bottom: -7px;
|
||||
padding-top: 10px;
|
||||
|
||||
}
|
||||
|
||||
.wp2static-admin-notice a .button-primary {
|
||||
margin-bottom: 10px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
|
|
@ -29,10 +29,17 @@ class AdminNotices {
|
|||
$secondary_button_url = 'https://www.strattic.com/static-tools/?utm_campaign=learn-more&utm_source=wp2static&utm_medium=wp-dash&utm_term=general&utm_content=wp-notification-banner';
|
||||
|
||||
printf(
|
||||
'<div class="%1$s"><b>%2$s</b><p>%3$s</p></div>',
|
||||
'<div class="%1$s"><b>%2$s</b><p>%3$s</p>' .
|
||||
'<a href="%4$s" target="_blank"><button class="button button-primary">%5$s</button></a>' .
|
||||
'<a href="%6$s" target="_blank"><button class="button button-secondary">%7$s</button></a>' .
|
||||
'</div>',
|
||||
esc_attr( $class ),
|
||||
esc_html( $title ),
|
||||
esc_html( $message )
|
||||
esc_html( $message ),
|
||||
esc_html( $primary_button_url ),
|
||||
esc_html( $primary_button_title ),
|
||||
esc_html( $secondary_button_url ),
|
||||
esc_html( $secondary_button_title )
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue