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 | |
foreach ( $pees as $tinkle ) { | |
if ( preg_match( '!</?blockquote([^>]*)>!', $tinkle) >= 1 ) { | |
// pee inside blockquotes (prevents splashing) | |
$yellowblock = preg_replace('|<blockquote([^>]*)>|i', "<blockquote$1><p>", $tinkle); | |
$yellowblock = str_replace('</blockquote>', '</p></blockquote>', $yellowblock); | |
$pee .= $yellowblock . "\n"; | |
} elseif ( preg_match( '!</?' . $allblocks . '[^>]*>!', $tinkle ) >= 1 ) { | |
$pee .= trim($tinkle, "\n") . "\n"; // ignore wrapping block elements in the stream |
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
$.fn.extend({ | |
disableSubmit: function () { | |
return $(this).data('label',$(this).val()).attr('disabled',true).addClass('disabled').val($co.submitting); | |
}, | |
enableSubmit: function (){ | |
return $(this).attr('disabled', false).removeClass('disabled').val($(this).data('label')); | |
} | |
}); | |
// Validate paycard number before submit |
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
diff --git a/core/flow/Pages.php b/core/flow/Pages.php | |
index e4539eb..57a12dd 100755 | |
--- a/core/flow/Pages.php | |
+++ b/core/flow/Pages.php | |
@@ -197,7 +197,7 @@ class ShoppPage { | |
$title = apply_filters('shopp_' . get_class_property($classname, 'name') . '_pagetitle', $this->title); // @deprecated Use shopp_storefront_page_title or shopp_{$name}_storefront_page_title instead | |
$title = apply_filters('shopp_' . get_class_property($classname, 'name') . '_storefront_page_title', $title); | |
- return $title = apply_filters('shopp_storefront_page_title', $title); | |
+ return apply_filters('shopp_storefront_page_title', $title); |
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 | |
//Add One handling fee for any quantity | |
add_filter('shopp_cart_fees','flat_rate_filter'); | |
function flat_rate_filter ( $fee ) { | |
$shipping = shopp('cart.get-shipping','number=on'); | |
$products = array(); | |
while( shopp('cart.items') ) | |
$products[] = shopp('cartitem.get-product'); |
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
diff --git a/services/image.php b/services/image.php | |
index 280b386..31eab04 100755 | |
--- a/services/image.php | |
+++ b/services/image.php | |
@@ -328,6 +328,7 @@ class ImageServer { | |
if ( ! defined('SHOPP_ADDONS') ) | |
define('SHOPP_ADDONS', WP_CONTENT_DIR . '/shopp-addons'); | |
+ $Errors = ShoppErrors(); | |
$Shopp->Storage = new StorageEngines(); |
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
/*! | |
* shipmethods.js - Shopp catalog behaviors library | |
* Copyright © 2008-2013 by Ingenesis Limited | |
* Licensed under the GPLv3 {@see license.txt} | |
*/ | |
$('#shopp form').on('change', '.shipmethod', function () { | |
var prefix = '.shopp-cart.cart-', | |
spans = 'span'+prefix, | |
inputs = 'input'+prefix, | |
fields = ['shipping','tax','total'], |
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 | |
add_filter('shopp_search_query', 'collapse_dashed_words', 5); | |
add_filter('shopp_boolean_search', 'collapse_dashed_words', 5); | |
add_filter('shopp_shortword_search', 'collapse_dashed_words', 5); | |
add_filter('shopp_index_content', 'collapse_dashed_words', 5); | |
function collapse_dashed_words ( $string ) { | |
return str_replace('-', '', $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
<?php | |
/** | |
* Imaging Addon Demo | |
* | |
* @author Jonathan Davis | |
* @copyright Ingenesis Limited, 2013 | |
* @package shopp | |
* @since 1.3 | |
* @version 1.0 | |
**/ |
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 if ( shopp( 'collection.hasproducts', 'load=coverimages' ) ) : ?> | |
<?php while( shopp( 'collection.products' ) ) : ?> | |
<?php shopp( 'product.coverimage', 'setting=thumbnails&itemprop=image' ); ?> | |
<?php endwhile; ?> | |
<?php endif; ?> |
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 | |
shopp('storefront.catalog-products','load=true'); | |
shopp('collection.has-products','load=description'); | |
shopp('collection.products'); | |
shopp('product.name'); echo BR.BR; | |
shopp('product.description'); |
NewerOlder