PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.9.0
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.9.0
4.9.1 4.9.0 4.8.2 4.8.1 4.8.0 4.7.0 4.6.2 4.6.1 4.6.0 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 4.5.1 4.5.0 4.4.1 4.4.0 3.3.4 3.4.0 3.4.1 3.4.2 3.5.0 3.5.1 3.5.2 All 199 releases
betterdocs / views / admin / email / pro.php

pro.php in BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot 4.9.0, at views/admin/email/pro.php

81 lines 4.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
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 ?>
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>
52 <td style="padding-top: 40px;" align="center">
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' ); ?>
55 </a>
56 </td>
57 </tr>
58 <?php endif; ?>
59 <tr>
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>
80 </tr>
81