Changeset 1688
- Timestamp:
- 08/24/2009 08:45:17 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
-
bp-core/bp-core-cssjs.php (modified) (2 diffs)
-
bp-forums.php (modified) (1 diff)
-
bp-forums/bp-forums-bbpress.php (modified) (1 diff)
-
bp-forums/bp-forums-templatetags.php (modified) (2 diffs)
-
bp-themes/bp-sn-framework/messages/index.php (modified) (1 diff)
-
bp-themes/bp-sn-framework/messages/notices.php (modified) (1 diff)
-
bp-themes/bp-sn-framework/messages/sentbox.php (modified) (1 diff)
-
bp-wire/bp-wire-templatetags.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-cssjs.php
r1687 r1688 56 56 ?> 57 57 <style type="text/css"> 58 ul#adminmenu li.toplevel_page_bp-core .wp-menu-image a { background-image: url( <?php echo $bp->core->image_base . '/admin_menu_icon.png' ?> ) !important; background-position: -1px -32px; }58 ul#adminmenu li.toplevel_page_bp-core .wp-menu-image a { background-image: url( <?php echo BP_PLUGIN_URL . '/bp-core/images/admin_menu_icon.png' ?> ) !important; background-position: -1px -32px; } 59 59 ul#adminmenu li.toplevel_page_bp-core:hover .wp-menu-image a { background-position: -1px 0; } 60 60 ul#adminmenu li.toplevel_page_bp-core .wp-menu-image a img { display: none; } … … 63 63 } 64 64 add_action( 'admin_head', 'bp_core_admin_menu_icon_css' ); 65 66 function bp_core_confirmation_js() { 67 ?> 68 <script type="text/javascript"> jQuery(document).ready( function() { jQuery("a.confirm").click( function() { if ( confirm( '<?php _e( 'Are you sure?', 'buddypress' ) ?>' ) ) return true; else return false; }); });</script> 69 <?php 70 } 71 add_action( 'wp_head', 'bp_core_confirmation_js', 100 ); 65 72 66 73 /** -
trunk/bp-forums.php
r1636 r1688 9 9 require ( BP_PLUGIN_DIR . '/bp-forums/bp-forums-templatetags.php' ); 10 10 require ( BP_PLUGIN_DIR . '/bp-forums/bp-forums-filters.php' ); 11 require ( BP_PLUGIN_DIR . '/bp-forums/bp-forums-cssjs.php' );12 11 13 12 function bp_forums_setup() { -
trunk/bp-forums/bp-forums-bbpress.php
r1652 r1688 118 118 bb_update_option( 'uri', BB_URL ); 119 119 } 120 121 add_action( 'wp_head', 'bp_forums_add_js' ); 122 120 123 121 register_shutdown_function( create_function( '', 'do_action("bb_shutdown");' ) ); 124 122 } -
trunk/bp-forums/bp-forums-templatetags.php
r1655 r1688 415 415 $links .= '<a href="' . wp_nonce_url( bp_get_the_topic_permalink() . '/close', 'bp_forums_close_topic' ) . '">' . __( 'Close', 'buddypress' ) . '</a> ' . $seperator . ' '; 416 416 417 $links .= '<a id="topic-delete-link" href="' . wp_nonce_url( bp_get_the_topic_permalink() . '/delete', 'bp_forums_delete_topic' ) . '">' . __( 'Delete', 'buddypress' ) . '</a>';417 $links .= '<a class="confirm" id="topic-delete-link" href="' . wp_nonce_url( bp_get_the_topic_permalink() . '/delete', 'bp_forums_delete_topic' ) . '">' . __( 'Delete', 'buddypress' ) . '</a>'; 418 418 419 419 return $links; … … 696 696 697 697 $links = '<a href="' . wp_nonce_url( bp_get_the_topic_permalink() . $topic_template->post->id . '/post/' . $topic_template->post->post_id . '/edit/', 'bp_forums_edit_post' ) . '">' . __( 'Edit', 'buddypress' ) . '</a> ' . $seperator . ' '; 698 $links .= '<a id="post-delete-link" href="' . wp_nonce_url( bp_get_the_topic_permalink() . '/post/' . $topic_template->post->post_id . '/delete/', 'bp_forums_delete_post' ) . '">' . __( 'Delete', 'buddypress' ) . '</a>';698 $links .= '<a class="confirm" id="post-delete-link" href="' . wp_nonce_url( bp_get_the_topic_permalink() . '/post/' . $topic_template->post->post_id . '/delete/', 'bp_forums_delete_post' ) . '">' . __( 'Delete', 'buddypress' ) . '</a>'; 699 699 700 700 return $links; -
trunk/bp-themes/bp-sn-framework/messages/index.php
r1655 r1688 50 50 51 51 <td width="10%"> 52 <a href="<?php bp_message_thread_delete_link() ?>" title="<?php _e("Delete Message", "buddypress"); ?>" class="delete "><?php _e("Delete", "buddypress"); ?></a> 52 <a href="<?php bp_message_thread_delete_link() ?>" title="<?php _e("Delete Message", "buddypress"); ?>" class="delete confirm"><?php _e("Delete", "buddypress"); ?></a> 53 53 <input type="checkbox" name="message_ids[]" value="<?php bp_message_thread_id() ?>" /> 54 54 </td> -
trunk/bp-themes/bp-sn-framework/messages/notices.php
r1655 r1688 43 43 44 44 <td width="4%"> 45 <a href="<?php bp_message_activate_deactivate_link() ?>" ><?php bp_message_activate_deactivate_text() ?></a>46 <a href="<?php bp_message_notice_delete_link() ?>" title="<?php _e("Delete Message", "buddypress"); ?>"><?php _e("Delete", "buddypress"); ?></a>45 <a href="<?php bp_message_activate_deactivate_link() ?>" class="confirm"><?php bp_message_activate_deactivate_text() ?></a> 46 <a href="<?php bp_message_notice_delete_link() ?>" class="confirm" title="<?php _e("Delete Message", "buddypress"); ?>"><?php _e("Delete", "buddypress"); ?></a> 47 47 </td> 48 48 </tr> -
trunk/bp-themes/bp-sn-framework/messages/sentbox.php
r1655 r1688 45 45 46 46 <td width="10%"> 47 <a href="<?php bp_message_thread_delete_link() ?>" title="<?php _e("Delete Message", "buddypress"); ?>" class="delete "><?php _e("Delete", "buddypress"); ?></a> 47 <a href="<?php bp_message_thread_delete_link() ?>" title="<?php _e("Delete Message", "buddypress"); ?>" class="delete confirm"><?php _e("Delete", "buddypress"); ?></a> 48 48 <input type="checkbox" name="message_ids[]" value="<?php bp_message_thread_id() ?>" /> 49 49 </td> -
trunk/bp-wire/bp-wire-templatetags.php
r1655 r1688 364 364 if ( ( $wire_posts_template->wire_post->user_id == $bp->loggedin_user->id ) || $bp->is_item_admin || is_site_admin() ) { 365 365 if ( $bp->wire->slug == $bp->current_component || $bp->profile->slug == $bp->current_component ) { 366 return apply_filters( 'bp_get_wire_delete_link', '<a href="' . wp_nonce_url( $bp->displayed_user->domain . $bp->wire->slug . '/delete/' . $wire_posts_template->wire_post->id, 'bp_wire_delete_link' ) . '">[' . __('Delete', 'buddypress') . ']</a>' );366 return apply_filters( 'bp_get_wire_delete_link', '<a class="confirm" href="' . wp_nonce_url( $bp->displayed_user->domain . $bp->wire->slug . '/delete/' . $wire_posts_template->wire_post->id, 'bp_wire_delete_link' ) . '">[' . __('Delete', 'buddypress') . ']</a>' ); 367 367 } else { 368 return apply_filters( 'bp_get_wire_delete_link', '<a href="' . wp_nonce_url( site_url( $bp->{$bp->current_component}->slug . '/' . $uri . '/wire/delete/' . $wire_posts_template->wire_post->id ), 'bp_wire_delete_link' ) . '">[' . __('Delete', 'buddypress') . ']</a>' );368 return apply_filters( 'bp_get_wire_delete_link', '<a class="confirm" href="' . wp_nonce_url( site_url( $bp->{$bp->current_component}->slug . '/' . $uri . '/wire/delete/' . $wire_posts_template->wire_post->id ), 'bp_wire_delete_link' ) . '">[' . __('Delete', 'buddypress') . ']</a>' ); 369 369 } 370 370 }
Note: See TracChangeset
for help on using the changeset viewer.