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
/*! | |
* Simple JavaScript Inheritance | |
* By John Resig http://ejohn.org/ | |
* MIT Licensed. | |
* | |
* Extended by Jonathon Byrd to include function hooks | |
* https://gist.github.com/Jonathonbyrd/724083 | |
* | |
* Don't forget your Shims! | |
* https://github.com/kriskowal/es5-shim/blob/master |
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
.ad-gallery { | |
width: 600px; | |
} | |
.ad-gallery, .ad-gallery * { | |
margin: 0; | |
padding: 0; | |
} | |
.ad-gallery .ad-image-wrapper { | |
width: 100%; | |
height: 400px; |
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 | |
try { | |
require_once dirname(__file__).'/payflow.php'; | |
$txn = new PayflowTransaction(); | |
//these are provided by your payflow reseller | |
$txn->PARTNER = ''; | |
$txn->USER = ''; | |
$txn->PWD= ''; |
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 is responsible for returning card data, based off of the | |
* credit card number alone. | |
* | |
* @param unknown_type $cc_no | |
* @return unknown | |
*/ | |
function identifyCard ($cc_no) | |
{ // Get card type based on prefix and length of card number | |
// I am sure there are smarter ways of implementing this, however due to lack of experience with regexp... |
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 | |
/** | |
* Function is responsible for stripping anything out of a string value that is meant to | |
* be an currency amount or other float. This function then converts the numbers left | |
* into a float value and formatting it appropriately. | |
* | |
* @param string $string | Can be anything but mostly for $23.23 | |
* @return float $string | returns 23.23 as a valid integer that can be used in math. | |
*/ | |
function _mint( $string ) |
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
<reference name="content"> | |
<block type="bestsellers/list" name="home.bestsellers.list" alias="product_homepage" template="catalog/product/list.phtml"/> | |
<!-- | |
<block type="catalog/product_new" name="home.catalog.product.new" alias="product_new" template="catalog/product/new.phtml" after="cms_page"> | |
<action method="addPriceBlockType"> | |
<type>bundle</type> | |
<block>bundle/catalog_product_price</block> | |
<template>bundle/catalog/product/price.phtml</template> | |
</action> | |
</block> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<layout> | |
<default> | |
<remove name="right.permanent.callout"/> | |
<remove name="left.permanent.callout"/> | |
</default> | |
</layout> |
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 | |
/** | |
* Function is responsible for returning the parent of the current | |
* page. | |
* | |
* This function should be placed in your functions.php file, or equivalent | |
* | |
* @param unknown_type $post | |
* @return object |
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 | |
/** | |
* Function is responsible for building a taxonomy/term | |
* array for the given post type. This array will include | |
* all taxonomy objects associated with the post type. | |
* | |
* This function should be preloaded, normally by placing | |
* it into your functions.php file. | |
* |