Plugin Directory

Changeset 3490970


Ignore:
Timestamp:
03/25/2026 01:34:38 PM (9 days ago)
Author:
bookpodplugin1
Message:

Updating to version 2.1.8ֿ

Location:
bookpod-author-tools/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • bookpod-author-tools/trunk/assets/bpat-form.css

    r3449910 r3490970  
    11.bookpod-form { max-width: 700px; }
     2.bpat-notice { max-width: 700px; padding: 12px 16px; margin-bottom: 16px; border-radius: 4px; font-size: 1em; }
     3.bpat-notice-success { background-color: #edfaef; border: 1px solid #46b450; color: #1a5c20; }
     4.bpat-notice-error { background-color: #fbeaea; border: 1px solid #dc3232; color: #8b1a1a; }
    25.bpat-fieldset { border: 1px solid #ddd; padding: 15px; margin-bottom: 20px; border-radius: 5px; }
    36.bpat-fieldset legend { font-weight: bold; font-size: 1.2em; padding: 0 5px; }
  • bookpod-author-tools/trunk/bookpod-author-tools.php

    r3489826 r3490970  
    33 * Plugin Name: BookPod Author Tools
    44 * Description: A plugin for managing books and orders through Bookpod.
    5  * Version:     2.1.7
     5 * Version:     2.1.8
    66 * Author:      Rachel Stern
    77 * Text Domain: bookpod-author-tools
  • bookpod-author-tools/trunk/bpat-book.php

    r3485558 r3490970  
    351351    }
    352352
    353     $has_active_flash = (bool) get_transient($flash_key);
     353    $flash_data       = get_transient($flash_key);
     354    $has_active_flash = (bool) $flash_data;
    354355    $raw_failed_data  = get_transient($data_flash_key);
    355356    $failed_data      = false;
     
    362363            delete_transient( $data_flash_key );
    363364            delete_transient( $flash_key );
    364             $failed_data = false;
     365            $flash_data       = false;
     366            $has_active_flash = false;
     367            $failed_data      = false;
    365368        }
    366369    }
     
    711714        plugins_url( 'assets/bpat-form.css', __FILE__ ),
    712715        array(),
    713         '2.1.3'
     716        '2.1.8'
    714717    );
    715718
     
    718721        plugins_url( 'assets/bpat-form.js', __FILE__ ),
    719722        array(),
    720         '2.1.3',
     723        '2.1.8',
    721724        true
    722725    );
     
    735738    // -------------------------------------------
    736739    ob_start();
     740
     741    if ( $has_active_flash && is_array( $flash_data ) ) {
     742        delete_transient( $flash_key );
     743        $flash_type = ( isset( $flash_data['type'] ) && $flash_data['type'] === 'error' ) ? 'error' : 'success';
     744        $flash_msg  = isset( $flash_data['msg'] ) ? $flash_data['msg'] : '';
     745        ?>
     746<div class="bpat-notice bpat-notice-<?php echo esc_attr( $flash_type ); ?>" role="alert">
     747    <?php echo esc_html( $flash_msg ); ?>
     748</div>
     749        <?php
     750    }
    737751    ?>
    738752<form id="bookpod-create-book-form" class="bookpod-form" method="post" enctype="multipart/form-data">
  • bookpod-author-tools/trunk/readme-he_IL.txt

    r3489833 r3490970  
    44Requires at least: 5.8
    55Tested up to: 6.9
    6 Stable tag: 2.1.7
     6Stable tag: 2.1.8
    77Requires PHP: 7.4
    88License: GPLv2 or later
  • bookpod-author-tools/trunk/readme.txt

    r3489833 r3490970  
    44Requires at least: 5.8
    55Tested up to: 6.9
    6 Stable tag: 2.1.7
     6Stable tag: 2.1.8
    77Requires PHP: 7.4
    88License: GPLv2 or later
Note: See TracChangeset for help on using the changeset viewer.