Skip to content

Commit f0a685b

Browse files
[trial] [dialog] Fixes trial activation button layout (#728)
1 parent a1f7948 commit f0a685b

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

assets/scss/admin/common.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ body.fs-loading {
4848
{
4949
margin: .5em 0;
5050
padding: 2px;
51+
52+
.fs-trial-message-container
53+
{
54+
display: flex;
55+
align-items: center;
56+
flex-wrap: wrap;
57+
gap: 5px;
58+
}
5159
}
5260

5361
.fs-close

includes/class-freemius.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24000,13 +24000,15 @@ function _add_trial_notice() {
2400024000

2400124001
// Start trial button.
2400224002
$button = ' ' . sprintf(
24003-
'<a style="margin-left: 10px; vertical-align: super;" href="%s"><button class="button button-primary">%s &nbsp;&#10140;</button></a>',
24003+
'<div><a class="button button-primary" href="%s">%s &nbsp;&#10140;</a></div>',
2400424004
$trial_url,
2400524005
$this->get_text_x_inline( 'Start free trial', 'call to action', 'start-free-trial' )
2400624006
);
2400724007

24008+
$message_text = $this->apply_filters( 'trial_promotion_message', "{$message} {$cc_string}" );
24009+
2400824010
$this->_admin_notices->add_sticky(
24009-
$this->apply_filters( 'trial_promotion_message', "{$message} {$cc_string} {$button}" ),
24011+
"<div class=\"fs-trial-message-container\"><div>{$message_text}</div> {$button}</div>",
2401024012
'trial_promotion',
2401124013
'',
2401224014
'promotion'

start.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
* @var string
1717
*/
18-
$this_sdk_version = '2.10.0.2';
18+
$this_sdk_version = '2.10.0.3';
1919

2020
#region SDK Selection Logic --------------------------------------------------------------------
2121

0 commit comments

Comments
 (0)