Changeset 1667282
- Timestamp:
- 05/30/2017 07:45:44 PM (9 years ago)
- Location:
- bb-connect-for-give-donations
- Files:
-
- 31 added
- 6 edited
-
tags/2.1 (added)
-
tags/2.1/LICENSE (added)
-
tags/2.1/bb-connect-give.php (added)
-
tags/2.1/fields (added)
-
tags/2.1/fields/bbc-toggle (added)
-
tags/2.1/fields/bbc-toggle/bbc-toggle.php (added)
-
tags/2.1/fields/bbc-toggle/css (added)
-
tags/2.1/fields/bbc-toggle/css/bbc-toggle.css (added)
-
tags/2.1/fields/bbc-toggle/js (added)
-
tags/2.1/fields/bbc-toggle/js/bbc-toggle.js (added)
-
tags/2.1/modules (added)
-
tags/2.1/modules/bbc-give-account (added)
-
tags/2.1/modules/bbc-give-account/bbc-give-account.php (added)
-
tags/2.1/modules/bbc-give-account/css (added)
-
tags/2.1/modules/bbc-give-account/css/frontend.css (added)
-
tags/2.1/modules/bbc-give-account/css/frontend.responsive.css (added)
-
tags/2.1/modules/bbc-give-account/includes (added)
-
tags/2.1/modules/bbc-give-account/includes/frontend.css.php (added)
-
tags/2.1/modules/bbc-give-account/includes/frontend.js.php (added)
-
tags/2.1/modules/bbc-give-account/includes/frontend.php (added)
-
tags/2.1/modules/bbc-give-account/js (added)
-
tags/2.1/modules/bbc-give-account/js/frontend.js (added)
-
tags/2.1/modules/bbc-give-forms (added)
-
tags/2.1/modules/bbc-give-forms/bbc-give-forms.php (added)
-
tags/2.1/modules/bbc-give-forms/includes (added)
-
tags/2.1/modules/bbc-give-forms/includes/frontend.php (added)
-
tags/2.1/modules/bbc-give-goal (added)
-
tags/2.1/modules/bbc-give-goal/bbc-give-goal.php (added)
-
tags/2.1/modules/bbc-give-goal/includes (added)
-
tags/2.1/modules/bbc-give-goal/includes/frontend.php (added)
-
tags/2.1/readme.txt (added)
-
trunk/bb-connect-give.php (modified) (1 diff)
-
trunk/fields/bbc-toggle/bbc-toggle.php (modified) (1 diff)
-
trunk/fields/bbc-toggle/css/bbc-toggle.css (modified) (2 diffs)
-
trunk/modules/bbc-give-account/bbc-give-account.php (modified) (5 diffs)
-
trunk/modules/bbc-give-account/includes/frontend.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bb-connect-for-give-donations/trunk/bb-connect-give.php
r1666281 r1667282 4 4 * Plugin URI: https://wordpress.org/plugins/bb-connect-for-give-donations/ 5 5 * Description: Easily integrate Give Donations with Beaver Builder. 6 * Version: 2. 06 * Version: 2.1 7 7 * Author: PurposeWP 8 8 * Author URI: https://purposewp.com -
bb-connect-for-give-donations/trunk/fields/bbc-toggle/bbc-toggle.php
r1666249 r1667282 48 48 $output .= '.bbc-toggle .' . $name . ':checked + .' . $name . '{'; 49 49 $output .= 'background: #1e8cbe;'; 50 $output .= 'background: #2ea2cc;'; 50 51 $output .= 'border-color: #0074a2;'; 51 52 $output .= 'color: #fff;'; -
bb-connect-for-give-donations/trunk/fields/bbc-toggle/css/bbc-toggle.css
r1666249 r1667282 13 13 .bbc-toggle label { 14 14 display: inline-block; 15 width: 60px;15 width: 35px; 16 16 font-size: 14px; 17 17 font-weight: normal; 18 18 text-align: center; 19 19 text-shadow: none; 20 padding: 4px;20 padding: 5px 9px; 21 21 border: 1px solid rgba(0, 0, 0, 0.2); 22 22 … … 31 31 } 32 32 .bbc-toggle input:checked + label { 33 /* background-color: #A5DC86;*/34 33 -webkit-box-shadow: none; 35 34 box-shadow: none; -
bb-connect-for-give-donations/trunk/modules/bbc-give-account/bbc-give-account.php
r1666249 r1667282 2 2 3 3 /** 4 * @class BBC_Give_Account 5 * @since 2.0 4 * @class BBC_Give_Account 5 * @since 2.0 6 * @credit The Beaver Builder (https://beaverbuilder.com) team for the Tabs module which is what we based this upon and the team at UABB (https://www.ultimatebeaver.com) for their clever implementation of toggle fields. 6 7 */ 7 8 class BBC_Give_Account extends FLBuilderModule { … … 19 20 20 21 $this->add_css( 'font-awesome' ); 22 } 23 24 /** 25 * Return the Subscription Tab settings if Give Recurring is active 26 * 27 * @return array 28 */ 29 public static function bbc_do_subscriptions() { 30 if ( !class_exists( 'Give_Recurring' ) ) { 31 return; 32 } 33 34 $settings = array( 35 'type' => 'bbc-toggle', 36 'label' => __( 'Subscriptions', 'bbc-give' ), 37 'description' => '', 38 'default' => 'false', 39 'options' => array( 40 'true' => __( 'Show', 'bbc-give' ), 41 'false' => __( 'Hide', 'bbc-give' ), 42 ), 43 'help' => __( 'Displays the Subscriptions tab. Default is “Hide”', 'bbc-give' ) 44 ); 45 46 return $settings; 21 47 } 22 48 } … … 44 70 'title' => '', 45 71 'fields' => array( 46 'profile' => array(72 'profile' => array( 47 73 'type' => 'bbc-toggle', 48 'label' => __( ' Donor Profile', 'bbc-give' ),74 'label' => __( 'Profile Editor', 'bbc-give' ), 49 75 'description' => '', 50 76 'default' => 'true', … … 53 79 'false' => __( 'Hide', 'bbc-give' ), 54 80 ), 81 'help' => __( 'Displays the Profile Editor tab. Default is “Show”', 'bbc-give' ) 55 82 ), 56 'history' => array(83 'history' => array( 57 84 'type' => 'bbc-toggle', 58 85 'label' => __( 'Donation History', 'bbc-give' ), … … 63 90 'false' => __( 'Hide', 'bbc-give' ), 64 91 ), 92 'help' => __( 'Displays the Donation History tab. Default is “Show”', 'bbc-give' ) 65 93 ), 94 'subscriptions' => BBC_Give_Account::bbc_do_subscriptions(), 66 95 ) 67 96 ), -
bb-connect-for-give-donations/trunk/modules/bbc-give-account/includes/frontend.php
r1666249 r1667282 6 6 'id' => 'profile', 7 7 'label' => 'Donor Profile', 8 'enabled' => 'true' == $settings->profile 8 'enabled' => 'true' == $settings->profile, 9 'shortcode' => '[give_profile_editor]' 9 10 ), 10 11 'history' => array( 11 12 'id' => 'history', 12 13 'label' => 'Donation History', 13 'enabled' => 'true' == $settings->history 14 'enabled' => 'true' == $settings->history, 15 'shortcode' => '[donation_history]' 16 ), 17 'subscriptions' => array( 18 'id' => 'subscriptions', 19 'label' => 'Subscriptions', 20 'enabled' => 'true' == $settings->subscriptions, 21 'shortcode' => '[give_subscriptions]' 14 22 ), 15 23 ); … … 79 87 role="tabpanel" 80 88 aria-live="polite"> 81 <?php echo do_shortcode( 'profile' == $tab ? '[give_profile_editor]' : '[donation_history]'); ?>89 <?php echo do_shortcode( $tab_settings['shortcode'] ); ?> 82 90 </div> 83 91 </div> -
bb-connect-for-give-donations/trunk/readme.txt
r1666281 r1667282 4 4 Requires at least: 4.4 5 5 Tested up to: 4.7.5 6 Stable tag: 2. 06 Stable tag: 2.1 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 21 21 * **Donation Form Module** - Add and configure your Give donation form. 22 22 * **Donation Form Goal Module** - Add a Donation Form Goal anywhere in your layout. 23 * **Account Details Module** - Add a tabbed Account Details module for your donors.23 * **Account Details Module** - Give your donors the ability to update their profile and view their donation history. Includes support for Give subscriptions and you can even add your own custom content tabs. 24 24 25 25 Configure your donation form using the Give plugin and add it to your Beaver Builder enabled page or post. … … 64 64 == Changelog == 65 65 66 = [2.1] - 2017-05-30 = 67 * Enhancement: The Account Details module now supports Give subscriptions 68 * Enhancement: UI Tweaks 69 66 70 = [2.0] - 2017-05-28 = 67 71 * New: Give Account Details module
Note: See TracChangeset
for help on using the changeset viewer.