Plugin Directory

Changeset 2637863


Ignore:
Timestamp:
12/01/2021 05:41:10 AM (4 years ago)
Author:
mbj-webdevelopment
Message:

resolved shortcode issue, tags/3.0.7

Location:
donation-button
Files:
292 added
4 edited

Legend:

Unmodified
Added
Removed
  • donation-button/trunk/README.txt

    r2637858 r2637863  
    44Requires at least: 3.0.1
    55Tested up to: 5.8.2
    6 stable tag: 3.0.6
     6stable tag: 3.0.7
    77License: GNU General Public License v3.0
    88License URI: http://www.gnu.org/licenses/gpl-3.0.html
  • donation-button/trunk/donation-button.php

    r2637858 r2637863  
    66 * Plugin URI:        https://www.premiumdev.com/
    77 * Description:       Easy to used PayPal Donation button with Auto Responder.
    8  * Version:           3.0.6
     8 * Version:           3.0.7
    99 * Author:            mbj-webdevelopment
    1010 * Author URI:        https://www.premiumdev.com/
  • donation-button/trunk/includes/class-donation-button.php

    r2637858 r2637863  
    4747    public function __construct() {
    4848        $this->plugin_name = 'donation-button';
    49         $this->version = '3.0.6';
     49        $this->version = '3.0.7';
    5050        $this->load_dependencies();
    5151        $this->set_locale();
  • donation-button/trunk/public/class-donation-button-public.php

    r2637858 r2637863  
    9393            $donation_payment_table_border = 'border:medium none';
    9494        }
    95         ?>
    96         <style>
    97             #donation_buttons td{
    98                 <?php echo wp_kses_post($donation_payment_table_border_td); ?>;
    99                 background: inherit !important;
    100             }
    101             #donation_buttons table{               
    102                 <?php echo wp_kses_post($donation_payment_table_border); ?>;
    103                 margin: auto;
     95
     96
     97        $css = "
     98           
     99               
     100               #donation_buttons td{ {
     101                  {$donation_payment_table_border_td};
     102                  background: inherit !important;
     103               }
     104               #donation_buttons table {
     105                  {$donation_payment_table_border};
     106                  margin: auto;
    104107                width: auto;
    105             }
    106         </style>
    107         <?php
     108               }
     109           ";
     110wp_register_style( 'paypal_donation_button_post_css', false);
     111        wp_enqueue_style( 'paypal_donation_button_post_css' );
     112        wp_add_inline_style('paypal_donation_button_post_css', $css);
     113       
     114
     115
    108116        if (isset($atts['align']) && !empty($atts['align'])) {
    109117            $donation_button_align = 'align="' . $atts['align'] . '"';
     
    339347
    340348    public static function donation_button_paypal_donation_list($atts) {
    341         if(isset($_GET['post'])) {
     349        if (isset($_GET['post'])) {
    342350            return false;
    343351        }
     
    352360            'field5' => 'mc_gross',
    353361                        ), $atts));
    354 
    355362
    356363        $args = array(
     
    429436    public static function donation_button_goal_for_wordpress($atts) {
    430437
    431         if(isset($_GET['post'])) {
     438        if (isset($_GET['post'])) {
    432439            return false;
    433440        }
    434        
     441
    435442        if (isset($atts['id']) && !empty($atts['id'])) {
    436443
     
    496503
    497504                <tbody class="donation_button_table_tbody_backgroud_color">                   
    498             <?php if ($display_donation_button_goal_detail) { ?>
     505                    <?php if ($display_donation_button_goal_detail) { ?>
    499506                        <tr>
    500507                            <th><?php _e('Donation Goal Detail', 'donation-button'); ?></th>
     
    503510                            </td>
    504511                        </tr>                   
    505             <?php } if ($display_donation_button_goal_target_amount) { ?>
     512                    <?php } if ($display_donation_button_goal_target_amount) { ?>
    506513                        <tr>
    507514                            <th><?php _e('Donation Target Amount', 'donation-button'); ?></th>
     
    510517                            </td>
    511518                        </tr>                   
    512             <?php } if ($display_donation_button_goal_start_date) { ?>
     519                    <?php } if ($display_donation_button_goal_start_date) { ?>
    513520                        <tr>
    514521                            <th><?php _e('Start Date', 'donation-button'); ?></th>
     
    517524                            </td>
    518525                        </tr>
    519             <?php } if ($display_donation_button_goal_end_date) { ?>
     526                    <?php } if ($display_donation_button_goal_end_date) { ?>
    520527                        <tr>
    521528                            <th><?php _e('End Date', 'donation-button'); ?></th>
     
    524531                            </td>
    525532                        </tr>
    526             <?php } ?>
     533                    <?php } ?>
    527534                    <tr>
    528535                        <td colspan="2">
     
    539546                        </td>
    540547                    </tr>
    541             <?php if ($display_paypal_donation_button) { ?>
     548                    <?php if ($display_paypal_donation_button) { ?>
    542549                        <tr>                       
    543550                            <td>                           
     
    545552                            </td>
    546553                        </tr>
    547             <?php } ?>
     554                    <?php } ?>
    548555                </tbody>
    549556            </table>
Note: See TracChangeset for help on using the changeset viewer.