Changeset 707191
- Timestamp:
- 05/02/2013 10:27:31 PM (13 years ago)
- Location:
- badgeos-community-add-on/trunk
- Files:
-
- 4 edited
-
badgeos-community.php (modified) (3 diffs)
-
includes/bp-activity.php (modified) (1 diff)
-
includes/bp-members.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
badgeos-community-add-on/trunk/badgeos-community.php
r707146 r707191 45 45 add_action( 'admin_notices', array( $this, 'maybe_disable_plugin' ) ); 46 46 add_action( 'bp_include', array( $this, 'bp_include' ) ); 47 add_action( 'wp_print_scripts', array( $this, 'enqueue_scripts' ) ); 47 48 48 49 // BuddyPress Action Hooks … … 82 83 * @since 1.0.0 83 84 */ 84 function bp_include() {85 public function bp_include() { 85 86 require_once( $this->directory_path . '/includes/rules-engine.php' ); 86 87 require_once( $this->directory_path . '/includes/steps-ui.php' ); … … 89 90 if ( bp_is_active( 'activity' ) ) 90 91 require_once( $this->directory_path . '/includes/bp-activity.php' ); 92 } 93 94 /** 95 * Enqueue custom scripts and styles 96 * 97 * @since 1.0.0 98 */ 99 public function enqueue_scripts() { 100 101 // Grab the global BuddyPress object 102 global $bp; 103 104 // If we're on a BP activity page 105 if ( isset( $bp->current_component ) && 'activity' == $bp->current_component ) { 106 wp_enqueue_style( 'badgeos-front' ); 107 } 91 108 } 92 109 -
badgeos-community-add-on/trunk/includes/bp-activity.php
r707146 r707191 33 33 34 34 // Setup our entry content 35 $content = '<div id="badgeos-achievements-list-item-' . $achievement_id . '" class="badgeos-achievements-list-item">';36 $content .= '<div class="badgeos-item-image"><a href="'. get_permalink( $achievement_id ).'">' . badgeos_get_achievement_post_thumbnail( $achievement_id ) . '</a></div>';37 $content .= '<div class="badgeos-item-description">' . $post->post_excerpt. '</div>';35 $content = '<div class="badgeos-achievements-list-item user-has-earned">'; 36 $content .= '<div class="badgeos-item-image"><a href="'. get_permalink( $achievement_id ) . '">' . badgeos_get_achievement_post_thumbnail( $achievement_id ) . '</a></div>'; 37 $content .= '<div class="badgeos-item-description">' . wpautop( $post->post_excerpt ) . '</div>'; 38 38 $content .= '</div>'; 39 39 -
badgeos-community-add-on/trunk/includes/bp-members.php
r707146 r707191 196 196 197 197 } 198 199 /** 200 * Override the achievement earners list to use BP details 201 * 202 * @since 1.0.0 203 * @param string $user_content The list item output for the given user 204 * @param integer $user_id The given user's ID 205 * @return string The updated user output 206 */ 207 function badgeos_bp_achievement_earner( $user_content, $user_id ) { 208 $user = new BP_Core_User( $user_id ); 209 return '<li><a href="' . $user->user_url . '">' . $user->avatar_mini . '</a></li>'; 210 } 211 add_filter( 'badgeos_get_achievement_earners_list_user', 'badgeos_bp_achievement_earner', 10, 2 ); -
badgeos-community-add-on/trunk/readme.txt
r707146 r707191 29 29 * **Profile Updates:** 30 30 31 * update your profile information 32 * upload an avatar to your profile 31 * Activated Account 32 * Change Profile Avatar 33 * Update Profile information 33 34 34 35 * **Social Actions:** 35 36 36 * post an activity update 37 * reply to an activity update 38 * adds a friend 39 * send a message 37 * Write an Activity Stream message 38 * Write a Group Activity Stream message 39 * Reply to an item in an Activity Stream 40 * Favorite an Activity Stream item 41 * Send a Friendship Request 42 * Accept a Friendship Request 43 * Send/reply to a Private Message 40 44 41 45 * **Group Actions:** 42 46 43 * join any group 44 * join a specific group 45 * post a group activity update 46 * become a group moderator 47 * Create a Group 48 * Join a Group 49 * Join a Specific Group 50 * Invite Someone to Join a Group 51 * Get Promoted to Group Moderator/Administrator 52 * Promote another Group Member to Group Moderator/Administrator 47 53 48 54 * **Discussion Forum Actions:** 49 55 50 * post a forum topic51 * reply to a forum topic56 * Add a New Forum Topic 57 * Reply to a Forum Topic 52 58 53 59 **Social Display of Badges and Achievements:** 54 60 55 61 * Display earned badges and achievements of any kind on user profiles 56 * Add activity updates to user Activity feedwhen badges and achievements are earned62 * Add activity updates to user Activity Stream when badges and achievements are earned 57 63 * Each user may share his or her earned badges on social networks via Credly 58 64 59 65 **User and BadgeOS Settings:** 60 66 61 * User can enable/disable Credly sharing settings via community profile 62 * BadgeOS admin can select which custom BadgeOS achievement types should 63 be displayed on user profiles 64 * BadgeOS admin can select which custom BadgeOS achievement types should 65 be displayed in Activity feeds 67 * BadgeOSadmin setting to select which custom BadgeOS achievement types should be displayed on user profiles 68 * BadgeOSadmin setting to select which custom BadgeOS achievement types should be displayed in Activity Streams 69 * User can adjust Credly sharing settings from community profile settings 66 70 67 71 **Combine Community Steps with BadgeOS Steps in Defining Achievements**
Note: See TracChangeset
for help on using the changeset viewer.