Нет описания

extensions.php 9.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. <?php if ( ! defined( 'ABSPATH' ) ) exit;
  2. $premium['bbpress'] = array(
  3. 'url' => 'https://ultimatemember.com/extensions/bbpress/',
  4. 'name' => 'bbPress',
  5. 'desc' => 'With the bbPress extension you can integrate Ultimate Member with bbPress',
  6. );
  7. $premium['profile-completeness'] = array(
  8. 'url' => 'https://ultimatemember.com/extensions/profile-completeness/',
  9. 'name' => 'Profile Completeness',
  10. 'desc' => 'Encourage or force users to complete their profile on your site',
  11. );
  12. $premium['verified-users'] = array(
  13. 'url' => 'https://ultimatemember.com/extensions/verified-users/',
  14. 'name' => 'Verified Users',
  15. 'desc' => 'Add a user verficiation system to your site so user accounts can be verified',
  16. );
  17. $premium['friends'] = array(
  18. 'url' => 'https://ultimatemember.com/extensions/friends/',
  19. 'name' => 'Friends',
  20. 'desc' => 'Increase user interaction on your site by allowing users to become friends',
  21. );
  22. $premium['woocommerce'] = array(
  23. 'url' => 'https://ultimatemember.com/extensions/woocommerce/',
  24. 'name' => 'WooCommerce',
  25. 'desc' => 'Integrates the popular e-commerce plugin WooCommerce with Ultimate Member',
  26. );
  27. $premium['notices'] = array(
  28. 'url' => 'https://ultimatemember.com/extensions/notices/',
  29. 'name' => 'Notices',
  30. 'desc' => 'Alert users to important information using conditional notices',
  31. );
  32. $premium['followers'] = array(
  33. 'url' => 'https://ultimatemember.com/extensions/followers/',
  34. 'name' => 'Followers',
  35. 'desc' => 'Increase user interaction on your site by allowing users to follow each other',
  36. );
  37. $premium['mycred'] = array(
  38. 'url' => 'https://ultimatemember.com/extensions/mycred/',
  39. 'name' => 'myCRED',
  40. 'desc' => 'With the myCRED extension you can integrate Ultimate Member with myCRED',
  41. );
  42. $premium['private-messages'] = array(
  43. 'url' => 'https://ultimatemember.com/extensions/private-messages/',
  44. 'name' => 'Private Messages',
  45. 'desc' => 'Add a private messaging system to your site & allow users to message each other',
  46. );
  47. $premium['social-activity'] = array(
  48. 'url' => 'https://ultimatemember.com/extensions/social-activity/',
  49. 'name' => 'Social Activity',
  50. 'desc' => 'Let users create public wall posts & see the activity of other users',
  51. );
  52. $premium['social-login'] = array(
  53. 'url' => 'https://ultimatemember.com/extensions/social-login/',
  54. 'name' => 'Social Login',
  55. 'desc' => 'Let users register & login to your site via Facebook, Twitter, G+, LinkedIn, and more',
  56. );
  57. $premium['user-tags'] = array(
  58. 'url' => 'https://ultimatemember.com/extensions/user-tags/',
  59. 'name' => 'User Tags',
  60. 'desc' => 'With this extension you can add a user tag system to your website',
  61. );
  62. $premium['mailchimp'] = array(
  63. 'url' => 'https://ultimatemember.com/extensions/mailchimp/',
  64. 'name' => 'MailChimp',
  65. 'desc' => 'Allow users to subscribe to your mailchimp lists when they signup on your site',
  66. );
  67. $premium['user-reviews'] = array(
  68. 'url' => 'https://ultimatemember.com/extensions/user-reviews/',
  69. 'name' => 'User Reviews',
  70. 'desc' => 'Allow users to rate & review each other using a 5 star rate/review system',
  71. );
  72. $premium['real-time-notifications'] = array(
  73. 'url' => 'https://ultimatemember.com/extensions/real-time-notifications/',
  74. 'name' => 'Real-time Notifications',
  75. 'desc' => 'Add a notifications system to your site so users can receive real-time notifications',
  76. );
  77. $premium['private-content'] = array(
  78. 'url' => 'https://ultimatemember.com/extensions/private-content/',
  79. 'name' => 'Private Content',
  80. 'desc' => 'Display private content to logged in users that only they can access',
  81. );
  82. $premium['groups'] = array(
  83. 'url' => 'https://ultimatemember.com/extensions/groups/',
  84. 'name' => 'Groups',
  85. 'desc' => 'Allow users to create and join groups around shared topics, interests etc.',
  86. );
  87. $premium['user-photos'] = array(
  88. 'url' => 'https://ultimatemember.com/extensions/user-photos/',
  89. 'name' => 'User Photos',
  90. 'desc' => 'Allow users to upload photos to their profile',
  91. );
  92. $premium['user-bookmarks'] = array(
  93. 'url' => 'https://ultimatemember.com/extensions/user-bookmarks/',
  94. 'name' => 'User Bookmarks',
  95. 'desc' => 'Allow users to bookmark content from your website',
  96. );
  97. $premium['unsplash'] = array(
  98. 'url' => 'https://ultimatemember.com/extensions/unsplash/',
  99. 'name' => 'Unsplash',
  100. 'desc' => 'Allow users to select a profile cover photo from <a href="https://unsplash.com/" target="_blank">Unsplash</a> from their profile',
  101. );
  102. $premium['user-locations'] = array(
  103. 'url' => 'https://ultimatemember.com/extensions/user-locations/',
  104. 'name' => 'User Locations',
  105. 'desc' => 'Using the Google Maps API, display users on a map on the member directory page and allow users to add their location via their profile',
  106. );
  107. $premium['user-notes'] = array(
  108. 'url' => 'https://ultimatemember.com/extensions/user-notes/',
  109. 'name' => 'User Notes',
  110. 'desc' => 'Allow users to create public and private notes from their profile',
  111. );
  112. $premium['profile-tabs'] = array(
  113. 'url' => 'https://ultimatemember.com/extensions/profile-tabs/',
  114. 'name' => 'Profile Tabs',
  115. 'desc' => 'Add custom tabs to profiles',
  116. );
  117. $free['jobboardwp'] = array(
  118. 'url' => 'https://wordpress.org/plugins/um-jobboardwp',
  119. 'name' => 'JobBoardWP',
  120. 'desc' => 'Integrates Ultimate Member with the job board plugin <a href="https://wordpress.org/plugins/jobboardwp" target="_blank">JobBoardWP</a>',
  121. );
  122. $free['forumwp'] = array(
  123. 'url' => 'https://ultimatemember.com/extensions/forumwp/',
  124. 'name' => 'ForumWP',
  125. 'desc' => 'Integrates Ultimate Member with the forum plugin <a href="https://forumwpplugin.com" target="_blank">ForumWP</a>',
  126. );
  127. $free['online-users'] = array(
  128. 'url' => 'https://ultimatemember.com/extensions/online-users/',
  129. 'name' => 'Online Users',
  130. 'desc' => 'Display online users on your site so users can see who is online'
  131. );
  132. $free['google-recaptcha'] = array(
  133. 'url' => 'https://ultimatemember.com/extensions/google-recaptcha/',
  134. 'name' => 'Google reCAPTCHA',
  135. 'desc' => 'Stop bots on your registration & login forms with Google reCAPTCHA',
  136. );
  137. $free['terms-conditions'] = array(
  138. 'url' => 'https://ultimatemember.com/extensions/terms-conditions/',
  139. 'name' => 'Terms & Conditions',
  140. 'desc' => 'Add terms & conditions to your registration form',
  141. ); ?>
  142. <div id="um-extensions-wrap" class="wrap">
  143. <h2>Ultimate Member - Extensions</h2>
  144. <div class="wp-filter um-admin-notice um-filter">
  145. <div class="alignleft">
  146. <?php _e( '<strong>All Access Pass</strong> – Get access to all Ultimate Member extensions at a significant discount with our All Access Pass.', 'ultimate-member' ) ?>
  147. </div>
  148. <div class="alignright">
  149. <a href="https://ultimatemember.com/pricing/" class="button button-primary" target="_blank">
  150. <?php _e( 'View Pricing', 'ultimate-member' ) ?>
  151. </a>
  152. </div>
  153. </div>
  154. <div class="wp-filter">
  155. <ul class="filter-links">
  156. <li>
  157. <a href="?page=ultimatemember-extensions&filter=premium" class="<?php if ( ! isset( $_REQUEST['filter'] ) || isset( $_REQUEST['filter'] ) && sanitize_key( $_REQUEST['filter'] ) == 'premium' ) { echo 'current'; } ?>">
  158. <?php _e( 'Premium', 'ultimate-member' ) ?>
  159. </a>
  160. </li>
  161. <li>
  162. <a href="?page=ultimatemember-extensions&filter=free" class="<?php if ( isset( $_REQUEST['filter'] ) && sanitize_key( $_REQUEST['filter'] ) == 'free' ) { echo 'current'; } ?>">
  163. <?php _e( 'Free', 'ultimate-member' ) ?>
  164. </a>
  165. </li>
  166. </ul>
  167. </div>
  168. <div class="wp-list-table widefat plugin-install">
  169. <div id="the-list">
  170. <?php if ( ! isset( $_REQUEST['filter'] ) || isset( $_REQUEST['filter'] ) && sanitize_key( $_REQUEST['filter'] ) == 'premium' ) {
  171. foreach ( $premium as $key => $info ) { ?>
  172. <div class="plugin-card">
  173. <a href="<?php echo esc_url( $info['url'] ); ?>" class="plugin-image">
  174. <img src="<?php echo esc_url( um_url . 'assets/img/extensions/' . $key . '.png' ); ?>" alt="<?php echo esc_attr( $info['name'] ) ?>" />
  175. </a>
  176. <div class="plugin-card-top">
  177. <h3><a href="<?php echo esc_url( $info['url'] ); ?>"><?php echo $info['name']; ?></a></h3>
  178. <div class="desc column-description">
  179. <?php echo $info['desc']; ?>
  180. </div>
  181. <div class="action-links">
  182. <ul class="plugin-action-buttons">
  183. <li>
  184. <a class="install-now button" href="<?php echo esc_url( $info['url'] ); ?>">
  185. <?php _e( 'Get this Add on', 'ultimate-member' ) ?>
  186. </a>
  187. </li>
  188. <li>
  189. <a href="<?php echo esc_url( $info['url'] ); ?>">
  190. <?php _e( 'More Details', 'ultimate-member' ) ?>
  191. </a>
  192. </li>
  193. </ul>
  194. </div>
  195. </div>
  196. </div>
  197. <?php }
  198. }
  199. if ( isset( $_REQUEST['filter'] ) && sanitize_key( $_REQUEST['filter'] ) == 'free' ) {
  200. foreach ( $free as $key => $info ) { ?>
  201. <div class="plugin-card">
  202. <a href="<?php echo esc_url( $info['url'] ); ?>" class="plugin-image">
  203. <img src="<?php echo esc_url( um_url . 'assets/img/extensions/' . $key . '.png' ); ?>" alt="<?php echo esc_attr( $info['name'] ) ?>" />
  204. </a>
  205. <div class="plugin-card-top">
  206. <h3><a href="<?php echo esc_url( $info['url'] ); ?>"><?php echo $info['name']; ?></a></h3>
  207. <div class="desc column-description">
  208. <?php echo $info['desc']; ?>
  209. </div>
  210. <div class="action-links">
  211. <ul class="plugin-action-buttons">
  212. <li>
  213. <a class="install-now button" href="<?php echo esc_url( $info['url'] ); ?>">
  214. <?php _e( 'Get this Add on', 'ultimate-member' ) ?>
  215. </a>
  216. </li>
  217. <li>
  218. <a href="<?php echo $info['url']; ?>">
  219. <?php _e( 'More Details', 'ultimate-member' ) ?>
  220. </a>
  221. </li>
  222. </ul>
  223. </div>
  224. </div>
  225. </div>
  226. <?php }
  227. } ?>
  228. </div>
  229. </div>
  230. </div>
  231. <div class="um-admin-clear"></div>