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 | |
/** | |
* Portfolio Archive | |
* | |
*/ | |
/** | |
* Display as Columns | |
* | |
*/ |
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
<!-- For the first column you must include 'first' --> | |
<div class="pricing-column one-half first"> | |
<div class="pricing-column one-third first"> | |
<div class="pricing-column one-fourth first"> | |
<!-- For later columns do not include 'first' --> | |
<div class="pricing-column one-half"> | |
<div class="pricing-column one-third"> | |
<div class="pricing-column one-fourth"> |
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 | |
/** | |
* MultiCurl class library is a PHP solution for work with MULTI CURL extension. | |
* It provides to execute some parallel HTTP requests with limit of downloaded | |
* size. Example: start 100 downloads with 2 parallel sessions, and get only | |
* first 100 Kb per session. | |
* | |
* This library is free software; you can redistribute it and/or | |
* modify it under the terms of the GNU Lesser General Public | |
* License as published by the Free Software Foundation; either |
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
<%# Enables heap super properties so heap will send properties even when called before it has loaded. %> | |
window.heap = window.heap || []; for (var n = ["clearEventProperties", "removeEventProperty", "addEventProperties", "setEventProperties", "unsetEventProperty", "addUserProperties", "identify", "track"], o = function(e) { return function() { window.heap.push([e].concat(Array.prototype.slice.call(arguments, 0))) }}, t = 0; t < n.length; t++) { var r = n[t]; window.heap[r] = o(r)}; | |
var locale = "<%= I18n.locale %>" | |
<%# Set locale as heap super property. %> | |
window.heap.addUserProperties({ locale: locale }); | |
analytics.load("<%= segment_key %>"); |
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 | |
/* | |
* Plugin Name: Heap Analytics | |
* Plugin URI: https://gist.github.com/BFTrick/bb3b3b0e0497e8adecfa00e3c8e1b33d | |
* Description: Send all site data to Heap Analytics | |
* Author: Patrick Rauland | |
* Author URI: http://speakinginbytes.com | |
* 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 | |
/* | |
// recipients array example | |
$recipients = array( | |
array('address'=> | |
array( | |
'email' => 'email@tld.com', | |
'name'=>'Carlos Cabral' | |
) |
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 | |
/* Enter Your Custom Functions Here */ | |
function mepr_autoembed_thankyou_message($message) { | |
global $wp_embed; | |
if(!class_exists('MeprTransaction')) { return $message; } | |
if(!isset($_REQUEST['trans_num'])) { return $message; } | |
$txn = new MeprTransaction(); |
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 //* mind this opening php tag | |
/** | |
* Snippet provided by MemberPress support and modified by Ren Ventura | |
**/ | |
//* Kick admins out from MemberPress login form | |
add_filter( 'mepr-validate-login', 'kick_out_admins' ); | |
function kick_out_admins( $errors ) { | |
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(MeprUtils::is_user_logged_in()) | |
{ | |
$user = MeprUtils::get_currentuserinfo(); | |
$products = $user->active_product_subscriptions('products'); | |
foreach($products as $product) { | |
if( !empty( $product->access_url ) ) { | |
?> | |
<a href="<?php echo $product->access_url; ?>"><?php echo $product->post_title; ?></a><br/> |
OlderNewer