PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 3.4.2
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v3.4.2
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 / analytics / leading-docs.php

leading-docs.php in BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot 3.4.2, at views/admin/email/analytics/leading-docs.php

44 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 if ( empty( $args ) || ! is_array( $args ) ) {
4 return;
5 }
6
7 ?>
8
9 <tr>
10 <td style="text-align: left; font-size: 20px; padding-top: 40px;">
11 <?php _e( 'Top Performing Docs', 'betterdocs' );?>
12 </td>
13 </tr>
14 <tr>
15 <td style="padding:0">
16 <table style="width: 100%; border-collapse: separate; border-spacing: 2px; padding-top: 20px;">
17 <tr style="background: #fff;">
18 <th style="text-align: left; font-size: 14px; font-weight: 600; color:#6e6e73; text-transform: capitalize; padding: 8px 15px; width: 48%;">
19 <?php _e( 'Doc Title', 'betterdocs' );?>
20 </th>
21 <th style="text-align: center; font-size: 14px; font-weight: 600; color:#6e6e73; text-transform: capitalize; padding: 8px 8px;">
22 <?php _e( 'Total Views', 'betterdocs' );?>
23 </th>
24 <th style="text-align: center; font-size: 14px; font-weight: 600; color:#6e6e73; text-transform: capitalize; padding: 8px 8px;">
25 <?php _e( 'Unique Views', 'betterdocs' );?>
26 </th>
27 <?php
28 if ( $total_reactions > 0 ) {
29 echo '<th style="text-align: center; font-size: 14px; font-weight: 600; color:#6e6e73; text-transform: capitalize; padding: 8px 15px;">' . __( 'Reactions', 'betterdocs' ) . '</th>';
30 }
31 ?>
32 </tr>
33 <?php
34 foreach ( $args as $docs ) {
35 betterdocs()->views->get( 'admin/email/analytics/parts/single-docs', [
36 'docs' => $docs,
37 'total_reactions' => $total_reactions
38 ] );
39 }
40 ?>
41 </table>
42 </td>
43 </tr>
44