function pmpromd_register_styles() { //load stylesheet (check child theme, then parent theme, then plugin folder) if (file_exists(get_stylesheet_directory() . "/paid-memberships-pro/member-directory/css/pmpro-member-directory.css")) { wp_register_style('pmpro-member-directory-styles', get_stylesheet_directory_uri() . "/paid-memberships-pro/member-directory/css/pmpro-member-directory.css"); } elseif (file_exists(get_template_directory() . "/paid-memberships-pro/member-directory/css/pmpro-member-directory.css")) { wp_register_style('pmpro-member-directory-styles', get_template_directory_uri() . "/paid-memberships-pro/member-directory/css/pmpro-member-directory.css"); } elseif (function_exists("pmpro_https_filter")) { wp_register_style('pmpro-member-directory-styles', pmpro_https_filter(plugins_url('css/pmpro-member-directory.css', __FILE__)), NULL, ""); } else { wp_register_style('pmpro-member-directory-styles', plugins_url('css/pmpro-member-directory.css', __FILE__)); } wp_enqueue_style('pmpro-member-directory-styles'); }
} ?> " class=" <?php echo pmpro_getClassForField("CVV"); ?> " <?php if ($gateway == "braintree") { ?> data-encrypted-name="cvv"<?php } ?> /> <small>(<a href="javascript:void(0);" onclick="javascript:window.open('<?php echo pmpro_https_filter(PMPRO_URL); ?> /pages/popup-cvv.html','cvv','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=600, height=475');"><?php _ex("what's this?", 'link to CVV help', 'vibe'); ?> </a>) </small> </div> <?php } ?> </td> </tr> </tbody> </table>
function pmprorh_scripts() { if (!is_admin()) { if (!defined("PMPRO_VERSION")) { //load some styles that we need from PMPro (check child theme, then parent theme, then plugin folder) if (file_exists(get_stylesheet_directory() . "/paid-memberships-pro/register-helper/css/pmpro.css")) { wp_enqueue_style(get_stylesheet_directory_uri() . "/paid-memberships-pro/register-helper/css/pmpro.css"); } elseif (file_exists(get_template_directory() . "/paid-memberships-pro/register-helper/css/pmpro.css")) { wp_enqueue_style(get_template_directory_uri() . "/paid-memberships-pro/register-helper/css/pmpro.css"); } else { wp_enqueue_style("pmprorh_pmpro", PMPRORH_URL . "/css/pmpro.css", NULL, PMPRORH_VERSION); } } //load some styles that we need from PMPro (check child theme, then parent theme, then plugin folder) if (file_exists(get_stylesheet_directory() . "/paid-memberships-pro/register-helper/css/pmprorh_frontend.css")) { wp_enqueue_style(get_stylesheet_directory_uri() . "/paid-memberships-pro/register-helper/css/pmprorh_frontend.css"); } elseif (file_exists(get_template_directory() . "/paid-memberships-pro/register-helper/css/pmprorh_frontend.css")) { wp_enqueue_style(get_template_directory_uri() . "/paid-memberships-pro/register-helper/css/pmprorh_frontend.css"); } elseif (function_exists("pmpro_https_filter")) { wp_enqueue_style("pmprorh_frontend", pmpro_https_filter(PMPRORH_URL) . "/css/pmprorh_frontend.css", NULL, ""); } else { wp_enqueue_style("pmprorh_frontend", PMPRORH_URL . "/css/pmprorh_frontend.css", NULL, ""); } } }
$order->payment_transaction_id = ""; $order->subscription_transaction_id = ""; $order->affiliate_id = ""; $order->affiliate_subid = ""; $order->notes = ""; } } } ?> <div class="wrap pmpro_admin"> <div class="pmpro_banner"> <a class="pmpro_logo" title="Paid Memberships Pro - Membership Plugin for WordPress" target="_blank" href="<?php echo pmpro_https_filter("http://www.paidmembershipspro.com")?>"><img src="<?php echo PMPRO_URL?>/images/PaidMembershipsPro.gif" width="350" height="45" border="0" alt="Paid Memberships Pro(c) - All Rights Reserved" /></a> <div class="pmpro_tagline">Membership Plugin for WordPress</div> <div class="pmpro_meta"><a href="<?php echo pmpro_https_filter("http://www.paidmembershipspro.com")?>">Plugin Support</a> | <a href="http://www.paidmembershipspro.com/forums/">User Forum</a> | <strong>Version <?php echo PMPRO_VERSION?></strong></div> </div> <br style="clear:both;" /> <?php if(!empty($order)) { ?> <h2> <?php if(!empty($order->id)) { ?> Order #<?php echo $order->id?>: <?php echo $order->code?> <?php } else { ?> New Order <?php } ?> </h2> <?php if(!empty($pmpro_msg)) { ?> <div id="message" class="<?php if($pmpro_msgt == "success") echo "updated fade"; else echo "error"; ?>"><p><?php echo $pmpro_msg?></p></div>
/** * Use our own payment fields at checkout. (Remove the name attributes.) * @since 1.8 */ static function pmpro_include_payment_information_fields($include) { //global vars global $pmpro_requirebilling, $pmpro_show_discount_code, $discount_code, $CardType, $AccountNumber, $ExpirationMonth, $ExpirationYear; //get accepted credit cards $pmpro_accepted_credit_cards = pmpro_getOption("accepted_credit_cards"); $pmpro_accepted_credit_cards = explode(",", $pmpro_accepted_credit_cards); $pmpro_accepted_credit_cards_string = pmpro_implodeToEnglish($pmpro_accepted_credit_cards); //include ours ?> <table id="pmpro_payment_information_fields" class="pmpro_checkout top1em" width="100%" cellpadding="0" cellspacing="0" border="0" <?php if (!$pmpro_requirebilling || apply_filters("pmpro_hide_payment_information_fields", false)) { ?> style="display: none;"<?php } ?> > <thead> <tr> <th><span class="pmpro_thead-msg"><?php printf(__('We Accept %s', 'pmpro'), $pmpro_accepted_credit_cards_string); ?> </span><?php _e('Payment Information', 'pmpro'); ?> </th> </tr> </thead> <tbody> <tr valign="top"> <td> <?php $sslseal = pmpro_getOption("sslseal"); if ($sslseal) { ?> <div class="pmpro_sslseal"><?php echo stripslashes($sslseal); ?> </div> <?php } ?> <?php $pmpro_include_cardtype_field = apply_filters('pmpro_include_cardtype_field', false); if ($pmpro_include_cardtype_field) { ?> <div class="pmpro_payment-card-type"> <label for="CardType"><?php _e('Card Type', 'pmpro'); ?> </label> <select id="CardType" class=" <?php echo pmpro_getClassForField("CardType"); ?> "> <?php foreach ($pmpro_accepted_credit_cards as $cc) { ?> <option value="<?php echo $cc; ?> " <?php if ($CardType == $cc) { ?> selected="selected"<?php } ?> ><?php echo $cc; ?> </option> <?php } ?> </select> </div> <?php } else { ?> <input type="hidden" id="CardType" name="CardType" value="<?php echo esc_attr($CardType); ?> " /> <script> <!-- jQuery(document).ready(function() { jQuery('#AccountNumber').validateCreditCard(function(result) { var cardtypenames = { "amex":"American Express", "diners_club_carte_blanche":"Diners Club Carte Blanche", "diners_club_international":"Diners Club International", "discover":"Discover", "jcb":"JCB", "laser":"Laser", "maestro":"Maestro", "mastercard":"Mastercard", "visa":"Visa", "visa_electron":"Visa Electron" } if(result.card_type) jQuery('#CardType').val(cardtypenames[result.card_type.name]); else jQuery('#CardType').val('Unknown Card Type'); }); }); --> </script> <?php } ?> <div class="pmpro_payment-account-number"> <label for="AccountNumber"><?php _e('Card Number', 'pmpro'); ?> </label> <input id="AccountNumber" class="input <?php echo pmpro_getClassForField("AccountNumber"); ?> " type="text" size="25" value="<?php echo esc_attr($AccountNumber); ?> " autocomplete="off" /> </div> <div class="pmpro_payment-expiration"> <label for="ExpirationMonth"><?php _e('Expiration Date', 'pmpro'); ?> </label> <select id="ExpirationMonth" class=" <?php echo pmpro_getClassForField("ExpirationMonth"); ?> "> <option value="01" <?php if ($ExpirationMonth == "01") { ?> selected="selected"<?php } ?> >01</option> <option value="02" <?php if ($ExpirationMonth == "02") { ?> selected="selected"<?php } ?> >02</option> <option value="03" <?php if ($ExpirationMonth == "03") { ?> selected="selected"<?php } ?> >03</option> <option value="04" <?php if ($ExpirationMonth == "04") { ?> selected="selected"<?php } ?> >04</option> <option value="05" <?php if ($ExpirationMonth == "05") { ?> selected="selected"<?php } ?> >05</option> <option value="06" <?php if ($ExpirationMonth == "06") { ?> selected="selected"<?php } ?> >06</option> <option value="07" <?php if ($ExpirationMonth == "07") { ?> selected="selected"<?php } ?> >07</option> <option value="08" <?php if ($ExpirationMonth == "08") { ?> selected="selected"<?php } ?> >08</option> <option value="09" <?php if ($ExpirationMonth == "09") { ?> selected="selected"<?php } ?> >09</option> <option value="10" <?php if ($ExpirationMonth == "10") { ?> selected="selected"<?php } ?> >10</option> <option value="11" <?php if ($ExpirationMonth == "11") { ?> selected="selected"<?php } ?> >11</option> <option value="12" <?php if ($ExpirationMonth == "12") { ?> selected="selected"<?php } ?> >12</option> </select>/<select id="ExpirationYear" class=" <?php echo pmpro_getClassForField("ExpirationYear"); ?> "> <?php for ($i = date("Y"); $i < date("Y") + 10; $i++) { ?> <option value="<?php echo $i; ?> " <?php if ($ExpirationYear == $i) { ?> selected="selected"<?php } ?> ><?php echo $i; ?> </option> <?php } ?> </select> </div> <?php $pmpro_show_cvv = apply_filters("pmpro_show_cvv", true); if ($pmpro_show_cvv) { ?> <div class="pmpro_payment-cvv"> <label for="CVV"><?php _ex('CVV', 'Credit card security code, CVV/CCV/CVV2', 'pmpro'); ?> </label> <input class="input" id="CVV" type="text" size="4" value="<?php if (!empty($_REQUEST['CVV'])) { echo esc_attr($_REQUEST['CVV']); } ?> " class=" <?php echo pmpro_getClassForField("CVV"); ?> " /> <small>(<a href="javascript:void(0);" onclick="javascript:window.open('<?php echo pmpro_https_filter(PMPRO_URL); ?> /pages/popup-cvv.html','cvv','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=600, height=475');"><?php _ex("what's this?", 'link to CVV help', 'pmpro'); ?> </a>)</small> </div> <?php } ?> <?php if ($pmpro_show_discount_code) { ?> <div class="pmpro_payment-discount-code"> <label for="discount_code"><?php _e('Discount Code', 'pmpro'); ?> </label> <input class="input <?php echo pmpro_getClassForField("discount_code"); ?> " id="discount_code" name="discount_code" type="text" size="20" value="<?php echo esc_attr($discount_code); ?> " /> <input type="button" id="discount_code_button" name="discount_code_button" value="<?php _e('Apply', 'pmpro'); ?> " /> <p id="discount_code_message" class="pmpro_message" style="display: none;"></p> </div> <?php } ?> </td> </tr> </tbody> </table> <?php //don't include the default return false; }
?> ">Plugin Support</a> | <a href="http://www.paidmembershipspro.com/forums/">User Forum</a> | <strong>Version <?php echo PMPRO_VERSION; ?> </strong></div> </div> <br style="clear:both;" /> <?php //include(pmpro_https_filter("http://www.paidmembershipspro.com/notifications/?v=" . PMPRO_VERSION)); ?> <div id="pmpro_notifications"> </div> <script> jQuery.get('<?php echo pmpro_https_filter("http://www.paidmembershipspro.com/notifications/?v=" . PMPRO_VERSION); ?> ', function(data) { if(data && data != 'NULL') jQuery('#pmpro_notifications').html(data); }); </script> <?php if ($edit) { ?> <h2> <?php if ($edit > 0) { echo "Edit Affiliate";
/** * Use our own payment fields at checkout. (Remove the name attributes and set some data-encrypted-name attributes.) * @since 1.8 */ static function pmpro_include_payment_information_fields($include) { //global vars global $pmpro_requirebilling, $pmpro_show_discount_code, $discount_code, $CardType, $AccountNumber, $ExpirationMonth, $ExpirationYear; //get accepted credit cards $pmpro_accepted_credit_cards = pmpro_getOption("accepted_credit_cards"); $pmpro_accepted_credit_cards = explode(",", $pmpro_accepted_credit_cards); $pmpro_accepted_credit_cards_string = pmpro_implodeToEnglish($pmpro_accepted_credit_cards); //include ours ?> <table id="pmpro_payment_information_fields" class="pmpro_checkout top1em" width="100%" cellpadding="0" cellspacing="0" border="0" <?php if (!$pmpro_requirebilling || apply_filters("pmpro_hide_payment_information_fields", false)) { ?> style="display: none;"<?php } ?> > <thead> <tr> <th> <span class="pmpro_thead-name"><?php _e('Payment Information', 'pmpro'); ?> </span> <span class="pmpro_thead-msg"><?php printf(__('We Accept %s', 'pmpro'), $pmpro_accepted_credit_cards_string); ?> </span> </th> </tr> </thead> <tbody> <tr valign="top"> <td> <?php $sslseal = pmpro_getOption("sslseal"); if ($sslseal) { ?> <div class="pmpro_sslseal"><?php echo stripslashes($sslseal); ?> </div> <?php } ?> <?php $pmpro_include_cardtype_field = apply_filters('pmpro_include_cardtype_field', true); if ($pmpro_include_cardtype_field) { ?> <div class="pmpro_payment-card-type"> <label for="CardType"><?php _e('Card Type', 'pmpro'); ?> </label> <select id="CardType" name="CardType" class=" <?php echo pmpro_getClassForField("CardType"); ?> "> <?php foreach ($pmpro_accepted_credit_cards as $cc) { ?> <option value="<?php echo $cc; ?> " <?php if ($CardType == $cc) { ?> selected="selected"<?php } ?> ><?php echo $cc; ?> </option> <?php } ?> </select> </div> <?php } ?> <div class="pmpro_payment-account-number"> <label for="AccountNumber"><?php _e('Card Number', 'pmpro'); ?> </label> <input id="AccountNumber" name="AccountNumber" class="input <?php echo pmpro_getClassForField("AccountNumber"); ?> " type="text" size="25" value="<?php echo esc_attr($AccountNumber); ?> " data-encrypted-name="number" autocomplete="off" /> </div> <div class="pmpro_payment-expiration"> <label for="ExpirationMonth"><?php _e('Expiration Date', 'pmpro'); ?> </label> <select id="ExpirationMonth" name="ExpirationMonth" class=" <?php echo pmpro_getClassForField("ExpirationMonth"); ?> "> <option value="01" <?php if ($ExpirationMonth == "01") { ?> selected="selected"<?php } ?> >01</option> <option value="02" <?php if ($ExpirationMonth == "02") { ?> selected="selected"<?php } ?> >02</option> <option value="03" <?php if ($ExpirationMonth == "03") { ?> selected="selected"<?php } ?> >03</option> <option value="04" <?php if ($ExpirationMonth == "04") { ?> selected="selected"<?php } ?> >04</option> <option value="05" <?php if ($ExpirationMonth == "05") { ?> selected="selected"<?php } ?> >05</option> <option value="06" <?php if ($ExpirationMonth == "06") { ?> selected="selected"<?php } ?> >06</option> <option value="07" <?php if ($ExpirationMonth == "07") { ?> selected="selected"<?php } ?> >07</option> <option value="08" <?php if ($ExpirationMonth == "08") { ?> selected="selected"<?php } ?> >08</option> <option value="09" <?php if ($ExpirationMonth == "09") { ?> selected="selected"<?php } ?> >09</option> <option value="10" <?php if ($ExpirationMonth == "10") { ?> selected="selected"<?php } ?> >10</option> <option value="11" <?php if ($ExpirationMonth == "11") { ?> selected="selected"<?php } ?> >11</option> <option value="12" <?php if ($ExpirationMonth == "12") { ?> selected="selected"<?php } ?> >12</option> </select>/<select id="ExpirationYear" name="ExpirationYear" class=" <?php echo pmpro_getClassForField("ExpirationYear"); ?> "> <?php for ($i = date_i18n("Y"); $i < date_i18n("Y") + 10; $i++) { ?> <option value="<?php echo $i; ?> " <?php if ($ExpirationYear == $i) { ?> selected="selected"<?php } ?> ><?php echo $i; ?> </option> <?php } ?> </select> </div> <?php $pmpro_show_cvv = apply_filters("pmpro_show_cvv", true); if ($pmpro_show_cvv) { ?> <div class="pmpro_payment-cvv"> <label for="CVV"><?php _e('CVV', 'pmpro'); ?> </label> <input class="input" id="CVV" name="cvv" type="text" size="4" value="<?php if (!empty($_REQUEST['CVV'])) { echo esc_attr($_REQUEST['CVV']); } ?> " class=" <?php echo pmpro_getClassForField("CVV"); ?> " data-encrypted-name="cvv" /> <small>(<a href="javascript:void(0);" onclick="javascript:window.open('<?php echo pmpro_https_filter(PMPRO_URL); ?> /pages/popup-cvv.html','cvv','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=600, height=475');"><?php _e("what's this?", 'pmpro'); ?> </a>)</small> </div> <?php } ?> <?php if ($pmpro_show_discount_code) { ?> <div class="pmpro_payment-discount-code"> <label for="discount_code"><?php _e('Discount Code', 'pmpro'); ?> </label> <input class="input <?php echo pmpro_getClassForField("discount_code"); ?> " id="discount_code" name="discount_code" type="text" size="20" value="<?php echo esc_attr($discount_code); ?> " /> <input type="button" id="discount_code_button" name="discount_code_button" value="<?php _e('Apply', 'pmpro'); ?> " /> <p id="discount_code_message" class="pmpro_message" style="display: none;"></p> </div> <?php } ?> </td> </tr> </tbody> </table> <?php //don't include the default return false; }
type="text" size="4" value="<?php if (!empty($_REQUEST['CVV'])) { echo esc_attr($_REQUEST['CVV']); } ?> " class=" <?php echo pmpro_getClassForField("CVV"); ?> " <?php if ($gateway == "braintree") { ?> data-encrypted-name="cvv"<?php } ?> /> <small>(<a href="javascript:void(0);" onclick="javascript:window.open('<?php echo pmpro_https_filter($cvv_template); ?> ','cvv','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=600, height=475');"><?php _e("what's this?", 'pmpro'); ?> </a>)</small> </div> <?php } ?> </td> </tr> </tbody> </table> <?php
} ?> <div class="wrap pmpro_admin"> <div class="pmpro_banner"> <a class="pmpro_logo" title="Paid Memberships Pro - Membership Plugin for WordPress" target="_blank" href="<?php echo pmpro_https_filter("http://www.paidmembershipspro.com"); ?> "><img src="<?php echo PMPRO_URL; ?> /images/Paid-Memberships-Pro.png" width="350" height="75" border="0" alt="Paid Memberships Pro(c) - All Rights Reserved" /></a> <div class="pmpro_meta"><span class="pmpro_tag-grey">v<?php echo PMPRO_VERSION; ?> </span><a target="_blank" class="pmpro_tag-blue" href="<?php echo pmpro_https_filter("http://www.paidmembershipspro.com"); ?> "><?php _e('Plugin Support', 'pmpro'); ?> </a><a target="_blank" class="pmpro_tag-blue" href="http://www.paidmembershipspro.com/forums/"><?php _e('User Forum', 'pmpro'); ?> </a></div> <br style="clear:both;" /> </div> <div id="pmpro_notifications"> </div> <script>
?> <option value="<?php echo $i?>" <?php if($ExpirationYear == $i) { ?>selected="selected"<?php } ?>><?php echo $i?></option> <?php } ?> </select> </div> <?php $pmpro_show_cvv = apply_filters("pmpro_show_cvv", true); if($pmpro_show_cvv) { ?> <div> <label for="CVV">CVV</label> <input class="input" id="CVV" <?php if($gateway != "stripe" && $gateway != "braintree") { ?>name="CVV"<?php } ?> type="text" size="4" value="<?php if(!empty($_REQUEST['CVV'])) { echo esc_attr($_REQUEST['CVV']); }?>" class=" <?php echo pmpro_getClassForField("CVV");?>" <?php if($gateway == "braintree") { ?>data-encrypted-name="cvv"<?php } ?> /> <small>(<a href="javascript:void(0);" onclick="javascript:window.open('<?php echo pmpro_https_filter(PMPRO_URL)?>/pages/popup-cvv.html','cvv','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=600, height=475');">what's this?</a>)</small> </div> <?php } ?> <?php if($pmpro_show_discount_code) { ?> <div> <label for="discount_code">Discount Code</label> <input class="input <?php echo pmpro_getClassForField("discount_code");?>" id="discount_code" name="discount_code" type="text" size="20" value="<?php echo esc_attr($discount_code)?>" /> <input type="button" id="discount_code_button" name="discount_code_button" value="Apply" /> <p id="discount_code_message" class="pmpro_message" style="display: none;"></p> </div> <?php } ?> </td>
<div class="wrap pmpro_admin"> <div class="pmpro_banner"> <a class="pmpro_logo" title="Paid Memberships Pro - Membership Plugin for WordPress" target="_blank" href="<?php echo pmpro_https_filter("http://www.paidmembershipspro.com")?>"><img src="<?php echo PMPRO_URL?>/images/PaidMembershipsPro.gif" width="350" height="45" border="0" alt="Paid Memberships Pro(c) - All Rights Reserved" /></a> <div class="pmpro_tagline">Membership Plugin for WordPress</div> <div class="pmpro_meta"><a href="<?php echo pmpro_https_filter("http://www.paidmembershipspro.com")?>">Plugin Support</a> | <a href="http://www.paidmembershipspro.com/forums/">User Forum</a> | <strong>Version <?php echo PMPRO_VERSION?></strong></div> </div> <br style="clear:both;" /> <?php //include(pmpro_https_filter("http://www.paidmembershipspro.com/notifications/?v=" . PMPRO_VERSION)); ?> <div id="pmpro_notifications"> </div> <script> jQuery.get('<?php echo pmpro_https_filter("http://www.paidmembershipspro.com/notifications/?v=" . PMPRO_VERSION)?>', function(data) { jQuery('#pmpro_notifications').html(data); }); </script> <?php if($edit) { ?> <h2> <?php if($edit > 0) echo "Edit Discount Code"; else echo "Add New Discount Code"; ?> </h2>