| 1 |
<?php |
| 2 |
$image_url = ''; |
| 3 |
if ( ! $is_pro ) : |
| 4 |
$image_url = 'https://betterdocs.co/wp-content/uploads/2022/11/Analytics.gif'; |
| 5 |
?> |
| 6 |
<tr> |
| 7 |
<td style="padding-top: 40px;"> |
| 8 |
<table style="width: 100%; background: rgba(38, 214, 125, 0.1); padding: 20px 20px 20px 20px; border-radius: 5px; border-spacing: 0;"> |
| 9 |
<tr> |
| 10 |
<td style="display: flex; gap: 10px;"> |
| 11 |
<span style="margin-top: 4px; margin-right: 3px;">💡</span> |
| 12 |
<p style="float: right; font-size: 14px; line-height: 1.7em; font-weight: 400; text-align: justify; margin: 0;"> |
| 13 |
<?php |
| 14 |
printf( |
| 15 |
/* translators: 1: Feature name (e.g., Email Reporting) 2: Version name (e.g. FREE) */ |
| 16 |
esc_html__( 'This advanced %1$s feature is part of our premium built-in Analytics tool available only with BetterDocs PRO, but you are getting it for %2$s!', 'betterdocs' ), |
| 17 |
'<span style="font-weight: 700; color: #1d1d1f; text-decoration: none;">' . esc_html__( 'Email Reporting', 'betterdocs' ) . '</span>', |
| 18 |
'<span style="font-weight: 700; color: #1d1d1f; text-decoration: none;">' . esc_html__( 'FREE', 'betterdocs' ) . '</span>' |
| 19 |
); |
| 20 |
?> |
| 21 |
</p> |
| 22 |
</td> |
| 23 |
</tr> |
| 24 |
</table> |
| 25 |
</td> |
| 26 |
</tr> |
| 27 |
<tr> |
| 28 |
<td style="padding-top: 40px;"> |
| 29 |
<table style="width: 100%; background: #fff; padding: 10px; border-spacing: 0;"> |
| 30 |
<tr> |
| 31 |
<td> |
| 32 |
<img style="display: block; max-width: 100%;" src="<?php echo esc_url( $image_url ); ?>" alt="<?php esc_attr_e( 'View Analytics', 'betterdocs' ); ?>"> |
| 33 |
</td> |
| 34 |
</tr> |
| 35 |
</table> |
| 36 |
</td> |
| 37 |
</tr> |
| 38 |
<tr> |
| 39 |
<td align="center" style="padding-top: 30px;"> |
| 40 |
<a href="https://betterdocs.co/upgrade" style="text-decoration: none; font-size: 12px; font-weight: 600; color: #fff; padding: 16px 22px; border: none; background: #26d67d; border-radius: 10px; cursor: pointer; display: inline-block; letter-spacing: 1px;"> |
| 41 |
<?php esc_html_e( 'Unlock BetterDocs Analytics', 'betterdocs' ); ?> <span style="padding-left: 5px;">🔐</span> |
| 42 |
</a> |
| 43 |
</td> |
| 44 |
</tr> |
| 45 |
<?php else : ?> |
| 46 |
<tr> |
| 47 |
<td style="padding-top: 40px;" align="center"> |
| 48 |
<a style="display:inline-block; text-decoration: none; font-size: 12px; font-weight: 600; color: #fff; padding: 16px 22px; border: none; background: #26d67d; border-radius: 10px; cursor: pointer; display: inline-block; letter-spacing: 1px;" href="<?php echo esc_url( $analytics_url ); ?>" target="_blank"> |
| 49 |
<?php esc_html_e( 'View Analytics', 'betterdocs' ); ?> |
| 50 |
</a> |
| 51 |
</td> |
| 52 |
</tr> |
| 53 |
<?php endif; ?> |
| 54 |
<tr> |
| 55 |
<td style="padding-top: 20px;"> |
| 56 |
<table style="border-spacing: 0;"> |
| 57 |
<tr> |
| 58 |
<td style="display: flex;"> |
| 59 |
<span style="margin-right: 10px; margin-top: 5px;">📚</span> |
| 60 |
<p style="text-align: justify; font-size: 14px; line-height: 1.7em; font-weight: 400; margin: 0;"> |
| 61 |
<?php |
| 62 |
printf( |
| 63 |
/* translators: 1. Complete Guide To BetterDocs Analytics 2: Key Customer Service Metrics To Measure Performance 3: How To Use BetterDocs Internal Knowledge Base */ |
| 64 |
esc_html__( 'Want to know what more you can do with BetterDocs? Check out these tutorials: %1$s, %2$s, and %3$s.', 'betterdocs' ), |
| 65 |
'<a href="https://betterdocs.co/blog/improved-betterdocs-analytics/" style="font-weight: 500; color: #1d1d1f; font-style: italic;">' . esc_html__( 'Complete Guide To BetterDocs Analytics', 'betterdocs' ) . '</a>', |
| 66 |
'<a href="https://betterdocs.co/blog/key-customer-service-metrics/" style="font-weight: 500; color: #1d1d1f; font-style: italic;">' . esc_html__( 'Key Customer Service Metrics To Measure Performance', 'betterdocs' ) . '</a>', |
| 67 |
'<a href="https://betterdocs.co/blog/internal-documentation-wordpress/" style="font-weight: 500; color: #1d1d1f; font-style: italic;">' . esc_html__( 'How To Use BetterDocs Internal Knowledge Base', 'betterdocs' ) . '</a>' |
| 68 |
); |
| 69 |
?> |
| 70 |
</p> |
| 71 |
</td> |
| 72 |
</tr> |
| 73 |
</table> |
| 74 |
</td> |
| 75 |
</tr> |
| 76 |
|