Plugin Directory

Changeset 2458299


Ignore:
Timestamp:
01/18/2021 02:01:30 PM (4 years ago)
Author:
gfirem
Message:

Release 3.3.12

Location:
wc4bp
Files:
377 added
57 edited

Legend:

Unmodified
Added
Removed
  • wc4bp/trunk/admin/admin-ajax.php

    r2452220 r2458299  
    1111 * @license        http://www.opensource.org/licenses/gpl-2.0.php GPL License
    1212 */
    13 
    14 // No direct access is allowed
    15 if ( ! defined( 'ABSPATH' ) ) {
    16     exit;
    17 }
    1813
    1914class wc4bp_admin_ajax extends wc4bp_base {
  • wc4bp/trunk/admin/admin-delete.php

    r2452220 r2458299  
    1111 * @license        http://www.opensource.org/licenses/gpl-2.0.php GPL License
    1212 */
    13 
    14 // No direct access is allowed
    15 if ( ! defined( 'ABSPATH' ) ) {
    16     exit;
    17 }
    1813
    1914class wc4bp_admin_delete extends wc4bp_base {
  • wc4bp/trunk/admin/admin-pages.php

    r2452220 r2458299  
    1111 * @license        http://www.opensource.org/licenses/gpl-2.0.php GPL License
    1212 */
    13 
    14 // No direct access is allowed
    15 if ( ! defined( 'ABSPATH' ) ) {
    16     exit;
    17 }
    1813
    1914class wc4bp_admin_pages extends wc4bp_base {
  • wc4bp/trunk/admin/admin-sync.php

    r2452220 r2458299  
    1111 * @license        http://www.opensource.org/licenses/gpl-2.0.php GPL License
    1212 */
    13 // No direct access is allowed
    14 if ( ! defined( 'ABSPATH' ) ) {
    15     exit;
    16 }
    1713
    1814class wc4bp_admin_sync extends wc4bp_base {
  • wc4bp/trunk/admin/admin.php

    r2452220 r2458299  
    1414 * @license        http://www.opensource.org/licenses/gpl-2.0.php GPL License
    1515 */
    16 // No direct access is allowed
    17 if ( !defined( 'ABSPATH' ) ) {
    18     exit;
    19 }
    2016/**
    2117 * Class wc4bp_admin handle the admin pages
  • wc4bp/trunk/admin/views/delete/html_admin_delete_all_settings.php

    r2452220 r2458299  
    1 <p><?php _e( 'Be careful! If you check this option, all settings will be deleted on the plugin deactivation.', 'wc4bp' ); ?></p>
     1<?php
    22
    33if ( ! defined( 'ABSPATH' ) ) { exit; }
    44
     5//Leaven empty tag to let automation add the path disclosure line
     6?>
     7<p><?php _e( 'Be careful! If you check this option, all settings will be deleted on the plugin deactivation.', 'wc4bp' ); ?></p>
    58<br><?php _e( 'Yes I want to delete all Settings: ', 'wc4bp' ); ?>
    69<input type="checkbox" name="wc4bp_options_delete" value="1" <?php checked( $wc4bp_options_delete, 1, true ) ?>>
  • wc4bp/trunk/admin/views/html_admin_delete_screen.php

    r2452220 r2458299  
    1 <div class="wrap">
    2     <?php include_once WC4BP_ABSPATH_ADMIN_VIEWS_PATH . 'html_admin_header.php'; ?>
     1<?php
    32
    43if ( ! defined( 'ABSPATH' ) ) { exit; }
    54
     5//Leaven empty tag to let automation add the path disclosure line
     6?>
     7<div class="wrap">
     8    <?php include_once WC4BP_ABSPATH_ADMIN_VIEWS_PATH . 'html_admin_header.php'; ?>
    69    <br>
    710
  • wc4bp/trunk/admin/views/html_admin_header.php

    r2452220 r2458299  
    1 <?php settings_errors(); ?>
     1<?php
    22
    33if ( ! defined( 'ABSPATH' ) ) { exit; }
    44
     5//Leaven empty tag to let automation add the path disclosure line
     6?>
     7<?php settings_errors(); ?>
    58<div id="icon-options-general" class="icon32"><br></div>
    69<h2> <?php _e( 'WooBuddy -> WooCommerce BuddyPress Integration', 'wc4bp' ); ?></h2>
  • wc4bp/trunk/admin/views/html_admin_marketing.php

    r2452220 r2458299  
    1 <?php if ( ! empty( $message ) ): ?>
     1<?php
    22
    33if ( ! defined( 'ABSPATH' ) ) { exit; }
    44
     5//Leaven empty tag to let automation add the path disclosure line
     6?>
     7<?php if ( ! empty( $message ) ): ?>
    58    <div class="notice review-notice active" id="wc4bp-notice" style="">
    69    <div class="review-notice-logo"><span class="dashicons dashicons-chart-line"></span></div>
  • wc4bp/trunk/admin/views/html_admin_pages_screen_pages.php

    r2452220 r2458299  
    1 <div class="wrap">
    2     <?php include_once WC4BP_ABSPATH_ADMIN_VIEWS_PATH . 'html_admin_header.php'; ?>
     1<?php
    32
    43if ( ! defined( 'ABSPATH' ) ) { exit; }
    54
     5//Leaven empty tag to let automation add the path disclosure line
     6?>
     7<div class="wrap">
     8    <?php include_once WC4BP_ABSPATH_ADMIN_VIEWS_PATH . 'html_admin_header.php'; ?>
    69<br>
    710
  • wc4bp/trunk/admin/views/html_admin_revision.php

    r2452220 r2458299  
     1<?php
     2
     3if ( ! defined( 'ABSPATH' ) ) { exit; }
     4
     5//Leaven empty tag to let automation add the path disclosure line
     6?>
    17<div class="notice review-notice active" id="wc4bp-ask-revision" style="">
    28    <div class="review-notice-logo"><span class="dashicons dashicons-chart-line"></span></div>
     
    410        <strong>WooBuddy -> WooCommerce BuddyPress Integration</strong>  <br>
    511        <?php echo sprintf(__( ' Hey, you just updated to the %s version – that’s awesome!', 'wc4bp' ), WC4BP_Loader::VERSION); ?> <img draggable="false" class="emoji" alt="🎉" src="https://s.w.org/images/core/emoji/2.3/svg/1f389.svg"> <?php  _e(' Could you please do me a BIG favor and give it a 5-star rating on WordPress? Just to help us spread the word and boost our motivation.','wc4bp'); ?><br/>
    6 
    7 if ( ! defined( 'ABSPATH' ) ) { exit; }
    8 
    912        ~ <a target="_blank" href="https://www.themekraft.com/">ThemeKraft Team</a>
    1013    </div>
  • wc4bp/trunk/admin/views/html_admin_screen.php

    r2452220 r2458299  
    1 <div class="wrap">
    2    
    3     <?php include_once WC4BP_ABSPATH_ADMIN_VIEWS_PATH .'html_admin_header.php'; ?>
     1<?php
    42
    53if ( ! defined( 'ABSPATH' ) ) { exit; }
    64
    7 
     5//Leaven empty tag to let automation add the path disclosure line
     6?>
     7<div class="wrap">
     8    <?php include_once WC4BP_ABSPATH_ADMIN_VIEWS_PATH .'html_admin_header.php'; ?>
    89    <form method="post" action="options.php">
    910        <?php wp_nonce_field( 'update-options' ); ?>
  • wc4bp/trunk/admin/views/html_admin_screen_sync.php

    r2452220 r2458299  
    1 <div class="wrap">
    2     <?php include_once WC4BP_ABSPATH_ADMIN_VIEWS_PATH . 'html_admin_header.php'; ?>
     1<?php
    32
    43if ( ! defined( 'ABSPATH' ) ) { exit; }
    54
     5//Leaven empty tag to let automation add the path disclosure line
     6?>
     7<div class="wrap">
     8    <?php include_once WC4BP_ABSPATH_ADMIN_VIEWS_PATH . 'html_admin_header.php'; ?>
    69    <br>
    710    <div id="result"></div>
  • wc4bp/trunk/admin/views/main/html_admin_my_account_tabs.php

    r2452220 r2458299  
    33if ( ! defined( 'ABSPATH' ) ) { exit; }
    44
     5//Leaven empty tag to let automation add the path disclosure line
     6?>
     7<?php
    58_e( '<div><p>By default all related <b>WooCommerce Account Tabs</b> are included into the BuddyPress member profiles. When you <b>Turn off</b> one of the next, the Tab(s) will disappear. Also is possible to change the order for the tabs. </p></div>', 'wc4bp' );
    69/** @var wc4bp_admin $this */
  • wc4bp/trunk/admin/views/main/html_admin_profile_sync.php

    r2452220 r2458299  
    1 <?php /** @var wc4bp_admin $this */ ?>
     1<?php
    22
    33if ( ! defined( 'ABSPATH' ) ) { exit; }
    44
     5//Leaven empty tag to let automation add the path disclosure line
     6?>
     7<?php /** @var wc4bp_admin $this */ ?>
    58<label>
    69    <p>
  • wc4bp/trunk/admin/views/main/html_admin_shop_disable.php

    r2452220 r2458299  
    1 <?php /** @var wc4bp_admin $this */
     1<?php
    22
    33if ( ! defined( 'ABSPATH' ) ) { exit; }
    44
     5//Leaven empty tag to let automation add the path disclosure line
     6?>
     7<?php /** @var wc4bp_admin $this */
    58?>
    69<p <?php echo $this->disable_class_tag( 'p', wc4bp_base::$starter_plan_id ); ?>>
  • wc4bp/trunk/admin/views/main/html_admin_shop_home.php

    r2452220 r2458299  
    1 <?php /** @var wc4bp_admin $this */ ?>
     1<?php
    22
    33if ( ! defined( 'ABSPATH' ) ) { exit; }
    44
     5//Leaven empty tag to let automation add the path disclosure line
     6?>
     7<?php /** @var wc4bp_admin $this */ ?>
    58<label>
    69    <p><?php _e( 'This option override the default tab to show when the user click in the Shop tab.', 'wc4bp' ); ?></p>
  • wc4bp/trunk/admin/views/main/html_admin_shop_tabs.php

    r2452220 r2458299  
    1 <?php /** @var wc4bp_admin $this */ ?>
     1<?php
    22
    33if ( ! defined( 'ABSPATH' ) ) { exit; }
    44
     5//Leaven empty tag to let automation add the path disclosure line
     6?>
     7<?php /** @var wc4bp_admin $this */ ?>
    58<p <?php echo $this->disable_class_tag( 'p', wc4bp_base::$starter_plan_id ); ?>>
    69    <label>
  • wc4bp/trunk/admin/views/main/html_thank_you_page.php

    r2452220 r2458299  
    1 <?php /** @var wc4bp_admin $this */ ?>
     1<?php
    22
    33if ( ! defined( 'ABSPATH' ) ) { exit; }
    44
     5//Leaven empty tag to let automation add the path disclosure line
     6?>
     7<?php /** @var wc4bp_admin $this */ ?>
    58<label>
    69    <p><?php _e( 'This option override the default Woocommerce Thank You Page for one of the integrated pages.', 'wc4bp' ); ?></p>
  • wc4bp/trunk/admin/views/pages/html_admin_pages_edit_entry.php

    r2452220 r2458299  
    1 <p>
    2     <b><?php _e( 'Choose an existing page', 'wc4bp' ); ?></b>
     1<?php
    32
    43if ( ! defined( 'ABSPATH' ) ) { exit; }
    54
     5//Leaven empty tag to let automation add the path disclosure line
     6?>
     7<p>
     8    <b><?php _e( 'Choose an existing page', 'wc4bp' ); ?></b>
    69    <br>
    710    <?php wp_dropdown_pages( $args ); ?>
  • wc4bp/trunk/admin/views/pages/html_admin_pages_forms_table.php

    r2452220 r2458299  
    1 <h3><?php _e( 'Add Pages to Member Profiles', 'wc4bp' ); ?></h3>
     1<?php
    22
    33if ( ! defined( 'ABSPATH' ) ) { exit; }
    44
     5//Leaven empty tag to let automation add the path disclosure line
     6?>
     7<h3><?php _e( 'Add Pages to Member Profiles', 'wc4bp' ); ?></h3>
    58
    69<p><?php _e( 'Integrate other pages (for example from other WooCommerce extensions) into your BuddyPress member profiles.', 'wc4bp' ); ?></p>
     
    1922    <tbody id="the-list">
    2023    <?php
    21    
     24
    2225    if ( isset( $wc4bp_pages_options['selected_pages'] ) && is_array( $wc4bp_pages_options['selected_pages'] ) ) :
    2326        foreach ( $wc4bp_pages_options['selected_pages'] as $key => $attached_page ):
  • wc4bp/trunk/admin/views/pages/html_admin_pages_shop_pages_rename.php

    r2452220 r2458299  
    1 
    2 <p><b><?php _e('Rename Shop Parent Tab:', 'wc4bp'); ?></b><input id='text' name='wc4bp_options[shop_main_nav]' type='text' value='<?php echo $shop_main_nav; ?>'/></p>
     1<?php
    32
    43if ( ! defined( 'ABSPATH' ) ) { exit; }
    54
     5//Leaven empty tag to let automation add the path disclosure line
     6?>
     7<p><b><?php _e('Rename Shop Parent Tab:', 'wc4bp'); ?></b><input id='text' name='wc4bp_options[shop_main_nav]' type='text' value='<?php echo $shop_main_nav; ?>'/></p>
    68<p><b><?php _e('Rename Shopping Cart:', 'wc4bp'); ?></b><input id='text' name='wc4bp_options[cart_sub_nav]' type='text' value='<?php echo $cart_sub_nav; ?>'/></p>
    79<p><b><?php _e('Rename History:', 'wc4bp'); ?></b><input id='text' name='wc4bp_options[history_sub_nav]' type='text' value='<?php echo $history_sub_nav; ?>'/></p>
  • wc4bp/trunk/admin/views/pages/html_admin_pages_thickbox.php

    r2452220 r2458299  
    1 <div class="parent_div">
    2     <p <?php /** @var wc4bp_admin $this */ echo $this->disable_class_tag( 'p', wc4bp_base::$starter_plan_id ); ?> style="margin: 0 0 20px 0;">
     1<?php
    32
    43if ( ! defined( 'ABSPATH' ) ) { exit; }
    54
     5//Leaven empty tag to let automation add the path disclosure line
     6?>
     7<div class="parent_div">
     8    <p <?php /** @var wc4bp_admin $this */ echo $this->disable_class_tag( 'p', wc4bp_base::$starter_plan_id ); ?> style="margin: 0 0 20px 0;">
    69        <input <?php echo $this->disable_input_tag( 'button', wc4bp_base::$starter_plan_id  ); ?> alt="#TB_inline?height=300&amp;width=400&amp;inlineId=add_page" title="<?php _e( 'Add an existing page to your BuddyPress member profiles', 'wc4bp' ); ?>" class="button button-secondary cptfbp_thickbox cptfbp_thickbox_add " type="button" value="<?php _e( 'Add a page to your BuddyPress Member Profiles', 'wc4bp' ); ?>"/>
    710
  • wc4bp/trunk/admin/views/sync/html_admin_sync_change_xprofile.php

    r2452220 r2458299  
    1 <?php /** @var wc4bp_admin_sync $this */ ?>
     1<?php
    22
    33if ( ! defined( 'ABSPATH' ) ) { exit; }
    44
     5//Leaven empty tag to let automation add the path disclosure line
     6?>
     7<?php /** @var wc4bp_admin_sync $this */ ?>
    58<b>
    69    <p><?php _e( 'Set the Profile Field Visibility for all existing Users:', 'wc4bp' ); ?></p>
  • wc4bp/trunk/admin/views/sync/html_admin_sync_change_xprofile_allow_custom.php

    r2452220 r2458299  
    1 <p><?php _e( 'Allow if the user can change the Field visibility.', 'wc4bp' ); ?></p>
     1<?php
    22
    33if ( ! defined( 'ABSPATH' ) ) { exit; }
    44
     5//Leaven empty tag to let automation add the path disclosure line
     6?>
     7<p><?php _e( 'Allow if the user can change the Field visibility.', 'wc4bp' ); ?></p>
    58<p>
    69    <select name="wc4bp_options_sync[custom_visibility]">
  • wc4bp/trunk/admin/views/sync/html_admin_sync_change_xprofile_visibility.php

    r2452220 r2458299  
    1 <p>
    2     <?php esc_attr_e( 'Set the default visibility for all WooCommerce Fields inside BuddyPress.', 'wc4bp' ); ?>
     1<?php
    32
    43if ( ! defined( 'ABSPATH' ) ) { exit; }
    54
     5//Leaven empty tag to let automation add the path disclosure line
     6?>
     7<p>
     8    <?php esc_attr_e( 'Set the default visibility for all WooCommerce Fields inside BuddyPress.', 'wc4bp' ); ?>
    69</p>
    710<?php $this->select_visibility_levels( 'default_visibility' ); ?>
  • wc4bp/trunk/admin/views/sync/html_admin_sync_shop_profile.php

    r2452220 r2458299  
    1 <p>
    2     <b><?php _e( 'Sync WooCommerce Customer Billing and Shipping Address with BuddyPress.', 'wc4bp' ); ?></b>
     1<?php
    32
    43if ( ! defined( 'ABSPATH' ) ) { exit; }
    54
     5//Leaven empty tag to let automation add the path disclosure line
     6?>
     7<p>
     8    <b><?php _e( 'Sync WooCommerce Customer Billing and Shipping Address with BuddyPress.', 'wc4bp' ); ?></b>
    69</p>
    710<p>
  • wc4bp/trunk/admin/views/sync/html_admin_sync_shop_profile_sync_ajax.php

    r2452220 r2458299  
    1 <?php /** @var wc4bp_admin_sync $this */?>
     1<?php
    22
    33if ( ! defined( 'ABSPATH' ) ) { exit; }
    44
     5//Leaven empty tag to let automation add the path disclosure line
     6?>
     7<?php /** @var wc4bp_admin_sync $this */?>
    58<input id="continue_update_paged" type="hidden" value="<?php echo $paged ?>">
    69<p>
     
    3134
    3235    <tbody id="result" data-wp-lists="list:user">
    33    
     36
    3437    <?php
    3538    foreach ( $query as $q ) {
  • wc4bp/trunk/admin/wc4bp-activate.php

    r2452220 r2458299  
    1111 * @license         http://www.opensource.org/licenses/gpl-2.0.php GPL License
    1212 */
    13 
    14 // No direct access is allowed
    15 if ( ! defined( 'ABSPATH' ) ) {
    16     exit;
    17 }
    1813
    1914/**
  • wc4bp/trunk/admin/wc4bp-marketing.php

    r2452220 r2458299  
    1111 * @license        http://www.opensource.org/licenses/gpl-2.0.php GPL License
    1212 */
    13 // No direct access is allowed
    14 if ( ! defined( 'ABSPATH' ) ) {
    15     exit;
    16 }
    1713
    1814class WC4BP_Marketing extends wc4bp_base {
    1915    public $is_trial;
    20    
     16
    2117    public function __construct() {
    2218        parent::__construct();
     
    2521        add_action( 'admin_enqueue_scripts', array( $this, 'marketing_script' ), 10 );
    2622    }
    27    
     23
    2824    public function notice() {
    2925        $message     = '';
     
    4238                    'target' => '#'
    4339                )
    44                
     40
    4541            );
    4642            $need_notice = true;
     
    5046        }
    5147    }
    52    
     48
    5349    public function marketing_script( $hook ) {
    5450        try {
     
    6460        }
    6561    }
    66    
     62
    6763    public function notice_view( $message = '', $links = array() ) {
    6864        include_once( WC4BP_ABSPATH_ADMIN_VIEWS_PATH . 'html_admin_marketing.php' );
  • wc4bp/trunk/admin/wc4bp-revision.php

    r2452220 r2458299  
    1111 * @license        http://www.opensource.org/licenses/gpl-2.0.php GPL License
    1212 */
    13 // No direct access is allowed
    14 if ( ! defined( 'ABSPATH' ) ) {
    15     exit;
    16 }
    1713
    1814class WC4BP_Revision {
  • wc4bp/trunk/class/core/wc4bp-component.php

    r2452220 r2458299  
    1212 * @license            http://www.opensource.org/licenses/gpl-2.0.php GPL License
    1313 */
    14 // No direct access is allowed
    15 if ( !defined( 'ABSPATH' ) ) {
    16     exit;
    17 }
    1814class WC4BP_Component extends BP_Component
    1915{
  • wc4bp/trunk/class/core/wc4bp-conditionals.php

    r2452220 r2458299  
    1111 * @license        http://www.opensource.org/licenses/gpl-2.0.php GPL License
    1212 */
    13 
    14 // No direct access is allowed
    15 if ( ! defined( 'ABSPATH' ) ) {
    16     exit;
    17 }
    1813
    1914/**
  • wc4bp/trunk/class/core/wc4bp-deprecated.php

    r2452220 r2458299  
    1212 */
    1313
    14 // No direct access is allowed
    15 if ( ! defined( 'ABSPATH' ) ) {
    16     exit;
    17 }
    18 
    1914/**
    2015 * Get the tracking page id
  • wc4bp/trunk/class/core/wc4bp-helpers.php

    r2452220 r2458299  
    1111 * @license            http://www.opensource.org/licenses/gpl-2.0.php GPL License
    1212 */
    13 
    14 // No direct access is allowed
    15 if ( ! defined( 'ABSPATH' ) ) {
    16     exit;
    17 }
    1813
    1914/**
  • wc4bp/trunk/class/core/wc4bp-redirect.php

    r2452220 r2458299  
    1313 */
    1414
    15 // No direct access is allowed
    16 if ( ! defined( 'ABSPATH' ) ) {
    17     exit;
    18 }
    1915
    2016/**
  • wc4bp/trunk/class/core/wc4bp-screen.php

    r2452220 r2458299  
    1111 * @license        http://www.opensource.org/licenses/gpl-2.0.php GPL License
    1212 */
    13 
    14 // No direct access is allowed
    15 if ( ! defined( 'ABSPATH' ) ) {
    16     exit;
    17 }
    1813
    1914/**
  • wc4bp/trunk/class/core/wc4bp-sync.php

    r2452220 r2458299  
    1111 * @license       http://www.opensource.org/licenses/gpl-2.0.php GPL License
    1212 */
    13 
    14 // No direct access is allowed
    15 if ( ! defined( 'ABSPATH' ) ) {
    16     exit;
    17 }
    1813
    1914class wc4bp_Sync {
  • wc4bp/trunk/class/core/wc4bp-template-compatibility.php

    r2452220 r2458299  
    99 */
    1010
    11 // Exit if accessed directly
    12 if ( ! defined( 'ABSPATH' ) ) {
    13     exit;
    14 }
    1511
    1612/** 1.7 compat *****************************************************/
  • wc4bp/trunk/class/includes/class-request-helper.php

    r2452220 r2458299  
    33if ( ! defined( 'ABSPATH' ) ) { exit; }
    44
    5 if ( ! defined( 'WPINC' ) ) {
    6     die;
    7 }
     5
    86
    97if ( ! class_exists( 'Request_Helper' ) ) {
  • wc4bp/trunk/class/wc4bp-activity-stream.php

    r2452220 r2458299  
    1111 * @license        http://www.opensource.org/licenses/gpl-2.0.php GPL License
    1212 */
    13 
    14 // No direct access is allowed
    15 if ( ! defined( 'ABSPATH' ) ) {
    16     exit;
    17 }
    1813
    1914class WC4BP_Activity_Stream {
  • wc4bp/trunk/class/wc4bp-base.php

    r2452220 r2458299  
    44
    55
    6 // No direct access is allowed
    7 if ( ! defined( 'ABSPATH' ) ) {
    8     exit;
    9 }
    106
    117class wc4bp_base {
     
    2117    public $is_paid_trial;
    2218    public $has_paid_plan;
    23    
     19
    2420    static $starter_plan_id = 'starter';
    2521    static $professional_plan_id = 'professional';
    2622    static $business_plan_id = 'business';
    2723    private $plan;
    28    
     24
    2925    public function __construct( $debug = false ) {
    3026        //Comment the next line to disable the forced debug
     
    4238            $this->current_plan            = WC4BP_Loader::getFreemius()->get_current_or_network_install();
    4339            $this->need_account_activation = ( $this->has_paid_plan && ! $this->is_paying && ! $this->is_paid_trial );
    44            
     40
    4541            return;
    4642        } else if ( ! is_array( $debug ) ) {
     
    5551        $this->is_premium_only = $debug['is_premium_only'];
    5652        $this->is_trial        = $debug['trial'];
    57        
     53
    5854        //Set the fake plan
    5955        $this->plan = self::$starter_plan_id;
    6056    }
    61    
     57
    6258    public function disable_class_tag( $tag, $plan = 'professional', $force = false ) {
    6359        if ( ! $this->is_trial ) {
     
    6763                        $class = 'wc4bp-disabled';
    6864                }
    69                
     65
    7066                return 'class="' . $class . '"';
    7167            }
    7268        }
    73        
     69
    7470        return '';
    7571    }
    76    
     72
    7773    public function disable_input_tag( $type, $plan = 'professional', $force = false ) {
    7874        if ( ! $this->is_trial ) {
     
    8783                }
    8884            }
    89            
     85
    9086            return $attr;
    9187        }
    92        
     88
    9389        return '';
    9490    }
    95    
     91
    9692    public function is_plan( $plan_id ) {
    9793        if ( $this->debug ) {
     
    10096            $result = WC4BP_Loader::getFreemius()->is_plan_or_trial( $plan_id );
    10197        }
    102        
     98
    10399        return $result;
    104100    }
    105    
     101
    106102    public function needs_upgrade() {
    107103        return ( $this->is_free || $this->is_start || $this->is_trial ) && ! $this->is_professional;
    108104    }
    109    
    110    
     105
     106
    111107}
  • wc4bp/trunk/class/wc4bp-exception-handler.php

    r2452220 r2458299  
    1313 */
    1414
    15 // No direct access is allowed
    16 if ( ! defined( 'ABSPATH' ) ) {
    17     exit;
    18 }
    19 
    2015if ( ! class_exists( 'WC4BP_Exception_Handler' ) ) {
    2116    class WC4BP_Exception_Handler {
     
    2419        private $internal_prefix = 'exception';
    2520        private $exception_list;
    26        
     21
    2722        public function __construct() {
    2823            /**
     
    3833            $this->load_exceptions_list();
    3934        }
    40        
     35
    4136        public function error_handler( $number, $message, $file, $line ) {
    4237            $trace          = new stdClass;
     
    4742            $this->save_exception( $trace );
    4843        }
    49        
     44
    5045        public function save_exception( $trace ) {
    5146            if ( ! empty( $trace ) ) {
    5247                $this->exception_list[ time() ] = $trace;
    53                
     48
    5449                return true;
    5550            } else {
     
    5752            }
    5853        }
    59        
     54
    6055        public function register_exception() {
    6156            if ( ! empty( $this->exception_list ) ) {
     
    6560            }
    6661        }
    67        
     62
    6863        public function get_exception_list() {
    6964            return $this->exception_list;
    7065        }
    71        
     66
    7267        public function load_exceptions_list() {
    7368            if ( empty( $this->exception_list ) ) {
     
    8277            }
    8378        }
    84        
     79
    8580        public static function clean_exceptions() {
    8681            $list_name = self::get_instance()->exception_list_name;
    87            
     82
    8883            return delete_option( $list_name );
    8984        }
    90        
     85
    9186        /**
    9287         * Return an instance of this class.
     
    9994                self::$instance = new self;
    10095            }
    101            
     96
    10297            return self::$instance;
    10398        }
  • wc4bp/trunk/class/wc4bp-manage-admin.php

    r2452220 r2458299  
    1111 * @license        http://www.opensource.org/licenses/gpl-2.0.php GPL License
    1212 */
    13 
    14 // No direct access is allowed
    15 if ( ! defined( 'ABSPATH' ) ) {
    16     exit;
    17 }
    1813
    1914class wc4bp_Manage_Admin {
  • wc4bp/trunk/class/wc4bp-manager.php

    r2452220 r2458299  
    1212 * @license        http://www.opensource.org/licenses/gpl-2.0.php GPL License
    1313 */
    14 // No direct access is allowed
    15 if ( !defined( 'ABSPATH' ) ) {
    16     exit;
    17 }
    1814class wc4bp_Manager
    1915{
  • wc4bp/trunk/class/wc4bp-myaccount-content.php

    r2452220 r2458299  
    1111 * @license        http://www.opensource.org/licenses/gpl-2.0.php GPL License
    1212 */
    13 
    14 // No direct access is allowed
    15 if ( ! defined( 'ABSPATH' ) ) {
    16     exit;
    17 }
    1813
    1914class WC4BP_MyAccount_Content {
  • wc4bp/trunk/class/wc4bp-myaccount-private.php

    r2452220 r2458299  
    1111 * @license        http://www.opensource.org/licenses/gpl-2.0.php GPL License
    1212 */
    13 // No direct access is allowed
    14 if ( ! defined( 'ABSPATH' ) ) {
    15     exit;
    16 }
    1713
    1814class WC4BP_MyAccount_Private {
  • wc4bp/trunk/class/wc4bp-myaccount.php

    r2452220 r2458299  
    1212 * @license        http://www.opensource.org/licenses/gpl-2.0.php GPL License
    1313 */
    14 // No direct access is allowed
    15 if ( !defined( 'ABSPATH' ) ) {
    16     exit;
    17 }
    1814class WC4BP_MyAccount
    1915{
  • wc4bp/trunk/class/wc4bp-required-php.php

    r2452220 r2458299  
    1212 * @license        http://www.opensource.org/licenses/gpl-2.0.php GPL License
    1313 */
    14 
    15 // No direct access is allowed
    16 if ( ! defined( 'ABSPATH' ) ) {
    17     exit;
    18 }
    1914
    2015class WC4BP_Required_PHP extends wc4bp_requirements {
  • wc4bp/trunk/class/wc4bp-required.php

    r2452220 r2458299  
    1212 * @license        http://www.opensource.org/licenses/gpl-2.0.php GPL License
    1313 */
    14 
    15 // No direct access is allowed
    16 if ( ! defined( 'ABSPATH' ) ) {
    17     exit;
    18 }
    1914
    2015class WC4BP_Required {
  • wc4bp/trunk/class/wc4bp-status.php

    r2452220 r2458299  
    1111 * @license        http://www.opensource.org/licenses/gpl-2.0.php GPL License
    1212 */
    13 // No direct access is allowed
    14 if ( ! defined( 'ABSPATH' ) ) {
    15     exit;
    16 }
    1713
    1814class WC4BP_Status {
  • wc4bp/trunk/class/wc4bp-upgrade.php

    r2452220 r2458299  
    1212 * @license        http://www.opensource.org/licenses/gpl-2.0.php GPL License
    1313 */
    14 
    15 // No direct access is allowed
    16 if ( ! defined( 'ABSPATH' ) ) {
    17     exit;
    18 }
    1914
    2015/**
  • wc4bp/trunk/class/wc4bp-woocommerce.php

    r2452220 r2458299  
    1111 * @license        http://www.opensource.org/licenses/gpl-2.0.php GPL License
    1212 */
    13 
    14 // No direct access is allowed
    15 if ( ! defined( 'ABSPATH' ) ) {
    16     exit;
    17 }
    1813
    1914//Manage Woocommerce hooks
  • wc4bp/trunk/patch/3.0.14.php

    r2452220 r2458299  
    1212 * @license        http://www.opensource.org/licenses/gpl-2.0.php GPL License
    1313 */
    14 
    15 // No direct access is allowed
    16 if ( ! defined( 'ABSPATH' ) ) {
    17     exit;
    18 }
    1914
    2015if ( ! class_exists( 'WC4BP_3013' ) ) {
  • wc4bp/trunk/readme.txt

    r2452220 r2458299  
    44Requires at least: 4.9
    55Tested up to: 5.6
    6 Stable tag: 3.3.11
     6Stable tag: 3.3.12
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    114114
    115115== Changelog ==
     116= 3.3.12 - 18 Jan 2021 =
     117* Update the plugin to fix a release script error causing output php code into the administration.
     118
    116119= 3.3.11 - 7 Jan 2021 =
    117120* Added a hook filter to let 3rd party force the field visibility.
  • wc4bp/trunk/templates/shop/member/plugin.php

    r2452220 r2458299  
    1 <div id="item-body" role="main">
    2     <?php
     1<?php
    32
    43if ( ! defined( 'ABSPATH' ) ) { exit; }
    54
     5//Leaven empty tag to let automation add the path disclosure line
     6?>
     7<div id="item-body" role="main">
     8    <?php
    69    /**
    710     * @package        WordPress
  • wc4bp/trunk/wc4bp-basic-integration.php

    r2452220 r2458299  
    1010 * Author: ThemeKraft
    1111 * Author URI: https://themekraft.com/products/woocommerce-buddypress-integration/
    12  * Version: 3.3.11
     12 * Version: 3.3.12
    1313 * Licence: GPLv3
    1414 * Text Domain: wc4bp
     
    4848         * The plugin version
    4949         */
    50         const  VERSION = '3.3.11' ;
     50        const  VERSION = '3.3.12' ;
    5151        /**
    5252         * Minimum required WP version
Note: See TracChangeset for help on using the changeset viewer.