This file contains hidden or 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 | |
| function leaky_paywall_2checkout_add_signup_link( $payment_options, $level, $level_id ) { | |
| $output = ''; | |
| $settings = get_leaky_paywall_settings(); | |
| $gateways = new Leaky_Paywall_Payment_Gateways(); |
This file contains hidden or 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 | |
| function leaky_paywall_2checkout_gateway_settings( $settings ) { | |
| if ( !in_array( '2checkout', $settings['payment_gateway'] ) ) { | |
| return; | |
| } | |
| ?> | |
| <table class="form-table"> | |
| <tr> |
This file contains hidden or 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( 'leaky_paywall_translate_payment_gateway_slug_to_name', 'leaky_paywall_2checkout_gateway_slug', 10, 2 ); | |
| function leaky_paywall_2checkout_gateway_slug( $return, $slug ) { | |
| if ( $slug == '2checkout' ) { | |
| $return = '2checkout'; | |
| } |
This file contains hidden or 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 | |
| /** | |
| * 2Checkout Payment Gateway Class | |
| * | |
| * @package Leaky Paywall | |
| * @subpackage Classes/Roles | |
| * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License | |
| * @since 1.0.0 | |
| */ |
This file contains hidden or 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="neighborhood-map"> | |
| <!-- <div id="map"></div> --> | |
| <script> | |
| var map; | |
| function initMap() { | |
| var mapDiv = document.getElementById('map'); | |
| map = new google.maps.Map(mapDiv, { |
This file contains hidden or 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 fields to registration form | |
| add_action( 'leaky_paywall_after_password_registration_field', 'zeen101_custom_registration_fields' ); | |
| function zeen101_custom_registration_fields() { | |
| ?> | |
| <div class="form-row"> | |
| <label>Company</label> | |
| <input type="text" value="" name="company"> | |
| </div> |
This file contains hidden or 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
| module.exports = function(grunt) { | |
| grunt.initConfig({ | |
| sass: { | |
| dist: { | |
| options: { | |
| style: 'compressed', | |
| debugInfo: true | |
| }, | |
| files: { |
This file contains hidden or 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( 'issuem_pdf_toc_title', 'zeen101_toc_title' ); | |
| function zeen101_toc_title( $toc ) { | |
| return 'List of Articles'; | |
| } | |
| add_filter( 'issuem_pdf_styles', 'zeen101_pdf_styles' ); | |
| function zeen101_pdf_styles( $styles ) { | |
| $new_styles = 'h2 { color: red; }'; |
This file contains hidden or 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 | |
| // didn't work | |
| $term_args = array( | |
| 'taxonomy' => 'issuem_issue', // passed as a string | |
| 'meta_query' => array( | |
| array( | |
| 'key' => 'old_id', | |
| 'value' => 123, | |
| 'compare' => '=' |