Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show the author's avatar on a 'timeline story' #14

Open
joblammers opened this issue Mar 3, 2012 · 0 comments
Open

show the author's avatar on a 'timeline story' #14

joblammers opened this issue Mar 3, 2012 · 0 comments

Comments

@joblammers
Copy link

Hi I've added a the option show the Avatar of the writer of the timeline story on the timeline story. I'm not sure weather this is the right place to post this suggestion/solution (if not, sorry)

To make this work the SQL statement in the function get_content_stories() be changed
from (line 808):


to (line 808):

The switch() in the function get_timeline() has to be changed as well.

On line 952 I've added the following line to show the avatar before the timeline title
$html .= get_avatar($event['author'], 50 );

The case looks now as follows:

                                case 'timeline_stories' :
                                    $class = ( $event['featured'] == 1 ) ? ' featured' : null;
                                    $html .= '<li class="event ' . $event['source'] . $class . '">';
                                        $html .= '<div class="event_pointer"></div>';
                                        $html .= '<div class="event_container">';
                                            $html .= '<div class="event_title">';                                               
                                                $html .= get_avatar($event['author'], 50 );
                                                $html .= '<h3> ' . stripslashes($event['title'] ) . '</h3>';

                                                $html .= '<span class="subtitle">';
                                                    $html .= $this->format_date( $event['date'] );
                                                $html .= '</span>';
                                            $html .= '</div>';

                                            $html .= '<div class="event_content">';
                                                $html .= apply_filters( 'the_content', $this->format_text( stripslashes( $event['content'] ) ) );
                                            $html .= '</div>';
                                        $html .= '</div>';
                                    $html .= '</li>';
                                break;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant