Skip to content

Instantly share code, notes, and snippets.

@ryaan-anthony
ryaan-anthony / gist:6025038
Created July 17, 2013 22:15
Trigger event on mouseout
function addEvent(obj, evt, fn) {
if (obj.addEventListener) {
obj.addEventListener(evt, fn, false);
}
else if (obj.attachEvent) {
obj.attachEvent("on" + evt, fn);
}
}
$last_update = get_option('twitter_feed_last_update', 0);
if(time() - $last_update > 86400){
require_once('TwitterAPIExchange.php');
$settings = array(
'oauth_access_token' => "PASTE_VALUE_HERE",
'oauth_access_token_secret' => "PASTE_VALUE_HERE",
'consumer_key' => "PASTE_VALUE_HERE",
'consumer_secret' => "PASTE_VALUE_HERE"
);
$fields = array(
<?php
class Ip_Prohibited_Model_Onepage extends Mage_Checkout_Model_Type_Onepage
{
protected $Restricted_Countries = array(
'GB', // Country Codes
'CA'
);
<?xml version="1.0"?>
<config>
<modules>
<Ip_Prohibited>
<version>0.1.0</version>
</Ip_Prohibited>
</modules>
<global>
<models>
<prohibited>
<?xml version="1.0" encoding="UTF-8"?>
<config>
<modules>
<Ip_Prohibited>
<active>true</active>
<codePool>local</codePool>
</Ip_Prohibited>
</modules>
</config>