Skip to content

Instantly share code, notes, and snippets.

@aforwark
aforwark / flashpanels.php
Created April 25, 2012 17:51
flash panel plugin
<?php
/*
Plugin Name: Flash Panels
Description: This plugin handles the flash panels that can be used on SheKnows Blogs
*/
class FlashPanelPostType
{
private $args = array(
'labels' => array(),
@aforwark
aforwark / clouds.png
Created April 12, 2012 21:28
Connect Login Box
clouds.png
@aforwark
aforwark / ad_companion.html
Created April 11, 2012 21:04
Companion ad tag on video view.tpl
{if $companion == true}
<script language="javascript" src="http://www.googletagservices.com/tag/static/google_services.js"></script>
<script type="text/javascript">
if(typeof(gnm_ord)=='undefined') gnm_ord=Math.random()*100000000000000000;
adSlot1 = googletag.defineSlot('/4403/gn.sk.sheknows.com/vast', [300, 250]);
adSlot1.addService(googletag.companionAds());
adSlot1.addService(googletag.content());
googletag.content().setContent(adSlot1, "<iframe src='http://n4403ad.doubleclick.net/adi/gn.sk.sheknows.com/vast;sect=vast;sz=300x250;ord=" + gnm_ord + "?' width='300' height='250' marginwidth=0 marginheight=0 scrolling=no></iframe>");
@aforwark
aforwark / article_list.php
Created April 10, 2012 22:26
aritcle list new stuff
<?php
class ArticleListModule extends AppModule
{
public
$template = 'article_list',
$uses = array('ArticlesChannel', 'Article'),
$channel = 'entertainment',
$limit = 10,
$styleclass = '',
@aforwark
aforwark / sk-says.js
Created March 30, 2012 23:53
SK Says Share
YUI().use('node', 'event', function(Y) {
Y.on('domready', function() {
function shareStuff(response) {
if (response && response.items) {
var uids = response.items.join(','),
message;
if (hash > "") {
message = {
@aforwark
aforwark / newest-prize.png
Created March 30, 2012 16:08
Rewards Widget
newest-prize.png