Plugin Directory

Changeset 2209130


Ignore:
Timestamp:
12/10/2019 09:40:11 AM (6 years ago)
Author:
handsomeapps
Message:

V1.1

  • Fixed issue with Unauthorized Access Message and Partial Access Message boxes not saving entered messages.
  • Updated readme with new info and corrections to current features
Location:
elearning-memberships/trunk
Files:
1 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • elearning-memberships/trunk/elm.php

    r2170332 r2209130  
    44Plugin URI: https://ristrettoapps.com/downloads/elm/
    55Description: Simple, Clean, and Robust Membership Site for ELearning Websites
    6 Version: 1.0
     6Version: 1.1
    77Author:  RistrettoApps
    88Author URI: http://ristrettoapps.com
  • elearning-memberships/trunk/includes/admin/class-elm-register-settings.php

    r2170332 r2209130  
    256256            $options[$key] = sanitize_text_field($value);
    257257        }
     258
    258259        // merge old options with new optins
    259         $output = array_merge( $elm_options, $options );
     260        if(!empty($elm_options)){
     261            $output = array_merge( $elm_options, $options );
     262        }else{
     263            $output = $options;
     264        }
    260265
    261266        return $output;
  • elearning-memberships/trunk/includes/class-elm-access.php

    r2170332 r2209130  
    7979        //
    8080        if (!Ristretto_Elm_Access_Check::has_access($post->ID, get_current_user_id())) {
    81             $message = (!empty(get_option( 'elm_unauthorized_message')))?trim( get_option( 'elm_unauthorized_message')): __("This page is restricted", 'ristretto-elm');
     81            $message = (!empty(elm_get_options( 'elm_unauthorized_message')))?trim( elm_get_options( 'elm_unauthorized_message')): __("This page is restricted", 'ristretto-elm');
    8282            return nl2br($message);
    8383        }
  • elearning-memberships/trunk/includes/class-elm-members-frontend.php

    r2170332 r2209130  
    102102            return do_shortcode( $content );
    103103        }else{
    104             $message = (!empty(get_option( 'elm_partial_restrict_message')))?trim( get_option( 'elm_partial_restrict_message')): __("This page is restricted", 'ristretto-elm');
     104            $message = (!empty(elm_get_options( 'elm_partial_restrict_message')))?trim( elm_get_options( 'elm_partial_restrict_message')): __("This page is restricted", 'ristretto-elm');
    105105            return '<span class="elm_partial_restrict_message">'.$message.'</span>';
    106106        }
  • elearning-memberships/trunk/includes/elm-core-functions.php

    r2170332 r2209130  
    218218        return $active_levels;
    219219
    220     }
     220    }
     221   
     222   
     223    /**
     224     * GET all SETTINGS OPTIONS, if key is not null, return only that key value
     225     *
     226     * @param $key  string
     227     *
     228     * @return array
     229     */
     230    function elm_get_options($key=''){
     231
     232        $options = get_option( 'elm_settings' );
     233
     234        if(!empty($key)){
     235            $option = (isset($options[$key]))?$options[$key]:'';
     236            return $option;
     237        }
     238
     239        return $options;
     240    }
    221241 ?>
  • elearning-memberships/trunk/readme.txt

    r2170332 r2209130  
    2525> * No messing around with complex membership plugin features. Get just the membership features you need to manage your eLearning site, without complex configurations <br />
    2626> * Built-in registration form for registering free new members (without payments) *OR if you want to register with payments . . .*<br />
    27 > * Checkout and Register new members with amazing, flexible payment systems such as: Gravity Forms, Easy Digital Downloads (much more integrations coming soon!) <br />
    28 > * Subscription Support with Stripe, PayPal, or Authorize.net (via Gravity Forms, EDD for registrations) <br />
    29 > * Dead Simple User Management with easy Member Dashboard <br />
     27> * Partial protection of any page/post with shortcodes <br />
    3028> * Bulk protect any content in your site by protecting tags and/or categories <br />
    3129> * Performance Focused and Light-Weight <br />
    32 > * Remove a member once from your course and they’re automatically removed from any non-course content you’ve protected as well <br />
    3330> * Gutenberg Compatible <br />
    3431> * PLUS more....<br />
     
    3633
    3734= Features Coming Soon =
     35* Dead Simple User Management with easy Member Dashboard <br />
    3836* Built-in PayPal Registrations
    3937* Detailed Member Tracking Reports
     38* Checkout and Register new members with amazing, flexible payment systems such as: Gravity Forms, Easy Digital Downloads (much more integrations coming soon!) <br />
     39* Subscription Support with Stripe, PayPal, or Authorize.net (via Gravity Forms, EDD for registrations) <br />
     40
    4041* Whatever else you want ([let us know] https://ristrettoapps.com/contact/))
    4142
     
    54551. In your Edit Page or Post screen, look for the Ristretto ELM box below the editor and select the ELM membership levels you'd like to use to protect this page or post. Doing so will ensure that only members of those levels will be able to see this content (with the exception of site administrators)
    5556
     57== Frequently Asked Questions ==
     58 
     59= How do I protect partial content on a page/post? =
     60 
     61Use the following shortcode: [elm_restrict userlevel=levelname]Your partial content to protect[/elm_restrict]
     62
     63= How do I embed the member registration form?  =
     64 
     65Use the following shortcode: [elm_register_form]
     66Note that this feature doesn't currently accept payments, it's for free member registrations only.
     67
    5668
    5769== Screenshots ==
     
    6274== Changelog ==
    6375
    64 * Released first version
     76= 1.1 =
     77* Fixed issue with Unauthorized Access Message and Partial Access Message boxes not saving entered messages.
     78* Updated readme with new info and corrections to current features
     79
     80= 1.0 =
     81* First version
     82 
Note: See TracChangeset for help on using the changeset viewer.