A Pen by Serge El Hachem on CodePen.
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
/** | |
* Fires after a payment has been completed | |
* | |
* @param array $entry The Entry object | |
* @param array $action The Action Object | |
* $action = array( | |
* 'type' => 'cancel_subscription', // See Below | |
* 'transaction_id' => '', // What is the ID of the transaction made? | |
* 'subscription_id' => '', // What is the ID of the Subscription made? | |
* 'amount' => '0.00', // Amount to charge? |
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
/** | |
* Send a notification after a user attempts a purchase | |
* | |
* @param $entry The Entries object | |
* @param array $action The Action Object | |
* $action = array( | |
* 'type' => 'cancel_subscription', // See Below | |
* 'transaction_id' => '', // What is the ID of the transaction made? | |
* 'subscription_id' => '', // What is the ID of the Subscription made? |
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 | |
/** | |
* Automatically login a single WordPress user upon arrival to a specific page. | |
* | |
* Redirect to home page once logged in and prevent viewing of the login page. | |
* Compatible with WordPress 3.9.1+ | |
* Updated 2014-07-18 to resolve WP_DEBUG notice: "get_userdatabylogin is deprecated since version 3.3! Use get_user_by('login') instead." | |
* Updated 2019-07-09 to reformat code, pass 2nd parameter to `do_action()`, and hook into priority 1. | |
* |
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($){ | |
$.fn.quantityDiscounts = function(options) { | |
// set up default options | |
var defaults = { | |
discountColor: '#FF0000', | |
discounts: [ | |
{ limit: 174, discount: .75, text: "25% Discount Applied"}, | |
{ limit: 139, discount: .80, text: "20% Discount Applied"}, |
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
# install Homebrew if you don't already have it: http://mxcl.github.io/homebrew/ | |
# install nano from homebrew | |
brew install nano | |
# update your nanorc file with the contents of the nanorc file below | |
nano ~/.nanorc | |
# close and re-open your terminal and you'll have syntax highlighting |
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($){ | |
$.fn.quantityDiscounts = function(options) { | |
// set up default options | |
var defaults = { | |
discountColor: '#FF0000', | |
discounts: [ | |
{ limit: 174, discount: .75, text: "25% Discount Applied"}, | |
{ limit: 139, discount: .80, text: "20% Discount Applied"}, |
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 class="demo-wrap"> | |
<div class="demo-header"> | |
<h1>Responsive Pricing</h1> | |
<p>pricing plan layout using flexbox</p> | |
</div> | |
<!-- PRICING PLANS --> | |
<section class="pricing-plans"> | |
<!-- Pricing Tables --> |
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
.lm-tabel | |
.lm-item.lm-item-2 | |
.lm-item-top | |
span.lm-item-title.lm-underline START | |
.lm-item-price | |
i.icon-dollar | |
|0.995 | |
.lm-item-body | |
.lm-item-desc | |
strong CUSTOM AIR |
NewerOlder