PageRenderTime 64ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/wordpress/wp-content/plugins/ucan-post/views/ucan-admin-options-form.php

http://ownerpress.googlecode.com/
PHP | 235 lines | 215 code | 20 blank | 0 comment | 31 complexity | 6008bc7212079864d22cd5474a75f388 MD5 | raw file
Possible License(s): Apache-2.0, AGPL-1.0, GPL-2.0, GPL-3.0, LGPL-2.1
  1. <div class="wrap">
  2. <h2><img src="<?php echo $this->ucan_images_url.'admin_options.png'; ?>" style="vertical-align:middle;" /> <?php echo __('uCan Post -- Admin Options', 'ucan-post'); ?></h2>
  3. <form method='post' action=''>
  4. <table class='widefat'>
  5. <thead>
  6. <tr>
  7. <th width='50%'><?php echo __('Setting', 'ucan-post'); ?></th>
  8. <th width='50%'><?php echo __('Value', 'ucan-post'); ?></th>
  9. </tr>
  10. </thead>
  11. <tbody>
  12. <tr>
  13. <td><?php echo __('User Level required to create posts:', 'ucan-post'); ?></td>
  14. <td>
  15. <select name="ucan_post_level">
  16. <option value="guest" <?php if($this->ucan_options['uCan_Post_Level'] == 'guest'){echo 'selected="selected"';} ?>><?php echo __('Guest', 'ucan-post'); ?>&nbsp;&nbsp;</option>
  17. <option value="0" <?php if($this->ucan_options['uCan_Post_Level'] == '0'){echo 'selected="selected"';} ?>><?php echo __('Subscriber', 'ucan-post'); ?>&nbsp;&nbsp;</option>
  18. <option value="1" <?php if($this->ucan_options['uCan_Post_Level'] == '1'){echo 'selected="selected"';} ?>><?php echo __('Contributor', 'ucan-post'); ?>&nbsp;&nbsp;</option>
  19. <option value="2" <?php if($this->ucan_options['uCan_Post_Level'] == '2'){echo 'selected="selected"';} ?>><?php echo __('Author', 'ucan-post'); ?>&nbsp;&nbsp;</option>
  20. <option value="5" <?php if($this->ucan_options['uCan_Post_Level'] == '5'){echo 'selected="selected"';} ?>><?php echo __('Editor', 'ucan-post'); ?>&nbsp;&nbsp;</option>
  21. <option value="8" <?php if($this->ucan_options['uCan_Post_Level'] == '8'){echo 'selected="selected"';} ?>><?php echo __('Administrator', 'ucan-post'); ?>&nbsp;&nbsp;</option>
  22. </select>
  23. <em><?php echo __('(Default = Subscriber)', 'ucan-post'); ?></em>
  24. </td>
  25. </tr>
  26. <tr>
  27. <td><?php echo __('Use WYSIWYG Editor:', 'ucan-post'); ?><br/>
  28. <small><?php echo __('Disabling the editor also disables media uploads', 'ucan-post'); ?></small>
  29. </td>
  30. <td>
  31. <input type="checkbox" name="ucan_use_wysiwyg" value="true" <?php if($this->ucan_options['uCan_Use_WYSIWYG']){echo 'checked="checked"';} ?> />
  32. <em><?php echo __('(Default = True)', 'ucan-post'); ?></em>
  33. </td>
  34. </tr>
  35. <tr>
  36. <td><?php echo __('Allow submitter to select the post category:', 'ucan-post'); ?></td>
  37. <td>
  38. <input type="checkbox" name="ucan_show_categories" value="true" <?php if($this->ucan_options['uCan_Show_Categories']){echo 'checked="checked"';} ?> />
  39. <em><?php echo __('(Default = False)', 'ucan-post'); ?></em>
  40. </td>
  41. </tr>
  42. <tr>
  43. <td><?php echo __('Default Category for submitted posts:', 'ucan-post'); ?></td>
  44. <td>
  45. <select name="ucan_default_category">
  46. <?php
  47. foreach($categories as $category)
  48. if($category->cat_ID == $this->ucan_options['uCan_Default_Category'])
  49. echo '<option value="'.$category->cat_ID.'" selected="selected">'.$category->name.'&nbsp;&nbsp;</option>';
  50. else
  51. echo '<option value="'.$category->cat_ID.'"">'.$category->name.'&nbsp;&nbsp;</option>';
  52. ?>
  53. </select>
  54. <em><?php echo __('(Default = Uncategorized)', 'ucan-post'); ?></em>
  55. </td>
  56. </tr>
  57. <tr>
  58. <td><?php echo __('Category ID\'s to exclude from users:', 'ucan-post'); ?><br/>
  59. <small><?php echo __('Use a comma separated list of ID\'s (EX: 0, 5, 9, ...)', 'ucan-post'); ?></small>
  60. </td>
  61. <td>
  62. <input type="text" name="ucan_exclude_categories" value="<?php echo $this->ucan_options['uCan_Exclude_Categories']; ?>" />
  63. <em><?php echo __('(Default = None)', 'ucan-post'); ?></em>
  64. </td>
  65. </tr>
  66. <tr>
  67. <td><?php echo __('Set the Post Author to the name of the User who submitted it:', 'ucan-post'); ?></td>
  68. <td>
  69. <input type="checkbox" name="ucan_allow_author" value="true" <?php if($this->ucan_options['uCan_Allow_Author']){echo 'checked="checked"';} ?> />
  70. <em><?php echo __('(Default = True)', 'ucan-post'); ?></em>
  71. </td>
  72. </tr>
  73. <tr>
  74. <td><?php echo __('Default Author for submitted posts:', 'ucan-post'); ?><br/>
  75. <small><?php echo __('If the above option is selected this option will only be used for guest submissions', 'ucan-post'); ?></small>
  76. </td>
  77. <td>
  78. <select name="ucan_default_author">
  79. <?php
  80. foreach($users as $user)
  81. if($user->ID == $this->ucan_options['uCan_Default_Author'])
  82. echo '<option value="'.$user->ID.'" selected="selected">'.$user->user_login.'&nbsp;&nbsp;</option>';
  83. else
  84. echo '<option value="'.$user->ID.'"">'.$user->user_login.'&nbsp;&nbsp;</option>';
  85. ?>
  86. </select>
  87. <em><?php echo __('(Default = admin)', 'ucan-post'); ?></em>
  88. </td>
  89. </tr>
  90. <tr>
  91. <td><?php echo __('Allow users to edit their own posts:', 'ucan-post'); ?><br/>
  92. <small><?php echo __('Above option must be enabled for this to work', 'ucan-post'); ?></small>
  93. </td>
  94. <td>
  95. <input type="checkbox" name="ucan_allow_author_edits" value="true" <?php if($this->ucan_options['uCan_Allow_Author_Edits']){echo 'checked="checked"';} ?> />
  96. <em><?php echo __('(Default = False)', 'ucan-post'); ?></em>
  97. </td>
  98. </tr>
  99. <tr>
  100. <td><?php echo __('Append Guest name to post:', 'ucan-post'); ?><br/>
  101. <small><?php echo __('Adds guests name to the bottom of the submission', 'ucan-post'); ?></small>
  102. </td>
  103. <td>
  104. <input type="checkbox" name="ucan_append_guest_name" value="true" <?php if($this->ucan_options['uCan_Append_Guest_Name']){echo 'checked="checked"';} ?> />
  105. <em><?php echo __('(Default = True)', 'ucan-post'); ?></em>
  106. </td>
  107. </tr>
  108. <tr>
  109. <td><?php echo __('Allow submitter to enter post tags:', 'ucan-post'); ?></td>
  110. <td>
  111. <input type="checkbox" name="ucan_allow_tags" value="true" <?php if($this->ucan_options['uCan_Allow_Tags']){echo 'checked="checked"';} ?> />
  112. <em><?php echo __('(Default = False)', 'ucan-post'); ?></em>
  113. </td>
  114. </tr>
  115. <tr>
  116. <td><?php echo __('Default tags to use for submissions:', 'ucan-post'); ?><br/>
  117. <small><?php echo __('Use a comma separated list (EX: pizza, rice, olives, ...)', 'ucan-post'); ?></small>
  118. </td>
  119. <td>
  120. <input type="text" name="ucan_default_tags" value="<?php echo $this->ucan_options['uCan_Default_Tags']; ?>" />
  121. <em><?php echo __('(Default = None)', 'ucan-post'); ?></em>
  122. </td>
  123. </tr>
  124. <tr>
  125. <td><?php echo __('Allow submitter to create a post excerpt:', 'ucan-post'); ?></td>
  126. <td>
  127. <input type="checkbox" name="ucan_show_excerpt" value="true" <?php if($this->ucan_options['uCan_Show_Excerpt']){echo 'checked="checked"';} ?> />
  128. <em><?php echo __('(Default = False)', 'ucan-post'); ?></em>
  129. </td>
  130. </tr>
  131. <tr>
  132. <td><?php echo __('Allow comments on submitted posts:', 'ucan-post'); ?></td>
  133. <td>
  134. <input type="checkbox" name="ucan_allow_comments" value="true" <?php if($this->ucan_options['uCan_Allow_Comments']){echo 'checked="checked"';} ?> />
  135. <em><?php echo __('(Default = True)', 'ucan-post'); ?></em>
  136. </td>
  137. </tr>
  138. <tr>
  139. <td><?php echo __('Allow Trackbacks/Pingbacks on submitted posts:', 'ucan-post'); ?></td>
  140. <td>
  141. <input type="checkbox" name="ucan_allow_pings" value="true" <?php if($this->ucan_options['uCan_Allow_Pings']){echo 'checked="checked"';} ?> />
  142. <em><?php echo __('(Default = True)', 'ucan-post'); ?></em>
  143. </td>
  144. </tr>
  145. <tr>
  146. <td><?php echo __('Moderate new posts:', 'ucan-post'); ?></td>
  147. <td>
  148. <input type="checkbox" name="ucan_moderate_posts" value="true" <?php if($this->ucan_options['uCan_Moderate_Posts']){echo 'checked="checked"';} ?> />
  149. <em><?php echo __('(Default = True)', 'ucan-post'); ?></em>
  150. </td>
  151. </tr>
  152. <tr>
  153. <td><?php echo __('Allow uploads on sumbission:', 'ucan-post'); ?><br/>
  154. <small><?php echo __('NOTE: For security reasons, only registered members can upload files', 'ucan-post'); ?></small>
  155. </td>
  156. <td>
  157. <input type="checkbox" name="ucan_allow_uploads" value="true" <?php if($this->ucan_options['uCan_Allow_Uploads']){echo 'checked="checked"';} ?> />
  158. <em><?php echo __('(Default = True)', 'ucan-post'); ?></em>
  159. </td>
  160. </tr>
  161. <tr>
  162. <td><?php echo __('Force uploads javascript:', 'ucan-post'); ?><br/>
  163. <small><?php echo __('NOTE: Leave this off unless you have problems with the media uploader', 'ucan-post'); ?></small>
  164. </td>
  165. <td>
  166. <input type="checkbox" name="ucan_force_js" value="true" <?php if($this->ucan_options['uCan_Force_JS']){echo 'checked="checked"';} ?> />
  167. <em><?php echo __('(Default = False)', 'ucan-post'); ?></em>
  168. </td>
  169. </tr>
  170. <tr>
  171. <td><?php echo __('Show CAPTCHA image:', 'ucan-post'); ?><br/>
  172. <small><?php echo __('If you are allowing guests to post, it is recommended that you enable this', 'ucan-post'); ?></small>
  173. </td>
  174. <td>
  175. <input type="checkbox" name="ucan_show_captcha" value="true" <?php if($this->ucan_options['uCan_Show_Captcha']){echo 'checked="checked"';} ?> />
  176. <em><?php echo __('(Default = False)', 'ucan-post'); ?></em>
  177. </td>
  178. </tr>
  179. <tr>
  180. <td><?php echo __('Recieve an Email when a new post is submitted:', 'ucan-post'); ?></td>
  181. <td>
  182. <input type="checkbox" name="ucan_email_admin" value="true" <?php if($this->ucan_options['uCan_Email_Admin']){echo 'checked="checked"';} ?> />
  183. <em><?php echo __('(Default = True)', 'ucan-post'); ?></em>
  184. </td>
  185. </tr>
  186. <tr>
  187. <td><?php echo __('Email User When Their Submission Is Approved:', 'ucan-post'); ?><br/>
  188. <small><?php echo __('For this to work you must approve the post through the submissions area of this plugin', 'ucan-post'); ?></small>
  189. </td>
  190. <td>
  191. <input type="checkbox" name="ucan_email_user" value="true" <?php if($this->ucan_options['uCan_Email_User']){echo 'checked="checked"';} ?> />
  192. <em><?php echo __('(Default = False)', 'ucan-post'); ?></em>
  193. </td>
  194. </tr>
  195. <tr>
  196. <td colspan="2">
  197. <span>
  198. <input class="button" type="submit" name="ucan_save_admin_options" value="<?php echo __('Save Options', 'ucan-post'); ?>" />
  199. </span>
  200. </td>
  201. </tr>
  202. </tbody>
  203. </table>
  204. </form>
  205. <p><strong><?php echo __('uCan Post -- Setup Instructions', 'ucan-post'); ?>:</strong></p>
  206. <p>
  207. <ul>
  208. <li><?php echo __('Create a new page (this is the page where your users will submit posts from)', 'ucan-post'); ?></li>
  209. <li><?php echo __('Paste', 'ucan-post')."<font color='blue'> [uCan-Post] </font>".__('under the HTML tab of the page editor', 'ucan-post'); ?></li>
  210. <li><?php echo __('Publish the page', 'ucan-post'); ?></li>
  211. <li><?php echo __('Setup your admin settings the way you wish and save', 'ucan-post'); ?></li>
  212. <li><?php echo __('Done! Pretty easy eh?', 'ucan-post'); ?></li>
  213. </ul>
  214. </p>
  215. </div>