CAC Twitter Stream
Download or clone this repo and then copy the
cac-twitter-stream.php file into your WordPress theme. In the admin section of your site, create a new page (named whatever you would like your URL to be, e.g. - example.edu/twitter) and set its page template to "CAC Twitter Stream."
The page template has been designed to connect to and embed any number of timelines from the Twitter Widgets you've created at https://twitter.com/settings/widgets. Instructions for creating and configuring these widgets can be found here. Customizing the template to fit your own implementation requires the editing of two sections.
The links in the sidebar that show and hide the different timelines:
<div class="cac-twitter-widget featured"> <h3>Our Tweets</h3> <div class="cac-content"> <ul> <li><a id="commons_timeline_link" rel="commons_timeline" href="#">Tweets</a></li> <li><a id="commons_mentions_link" rel="commons_mentions" href="#">Mentions</a></li> <li><a id="cuny_hashtag_link" rel="cuny_hashtag" href="#">#cuny</a></li> <li><a id="list_timeline_link" rel="list_timeline" href="#">cunycommons list</a></li> </ul> </div> </div>
And the actual timeline sections themselves:
<div id="commons_timeline" class="introbox"> <a class="twitter-timeline" href="[YOUR TIMELINE WIDGET URL]" data-widget-id="[YOUR TIMELINE WIDGET ID]" data-theme="<?php echo $theme ?>" data-link-color="<?php echo $link_color ?>" data-chrome="<?php echo $chrome ?>" data-border-color="<?php echo $border_color ?>"> </a> </div>
rel="" attribute of each link needs to match the
Twitter's documentation on Embedded Timelines outlines what each of those attributes does and their available values.
Please direct any questions or complaints to the issues section of this repo.
I also accept compliments. :-)