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