/wp-content/plugins/wpdiscuz/options/addons/ucm/content.php

https://github.com/livinglab/openlab · PHP · 204 lines · 174 code · 30 blank · 0 comment · 3 complexity · fbf3c0449ef22f32c5827992919c9262 MD5 · raw file

  1. <?php
  2. if (!defined("ABSPATH")) {
  3. exit();
  4. }
  5. if (!$isUcmExists) {
  6. ?>
  7. <div>
  8. <div class="ucm-inner">
  9. <h3 style="padding:5px 10px 15px 10px; margin:0px; text-align:right; border-bottom:1px solid #ddd; margin:0px 0px 20px auto; font-weight:normal;max-width:60%;">Addon - User and Comment Mentioning</h3>
  10. <p style="border: 1px dotted #07B290; padding: 15px; font-size: 14px; text-align: center; margin: 10px; background: #EFFFF5">
  11. wpDiscuz User &amp; Comment Mentioning addon allows to mention comments and users in comment text using #comment-id and @username tags.
  12. This is a demo admin page of the wpDiscuz User &amp; Comment Mentioning addon. You can buy this addon on gVectors Team Store.
  13. <br><a href="https://gvectors.com/product/wpdiscuz-user-comment-mentioning/" target="_blank" style="padding: 6px 15px; background: #07B290; color: #fff; display: inline-block; margin: 15px 5px 5px 5px;">Addon Details and Screenshots &raquo;</a>
  14. </p>
  15. <table style="opacity: 0.6;">
  16. <tr valign="top">
  17. <th scope="row" style="width:55%;">
  18. <label for="ucm_at">
  19. Display <span class="wpdiscuz-button wpdc_at"></span> button on comment form: </label>
  20. </th>
  21. <td>
  22. <input type="checkbox" name="" checked='checked' value="1" id="ucm_at"/>
  23. </td>
  24. </tr>
  25. <tr valign="top">
  26. <th scope="row" style="width:55%;">
  27. <label for="guestMentioning">Enable guest mentioning:</label>
  28. </th>
  29. <td>
  30. <input type="checkbox" name="" checked='checked' value="1" id="guestMentioning"/>
  31. </td>
  32. </tr>
  33. <tr valign="top">
  34. <th scope="row" style="width:55%;">
  35. <label for="displayNicename">
  36. Display user nicename (names for mentioning) in user search result: </label>
  37. </th>
  38. <td>
  39. <input type="checkbox" name="" value="1" id="displayNicename"/>
  40. </td>
  41. </tr>
  42. <tr valign="top">
  43. <th scope="row" style="width:55%;">
  44. <label for="ucm_view_avatar_in_comment">
  45. Display mentioned user avatar with username link:</label>
  46. </th>
  47. <td>
  48. <input type="checkbox" name="" checked='checked' value="1" id="ucm_view_avatar_in_comment"/>
  49. </td>
  50. </tr>
  51. <tr valign="top">
  52. <th scope="row" style="width:55%;">
  53. <label for="ucm_view_avatar_tooltip">
  54. Display avatar in user pop-up information: </label>
  55. </th>
  56. <td>
  57. <input type="checkbox" name="" checked='checked' value="1" id="ucm_view_avatar_tooltip"/>
  58. </td>
  59. </tr>
  60. <tr valign="top">
  61. <th scope="row" style="width:55%;">
  62. <label for="ucm_viewid">
  63. Mentione user by user ID in comment content </label>
  64. </th>
  65. <td>
  66. <input type="checkbox" name="" value="1" id="ucm_viewid"/>
  67. </td>
  68. </tr>
  69. <tr valign="top">
  70. <th scope="row">
  71. <label for="ucm_text_length">
  72. Text length in user/comment pop-up information: </label>
  73. </th>
  74. <td>
  75. <input type="number" name="" min='0' value="150" id="ucm_text_length"/> <span style="display:inline-block; vertical-align:bottom; font-size:14px; padding:5px;">characters</span>
  76. </td>
  77. </tr>
  78. <tr valign="top">
  79. <th scope="row">
  80. <label for="ucm_user_count">
  81. Maximum number of users in "User Selector" bar: </label>
  82. </th>
  83. <td>
  84. <input type="number" name="" min='1' value="8" id="ucm_user_count"/> <span style="display:inline-block; vertical-align:bottom; font-size:14px; padding:5px;">items</span>
  85. </td>
  86. </tr>
  87. <tr valign="top">
  88. <th scope="row" colspan="2" style="border-top:3px solid #ddd;">
  89. <h3 style="padding-bottom:5px; padding-top:20px; font-weight:normal; margin:0px; text-align:right;"> Comment mentioning through #comment-id</h3>
  90. <strong>Message to mentioned comment author</strong>
  91. </th>
  92. </tr>
  93. <tr valign="top">
  94. <th scope="row" style="width:55%;">
  95. <label for="ucm_send_admin">
  96. Enable Email Notification </label>
  97. </th>
  98. <td>
  99. <input type="checkbox" name="" checked='checked' value="1" id="ucm_send_admin"/>
  100. </td>
  101. </tr>
  102. <tr valign="top">
  103. <th scope="row">
  104. <label for="author_mail_subject">
  105. Email Subject </label>
  106. </th>
  107. <td>
  108. <input type="text" name="" class="text-inner" value="Your Comment has been mentioned" id="author_mail_subject"/>
  109. </td>
  110. </tr>
  111. <tr valign="top">
  112. <th scope="row">
  113. <label for="author_mail_message">
  114. Email Body </label>
  115. <p class="wpd-info">
  116. <i> [mentionedUserName] - Mentioned comment author name</i><br/>
  117. <i> [postTitle] - Post Title</i><br/>
  118. <i> [authorUserName] - Comment author name</i><br/>
  119. <i> [commentURL] - Comment URL</i>
  120. </p>
  121. </th>
  122. <td>
  123. <textarea name="" id="author_mail_message" cols="50" rows="6">Hi [mentionedUserName]!
  124. Your comment on "[postTitle]" post has been mentioned by [authorUserName].</br>
  125. </br>
  126. Comment URL: [commentURL]</textarea>
  127. </td>
  128. </tr>
  129. <tr valign="top">
  130. <th scope="row" colspan="2" style="border-top:3px solid #ddd;">
  131. <h3 style="padding-bottom:5px; padding-top:20px; font-weight:normal; margin:0px; text-align:right;"> User mentioning through @username</h3>
  132. <strong>Message to mentioned user</strong>
  133. </th>
  134. </tr>
  135. <tr valign="top">
  136. <th scope="row" style="width:55%;">
  137. <label for="ucm_send_user">
  138. Enable Email Notification </label>
  139. </th>
  140. <td>
  141. <input type="checkbox" name="" checked='checked' value="1" id="ucm_send_user"/>
  142. </td>
  143. </tr>
  144. <tr valign="top">
  145. <th scope="row">
  146. <label for="user_mail_subject">Email Subject</label>
  147. </th>
  148. <td>
  149. <input type="text" name="" value="You have been mentioned in comment" id="user_mail_subject"/>
  150. </td>
  151. </tr>
  152. <tr valign="top">
  153. <th scope="row">
  154. <label for="user_mail_message">
  155. Email Body </label>
  156. <p class="wpd-info">
  157. <i> [mentionedUserName] - Mentioned user name</i><br/>
  158. <i> [postTitle] - Post Title</i><br/>
  159. <i> [authorUserName] - Comment author name</i><br/>
  160. <i> [commentURL] - Comment URL</i>
  161. </p>
  162. </th>
  163. <td>
  164. <textarea name="" id="wpdiscuz_reported_email_message" cols="50" rows="6">Hi [mentionedUserName]!
  165. You have been mentioned in a comment posted on "[postTitle]" post by [authorUserName].</br>
  166. </br>
  167. Comment URL: [commentURL]</textarea>
  168. </td>
  169. </tr>
  170. </table>
  171. </div>
  172. </div>
  173. <?php
  174. }