Changeset 6534 for trunk/bp-groups/bp-groups-template.php
- Timestamp:
- 11/23/2012 02:32:27 AM (14 years ago)
- File:
-
- 1 edited
-
trunk/bp-groups/bp-groups-template.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-template.php
r6507 r6534 1571 1571 } 1572 1572 1573 /** 1574 * Outputs a 'New Topic' button for a group. 1575 * 1576 * @since BuddyPress (1.2.7) 1577 * 1578 * @param obj|bool $group The BP Groups_Group object if passed, boolean false if not passed. 1579 * @uses bp_get_group_new_topic_button() Returns the 'New Topic' button 1580 */ 1573 1581 function bp_group_new_topic_button( $group = false ) { 1574 1582 echo bp_get_group_new_topic_button( $group ); 1575 1583 } 1584 /** 1585 * Returns a 'New Topic' button for a group. 1586 * 1587 * @since BuddyPress (1.2.7) 1588 * 1589 * @param obj|bool $group The BP Groups_Group object if passed, boolean false if not passed. 1590 * @uses is_user_logged_in() Is there a user logged in? 1591 * @uses bp_group_is_user_banned() Is the current user banned from the current group? 1592 * @uses bp_is_group_forum() Are we on a group forum page? 1593 * @uses bp_is_group_forum_topic() Are we on a group topic page? 1594 * @uses bp_get_button() Renders a button 1595 * @return HTML code for the button 1596 */ 1576 1597 function bp_get_group_new_topic_button( $group = false ) { 1577 1598 global $groups_template; … … 1583 1604 return false; 1584 1605 1585 $button = bp_button( array(1606 $button = array( 1586 1607 'id' => 'new_topic', 1587 1608 'component' => 'groups', … … 1594 1615 'link_text' => __( 'New Topic', 'buddypress' ), 1595 1616 'link_title' => __( 'New Topic', 'buddypress' ), 1596 ) );1617 ); 1597 1618 1598 1619 // Filter and return the HTML button
Note:
See TracChangeset
for help on using the changeset viewer.