Changeset 2069
- Timestamp:
- 11/01/2009 09:35:03 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-avatars.php
r2025 r2069 93 93 $avatar_folder_url = apply_filters( 'bp_core_avatar_folder_url', get_blog_option( BP_ROOT_BLOG, 'siteurl' ) . '/' . basename( WP_CONTENT_DIR ) . '/blogs.dir/' . BP_ROOT_BLOG . '/files/' . $avatar_dir . '/' . $item_id, $item_id, $object, $avatar_dir ); 94 94 $avatar_folder_dir = apply_filters( 'bp_core_avatar_folder_dir', WP_CONTENT_DIR . '/blogs.dir/' . BP_ROOT_BLOG . '/files/' . $avatar_dir . '/' . $item_id, $item_id, $object, $avatar_dir ); 95 95 96 /**** 97 * Look for uploaded avatar first. Use it if it exists. 98 * Set the file names to search for, to select the full size 99 * or thumbnail image. 100 */ 101 $avatar_name = ( 'full' == $type ) ? '-bpfull' : '-bpthumb'; 102 $legacy_user_avatar_name = ( 'full' == $type ) ? '-avatar2' : '-avatar1'; 103 $legacy_group_avatar_name = ( 'full' == $type ) ? '-groupavatar-full' : '-groupavatar-thumb'; 104 105 if ( file_exists( $avatar_folder_dir ) ) { 106 if ( $av_dir = opendir( $avatar_folder_dir ) ) { 107 while ( false !== ( $avatar_file = readdir($av_dir) ) ) { 108 if ( preg_match( "/{$avatar_name}/", $avatar_file ) || preg_match( "/{$legacy_user_avatar_name}/", $avatar_file ) || preg_match( "/{$legacy_group_avatar_name}/", $avatar_file ) ) 109 $avatar_url = $avatar_folder_url . '/' . $avatar_file; 110 } 111 } 112 closedir($av_dir); 113 114 if ( $avatar_url ) 115 return apply_filters( 'bp_core_fetch_avatar', "<img src='{$avatar_url}' alt='{$alt}' id='{$css_id}' class='{$class}'{$html_width}{$html_height} />", $params ); 116 } 117 96 118 /* If no avatars have been uploaded for this item, display a gravatar */ 97 if ( !file_exists( $avatar_ folder_dir) && !$no_grav ) {119 if ( !file_exists( $avatar_url ) && !$no_grav ) { 98 120 99 121 if ( empty( $bp->grav_default->{$object} ) ) … … 120 142 return apply_filters( 'bp_core_fetch_avatar', "<img src='{$gravatar}' alt='{$alt}' id='{$css_id}' class='{$class}'{$html_width}{$html_height} />", $params ); 121 143 122 } else if ( !file_exists( $avatar_folder_dir ) && $no_grav ) 123 return false; 124 125 /* Set the file names to search for to select the full size or thumbnail image. */ 126 $avatar_name = ( 'full' == $type ) ? '-bpfull' : '-bpthumb'; 127 $legacy_user_avatar_name = ( 'full' == $type ) ? '-avatar2' : '-avatar1'; 128 $legacy_group_avatar_name = ( 'full' == $type ) ? '-groupavatar-full' : '-groupavatar-thumb'; 129 130 if ( $av_dir = opendir( $avatar_folder_dir ) ) { 131 while ( false !== ( $avatar_file = readdir($av_dir) ) ) { 132 if ( preg_match( "/{$avatar_name}/", $avatar_file ) || preg_match( "/{$legacy_user_avatar_name}/", $avatar_file ) || preg_match( "/{$legacy_group_avatar_name}/", $avatar_file ) ) 133 $avatar_url = $avatar_folder_url . '/' . $avatar_file; 134 } 135 } 136 closedir($av_dir); 137 138 return apply_filters( 'bp_core_fetch_avatar', "<img src='{$avatar_url}' alt='{$alt}' id='{$css_id}' class='{$class}'{$html_width}{$html_height} />", $params ); 144 } else if ( !file_exists( $avatar_url ) && $no_grav ) 145 return false; 146 139 147 } 140 148 -
trunk/bp-core/bp-core-cssjs.php
r2025 r2069 147 147 ?> 148 148 <style type="text/css"> 149 .jcrop-holder { text-align: left; }149 .jcrop-holder { float: left; margin: 0 20px 20px 0; text-align: left; } 150 150 .jcrop-vline, .jcrop-hline { font-size: 0; position: absolute; background: white top left repeat url( <?php echo BP_PLUGIN_URL ?>/bp-core/images/Jcrop.gif ); } 151 151 .jcrop-vline { height: 100%; width: 1px !important; } … … 157 157 #avatar-crop-pane { width: <?php echo BP_AVATAR_FULL_WIDTH ?>px; height: <?php echo BP_AVATAR_FULL_HEIGHT ?>px; overflow: hidden; } 158 158 #avatar-crop-submit { margin: 20px 0; } 159 #avatar-upload-form img { border: none !important; }159 #avatar-upload-form img, #create-group-form img, #group-settings-form img { border: none !important; } 160 160 </style> 161 161 <?php -
trunk/bp-themes/bp-default/_inc/css/screen.css
r1991 r2069 8 8 } 9 9 10 a { 11 color: #f7740a; 10 a { 11 color: #f7740a; 12 12 text-decoration: underline; 13 13 } 14 14 15 15 a:hover { 16 color: #555; 16 color: #555; 17 17 text-decoration: none; 18 18 } 19 19 20 a.selected { 21 color: #555; 20 a.selected { 21 color: #555; 22 22 text-decoration: none; 23 23 } … … 65 65 padding: 7px 20px; 66 66 } 67 67 68 68 #logout-link img { 69 69 vertical-align: middle; 70 70 } 71 71 72 72 #search-login-bar #rememberme { display: none; } 73 73 … … 87 87 } 88 88 89 #header h1#logo { 89 #header h1#logo { 90 90 float: left; 91 91 margin: 20px 0 15px 20px; 92 92 padding: 15px 0; 93 93 } 94 94 95 95 #header h1#logo a { 96 96 font-size: 2em; … … 100 100 display: block; 101 101 text-decoration: none; 102 } 103 102 } 103 104 104 #header ul { 105 105 float: right; … … 121 121 text-decoration: none; 122 122 } 123 123 124 124 #header ul li.selected a { 125 125 background: #fff9df; … … 154 154 155 155 /*** Content Header *************************************************************/ 156 156 157 157 div.content-header { 158 158 font: normal 1em "Georgia", Times, serif; … … 186 186 text-decoration: none; 187 187 } 188 188 189 189 ul.content-header-nav li span { 190 190 color: #999; 191 191 } 192 192 193 193 ul.content-header-nav li.current { 194 194 background: url(../images/topoption_selected_back.gif) top center no-repeat; … … 213 213 list-style: none; 214 214 } 215 215 216 216 #userbar h3 { 217 217 font: normal 1em "Georgia", Times, serif; … … 238 238 margin: 0.4em 0; 239 239 float: none; 240 } 241 240 } 241 242 242 #userbar p#login-text { 243 243 padding: 0.5em 1em 0 1em; 244 244 } 245 245 246 246 p.avatar img { 247 247 border: 4px solid #fff; 248 248 } 249 249 img#avatar-to-crop { border: none !important; } 250 250 251 251 #userbar form { 252 252 padding: 1em 1.5em 1em 1em; … … 257 257 #userbar form input#userbar_rememberme { width: auto; } 258 258 #userbar form input#wp-submit { width: auto; } 259 259 260 260 #userbar ul#bp-nav { 261 261 width: 149px; … … 278 278 color: #fff; 279 279 } 280 280 281 281 li a#user-profile, li a#my-profile { 282 282 background: url(../images/profile_bullet.gif) 88% 52% no-repeat; … … 287 287 li a#user-messages, li a#my-messages { 288 288 background: url(../images/messages_bullet.gif) 89% 52% no-repeat; 289 } 290 289 } 290 291 291 li a#user-blogs, li a#my-blogs { 292 292 background: url(../images/blog_bullet.gif) 87% 52% no-repeat; … … 294 294 margin-right: 0.85em !important; 295 295 } 296 296 297 297 li a#user-friends, li a#my-friends { 298 298 background: url(../images/friends_bullet.gif) 87% 52% no-repeat; … … 300 300 margin-right: 0.85em !important; 301 301 } 302 302 303 303 li a#user-groups, li a#my-groups { 304 304 background: url(../images/groups_bullet.gif) 88% 52% no-repeat; … … 306 306 margin-right: 0.85em !important; 307 307 } 308 308 309 309 li a#user-wire, li a#my-wire { 310 310 background: url(../images/wire_bullet.gif) 88% 52% no-repeat; … … 318 318 margin-right: 0.85em !important; 319 319 } 320 320 321 321 li a#user-settings, li a#my-settings { 322 background: url(../images/settings_bullet.gif) 88% 52% no-repeat; 322 background: url(../images/settings_bullet.gif) 88% 52% no-repeat; 323 323 } 324 324 325 325 li a#wp-logout { 326 326 background: url(../images/logout_bullet.gif) 87% 52% no-repeat; 327 327 } 328 328 329 329 li a#group-home, li a#group-wire, li a#group-photos, li a#group-forum, 330 330 li a#group-members, li a#group-invite, li a#group-leave, li a#group-admin … … 336 336 } 337 337 li a#group-forum { 338 background: url(../images/forum_bullet.gif) 88% 52% no-repeat; 338 background: url(../images/forum_bullet.gif) 88% 52% no-repeat; 339 339 } 340 340 341 341 li a#group-members { 342 background: url(../images/friends_bullet.gif) 87% 52% no-repeat; 342 background: url(../images/friends_bullet.gif) 87% 52% no-repeat; 343 343 } 344 344 345 345 li a#group-invite { 346 background: url(../images/invite_bullet.gif) 89% 52% no-repeat; 346 background: url(../images/invite_bullet.gif) 89% 52% no-repeat; 347 347 } 348 348 349 349 li a#group-leave { 350 background: url(../images/cross_bullet.gif) 88% 52% no-repeat; 350 background: url(../images/cross_bullet.gif) 88% 52% no-repeat; 351 351 } 352 352 353 353 li a#group-wire { 354 354 background: url(../images/wire_bullet.gif) 88% 52% no-repeat; 355 } 356 355 } 356 357 357 li a#group-admin { 358 358 background: url(../images/blogadmin_icon.gif) 87% 52% no-repeat; 359 359 } 360 360 361 361 li a#request-membership { 362 362 background: url(../images/request_bullet.gif) 87% 25% no-repeat; … … 373 373 } 374 374 #optionsbar a { text-decoration: none; } 375 375 376 376 #optionsbar ul { 377 377 margin: 0; … … 379 379 list-style: none; 380 380 } 381 381 382 382 #optionsbar ul li { 383 383 float: none; 384 384 margin-right: 0; 385 385 } 386 386 387 387 #optionsbar p.avatar { 388 388 text-align: center !important; … … 395 395 float: none; 396 396 } 397 397 398 398 #optionsbar h3 { 399 399 font: normal 1em "Georgia", Times, serif; … … 404 404 letter-spacing: 0.5px; 405 405 } 406 406 407 407 #optionsbar ul#options-nav { 408 408 width: 148px; … … 421 421 text-align: right; 422 422 } 423 423 424 424 #optionsbar ul.icons li a { 425 425 padding-right: 3.1em !important; … … 428 428 429 429 /*** Internal Page Left Menu / Main Column **************************************/ 430 430 431 431 .internal-page .left-menu { 432 432 position: relative; … … 440 440 } 441 441 .left-menu h5 { margin: 0; font-size: 1em; } 442 442 443 443 .left-menu div.button-block { 444 444 margin: 20px 0; 445 445 } 446 446 447 447 .left-menu input { width: 90%; } 448 448 … … 475 475 .left-menu div.bp-widget h4 { 476 476 background: url(../images/leftmenu_group_header.gif) top left no-repeat; 477 color: #555; 477 color: #555; 478 478 } 479 479 480 480 /* "See All" links in widget headers */ 481 481 div.bp-widget h4 span { position: absolute; right: 10px; } 482 482 483 483 div.bp-widget h4 a { 484 484 color: #fff; 485 485 font-weight: normal; 486 486 } 487 487 488 488 ul.horiz-gallery { 489 489 list-style: none; … … 516 516 overflow: hidden; 517 517 } 518 518 519 519 ul.item-list img.avatar { 520 520 float: left; 521 521 margin-right: 10px; 522 522 } 523 524 ul.item-list h4, ul.item-list h5, ul.item-list .item-title { 523 524 ul.item-list h4, ul.item-list h5, ul.item-list .item-title { 525 525 font-size: 1em; 526 526 margin: 0 0 4px 0; 527 527 } 528 528 529 529 ul.item-list li .field-data { 530 530 margin-left: 68px; … … 533 533 color: #888; 534 534 } 535 535 536 536 ul.item-list li .desc { 537 537 font-size: 0.9em; … … 548 548 } 549 549 550 div#avatar-crop-pane {551 display: none;552 }553 554 550 div#avatar-crop-submit { 555 551 margin: 20px 0 0 0; … … 567 563 top: 45px; 568 564 } 569 565 570 566 .pagination-links { 571 567 text-align: right; … … 587 583 border-bottom: 2px solid #f28935; 588 584 } 589 585 590 586 .pag-count { 591 587 font-size: 0.9em; … … 649 645 .accept a { background-image: url(../images/accept_button_side.gif); } 650 646 .reject a { background-image: url(../images/reject_button_side.gif); } 651 647 652 648 .generic-button a:hover { 653 649 color: #555; 654 650 text-decoration: none; 655 651 } 656 652 657 653 .friendship-button a.add { 658 654 background: url(../images/add_button_side.gif) top right no-repeat; … … 666 662 background: url(../images/check_button_side.gif) top right no-repeat; 667 663 } 668 664 669 665 .loading a { 670 background: url(../images/loading_button_side.gif) top right no-repeat !important; 666 background: url(../images/loading_button_side.gif) top right no-repeat !important; 671 667 } 672 668 … … 674 670 background: url(../images/add_button_side.gif) top right no-repeat; 675 671 } 676 672 677 673 .group-button a.leave-group { 678 674 background: url(../images/remove_button_side.gif) top right no-repeat; 679 675 } 680 676 681 677 .group-button a.membership-requested { 682 678 background: url(../images/check_button_side.gif) top right no-repeat; 683 679 } 684 680 685 681 .main-column .button-block { 686 682 overflow: hidden; … … 734 730 margin: 10px 0 5px 0; 735 731 } 736 732 737 733 form.standard-form input[type=text] { 738 734 width: 65%; … … 742 738 width: 65%; 743 739 } 744 740 745 741 form.standard-form .checkbox label, form.standard-form .radio label { 746 742 font-weight: normal; … … 788 784 margin-top: 5px !important; 789 785 } 790 786 791 787 .widget ul.item-list li .item-avatar img, img.avatar { 792 788 border: 3px solid #ddd; 793 789 } 794 790 795 791 .widget ul.item-list li h4.item-title { 796 792 font: normal 1.4em "Georgia", Times, serif; 797 margin: 0 0 7px 0; 798 } 799 793 margin: 0 0 7px 0; 794 } 795 800 796 .widget_bp_blogs_widget_recent_posts img.avatar { 801 797 width: 50px !important; 802 798 height: 50px !important; 803 } 804 799 } 800 805 801 .widget ul.item-list li .item { 806 802 margin-left: 71px; … … 809 805 margin-left: 31px !important; 810 806 } 811 807 812 808 .widget ul.item-list li .item-meta { 813 809 font: normal 1em "Georgia", Times, serif; 814 810 margin: 10px 0; 815 811 } 816 812 817 813 .widget .item-options { 818 814 text-align: right; … … 820 816 margin: -15px 0 0 0; 821 817 } 822 818 823 819 .widget_bp_core_widget_whos_online .item-avatar { 824 820 float: left; … … 831 827 text-align: right; 832 828 } 833 829 834 830 .widget-error { 835 831 padding: 10px; … … 845 841 display: inline-block; 846 842 font: normal 0.9em "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif !important; 847 max-width: 60%; 843 max-width: 60%; 848 844 } 849 845 … … 881 877 cursor: pointer; 882 878 } 883 879 884 880 .widget table#wp-calendar td#today { 885 881 background: #fff9df; 886 882 } 887 883 888 884 .widget table#wp-calendar td.pad { 889 885 background: none; … … 903 899 color: #fff; 904 900 } 905 901 906 902 #second-section .widget h2 { 907 903 background: url(../images/centercol_header_back.gif) top left no-repeat; … … 960 956 padding: 3px 5px; 961 957 } 962 958 963 959 ul#letter-list li a:hover { 964 960 font-weight: bold; … … 966 962 color: #f7740a; 967 963 } 968 964 969 965 ul#letter-list li a.selected { 970 966 font-weight: bold; … … 986 982 .post, #comments-template, #compose-reply { 987 983 background: url(../images/item_list_back.gif) top left repeat-x; 988 padding: 20px 15px; 984 padding: 20px 15px; 989 985 } 990 986 #comments-section, #compose-reply { 991 987 background: none; 992 988 } 993 994 ol.commentlist { 995 list-style: none; 989 990 ol.commentlist { 991 list-style: none; 996 992 margin: 0; 997 993 padding: 0; … … 1031 1027 margin: 10px 0; 1032 1028 } 1033 1029 1034 1030 .post span.tags { 1035 1031 background: url(../images/tag_icon.gif) center left no-repeat; … … 1179 1175 1180 1176 .commentlist li.alt { background: #f0f0f0; } 1181 .commentlist li img.avatar { 1177 .commentlist li img.avatar { 1182 1178 padding: 0; 1183 1179 margin: 0 10px 10px 0; 1184 1180 float: left; 1185 1181 1186 1182 } 1187 1183 .commentlist li.alt img.avatar { border-color: #fff !important; } 1188 1184 1189 .commentmetadata { 1185 .commentmetadata { 1190 1186 font-size: 0.9em; 1191 1187 border-bottom: 1px solid #ddd; … … 1229 1225 } 1230 1226 1231 #basic-details-section input, #basic-details-section textarea, 1227 #basic-details-section input, #basic-details-section textarea, 1232 1228 #profile-details-section input, #profile-details-section textarea, 1233 1229 input#signup_blog_title { … … 1264 1260 font-size: 1.4em; 1265 1261 } 1266 1262 1267 1263 1268 1264 /*** Component Specific Styles ****************************************************/ … … 1282 1278 } 1283 1279 ul#activity-filter-links li#afilter-blogs a { 1284 background: url(../images/blog_bullet.gif) 20px 4px no-repeat; 1285 } 1286 1280 background: url(../images/blog_bullet.gif) 20px 4px no-repeat; 1281 } 1282 1287 1283 ul#activity-filter-links li#afilter-profile a { 1288 1284 background: url(../images/profile_bullet.gif) 0 4px no-repeat; … … 1292 1288 background: url(../images/friends_bullet.gif) 0 4px no-repeat; 1293 1289 } 1294 1290 1295 1291 ul#activity-filter-links li#afilter-groups a { 1296 1292 background: url(../images/groups_bullet.gif) 0 4px no-repeat; 1297 1293 } 1298 1294 1299 1295 ul#activity-filter-links li#afilter-wire a { 1300 1296 background: url(../images/wire_bullet.gif) 0 4px no-repeat; … … 1304 1300 background: url(../images/status_bullet.gif) 0 4px no-repeat; 1305 1301 } 1306 1302 1307 1303 .activity-list li div.activity-avatar { 1308 1304 position: absolute; … … 1312 1308 border-width: 2px; 1313 1309 } 1314 1310 1315 1311 .internal-page .activity-list li div.activity-avatar img.avatar { 1316 1312 border-top-width: 3px !important; … … 1368 1364 font-weight: bold; 1369 1365 } 1370 1366 1371 1367 ul#activity-filter-links li#afilter-clear a { 1372 1368 background: url(../images/error_icon.gif) 0 4px no-repeat; … … 1414 1410 1415 1411 /**** BLOGS *****************/ 1416 1412 1417 1413 #blog-info { 1418 1414 border-bottom: 1px solid #e1e1e1; … … 1439 1435 font: italic 1em Georgia, times, serif; 1440 1436 } 1441 1437 1442 1438 .post span.tags { 1443 1439 background: url(../images/tag_icon.gif) center left no-repeat; … … 1457 1453 border-bottom: 1px solid #e1e1e1; 1458 1454 } 1459 1460 1455 1456 1461 1457 /*---- Blog Signup Form --------*/ 1462 1458 … … 1469 1465 color: #fff; 1470 1466 } 1471 1467 1472 1468 .suffix_address, .prefix_address { 1473 1469 font-size: 1.4em; … … 1480 1476 text-align: right; 1481 1477 } 1482 1478 1483 1479 #setupform input#submit { 1484 1480 font-size: 1.4em; 1485 1481 } 1486 1482 1487 1483 /***** FORUMS ***************/ 1488 1484 … … 1495 1491 background-image: url( ../images/message_thread_unread_back.gif ) !important; 1496 1492 } 1497 1493 1498 1494 .closed a.topic-title { 1499 1495 background: url( ../images/closed.png ) no-repeat center left; 1500 1496 padding: 0 0 0 20px; 1501 1497 } 1502 1503 ul#forum-topic-list li span.latest { 1498 1499 ul#forum-topic-list li span.latest { 1504 1500 display: block; 1505 1501 margin-left: 50px; 1506 1502 } 1507 1503 1508 1504 ul#forum-topic-list li div.admin-links, ul#topic-post-list li div.admin-links { 1509 1505 position: absolute; … … 1580 1576 margin: 10px 0 3px 0; 1581 1577 } 1582 1578 1583 1579 div#edit-post textarea { 1584 1580 height: 150px; … … 1635 1631 top: -25px; 1636 1632 } 1637 1633 1638 1634 table#global-forum-topic-list { 1639 1635 width: 97%; … … 1643 1639 background: url( ../images/message_thread_back.gif ) 0 -2px; 1644 1640 } 1645 1641 1646 1642 table#global-forum-topic-list td { 1647 1643 border-top: 1px solid #eee; … … 1652 1648 font-size: 0.9em; 1653 1649 } 1654 1650 1655 1651 table#global-forum-topic-list tr th, table#global-forum-topic-list td.td-postcount, 1656 table#global-forum-topic-list td.td-freshness { 1652 table#global-forum-topic-list td.td-freshness { 1657 1653 text-align: center; 1658 1654 } 1659 1655 1660 1656 1661 1657 table#global-forum-topic-list tr th#th-title, table#global-forum-topic-list tr th#th-poster, 1662 1658 table#global-forum-topic-list tr th#th-group { text-align: left; } 1663 1659 1664 1660 table#global-forum-topic-list tr td, table#global-forum-topic-list tr th { 1665 1661 padding: 5px 10px; 1666 1662 vertical-align: middle; 1667 1663 } 1668 1664 1669 1665 table#global-forum-topic-list td.td-freshness { 1670 1666 font-size: 0.9em; 1671 1667 color: #888; 1672 1668 } 1673 1669 1674 1670 table#global-forum-topic-list td.td-poster, table#global-forum-topic-list td.td-group { 1675 1671 min-width: 130px; 1676 1672 } 1677 1673 1678 1674 table#global-forum-topic-list img.avatar { float:left; } 1679 1675 1680 1676 table#global-forum-topic-list div.poster-name, table#global-forum-topic-list div.object-name { 1681 1677 margin-left: 35px; … … 1685 1681 width: 40%; 1686 1682 } 1687 1683 1688 1684 table#global-forum-topic-list th#th-postcount { 1689 1685 width: 1%; 1690 1686 } 1691 1687 1692 1688 table#global-forum-topic-list td img { 1693 1689 vertical-align: middle; 1694 1690 margin-right: 4px; 1695 border-width: 3px !important; 1691 border-width: 3px !important; 1696 1692 } 1697 1693 … … 1709 1705 float: left; 1710 1706 } 1711 1707 1712 1708 div.group-forum div.item { 1713 1709 margin-left: 70px; … … 1717 1713 font-family: Georgia, times, serif; 1718 1714 } 1719 1715 1720 1716 div.group-forum div.desc { 1721 1717 font-size: 0.95em; … … 1768 1764 margin-left: 0; 1769 1765 } 1770 1766 1771 1767 #invite-list { margin-bottom: 25px; } 1772 1768 1773 1769 #invite-list ul, ul#friend-list { 1774 1770 margin: 0; 1775 1771 } 1776 1772 #invite-list input { width: auto !important; } 1777 1773 1778 1774 #create-group-form textarea, #group-settings-form textarea { 1779 1775 height: 120px; … … 1806 1802 } 1807 1803 ul.item-list li.banned-user a { color: red; } 1808 1804 1809 1805 #group-list li span.small, #member-list li span.small, #comment-list li span.small, ul.item-list li span.small { 1810 1806 font-size: 0.95em; … … 1846 1842 font-size: 0.9em; 1847 1843 } 1848 1844 1849 1845 #random-groups-list .desc { 1850 margin-left: 70px; 1851 } 1852 1846 margin-left: 70px; 1847 } 1848 1853 1849 #random-groups-list .action { 1854 1850 text-align: right; … … 1866 1862 width: auto; 1867 1863 } 1868 1864 1869 1865 #previous-next input#group-creation-next, #previous-next input#group-creation-finish { 1870 1866 width: auto; … … 1910 1906 margin-bottom: 10px; 1911 1907 } 1912 1908 1913 1909 div.message-box .message-metadata h3 { 1914 1910 font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Tahoma, Verdana, Arial, sans-serif; … … 1916 1912 margin: 0 0 5px 0; 1917 1913 } 1918 1914 1919 1915 div.message-box .message-metadata small { 1920 1916 font-size: 0.9em; 1921 1917 color: #888; 1922 1918 } 1923 1919 1924 1920 div.message-box .message-metadata h3 { 1925 1921 font-size: 1.1em; … … 1944 1940 font-size: 0.95em; 1945 1941 } 1946 1947 .avatar-box { 1942 1943 .avatar-box { 1948 1944 border: none !important; 1949 1945 } … … 1952 1948 font: bold 1em "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Tahoma, Verdana, Arial, sans-serif;; 1953 1949 } 1954 1950 1955 1951 .avatar-box small { 1956 1952 line-height: 1.5; … … 1958 1954 color: #888; 1959 1955 } 1960 1956 1961 1957 #message_content_tbl { border: 1px solid #ddd; } 1962 1958 .mceToolbar, .mceStatusbar { background: #eee; } 1963 1959 .mceToolbar a { color: #bbb !important; } 1964 1960 1965 1961 div.ajax_reply, div.error-box { 1966 1962 text-align: center; … … 1993 1989 font-weight: bold; 1994 1990 } 1995 1991 1996 1992 form#send-reply textarea { 1997 1993 width: 98%; … … 2062 2058 padding: 0.5em 1em; 2063 2059 } 2064 2060 2065 2061 table.profile-fields tr td.label, table.wp-profile-fields tr td.label { 2066 2062 width: 130px; … … 2091 2087 font-size: 0.9em; 2092 2088 } 2093 2089 2094 2090 .wire-post-content { 2095 2091 margin-left: 68px; … … 2118 2114 } 2119 2115 2120 div#wire-post-new-avatar { 2116 div#wire-post-new-avatar { 2121 2117 float: left; 2122 2118 } 2123 2119 2124 2120 div#wire-post-new-metadata { 2125 2121 position: absolute; … … 2130 2126 display: none; 2131 2127 } 2132 2128 2133 2129 div#wire-post-new-input { 2134 2130 margin-left: 70px; … … 2139 2135 margin: 5px 0 0 0; 2140 2136 } 2141 2142 input#wire-post-submit { 2137 2138 input#wire-post-submit { 2143 2139 margin-top: 10px; 2144 2140 } … … 2159 2155 font: normal 11px "Lucida Grande", "Lucida Sans Unicode", Arial, Tahoma, sans-serif; 2160 2156 } 2161 2157 2162 2158 input#status-update-input, textarea#status-update-input { 2163 2159 padding: 5px; … … 2166 2162 color: #888; 2167 2163 } 2168 2164 2169 2165 div#status-update-buttons { 2170 2166 margin: 10px 0 0 0; 2171 } 2167 } 2172 2168 div#status-update-buttons input { 2173 2169 width: auto; 2174 2170 } 2175 2171 2176 2172 div#user-status label { 2177 2173 display: block; … … 2181 2177 padding: 0 0 5px 0; 2182 2178 } 2183 2179 2184 2180 a#status-new-status, a#status-clear-status { 2185 2181 padding-top: 2px; … … 2187 2183 } 2188 2184 a#status-clear-status { color: red; } 2189 2185 2190 2186 div#user-status span.time-since { 2191 2187 color: #aaa; … … 2216 2212 padding: 3px 0; 2217 2213 } 2218 2214 2219 2215 table.notification-settings th.icon { 2220 2216 width: 35px; 2221 2217 } 2222 2218 2223 2219 table.notification-settings th.title { 2224 2220 width: 80%; 2225 2221 } 2226 2222 2227 2223 table.notification-settings .yes, table.notification-settings .no { 2228 2224 width: 40px; … … 2238 2234 font-weight: bold; 2239 2235 } 2240 2236 2241 2237 table.notification-settings tr { 2242 2238 border-bottom: 1px solid #eee; 2243 2239 } 2244 2240 2245 2241 table.notification-settings th.icon { 2246 2242 background: center center no-repeat; -
trunk/bp-themes/bp-sn-parent/groups/create.php
r1905 r2069 7 7 </div> 8 8 9 <div id="content"> 9 <div id="content"> 10 10 <h2><?php _e( 'Create a Group', 'buddypress' ) ?> <?php bp_group_creation_stage_title() ?></h2> 11 11 <?php do_action( 'template_notices' ) // (error/success feedback) ?> … … 14 14 15 15 <form action="<?php bp_group_creation_form_action() ?>" method="post" id="create-group-form" class="standard-form" enctype="multipart/form-data"> 16 16 17 17 <!-- Group creation step 1: Basic group details --> 18 18 <?php if ( bp_is_group_creation_step( 'group-details' ) ) : ?> 19 19 20 20 <?php do_action( 'bp_before_group_details_creation_step' ); ?> 21 22 <label for="group-name"><?php _e(' Group Name', 'buddypress') ?> <? _e( '(required)', 'buddypress' )?></label>21 22 <label for="group-name"><?php _e('* Group Name', 'buddypress') ?> <? _e( '(required)', 'buddypress' )?></label> 23 23 <input type="text" name="group-name" id="group-name" value="<?php bp_new_group_name() ?>" /> 24 25 <label for="group-desc"><?php _e(' Group Description', 'buddypress') ?> <? _e( '(required)', 'buddypress' )?></label>24 25 <label for="group-desc"><?php _e('* Group Description', 'buddypress') ?> <? _e( '(required)', 'buddypress' )?></label> 26 26 <textarea name="group-desc" id="group-desc"><?php bp_new_group_description() ?></textarea> 27 27 28 28 <label for="group-news"><?php _e('Recent News', 'buddypress') ?></label> 29 29 <textarea name="group-news" id="group-news"><?php bp_new_group_news() ?></textarea> 30 30 31 31 <?php do_action( 'bp_after_group_details_creation_step' ); /* Deprecated -> */ do_action( 'groups_custom_group_fields_editable' ); ?> 32 32 … … 35 35 <?php endif; ?> 36 36 37 <!-- Group creation step 2: Group settings --> 37 <!-- Group creation step 2: Group settings --> 38 38 <?php if ( bp_is_group_creation_step( 'group-settings' ) ) : ?> 39 39 … … 45 45 </div> 46 46 <?php endif; ?> 47 47 48 48 <?php if ( function_exists('bp_forums_setup') ) : ?> 49 49 <?php if ( bp_forums_is_installed_correctly() ) : ?> … … 63 63 64 64 <div class="radio"> 65 <label><input type="radio" name="group-status" value="public"<?php if ( 'public' == bp_get_new_group_status() || !bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> /> 65 <label><input type="radio" name="group-status" value="public"<?php if ( 'public' == bp_get_new_group_status() || !bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> /> 66 66 <strong><?php _e( 'This is a public group', 'buddypress' ) ?></strong> 67 67 <ul> … … 71 71 </ul> 72 72 </label> 73 73 74 74 <label><input type="radio" name="group-status" value="private"<?php if ( 'private' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> /> 75 75 <strong><?php _e( 'This is a private group', 'buddypress' ) ?></strong> … … 80 80 </ul> 81 81 </label> 82 82 83 83 <label><input type="radio" name="group-status" value="hidden"<?php if ( 'hidden' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> /> 84 84 <strong><?php _e('This is a hidden group', 'buddypress') ?></strong> … … 94 94 95 95 <?php wp_nonce_field( 'groups_create_save_group-settings' ) ?> 96 97 <?php endif; ?> 98 99 <!-- Group creation step 3: Avatar Uploads --> 96 97 <?php endif; ?> 98 99 <!-- Group creation step 3: Avatar Uploads --> 100 100 <?php if ( bp_is_group_creation_step( 'group-avatar' ) ) : ?> 101 101 102 102 <?php do_action( 'bp_before_group_avatar_creation_step' ); ?> 103 103 104 <div class="left-menu">105 <?php bp_new_group_avatar() ?>106 </div>107 108 <div class="main-column">109 <p><?php _e("Upload an image to use as an avatar for this group. The image will be shown on the main group page, and in search results.", 'buddypress') ?></p>110 111 104 <?php if ( !bp_get_avatar_admin_step() ) : ?> 112 113 <p> 114 <input type="file" name="file" id="file" /> 115 <input type="submit" name="upload" id="upload" value="<?php _e( 'Upload Image', 'buddypress' ) ?>" /> 116 <input type="hidden" name="action" id="action" value="bp_avatar_upload" /> 117 </p> 118 119 <?php endif; ?> 120 105 106 <div class="left-menu"> 107 <?php bp_new_group_avatar() ?> 108 </div> 109 110 <div class="main-column"> 111 <p><?php _e("Upload an image to use as an avatar for this group. The image will be shown on the main group page, and in search results.", 'buddypress') ?></p> 112 113 <p> 114 <input type="file" name="file" id="file" /> 115 <input type="submit" name="upload" id="upload" value="<?php _e( 'Upload Image', 'buddypress' ) ?>" /> 116 <input type="hidden" name="action" id="action" value="bp_avatar_upload" /> 117 </p> 118 119 <p><?php _e( 'To skip the avatar upload process, hit the "Next Step" button.', 'buddypress' ) ?></p> 120 </div> 121 122 <?php endif; ?> 123 121 124 <?php if ( 'crop-image' == bp_get_avatar_admin_step() ) : ?> 122 125 123 126 <h3><?php _e( 'Crop Group Avatar', 'buddypress' ) ?></h3> 124 127 125 128 <img src="<?php bp_avatar_to_crop() ?>" id="avatar-to-crop" class="avatar" alt="<?php _e( 'Avatar to crop', 'buddypress' ) ?>" /> 126 127 <div id="avatar-crop-pane" style="width:100px;height:100px;overflow:hidden;">129 130 <div id="avatar-crop-pane"> 128 131 <img src="<?php bp_avatar_to_crop() ?>" id="avatar-crop-preview" class="avatar" alt="<?php _e( 'Avatar preview', 'buddypress' ) ?>" /> 129 132 </div> 130 133 131 134 <input type="submit" name="avatar-crop-submit" id="avatar-crop-submit" value="<?php _e( 'Crop Image', 'buddypress' ) ?>" /> 132 135 133 136 <input type="hidden" name="image_src" id="image_src" value="<?php bp_avatar_to_crop_src() ?>" /> 134 137 <input type="hidden" name="upload" id="upload" /> … … 139 142 140 143 <?php endif; ?> 141 142 <p><?php _e( 'To skip the avatar upload process, hit the "Next Step" button.', 'buddypress' ) ?></p>143 </div>144 144 145 145 <?php do_action( 'bp_after_group_avatar_creation_step' ); ?> 146 146 147 147 <?php wp_nonce_field( 'groups_create_save_group-avatar' ) ?> 148 149 <?php endif; ?> 150 151 <!-- Group creation step 4: Invite friends to group --> 148 149 <?php endif; ?> 150 151 <!-- Group creation step 4: Invite friends to group --> 152 152 <?php if ( bp_is_group_creation_step( 'group-invites' ) ) : ?> 153 153 … … 155 155 156 156 <div class="left-menu"> 157 157 158 158 <div id="invite-list"> 159 159 <ul> 160 160 <?php bp_new_group_invite_friend_list() ?> 161 161 </ul> 162 162 163 163 <?php wp_nonce_field( 'groups_invite_uninvite_user', '_wpnonce_invite_uninvite_user' ) ?> 164 164 </div> 165 165 166 166 </div> 167 167 168 168 <div class="main-column"> 169 169 170 170 <div id="message" class="info"> 171 171 <p><?php _e('Select people to invite from your friends list.', 'buddypress'); ?></p> … … 175 175 <ul id="friend-list" class="item-list"> 176 176 <?php if ( bp_group_has_invites() ) : ?> 177 177 178 178 <?php while ( bp_group_invites() ) : bp_group_the_invite(); ?> 179 179 180 180 <li id="<?php bp_group_invite_item_id() ?>"> 181 181 <?php bp_group_invite_user_avatar() ?> 182 182 183 183 <h4><?php bp_group_invite_user_link() ?></h4> 184 184 <span class="activity"><?php bp_group_invite_user_last_active() ?></span> 185 185 186 186 <div class="action"> 187 <a class="remove" href="<?php bp_group_invite_user_remove_invite_url() ?>" id="<?php bp_group_invite_item_id() ?>"><?php _e( 'Remove Invite', 'buddypress' ) ?></a> 187 <a class="remove" href="<?php bp_group_invite_user_remove_invite_url() ?>" id="<?php bp_group_invite_item_id() ?>"><?php _e( 'Remove Invite', 'buddypress' ) ?></a> 188 188 </div> 189 189 </li> 190 190 191 191 <?php endwhile; ?> 192 192 193 193 <?php wp_nonce_field( 'groups_send_invites', '_wpnonce_send_invites' ) ?> 194 194 <?php endif; ?> 195 195 </ul> 196 196 197 197 <?php wp_nonce_field( 'groups_create_save_group-invites' ) ?> 198 198 199 199 </div> 200 200 201 201 <?php do_action( 'bp_after_group_invites_creation_step' ); ?> 202 203 <?php endif; ?> 204 202 203 <?php endif; ?> 204 205 205 <?php do_action( 'groups_custom_create_steps' ) // Allow plugins to add custom group creation steps ?> 206 206 207 207 <?php do_action( 'bp_before_group_creation_step_buttons' ); ?> 208 208 … … 217 217 <input type="submit" value="<?php _e('Next Step', 'buddypress') ?> →" id="group-creation-next" name="save" /> 218 218 <?php endif;?> 219 219 220 220 <!-- Create Button --> 221 221 <?php if ( bp_is_first_group_creation_step() ) : ?> 222 222 <input type="submit" value="<?php _e('Create Group and Continue', 'buddypress') ?> →" id="group-creation-create" name="save" /> 223 223 <?php endif; ?> 224 224 225 225 <!-- Finish Button --> 226 226 <?php if ( bp_is_last_group_creation_step() ) : ?> … … 228 228 <?php endif; ?> 229 229 </div> 230 230 231 231 <?php do_action( 'bp_after_group_creation_step_buttons' ); ?> 232 232 … … 236 236 237 237 <?php do_action( 'bp_after_group_creation_content' ) ?> 238 238 239 239 </div> 240 240 -
trunk/bp-themes/bp-sn-parent/groups/single/admin.php
r1905 r2069 9 9 </div> 10 10 11 <div id="content"> 11 <div id="content"> 12 12 13 13 <?php do_action( 'template_notices' ) // (error/success feedback) ?> … … 40 40 <input type="radio" name="group-notify-members" value="0" checked="checked" /> <?php _e( 'No', 'buddypress' ); ?> 41 41 </p> 42 42 43 43 <?php do_action( 'bp_after_group_details_admin' ); ?> 44 44 … … 56 56 57 57 <?php if ( function_exists('bp_wire_install') ) : ?> 58 58 59 59 <div class="checkbox"> 60 60 <label><input type="checkbox" name="group-show-wire" id="group-show-wire" value="1"<?php bp_group_show_wire_setting() ?>/> <?php _e( 'Enable comment wire', 'buddypress' ) ?></label> 61 61 </div> 62 62 63 63 <?php endif; ?> 64 64 65 65 <?php if ( function_exists('bp_forums_setup') ) : ?> 66 66 67 67 <?php if ( bp_forums_is_installed_correctly() ) : ?> 68 68 69 69 <div class="checkbox"> 70 70 <label><input type="checkbox" name="group-show-forum" id="group-show-forum" value="1"<?php bp_group_show_forum_setting() ?> /> <?php _e( 'Enable discussion forum', 'buddypress' ) ?></label> 71 71 </div> 72 72 73 73 <?php endif; ?> 74 75 <?php endif; ?> 76 74 75 <?php endif; ?> 76 77 77 <h3><?php _e( 'Privacy Options', 'buddypress' ); ?></h3> 78 78 79 79 <div class="radio"> 80 80 <label> 81 <input type="radio" name="group-status" value="public"<?php bp_group_show_status_setting('public') ?> /> 81 <input type="radio" name="group-status" value="public"<?php bp_group_show_status_setting('public') ?> /> 82 82 <strong><?php _e( 'This is a public group', 'buddypress' ) ?></strong> 83 83 <ul> … … 87 87 </ul> 88 88 </label> 89 89 90 90 <label> 91 91 <input type="radio" name="group-status" value="private"<?php bp_group_show_status_setting('private') ?> /> … … 97 97 </ul> 98 98 </label> 99 99 100 100 <label> 101 101 <input type="radio" name="group-status" value="hidden"<?php bp_group_show_status_setting('hidden') ?> /> … … 108 108 </label> 109 109 </div> 110 110 111 111 <?php do_action( 'bp_after_group_settings_admin' ); ?> 112 112 113 113 <p><input type="submit" value="<?php _e( 'Save Changes', 'buddypress' ) ?> »" id="save" name="save" /></p> 114 114 <?php wp_nonce_field( 'groups_edit_group_settings' ) ?> 115 115 116 116 <?php endif; ?> 117 117 118 118 <?php /* Group Avatar Settings */ ?> 119 119 <?php if ( bp_is_group_admin_screen( 'group-avatar' ) ) : ?> … … 121 121 <h2><?php _e( 'Group Avatar', 'buddypress' ); ?></h2> 122 122 123 <div class="left-menu">124 <?php bp_group_avatar( 'type=full' ) ?>125 126 <?php if ( bp_get_group_has_avatar() ) : ?>127 <div class="generic-button" id="delete-group-avatar-button">128 <a class="edit" href="<?php bp_group_avatar_delete_link() ?>" title="<?php _e( 'Delete Avatar', 'buddypress' ) ?>"><?php _e( 'Delete Avatar', 'buddypress' ) ?></a>129 </div>130 <?php endif; ?>131 </div>132 133 <div class="main-column">134 135 123 <?php if ( 'upload-image' == bp_get_avatar_admin_step() ) : ?> 136 137 <p><?php _e("Upload an image to use as an avatar for this group. The image will be shown on the main group page, and in search results.", 'buddypress') ?></p> 138 139 <p> 140 <input type="file" name="file" id="file" /> 141 <input type="submit" name="upload" id="upload" value="<?php _e( 'Upload Image', 'buddypress' ) ?>" /> 142 <input type="hidden" name="action" id="action" value="bp_avatar_upload" /> 143 </p> 144 145 <?php wp_nonce_field( 'bp_avatar_upload' ) ?> 146 147 <?php endif; ?> 148 124 125 <div class="left-menu"> 126 <?php bp_group_avatar( 'type=full' ) ?> 127 128 <?php if ( bp_get_group_has_avatar() ) : ?> 129 <div class="generic-button" id="delete-group-avatar-button"> 130 <a class="edit" href="<?php bp_group_avatar_delete_link() ?>" title="<?php _e( 'Delete Avatar', 'buddypress' ) ?>"><?php _e( 'Delete Avatar', 'buddypress' ) ?></a> 131 </div> 132 <?php endif; ?> 133 </div> 134 135 <div class="main-column"> 136 137 <p><?php _e("Upload an image to use as an avatar for this group. The image will be shown on the main group page, and in search results.", 'buddypress') ?></p> 138 139 <p> 140 <input type="file" name="file" id="file" /> 141 <input type="submit" name="upload" id="upload" value="<?php _e( 'Upload Image', 'buddypress' ) ?>" /> 142 <input type="hidden" name="action" id="action" value="bp_avatar_upload" /> 143 </p> 144 145 <?php wp_nonce_field( 'bp_avatar_upload' ) ?> 146 147 </div> 148 <?php endif; ?> 149 149 150 <?php if ( 'crop-image' == bp_get_avatar_admin_step() ) : ?> 150 151 151 152 <h3><?php _e( 'Crop Avatar', 'buddypress' ) ?></h3> 152 153 153 154 <img src="<?php bp_avatar_to_crop() ?>" id="avatar-to-crop" class="avatar" alt="<?php _e( 'Avatar to crop', 'buddypress' ) ?>" /> 154 155 155 156 <div id="avatar-crop-pane"> 156 157 <img src="<?php bp_avatar_to_crop() ?>" id="avatar-crop-preview" class="avatar" alt="<?php _e( 'Avatar preview', 'buddypress' ) ?>" /> … … 158 159 159 160 <input type="submit" name="avatar-crop-submit" id="avatar-crop-submit" value="<?php _e( 'Crop Image', 'buddypress' ) ?>" /> 160 161 161 162 <input type="hidden" name="image_src" id="image_src" value="<?php bp_avatar_to_crop_src() ?>" /> 162 163 <input type="hidden" id="x" name="x" /> … … 166 167 167 168 <?php wp_nonce_field( 'bp_avatar_cropstore' ) ?> 168 169 <?php endif; ?> 170 171 </div> 172 173 <?php endif; ?> 174 169 170 <?php endif; ?> 171 172 <?php endif; ?> 173 175 174 <?php /* Manage Group Members */ ?> 176 175 <?php if ( bp_is_group_admin_screen( 'manage-members' ) ) : ?> 177 176 178 177 <h2><?php _e( 'Manage Members', 'buddypress' ); ?></h2> 179 178 180 179 <?php do_action( 'bp_before_group_manage_members_admin' ); ?> 181 180 182 181 <div class="bp-widget"> 183 182 <h4><?php _e( 'Administrators', 'buddypress' ); ?></h4> 184 183 <?php bp_group_admin_memberlist( true ) ?> 185 184 </div> 186 185 187 186 <?php if ( bp_group_has_moderators() ) : ?> 188 187 … … 193 192 194 193 <?php endif; ?> 195 194 196 195 <div class="bp-widget"> 197 196 <h4><?php _e("Members", "buddypress"); ?></h4> 198 197 199 198 <?php if ( bp_group_has_members( 'per_page=15&exclude_banned=false' ) ) : ?> 200 199 201 200 <?php if ( bp_group_member_needs_pagination() ) : ?> 202 201 203 202 <div class="pagination"> 204 203 205 204 <div id="member-count" class="pag-count"> 206 205 <?php bp_group_member_pagination_count() ?> … … 210 209 <?php bp_group_member_admin_pagination() ?> 211 210 </div> 212 211 213 212 </div> 214 213 215 214 <?php endif; ?> 216 215 217 216 <ul id="members-list" class="item-list single-line"> 218 217 <?php while ( bp_group_members() ) : bp_group_the_member(); ?> 219 218 220 219 <?php if ( bp_get_group_member_is_banned() ) : ?> 221 220 222 221 <li class="banned-user"> 223 222 <?php bp_group_member_avatar_mini() ?> 224 223 225 224 <h5><?php bp_group_member_link() ?> <?php _e( '(banned)', 'buddypress') ?> <span class="small"> — <a href="<?php bp_group_member_unban_link() ?>" class="confirm" title="<?php _e( 'Kick and ban this member', 'buddypress' ) ?>"><?php _e( 'Remove Ban', 'buddypress' ); ?></a> </h5> 226 225 227 226 <?php else : ?> 228 227 229 228 <li> 230 229 <?php bp_group_member_avatar_mini() ?> … … 232 231 233 232 <?php endif; ?> 234 233 235 234 <?php do_action( 'bp_group_manage_members_admin_item' ); ?> 236 235 </li> 237 236 238 237 <?php endwhile; ?> 239 238 </ul> 240 239 241 240 <?php else: ?> 242 241 … … 246 245 247 246 <?php endif; ?> 248 247 249 248 </div> 250 249 251 250 <?php do_action( 'bp_after_group_manage_members_admin' ); ?> 252 251 253 252 <?php endif; ?> 254 253 … … 257 256 258 257 <h2><?php _e( 'Membership Requests', 'buddypress' ); ?></h2> 259 258 260 259 <?php do_action( 'bp_before_group_membership_requests_admin' ); ?> 261 260 262 261 <?php if ( bp_group_has_membership_requests() ) : ?> 263 262 264 263 <ul id="request-list" class="item-list"> 265 264 <?php while ( bp_group_membership_requests() ) : bp_group_the_membership_request(); ?> 266 265 267 266 <li> 268 267 <?php bp_group_request_user_avatar_thumb() ?> 269 268 <h4><?php bp_group_request_user_link() ?> <span class="comments"><?php bp_group_request_comment() ?></span></h4> 270 269 <span class="activity"><?php bp_group_request_time_since_requested() ?></span> 271 270 272 271 <?php do_action( 'bp_group_membership_requests_admin_item' ); ?> 273 272 274 273 <div class="action"> 275 274 276 275 <div class="generic-button accept"> 277 <a href="<?php bp_group_request_accept_link() ?>"><?php _e( 'Accept', 'buddypress' ); ?></a> 276 <a href="<?php bp_group_request_accept_link() ?>"><?php _e( 'Accept', 'buddypress' ); ?></a> 278 277 </div> 279 280 278 279 281 280 282 281 <div class="generic-button reject"> 283 <a href="<?php bp_group_request_reject_link() ?>"><?php _e( 'Reject', 'buddypress' ); ?></a> 282 <a href="<?php bp_group_request_reject_link() ?>"><?php _e( 'Reject', 'buddypress' ); ?></a> 284 283 </div> 285 284 286 285 <?php do_action( 'bp_group_membership_requests_admin_item_action' ); ?> 287 286 288 287 </div> 289 288 </li> 290 289 291 290 <?php endwhile; ?> 292 291 </ul> 293 292 294 293 <?php else: ?> 295 294 … … 299 298 300 299 <?php endif; ?> 301 300 302 301 <?php do_action( 'bp_after_group_membership_requests_admin' ); ?> 303 304 <?php endif; ?> 305 302 303 <?php endif; ?> 304 306 305 <?php do_action( 'groups_custom_edit_steps' ) // Allow plugins to add custom group edit screens ?> 307 306 308 307 <?php /* Delete Group Option */ ?> 309 308 <?php if ( bp_is_group_admin_screen( 'delete-group' ) ) : ?> 310 309 311 310 <h2><?php _e( 'Delete Group', 'buddypress' ); ?></h2> 312 311 313 312 <?php do_action( 'bp_before_group_delete_admin' ); ?> 314 313 315 314 <div id="message" class="info"> 316 315 <p><?php _e( 'WARNING: Deleting this group will completely remove ALL content associated with it. There is no way back, please be careful with this option.', 'buddypress' ); ?></p> 317 316 </div> 318 317 319 318 <input type="checkbox" name="delete-group-understand" id="delete-group-understand" value="1" onclick="if(this.checked) { document.getElementById('delete-group-button').disabled = ''; } else { document.getElementById('delete-group-button').disabled = 'disabled'; }" /> <?php _e( 'I understand the consequences of deleting this group.', 'buddypress' ); ?> 320 319 321 320 <?php do_action( 'bp_after_group_delete_admin' ); ?> 322 321 323 322 <p><input type="submit" disabled="disabled" value="<?php _e( 'Delete Group', 'buddypress' ) ?> »" id="delete-group-button" name="delete-group-button" /></p> 324 323 325 324 <input type="hidden" name="group-id" id="group-id" value="<?php bp_group_id() ?>" /> 326 325 327 326 <?php wp_nonce_field( 'groups_delete_group' ) ?> 328 329 <?php endif; ?> 330 327 328 <?php endif; ?> 329 331 330 <?php /* This is important, don't forget it */ ?> 332 331 <input type="hidden" name="group-id" id="group-id" value="<?php bp_group_id() ?>" /> 333 332 334 333 </form> 335 334 336 335 <?php do_action( 'bp_after_group_admin_content' ) ?> 337 336 </div>
Note: See TracChangeset
for help on using the changeset viewer.