WordPress.org

Plugin Directory

Changeset 1780875


Ignore:
Timestamp:
12/04/17 16:51:25 (10 days ago)
Author:
sdavis2702
Message:

Release 1.0.6, see readme.txt for changelog.

Location:
edd-terms-per-product
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • edd-terms-per-product/tags/1.0.6/edd-terms-per-product.php

    r1454850 r1780875  
    22/** 
    33 * Plugin Name: Easy Digital Downloads - Terms Per Product 
    4  * Plugin URI: http://easydigitaldownloads.com/extension/terms-per-product 
     4 * Plugin URI: https://easydigitaldownloads.com/downloads/terms-per-product 
    55 * Description: Allow terms of use to be specified on a per-product basis 
    6  * Author: Easy Digital Downloads  
     6 * Author: Easy Digital Downloads 
    77 * Author URI: https://easydigitaldownloads.com 
    8  * Version: 1.0.5 
     8 * Version: 1.0.6 
    99 * Text Domain: edd-terms-per-product 
    1010 * Domain Path: languages 
     
    7474            'a' => array( 
    7575                'href' => array(), 
    76                 'title' => array() 
     76                'title' => array(), 
     77                'target' => array() 
    7778            ), 
    7879            'br' => array(), 
     
    8586 
    8687    public function product_terms() { 
     88        $has_terms = $this->has_terms(); 
     89 
     90        if ( $has_terms ) { 
     91            echo '<script type="text/javascript">jQuery(document).ready(function($){$(".edd_per_product_terms_links").unbind("click").bind("click", function(e) { e.preventDefault();e.stopPropagation();var terms = $(this).attr("href");var parent = $(this).parent();$(terms).slideToggle();parent.find("a").toggle();});});</script>'; 
     92            echo '<fieldset id="edd_terms_agreement">' . $has_terms . '</fieldset>'; 
     93        } 
     94    } 
     95 
     96 
     97    public function has_terms() { 
    8798        $cart_items = edd_get_cart_contents(); 
    8899        $displayed  = array(); 
    89         echo '<script type="text/javascript">jQuery(document).ready(function($){$(".edd_per_product_terms_links").unbind("click").bind("click", function(e) { e.preventDefault();e.stopPropagation();var terms = $(this).attr("href");var parent = $(this).parent();$(terms).slideToggle();parent.find("a").toggle();});});</script>'; 
    90         echo '<fieldset id="edd_terms_agreement">'; 
     100 
     101        ob_start(); 
     102 
    91103        foreach ( $cart_items as $key => $item ) { 
    92104 
     
    111123            } 
    112124        } 
    113         echo '</fieldset>'; 
     125 
     126        $terms = ob_get_clean(); 
     127        return $terms; 
    114128    } 
     129 
    115130 
    116131    public function error_checks( $valid_data = array(), $post_data = array() ) { 
  • edd-terms-per-product/tags/1.0.6/readme.txt

    r1454850 r1780875  
    11=== Easy Digital Downloads - Terms Per Product === 
    2 Author URI: http://pippinsplugins.com 
    3 Plugin URI: http://easydigitaldownloads.com/extension/terms-per-product 
     2Author URI: https://pippinsplugins.com 
     3Plugin URI: https://easydigitaldownloads.com/downloads/terms-per-product 
    44Contributors: easydigitaldownloads, mordauk 
    55Donate link: http://pippinsplugins.com/support-the-site 
    66Tags: download, downloads, e-store, eshop, easy digital downloads, digital downloads, e-downloads, ecommerce, e commerce, e-commerce, selling, wp-ecommerce, wp ecommerce, mordauk, Pippin Williamson, pippinsplugins 
    77Requires at least: 3.6 
    8 Tested up to: 4.6 
     8Tested up to: 4.9.1 
    99 
    10 Stable Tag: 1.0.5 
     10Stable Tag: 1.0.6 
    1111License: GNU Version 2 or Any Later Version 
    1212 
     
    3131 
    3232== Changelog == 
     33 
     34= 1.0.6: December 3, 2017 = 
     35 
     36* Allow 'target' attribute in terms anchor tags 
     37* Remove empty checkout markup when no product terms are present 
    3338 
    3439= 1.0.5: July 14, 2016 = 
  • edd-terms-per-product/trunk/edd-terms-per-product.php

    r1454850 r1780875  
    22/** 
    33 * Plugin Name: Easy Digital Downloads - Terms Per Product 
    4  * Plugin URI: http://easydigitaldownloads.com/extension/terms-per-product 
     4 * Plugin URI: https://easydigitaldownloads.com/downloads/terms-per-product 
    55 * Description: Allow terms of use to be specified on a per-product basis 
    6  * Author: Easy Digital Downloads  
     6 * Author: Easy Digital Downloads 
    77 * Author URI: https://easydigitaldownloads.com 
    8  * Version: 1.0.5 
     8 * Version: 1.0.6 
    99 * Text Domain: edd-terms-per-product 
    1010 * Domain Path: languages 
     
    7474            'a' => array( 
    7575                'href' => array(), 
    76                 'title' => array() 
     76                'title' => array(), 
     77                'target' => array() 
    7778            ), 
    7879            'br' => array(), 
     
    8586 
    8687    public function product_terms() { 
     88        $has_terms = $this->has_terms(); 
     89 
     90        if ( $has_terms ) { 
     91            echo '<script type="text/javascript">jQuery(document).ready(function($){$(".edd_per_product_terms_links").unbind("click").bind("click", function(e) { e.preventDefault();e.stopPropagation();var terms = $(this).attr("href");var parent = $(this).parent();$(terms).slideToggle();parent.find("a").toggle();});});</script>'; 
     92            echo '<fieldset id="edd_terms_agreement">' . $has_terms . '</fieldset>'; 
     93        } 
     94    } 
     95 
     96 
     97    public function has_terms() { 
    8798        $cart_items = edd_get_cart_contents(); 
    8899        $displayed  = array(); 
    89         echo '<script type="text/javascript">jQuery(document).ready(function($){$(".edd_per_product_terms_links").unbind("click").bind("click", function(e) { e.preventDefault();e.stopPropagation();var terms = $(this).attr("href");var parent = $(this).parent();$(terms).slideToggle();parent.find("a").toggle();});});</script>'; 
    90         echo '<fieldset id="edd_terms_agreement">'; 
     100 
     101        ob_start(); 
     102 
    91103        foreach ( $cart_items as $key => $item ) { 
    92104 
     
    111123            } 
    112124        } 
    113         echo '</fieldset>'; 
     125 
     126        $terms = ob_get_clean(); 
     127        return $terms; 
    114128    } 
     129 
    115130 
    116131    public function error_checks( $valid_data = array(), $post_data = array() ) { 
  • edd-terms-per-product/trunk/readme.txt

    r1454850 r1780875  
    11=== Easy Digital Downloads - Terms Per Product === 
    2 Author URI: http://pippinsplugins.com 
    3 Plugin URI: http://easydigitaldownloads.com/extension/terms-per-product 
     2Author URI: https://pippinsplugins.com 
     3Plugin URI: https://easydigitaldownloads.com/downloads/terms-per-product 
    44Contributors: easydigitaldownloads, mordauk 
    55Donate link: http://pippinsplugins.com/support-the-site 
    66Tags: download, downloads, e-store, eshop, easy digital downloads, digital downloads, e-downloads, ecommerce, e commerce, e-commerce, selling, wp-ecommerce, wp ecommerce, mordauk, Pippin Williamson, pippinsplugins 
    77Requires at least: 3.6 
    8 Tested up to: 4.6 
     8Tested up to: 4.9.1 
    99 
    10 Stable Tag: 1.0.5 
     10Stable Tag: 1.0.6 
    1111License: GNU Version 2 or Any Later Version 
    1212 
     
    3131 
    3232== Changelog == 
     33 
     34= 1.0.6: December 3, 2017 = 
     35 
     36* Allow 'target' attribute in terms anchor tags 
     37* Remove empty checkout markup when no product terms are present 
    3338 
    3439= 1.0.5: July 14, 2016 = 
Note: See TracChangeset for help on using the changeset viewer.