🔥 HOT: Changeset/ - Collection

Changeset 707191


Ignore:
Timestamp:
05/02/2013 10:27:31 PM (13 years ago)
Author:
Messenlehner
Message:

Initial Commit Updates

Location:
badgeos-community-add-on/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • badgeos-community-add-on/trunk/badgeos-community.php

    r707146 r707191  
    4545        add_action( 'admin_notices', array( $this, 'maybe_disable_plugin' ) );
    4646        add_action( 'bp_include', array( $this, 'bp_include' ) );
     47        add_action( 'wp_print_scripts', array( $this, 'enqueue_scripts' ) );
    4748
    4849        // BuddyPress Action Hooks
     
    8283     * @since 1.0.0
    8384     */
    84     function bp_include() {
     85    public function bp_include() {
    8586        require_once( $this->directory_path . '/includes/rules-engine.php' );
    8687        require_once( $this->directory_path . '/includes/steps-ui.php' );
     
    8990        if ( bp_is_active( 'activity' ) )
    9091            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        }
    91108    }
    92109
  • badgeos-community-add-on/trunk/includes/bp-activity.php

    r707146 r707191  
    3333
    3434    // 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>';
    3838    $content .= '</div>';
    3939
  • badgeos-community-add-on/trunk/includes/bp-members.php

    r707146 r707191  
    196196
    197197}
     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 */
     207function 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}
     211add_filter( 'badgeos_get_achievement_earners_list_user', 'badgeos_bp_achievement_earner', 10, 2 );
  • badgeos-community-add-on/trunk/readme.txt

    r707146 r707191  
    2929*   **Profile Updates:**
    3030
    31    *   update your profile information
    32    *   upload an avatar to your profile
     31   *   Activated Account
     32   *   Change Profile Avatar
     33   *   Update Profile information
    3334
    3435* **Social Actions:**
    3536
    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
    4044
    4145*   **Group Actions:**
    4246
    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
    4753
    4854*   **Discussion Forum Actions:**
    4955
    50    *   post a forum topic
    51    *   reply to a forum topic
     56   *   Add a New Forum Topic
     57   *   Reply to a Forum Topic
    5258
    5359**Social Display of Badges and Achievements:**
    5460
    5561*   Display earned badges and achievements of any kind on user profiles
    56 *   Add activity updates to user Activity feed when badges and achievements are earned
     62*   Add activity updates to user Activity Stream when badges and achievements are earned
    5763*   Each user may share his or her earned badges on social networks via Credly
    5864
    5965**User and BadgeOS Settings:**
    6066
    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
    6670
    6771**Combine Community Steps with BadgeOS Steps in Defining Achievements**
Note: See TracChangeset for help on using the changeset viewer.