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 process_mailing_list($controller) | |
{ | |
if (post('mailinglist_signup')) { | |
$url = "https://us2.api.mailchimp.com/1.2/?output=php&method=listSubscribe"; | |
$data = Shop_CheckoutData::get_billing_info(); | |
$country = Shop_Country::create()->find($data->country); | |
$state = Shop_CountryState::create()->find($data->state); | |
$fields = array( |
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
<? | |
if ($product->extra_options->count): | |
?> | |
<div class="extra_options"> | |
<table class="product_attributes"> | |
<? foreach ($product->extra_options as $option): | |
$control_name = 'product_extra_options['.$option->option_key.']'; | |
$posted_options = post('product_extra_options', array()); | |
$is_checked = isset($posted_options[$option->option_key]); | |
$options_string = PSInventory_Data::create_option_string(post('options'), $product->id); |
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
<? $this->render_partial('shop:product_options'); ?> | |
<? if (PSInventory_Inventory::out_of_stock( $product, post('product_options') )): ?> | |
<p> | |
<strong> | |
<? $options_string = PSInventory_Data::create_option_string(post('product_extra_options', array()), $product->id); | |
$data = PSInventory_Data::create()->where('product_id=? AND options_string=?', $product->id, $options_string)->find(); | |
$extended_sku = $data->extended_sku; | |
?> | |
We're sorry, the item (size/color/style) you've selected is temporarily out-of-stock. | |
<a href="<?= site_url('out-of-stock-contact-form') ?>?item=<?= urlencode($extended_sku); ?>" rel="lightbox[external 900 300]" title="Out of Stock Contact Form" id="oosLink" class="button">Notify me</a> when this item becomes available. |
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 download_only_on_process_billing_address_place_order_and_pay($controller, $page, $params) | |
{ | |
if (post('ship_to_billing_address')) | |
{ | |
Shop_CheckoutData::copy_billing_to_shipping(); | |
$controller->action(); | |
} |
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 download_only_on_process_billing_address_place_order_and_pay($controller, $page, $params) | |
{ | |
if (post('ship_to_billing_address')) | |
{ | |
Shop_CheckoutData::copy_billing_to_shipping(); | |
$controller->action(); | |
} |
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
<? | |
public static function generate_url($file_key) { | |
$s3 = self::get_s3(); | |
$link = ArclightAWSExpiring_Link::create()->where('file_key = ?', $file_key)->find(); | |
if (!$link) | |
throw new Phpr_ApplicationException('We are sorry, but the link could not be found'); | |
return $s3->get_object_url(self::$configuration->bucket, $file_key, '10 Seconds', | |
array('response' => array('content-disposition' => 'attachment; filename=' . $link->file_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
{{ gallery }} | |
{{ if count < "6" }} | |
{{ img }} (1 through 5) | |
{{ else }} | |
{{ img }} (6 through infinity and beyond) |
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
fields: | |
spa_packages_grid: | |
display: Spa Packages | |
type: grid | |
fields: | |
spa_packages_title: | |
display: Title | |
type: text | |
spa_packages_body: |
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
<h2><i>by</i> {{ categories_url_list }}</h2> | |
{{ entries:listing folder="about/staff" limit="1" conditions="title:{ categories_list }"}} | |
<a href="#" class="pull-left"> | |
{{ image src="{{ staff_image }}" dim="150x300" }} | |
<img src="{{ image_url }}" width={{ width }} height={{ height }} alt="{{ title }}" class="thumbnail" /> | |
{{ /image }} | |
</a> | |
<div class="media-body"> | |
{{ content }} | |
<div><a class="email" href="mailto:{{ staff_email }}">{{ staff_email }}</a></div> |
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 | |
class Plugin_Math extends Plugin { | |
var $meta = array( | |
'name' => 'Math', | |
'version' => '0.1', | |
'author' => 'Philip Meissner of Creative Loupe', | |
'author_url' => 'http://lou.pe' | |
); |
OlderNewer