source/php/Module/Social/Feed.php
protected function addStory($createdTime, $user, $text, $attachment = false)
    {
        $item = '
            <li>
                <div class="mod-social-user">
                    <img src="' . $user['picture'] . '" alt="' . $user['name'] . '">
                    <div>
                        <span>' . $user['name'] . '</span>
                        <time>' . human_time_diff($createdTime, current_time('timestamp')) . ' ' . __('ago', 'modularity') . '</time>
                    </div>
                </div>
                <div class="mod-social-story">
                    ' . wpautop($text) . '
                </div>
        ';

        if (is_array($attachment)) {
            $item .= $this->addAttachment($attachment);
        }

        $item .= '</li>';

        $this->markup .= apply_filters('Modularity/mod_social/story', $item, $createdTime, $user, $text);
    }
protected function addStory($createdTime, $user, $text, $attachment = false)
    {
        $item = '
            <li>
                <div class="mod-social-user">
                    <img src="' . $user['picture'] . '" alt="' . $user['name'] . '">
                    <div>
                        <span>' . $user['name'] . '</span>
                        <time>' . human_time_diff($createdTime, current_time('timestamp')) . ' ' . __('ago', 'modularity') . '</time>
                    </div>
                </div>
                <div class="mod-social-story">
                    ' . wpautop($text) . '
                </div>
        ';

        if (is_array($attachment)) {
            $item .= $this->addAttachment($attachment);
        }

        $item .= '</li>';

        $this->markup .= apply_filters('Modularity/mod_social/story', $item, $createdTime, $user, $text);
    }
protected function addStory ( $ createdTime , $ user , $ text , $ attachment = false ) { $ item = '
            <li>
                <div class="mod-social-user">
                    <img src="' . $ user [ 'picture' ] . '" alt="' . $ user [ 'name' ] . '">
                    <div>
                        <span>' . $ user [ 'name' ] . '</span>
                        <time>' . human_time_diff ( $ createdTime , current_time ( 'timestamp' ) ) . ' ' . __ ( 'ago' , 'modularity' ) . '</time>
                    </div>
                </div>
                <div class="mod-social-story">
                    ' . wpautop ( $ text ) . '
                </div>
        ' ; if ( is_array ( $ attachment ) ) { $ item .= $ this -> addAttachment ( $ attachment ) ; } $ item .= '</li>' ; $ this -> markup .= apply_filters ( 'Modularity/mod_social/story' , $ item , $ createdTime , $ user , $ text ) ; }
Adds a story
@param timestamp $createdTime Created date timestamp
@param array     $user        User name and picture
@param string    $text        The text
Adds a story