Skip to content

Instantly share code, notes, and snippets.

View wturrell's full-sized avatar

William Turrell wturrell

View GitHub Profile
@wturrell
wturrell / twitter_feed.php
Last active December 14, 2015 13:08
Modified PyroCMS Twitter widget - uses Twitter OAuth PHP class (/system/cms/libraries/Twitter.php) to connect using v1.1 of Twitter API and grab/cache Tweets. To use this, you need to: - create an 'application at http://dev.twitter.com and then use the same page to generate your 'access tokens' AND ensure /system/cms/libraries/Twitter.php has th…
<?php defined('BASEPATH') OR exit('No direct script access allowed');
/**
* Show Twitter streams in your site
*
* @author Phil Sturgeon
* @author PyroCMS Dev Team
* @package PyroCMS\Core\Widgets
*/
class Widget_Twitter_feed extends Widgets
@wturrell
wturrell / gist:2406794
Created April 17, 2012 15:27
LEX Parser/PyroStreams/PyroCMS problem code
{{ streams:single stream="shows" id="1" }}
<div class="one_half">
{{ date }}