Advertisement
Guest User

Untitled

a guest
Jul 25th, 2016
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.01 KB | None | 0 0
  1. $settings['standard'] = array(
  2. 'title' => __( 'Basic Settings', 'bbpress-improved-statistics-users-online' ),
  3. 'description' => __( 'The most basic yet important settings used to set up the general functionality of the plugin.', 'bbpress-improved-statistics-users-online' ),
  4. 'type' => 'options',
  5. 'state' => 'enabled',
  6. 'fields' => array(
  7. array(
  8. 'id' => 'user_inactivity_time',
  9. 'label' => __( 'User Active Time' , 'bbpress-improved-statistics-users-online' ),
  10. 'description' => __( 'The amount of time before a user is marked as inactive, default is 15 minutes.', 'bbpress-improved-statistics-users-online' ),
  11. 'type' => 'number',
  12. 'default' => '15',
  13. 'class' => 'number-box'
  14. ),
  15. array(
  16. 'id' => 'user_activity_time',
  17. 'label' => __( 'Active Users' , 'bbpress-improved-statistics-users-online' ),
  18. 'description' => __( 'The amount of time to consider when listing activity, default is 24 hours.', 'bbpress-improved-statistics-users-online' ),
  19. 'type' => 'number',
  20. 'default' => '24',
  21. 'class' => 'number-box'
  22. ),
  23. array(
  24. 'id' => 'display_limit_mins',
  25. 'label' => __( 'User Limit (mins)' , 'bbpress-improved-statistics-users-online' ),
  26. 'description' => __( 'A limit for the amount of users displayed in the Currently Active Users section. Set to 0 to disable', 'bbpress-improved-statistics-users-online' ),
  27. 'type' => 'number',
  28. 'default' => '',
  29. 'class' => 'number-box'
  30. ),
  31. array(
  32. 'id' => 'display_limit_hours',
  33. 'label' => __( 'User Limit (hours)' , 'bbpress-improved-statistics-users-online' ),
  34. 'description' => __( 'A limit for the amount of users displayed in the Active Users section. Set to 0 to disable', 'bbpress-improved-statistics-users-online' ),
  35. 'type' => 'number',
  36. 'default' => '',
  37. 'class' => 'number-box'
  38. ),
  39. array(
  40. 'id' => 'user_group_key',
  41. 'label' => __( 'Display Usergroup Key?' , 'bbpress-improved-statistics-users-online' ),
  42. 'description' => __( 'Display a key of the usergroups available on the forum, with their colours', 'bbpress-improved-statistics-users-online' ),
  43. 'type' => 'checkbox',
  44. 'default' => '',
  45. 'class' => ''
  46. ),
  47.  
  48. array(
  49. 'id' => 'last_user',
  50. 'label' => __( 'Latest Registered user', 'bbpress-improved-statistics-users-online' ),
  51. 'description' => __( 'Display the latest user to register to the site?', 'bbpress-improved-statistics-users-online' ),
  52. 'type' => 'checkbox',
  53. 'default' => '',
  54. 'class' => ''
  55. ),
  56. array(
  57. 'id' => 'most_users_online',
  58. 'label' => __( 'Most Users Online', 'bbpress-improved-statistics-users-online' ),
  59. 'description' => __( 'Display the most users recorded online?', 'bbpress-improved-statistics-users-online' ),
  60. 'type' => 'checkbox',
  61. 'class' => ''
  62. ),
  63. array(
  64. 'id' => 'bbpress_statistics',
  65. 'label' => __( 'bbPress Statistics', 'bbpress-improved-statistics-users-online' ),
  66. 'description' => __( 'Display the bbPress Statistics?', 'bbpress-improved-statistics-users-online' ),
  67. 'type' => 'checkbox',
  68. 'default' => 'on',
  69. 'class' => ''
  70. ),
  71. array(
  72. 'id' => 'bbpress_statistics_merge',
  73. 'label' => __( 'bbPress Statistics Merge', 'bbpress-improved-statistics-users-online' ),
  74. 'description' => __( 'Include Thread Opening Posts into the Postcount?', 'bbpress-improved-statistics-users-online' ),
  75. 'type' => 'checkbox',
  76. 'default' => 'on',
  77. 'class' => ''
  78. )
  79. )
  80. );
  81.  
  82. $settings['style'] = array(
  83. 'title' => __( 'Customisation Settings', 'bbpress-improved-statistics-users-online' ),
  84. 'description' => __( 'Some Customisation Options to enable more user control over the plugin', 'bbpress-improved-statistics-users-online' ),
  85. 'type' => 'options',
  86. 'state' => 'enabled',
  87. 'fields' => array(
  88. array(
  89. 'id' => 'title_text_currently_active',
  90. 'label' => __( 'Users Currently Active' , 'bbpress-improved-statistics-users-online' ),
  91. 'description' => __( 'You are able to set a different text string instead of the default "Users Currently Active", use %MINS% to display the minutes set. %COUNT_ACTIVE_USERS% will display the amount of users currently active', 'bbpress-improved-statistics-users-online' ),
  92. 'type' => 'text',
  93. 'default' => 'Users Currently Active',
  94. 'placeholder' => __( 'Users Currently Active', 'bbpress-improved-statistics-users-online' ),
  95. 'class' => 'regular-text'
  96. ),
  97. array(
  98. 'id' => 'title_text_last_x_hours',
  99. 'label' => __( 'Active Users' , 'bbpress-improved-statistics-users-online' ),
  100. 'description' => __( 'You are able to set the string of text displayed for the users active in the time period set, use %HOURS% for the timeframe selected. %COUNT_ALL_USERS% will display the amount of users active', 'bbpress-improved-statistics-users-online' ),
  101. 'type' => 'text',
  102. 'default' => 'Members active in the past %HOURS% hours',
  103. 'placeholder' => __( 'Members active in the past %HOURS% hours', 'bbpress-improved-statistics-users-online' ),
  104. 'class' => 'regular-text'
  105. ),
  106. array(
  107. 'id' => 'user_display_format',
  108. 'label' => __( 'User display format', 'bbpress-improved-statistics-users-online' ),
  109. 'description' => __( 'Choose whether to display the user’s login or display name', 'bbpress-improved-statistics-users-online' ),
  110. 'type' => 'radio',
  111. 'options' => array( 'display_as_username' => __('Usernames', 'bbpress-improved-statistics-users-online'), 'display_as_dp' => __('Display Names', 'bbpress-improved-statistics-users-online') ),
  112. 'default' => 'display_as_username',
  113. 'class' => 'radio-button'
  114. ),
  115. array(
  116. 'id' => 'stats_to_display',
  117. 'label' => __( 'Statistics to Display', 'bbpress-improved-statistics-users-online' ),
  118. 'description' => __( 'Which of the statistics should be displayed?', 'bbpress-improved-statistics-users-online' ),
  119. 'type' => 'checkbox_multi',
  120. 'options' => array( 'last_x_hours' => __('Last X Hours', 'bbpress-improved-statistics-users-online'), 'last_x_mins' => __('Last X Mins', 'bbpress-improved-statistics-users-online') ),
  121. 'default' => ''
  122. ),
  123. array(
  124. 'id' => 'forum_display_option',
  125. 'label' => __( 'Location of Statistics (WordPress Hooks)', 'bbpress-improved-statistics-users-online' ),
  126. 'description' => __( 'Define where you would like the statistics to be placed. If you prefer to use the shortcode or widget, leave these options unchecked.', 'bbpress-improved-statistics-users-online' ),
  127. 'type' => 'checkbox_multi',
  128. 'options' => array( 'after_forums_index' => __('After Forums Index', 'bbpress-improved-statistics-users-online'), 'after_topics_index' => __('After Topics Index', 'bbpress-improved-statistics-users-online'), 'after_single_topic' => __('After Single Topic', 'bbpress-improved-statistics-users-online'), 'after_single_forum' => __('After Single Forum / Category', 'bbpress-improved-statistics-users-online') ),
  129. 'default' => ''
  130. ),
  131. array(
  132. 'id' => 'before_forum_display',
  133. 'label' => __( 'Before Stats Display', 'bbpress-improved-statistics-users-online' ),
  134. 'description' => __( 'If you are using hooks, you may want to define some additional text here to be displayed before the statistics', 'bbpress-improved-statistics-users-online' ),
  135. 'type' => 'text',
  136. 'default' => 'Forum Statistics',
  137. 'class' => 'regular-text'
  138. ),
  139. array(
  140. 'id' => 'after_forum_display',
  141. 'label' => __( 'After Stats Display', 'bbpress-improved-statistics-users-online' ),
  142. 'description' => __( 'If you are using hooks, you may want to define some additional text here to be displayed after the statistics', 'bbpress-improved-statistics-users-online' ),
  143. 'type' => 'text',
  144. 'default' => '',
  145. 'class' => 'regular-text'
  146. ),
  147. )
  148. );
  149.  
  150. $settings['extras'] = array(
  151. 'title' => __( 'Extras', 'bbpress-improved-statistics-users-online' ),
  152. 'description' => __( 'Additional Functionality this Plugin provides that don’t quite fit into the other tabs.', 'bbpress-improved-statistics-users-online' ),
  153. 'type' => 'options',
  154. 'state' => 'enabled',
  155. 'fields' => array(
  156. array(
  157. 'id' => 'extra_enable_shortcode',
  158. 'label' => __( 'Enable shortcode?' , 'bbpress-improved-statistics-users-online' ),
  159. 'description' => __( 'Enabling this will allow you to use a shortcode([bbpas-activity]) to display the Statistics within a text widget.', 'bbpress-improved-statistics-users-online' ),
  160. 'type' => 'checkbox',
  161. 'default' => '',
  162. ),
  163.  
  164. array(
  165. 'id' => 'extra_enable_whitelist',
  166. 'label' => __( 'Enable BBCode/Shortcode Whitelist?' , 'bbpress-improved-statistics-users-online' ),
  167. 'description' => __( 'Enabling this will allow you to setup a BBCode/Shortcode whitelist for bbPress.', 'bbpress-improved-statistics-users-online' ),
  168. 'type' => 'checkbox',
  169. 'default' => '',
  170. ),
  171.  
  172. array(
  173. 'id' => 'extra_whitelist_fields_array',
  174. 'label' => __( 'Whitelisted Fields' , 'bbpress-improved-statistics-users-online' ),
  175. 'description' => __( 'Enabling this will allow you to setup a BBCode whitelist for bbPress. Format is comma separated', 'bbpress-improved-statistics-users-online' ),
  176. 'type' => 'csvtextarea',
  177. 'default' => '',
  178. 'placeholder' => 'b,img,i,form,gallery',
  179. 'class' => ''
  180. ),
  181.  
  182. array(
  183. 'id' => 'extra_delete_db',
  184. 'label' => __( 'Delete Database and Options upon uninstallation?' , 'bbpress-improved-statistics-users-online' ),
  185. 'description' => __( 'If you would like the associated Database and Options to be removed upon uninstallation, tick this box. Please note, the data will not be recoverable!', 'bbpress-improved-statistics-users-online' ),
  186. 'type' => 'checkbox',
  187. 'default' => 'off',
  188. ),
  189. array(
  190. 'id' => 'disable_css',
  191. 'label' => __( 'Disable CSS Loading', 'bbpress-improved-statistics-users-online' ),
  192. 'description' => __( 'Disable CSS file provided by the plugin, useful if you are overriding the style provided.', 'bbpress-improved-statistics-users-online' ),
  193. 'type' => 'checkbox',
  194. 'default' => 'off',
  195. 'class' => ''
  196. ),
  197. )
  198. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement