bp_groupblog_management_page

The BP Groupblog bp groupblog management page function.

Description

bp_groupblog_management_page(); 

Usage

  1. if ( !function_exists( 'bp_groupblog_management_page' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bp-groupblog/bp-groupblog-admin.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_groupblog_management_page(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bp-groupblog-admin.php  
  1. function bp_groupblog_management_page() { 
  2. global $wpdb; 
  3.  
  4. // only allow site admins to come here. 
  5. if( is_super_admin() == false ) 
  6. wp_die( __( 'You do not have permission to access this page.', 'groupblog' ) ); 
  7.  
  8. // process form submission 
  9. if ( isset( $_POST['action'] ) && $_POST['action'] == 'update' ) { 
  10. $updated = true; 
  11. } else { 
  12. $updated = false; 
  13.  
  14. // make sure we're using latest data 
  15. $opt = get_site_option( 'bp_groupblog_blog_defaults_options' ); 
  16. ?> 
  17.  
  18. <?php if ($updated) { ?> 
  19. <div id="message" class="updated fade"> 
  20. <p><?php _e( 'Options saved.', 'groupblog' ) ?></p> 
  21. </div> 
  22. <?php } ?> 
  23.  
  24. <div class="wrap" style="position: relative"> 
  25. <h2><?php _e( 'BuddyPress GroupBlog Settings', 'groupblog' ) ?></h2> 
  26.  
  27. <form name="bp-groupblog-setup" id="bp-groupblog-setup" action="" method="post"> 
  28.  
  29. <div id="tabctnr"> 
  30.  
  31. <ul class="tabnav"> 
  32. <li><a href="#groupblog_default_theme"><?php _e('Theme', 'groupblog'); ?></a></li> 
  33. <li><a href="#groupblog_landing_page"><?php _e('Redirect', 'groupblog'); ?></a></li> 
  34. <li><a href="#groupblog_template_layout"><?php _e('Layout', 'groupblog'); ?></a></li> 
  35. <li><a href="#groupblog_default_blog_settings"><?php _e('Defaults', 'groupblog'); ?></a></li> 
  36. <li><a href="#groupblog_validation_settings"><?php _e('Validation', 'groupblog'); ?></a></li> 
  37. <li><a href="#groupblog_about"><?php _e('About', 'groupblog'); ?></a></li> 
  38. </ul> 
  39.  
  40. <div id='groupblog_default_theme'> 
  41. <?php 
  42.  
  43. $current_groupblog_theme = ''; 
  44.  
  45. // get all themes 
  46. if ( function_exists( 'wp_get_themes' ) ) { 
  47.  
  48. // get theme data the WP3.4 way... 
  49. $themes = wp_get_themes( 
  50. false, // only error-free themes 
  51. 'network', // only network-allowed themes 
  52. 0 // use current blog as reference 
  53. ); 
  54.  
  55. $ct = wp_get_theme(); 
  56. $allowed_themes = WP_Theme::get_allowed_on_network(); 
  57. $blog_allowed_themes = WP_Theme::get_allowed_on_site(); 
  58.  
  59. } else { 
  60.  
  61. // pre WP3.4 functions 
  62. $themes = get_themes(); 
  63.  
  64. $ct = current_theme_info(); 
  65. $allowed_themes = get_site_allowed_themes(); 
  66. $blog_allowed_themes = wpmu_get_blog_allowedthemes(); 
  67.  
  68.  
  69. if( $allowed_themes == false ) 
  70. $allowed_themes = array(); 
  71.  
  72. if( is_array( $blog_allowed_themes ) ) 
  73. $allowed_themes = array_merge( $allowed_themes, $blog_allowed_themes ); 
  74.  
  75. if( $wpdb->blogid != 1 ) 
  76. unset( $allowed_themes[ 'h3' ] ); 
  77.  
  78. if( isset( $allowed_themes[ esc_html( $ct->stylesheet ) ] ) == false ) 
  79. $allowed_themes[ esc_html( $ct->stylesheet ) ] = true; 
  80.  
  81. reset( $themes ); 
  82. foreach( $themes as $key => $theme ) { 
  83. if( isset( $allowed_themes[ esc_html( $theme[ 'Stylesheet' ] ) ] ) == false ) { 
  84. unset( $themes[ $key ] ); 
  85. reset( $themes ); 
  86.  
  87. // get the names of the themes & sort them 
  88. /**  
  89. Note: pre-WP3.4 the keys are the theme names. In 3.4, the keys are folder names 
  90. Fortunately, the magic methods of the object retain backwards compatibility and allow 
  91. array-style access to work 
  92. */ 
  93. $theme_names = array_keys( $themes ); 
  94. natcasesort( $theme_names ); 
  95. ?> 
  96.  
  97. <h3><?php _e( 'Default Theme', 'groupblog' ) ?></h3> 
  98.  
  99. <div id="select-theme"> 
  100. <label for="theme"><?php _e( 'Select the default theme for new groupblogs:', 'groupblog' ) ?></label> 
  101. <select id="theme" name="theme" size="1"> 
  102.  
  103. <optgroup label="<?php echo esc_attr( __( 'GroupBlog Themes:', 'groupblog' ) ) ?>"> 
  104. <?php 
  105.  
  106. $groupblog_themes_options = ''; 
  107.  
  108. foreach ( $theme_names as $theme_name ) { 
  109.  
  110. if ( in_array( 'groupblog', (array)$themes[$theme_name]['Tags'] ) ) { 
  111.  
  112. $template = $themes[$theme_name]['Template']; 
  113. $stylesheet = $themes[$theme_name]['Stylesheet']; 
  114. $title = $themes[$theme_name]['Title']; 
  115. $selected = ""; 
  116. if( $opt['theme'] == $template . "|" . $stylesheet ) { 
  117. $selected = "selected = 'selected' "; 
  118. $current_groupblog_theme = $theme_name; 
  119. $groupblog_themes_options .= '<option value="' . $template . "|" . $stylesheet . '"' . $selected . '>' . $title . "</option>"; 
  120.  
  121. if ( !empty( $groupblog_themes_options ) ) { 
  122. echo $groupblog_themes_options; 
  123. } else { 
  124. echo '<option value="" disabled="disabled">' . __( 'No groupblog-enabled themes available', 'groupblog' ) . '</option>'; 
  125.  
  126. ?> 
  127. </optgroup> 
  128. <optgroup label="<?php echo esc_attr( __( 'Regular Themes:', 'groupblog' ) ) ?>"> 
  129. <?php 
  130.  
  131. $non_groupblog_themes_options = ''; 
  132.  
  133. foreach ( $theme_names as $theme_name ) { 
  134.  
  135. if ( !in_array( 'groupblog', (array)$themes[$theme_name]['Tags'] ) ) { 
  136.  
  137. $template = $themes[$theme_name]['Template']; 
  138. $stylesheet = $themes[$theme_name]['Stylesheet']; 
  139. $title = $themes[$theme_name]['Title']; 
  140. $selected = ""; 
  141. if( $opt['theme'] == $template . "|" . $stylesheet ) { 
  142. $selected = "selected = 'selected' "; 
  143. $current_groupblog_theme = $theme_name; 
  144. $non_groupblog_themes_options .= '<option value="' . $template . "|" . $stylesheet . '"' . $selected . '>' . $title . "</option>"; 
  145.  
  146. if ( !empty( $non_groupblog_themes_options ) ) { 
  147. echo $non_groupblog_themes_options; 
  148. } else { 
  149. echo '<option value="" disabled="disabled">' . __( 'No regular themes available', 'groupblog' ) . '</option>'; 
  150.  
  151. ?> 
  152. </optgroup> 
  153.  
  154. <option value="" <?php selected( $current_groupblog_theme, '' ) ?>><?php _e( '- None selected -', 'groupblog' ) ?></option> 
  155.  
  156. </select> 
  157. </div> 
  158.  
  159. <?php if ( !empty( $current_groupblog_theme ) ) :  
  160.  
  161. // set a class for WP3.4+ which has bigger screenshots 
  162. $wp3point4class = ''; 
  163. if ( function_exists( 'wp_get_themes' ) ) { 
  164. $wp3point4class = 'current-theme-3point4plus'; 
  165.  
  166. // not all themes have screenshots 
  167. $theme_has_screenshot = false; 
  168. if (  
  169. isset( $themes[$current_groupblog_theme]['Screenshot'] ) &&  
  170. $themes[$current_groupblog_theme]['Screenshot'] != ''  
  171. ) { 
  172. $theme_has_screenshot = true; 
  173.  
  174. // add class to container if theme has screenshot 
  175. if ( $theme_has_screenshot ) { 
  176. $wp3point4class .= ' current-theme-has-screenshot'; 
  177.  
  178. // construct attribute 
  179. $wp3point4classes = ''; 
  180. if ( $wp3point4class != '' ) { 
  181. $wp3point4classes = ' class="' . $wp3point4class . '"'; 
  182.  
  183. ?> 
  184.  
  185. <div id="current-theme"<?php echo $wp3point4classes; ?>> 
  186. <?php if ( $theme_has_screenshot ) : ?> 
  187. <img src="<?php echo $themes[$current_groupblog_theme]['Theme Root URI'] . '/' . $themes[$current_groupblog_theme]['Stylesheet'] . '/' . $themes[$current_groupblog_theme]['Screenshot']; ?>" alt="<?php _e('Current theme preview'); ?>" /> 
  188. <?php endif; ?> 
  189.  
  190. <div class="alt" id="current-theme-info"> 
  191. <h4><?php /** translators: 1: theme title, 2: theme version, 3: theme author */ 
  192. printf(__('%1$s %2$s by %3$s'), $themes[$current_groupblog_theme]['Title'], $themes[$current_groupblog_theme]['Version'], $themes[$current_groupblog_theme]['Author']) ; ?></h4> 
  193. <p class="theme-description"><?php /**print_r ($themes[$current_groupblog_theme]);*/echo $themes[$current_groupblog_theme]['Description']; ?></p> 
  194. </div> 
  195. </div> 
  196.  
  197. <?php endif ?> 
  198.  
  199. <div class="clear"></div> 
  200.  
  201. </div> 
  202. <div id='groupblog_landing_page'> 
  203.  
  204. <h3><?php _e( 'Default Landing Page', 'groupblog' ) ?></h3> 
  205.  
  206. <p><?php _e( 'The page that is linked to from the "Blog" tab of the Group navigation. Selecting "Disabled" will use the buddypress template included in the plugin, no redirect will take place. The "Home Page" setting will create a redirect to the blog front page. The "Template Page" setting will create a redirect to the blog template page, additionally when using this setting you can choose a specific page template layout in the next tab.', 'groupblog' ) ?></p> 
  207. <table class="form-table"> 
  208. <tbody> 
  209. <tr> 
  210. <th><?php _e( 'Redirect Enabled to:', 'groupblog' ) ?></th> 
  211. <td> 
  212. <label><input class="info-off" name="bp_groupblog_redirect_blog" id="bp_groupblog_redirect_blog" value="0" type="radio" <?php if ($opt['redirectblog']== 0) echo 'checked="checked"'; ?> > <?php _e( 'Disabled', 'groupblog' ) ?></label> 
  213. </td> 
  214. </tr> 
  215. <tr> 
  216. <th></th> 
  217. <td> 
  218. <label><input class="info-off" name="bp_groupblog_redirect_blog" id="bp_groupblog_redirect_blog" value="1" type="radio" <?php if ($opt['redirectblog']== 1) echo 'checked="checked"'; ?> > <?php _e( 'Home Page', 'groupblog' ) ?></label> 
  219. </td> 
  220. <tr> 
  221. <th></th> 
  222. <td> 
  223. <label><input class="info-on" name="bp_groupblog_redirect_blog" id="bp_groupblog_redirect_blog" value="2" type="radio" <?php if ($opt['redirectblog']== 2) echo 'checked="checked"'; ?> > <?php _e( 'Page Template Title: ', 'groupblog' ) ?></label> 
  224. <input name="bp_groupblog_page_title" id="bp_groupblog_page_title" value="<?php echo $opt['pagetitle'];?>" size="10" type="text" /> 
  225. <span class="notice" id="redirect_notice" style="display:none;"> <?php _e( 'All existing Group Blogs will be automatically updated on each change.', 'groupblog' ) ?></span> 
  226. <p class="info"><?php _e( 'The "Template Page" option will create a page on group blogs and links to a template file within your theme. Don\'t worry about the name you choose, we\'ll make sure your page finds it way to the template file. For custom themes make sure to <a href="http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates">create</a> this template file manually.', 'groupblog' ) ?> 
  227. </p> 
  228. </td> 
  229. </tr> 
  230. <tr> 
  231. <th><?php _e( 'Redirect Group Home:', 'groupblog' ) ?></th> 
  232. <td> 
  233. <label for="deep_group_integration"><input name="deep_group_integration" type="checkbox" id="deep_group_integration" value="1" <?php if ($opt['deep_group_integration'] == 1) echo('checked="checked"'); ?> /> <?php _e( 'Yes, redirect Group Home to Blog Home', 'groupblog' ) ?></label><p><?php _e( 'This option will take control of the GROUP home page and redirects it to the BLOG home page. This will enable posting from the group Home using P2 instead of the BuddyPress form.', 'groupblog' ) ?></p> 
  234. </td> 
  235. </tr> 
  236. </tbody> 
  237. </table> 
  238.  
  239. </div> 
  240. <div id='groupblog_template_layout'> 
  241. <?php if ( $opt['theme'] == 'p2|p2-buddypress' ) { ?> 
  242.  
  243. <h3><?php _e( 'Template Page Layout', 'groupblog' ) ?></h3> 
  244.  
  245. <p class="disabled"><?php _e( 'Please select the option "Template Page" on the Redirect tab in order to choose a layout.', 'groupblog' ) ?></p> 
  246.  
  247. <p class="enabled"><?php _e( 'Please select a Layout which you would like to use for your Group Blog. Additionally, incombination with "Redirect Group Home" setting you can set this as your Group Home page.', 'groupblog' ) ?></p> 
  248.  
  249. <table class="enabled" id="availablethemes" cellspacing="0" cellpadding="0"> 
  250. <tbody> 
  251. <tr class="alt"> 
  252. <td class="available-theme top left"> 
  253. <?php echo '<img src="' . WP_PLUGIN_URL . '/bp-groupblog/inc/i/screenshot-mag.png">';?> 
  254. <div class="clear"></div> 
  255. <input name="page_template_layout" id="page_template_layout" value="magazine" type="radio" <?php if ($opt['page_template_layout'] == 'magazine') echo 'checked="checked"'; ?> /><h3 style="display:inline;"> <?php _e( 'Magazine', 'groupblog' ) ?></h3> 
  256. <p class="description"><?php _e( 'Balanced template for groups with diverse postings.', 'groupblog' ) ?></p> 
  257. </td> 
  258. <td class="available-theme top"> 
  259. <?php echo '<img src="' . WP_PLUGIN_URL . '/bp-groupblog/inc/i/screenshot-micro.png">';?> 
  260. <div class="clear"></div> 
  261. <input name="page_template_layout" id="page_template_layout" value="microblog" type="radio" <?php if ($opt['page_template_layout'] == 'microblog') echo 'checked="checked"'; ?> /><h3 style="display:inline;"> <?php _e( 'Microblog', 'groupblog' ) ?></h3> 
  262. <p class="description"><?php _e( 'Great for simple listing of posts in a chronological order.', 'groupblog' ) ?></p> 
  263. </td> 
  264. </tr> 
  265. </tbody> 
  266. </table> 
  267.  
  268. <table class="form-table enabled"> 
  269. <tbody> 
  270. <tr> 
  271. <th><?php _e( 'Group admin layout control:', 'groupblog' ) ?></th> 
  272. <td> 
  273. <label for="group_admin_layout"><input name="group_admin_layout" type="checkbox" id="group_admin_layout" value="1" <?php if ($opt['group_admin_layout'] == 1) echo('checked="checked"'); ?> /> <?php _e( 'Allow group admins to select the layout for their group themselves.', 'groupblog' ) ?></label> 
  274. </td> 
  275. </tr> 
  276. </tbody> 
  277. </table> 
  278. <?php } else { ?> 
  279. <h3><?php _e( 'Template Page Layout', 'groupblog' ) ?></h3> 
  280.  
  281. <p><?php _e( 'Layout options are only available for the "P2 BuddyPress" Theme. Please select the "P2 Buddypress" theme on the "Theme" tab in order to choose a layout. Additionally the Redirect option needs to be set to "Template Page".', 'groupblog' ) ?></p> 
  282. <?php } ?> 
  283. </div> 
  284. <div id='groupblog_default_blog_settings'> 
  285.  
  286. <h3><?php _e( 'Default Blog Settings', 'groupblog' ) ?></h3> 
  287.  
  288. <table class="form-table"> 
  289. <tbody> 
  290. <tr valign="top"> 
  291. <th><?php _e( 'Default Post Category:', 'groupblog' ) ?></th> 
  292. <td> 
  293. <input name="default_cat_name" type="text" id="default_cat_name" size="30" value="<?php echo($opt['default_cat_name']); ?>" /> <?php _e( '(Overwrites "Uncategorized")', 'groupblog' ) ?> 
  294. </td> 
  295. </tr> 
  296. <tr valign="top"> 
  297. <th><?php _e( 'Default Link Category:', 'groupblog' ) ?></th> 
  298. <td> 
  299. <input name="default_link_cat" type="text" id="default_link_cat" size="30" value="<?php echo($opt['default_link_cat']); ?>" /> <?php _e( '(Overwrites "Blogroll")', 'groupblog' ) ?> 
  300. </td> 
  301. </tr> 
  302. <tr> 
  303. <th><?php _e( 'Set First Post to Draft', 'groupblog' ) ?></th> 
  304. <td> 
  305. <label for="delete_first_post"> 
  306. <input name="delete_first_post" type="checkbox" id="delete_first_post" value="1" <?php if ($opt['delete_first_post'] == 1) echo('checked="checked"'); ?> /> <?php _e( 'Yes', 'groupblog' ) ?> <?php _e( '(Default Post "Hello World")', 'groupblog' ) ?> 
  307. </label> 
  308. </td> 
  309. </tr> 
  310. <tr> 
  311. <th><?php _e( 'Delete Initial Comment', 'groupblog' ) ?></th> 
  312. <td> 
  313. <label for="delete_first_comment"> 
  314. <input name="delete_first_comment" type="checkbox" id="delete_first_comment" value="1" <?php if ($opt['delete_first_comment'] == 1) echo('checked="checked"'); ?> /> <?php _e( 'Yes', 'groupblog' ) ?> 
  315. </label> 
  316. </td> 
  317. </tr> 
  318. <tr> 
  319. <th><?php _e( 'Delete Blogroll Links', 'groupblog' ) ?></th> 
  320. <td> 
  321. <label for="delete_blogroll_links"> 
  322. <input name="delete_blogroll_links" type="checkbox" id="delete_blogroll_links" value="1" <?php if ($opt['delete_blogroll_links'] == 1) echo('checked="checked"'); ?> /> <?php _e( 'Yes', 'groupblog' ) ?> 
  323. </label> 
  324. </td> 
  325. </tr> 
  326. </tbody> 
  327. </table> 
  328.  
  329. </div> 
  330. <div id='groupblog_validation_settings'> 
  331.  
  332. <h3><?php _e( 'Validation Settings', 'groupblog' ) ?></h3> 
  333.  
  334. <div><?php _e( 'Change the default WordPress blog validation settings.', 'groupblog' ) ?></div> 
  335. <table class="form-table"> 
  336. <tbody> 
  337. <tr> 
  338. <th><?php _e( 'Allow:', 'groupblog' ) ?></th> 
  339. <td> 
  340. <label for="bp_groupblog_allowdashes"> 
  341. <input name="bp_groupblog_allowdashes" type="checkbox" id="bp_groupblog_allowdashes" value="1" <?php if ($opt['allowdashes']== 1) echo 'checked="checked"'; ?> /> <?php _e( 'Dashes', 'groupblog' ) ?> <?php _e( '(Default: Not Allowed)', 'groupblog' ) ?> 
  342. </label> 
  343. </td> 
  344. </tr> 
  345. <tr> 
  346. <th></th> 
  347. <td> 
  348. <label for="bp_groupblog_allowunderscores"> 
  349. <input name="bp_groupblog_allowunderscores" type="checkbox" id="bp_groupblog_allowunderscores" value="1" <?php if ($opt['allowunderscores']== 1) echo 'checked="checked"'; ?> /> <?php _e( 'Underscores', 'groupblog' ) ?> <?php _e( '(Default: Not Allowed)', 'groupblog' ) ?> 
  350. </label> 
  351. </td> 
  352. </tr> 
  353. <tr> 
  354. <th></th> 
  355. <td> 
  356. <label for="bp_groupblog_allownumeric"> 
  357. <input name="bp_groupblog_allownumeric" type="checkbox" id="bp_groupblog_allownumeric" value="1" <?php if ($opt['allownumeric']== 1) echo 'checked="checked"'; ?> /> <?php _e( 'All Numeric Names', 'groupblog' ) ?> <?php _e( '(Default: Not Allowed)', 'groupblog' ) ?> 
  358. </label> 
  359. </td> 
  360. </tr> 
  361. <tr> 
  362. <th><?php _e( 'Minimum Length:', 'groupblog' ) ?></th> 
  363. <td> 
  364. <input name="bp_groupblog_minlength" style="width: 10%;" id="bp_groupblog_minlenth" value="<?php echo $opt['minlength'];?>" size="10" type="text" /> <?php _e( '(Default: 4 Characters)', 'groupblog' ) ?> 
  365. </td> 
  366. </tr> 
  367. </tbody> 
  368. </table> 
  369.  
  370. </div> 
  371. <div id='groupblog_about'> 
  372.  
  373. <h3><?php _e( 'About This PLugin', 'groupblog' ) ?></h3> 
  374.  
  375. <div> 
  376. <span class="indent"><strong><?php _e( 'Authors', 'groupblog' ) ?></strong></span> 
  377. <span><a href="http://oomsonline.com">Marius Ooms</a> & <a href="http://blevins.nl">Rodney Blevins</a></span> 
  378. </div> 
  379. <div> 
  380. <span class="indent"><strong><?php _e( 'Donate', 'groupblog' ) ?></strong></span> 
  381. <span><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7374704"><?php _e( 'PayPal', 'groupblog' ) ?></a></span> 
  382. </div> 
  383. <div> 
  384. <span class="indent"><strong><?php _e( 'Support', 'groupblog' ) ?></strong></span> 
  385. <span><a href="http://buddypress.org/forums/"><?php _e( 'BuddyPress Forums', 'groupblog' ) ?></a> | 
  386. <a href="http://wordpress.org/tags/bp-groupblog?forum_id=10"><?php _e( 'WordPress Forums', 'groupblog' ) ?></a></span> 
  387. </div> 
  388. <div> 
  389. <span class="indent"><strong><?php _e( 'Trac', 'groupblog' ) ?></strong></span> 
  390. <span><a href="http://plugins.trac.wordpress.org/log/bp-groupblog"><?php _e( 'Revision Log', 'groupblog' ) ?></a> | <a href="http://plugins.trac.wordpress.org/browser/bp-groupblog/"><?php _e( 'Trac Browser', 'groupblog' ) ?></a></span> 
  391. </div> 
  392. <div> 
  393. <span class="indent"><strong><?php _e( 'Rate', 'groupblog' ) ?></strong></span> 
  394. <span><a href="http://wordpress.org/extend/plugins/bp-groupblog/"><?php _e( 'Let everyone know! Only if you like it :)', 'groupblog' ) ?></a></span> 
  395. </div> 
  396. <hr /> 
  397. <div> 
  398. <span class="indent"><strong><?php _e( 'Acknowledgement', 'groupblog' ) ?></strong></span> 
  399. <span><?php _e( 'Thanks goes out to the following people:', 'groupblog' ) ?></span> 
  400. <ul id="acknowledge"> 
  401. <li><a href="http://buddypress.org/developers/apeatling/">Andy Peatling</a></li> 
  402. <li>Thijs Huijssoon</li> 
  403. <li><a href="http://deannaschneider.wordpress.com/">Deanna Schneider</a></li> 
  404. <li><a href="http://buddypress.org/developers/boonebgorges/">Boone Gorges</a></li> 
  405. <li><a href="http://wordpress.org/support/profile/5499080">Luiz Armesto</a></li> 
  406. <li><a href="http://buddypress.org/developers/burtadsit/">Burt Adsit</a></li> 
  407. </ul> 
  408. </div> 
  409.  
  410. </div> 
  411.  
  412. </div> 
  413.  
  414. <p class="submit"> 
  415. <input type="hidden" name="action" value="update" /> 
  416. <input type="submit" name="Submit" class="button-primary" value="<?php _e( 'Save Changes', 'groupblog' ) ?>" /> 
  417. </p> 
  418.  
  419. </form> 
  420.  
  421. </div> 
  422.  
  423. <?php