This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($) { | |
// MODEL | |
var Post = Backbone.Model.extend(); | |
// COLLECTION | |
var PostList = Backbone.Collection.extend({ | |
model: Post, | |
url: 'http://localhost/Wordpress/Twentytwelve/api/get_recent_posts/', | |
parse: function(resp) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Database settings | |
switch($_SERVER['SERVER_NAME']) { | |
// Local Environment | |
case 'localhost': | |
define('DB_NAME', 'db_name'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Xander Smalbil | |
www.videofunk.nl | |
*/ | |
///////////iDeal | |
if(paymenttext.text=="iDeal"){ | |
var idealData:String; | |
var itemNumber:String; // = 1,2,3,4,5,6; | |
var itemNumber2:String = "33"; | |
var itemPrice:String = "2990"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Listeners | |
btDonate.addEventListener(MouseEvent.CLICK, donate); | |
btBuynow.addEventListener(MouseEvent.CLICK, buynow); | |
//Functions | |
function donate (event:MouseEvent):void{ | |
var url:String = "https://www.paypal.com/cgi-bin/webscr"; | |
var request:URLRequest = new URLRequest(url); | |
var paypal_donate:URLVariables = new URLVariables(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header('Content-type: text/css'); | |
ob_start("compress"); | |
function compress($buffer) { | |
/* remove comments */ | |
$buffer = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $buffer); | |
/* remove tabs, spaces, newlines, etc. */ | |
$buffer = str_replace(array("\r\n", "\r", "\n", "\t", ' ', ' ', ' '), '', $buffer); | |
return $buffer; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Xander Smalbil */ | |
// description.tpl | |
{* $Id: description.tpl 11191 2010-11-11 11:56:01Z klerik $ *} | |
{** block-description:description **} | |
{if $attachments_data} | |
<div id="mp3_attachments"> | |
{foreach from=$attachments_data item="file"} | |
{if $file.filename|strstr:'.mp3'} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Xander Smalbil */ | |
var paramList:Object=this.root.loaderInfo.parameters; | |
clickme.addEventListener(MouseEvent.CLICK, openURL); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div itemscope itemtype="http://schema.org/Recipe"> | |
<span itemprop="name">Mom's World Famous Banana Bread</span> | |
By <span itemprop="author">John Smith</span>, | |
<meta itemprop="datePublished" content="2009-05-08">May 8, 2009 | |
<img itemprop="image" src="bananabread.jpg" /> | |
<span itemprop="description">This classic banana bread recipe comes | |
from my mom -- the walnuts add a nice texture and flavor to the banana | |
bread.</span> |
OlderNewer