Plugin Directory

Changeset 2514366


Ignore:
Timestamp:
04/13/2021 06:31:49 PM (5 years ago)
Author:
scottopolis
Message:

v1.5.7

Location:
holler-box
Files:
42 added
3 edited

Legend:

Unmodified
Added
Removed
  • holler-box/trunk/holler-box.php

    r2506068 r2514366  
    44 * Plugin URI:      https://hollerwp.com
    55 * Description:     A lightweight popup plugin with lead generation opt-in forms.
    6  * Version:         1.5.6
     6 * Version:         1.5.7
    77 * Author:          Scott Bolinger
    88 * Author URI:      https://scottbolinger.com
     
    6363        private function setup_constants() {
    6464            // Plugin version
    65             define( 'Holler_Box_VER', '1.5.6' );
     65            define( 'Holler_Box_VER', '1.5.7' );
    6666
    6767            // Plugin path
  • holler-box/trunk/includes/class-holler-functions.php

    r2506068 r2514366  
    7272        public function scripts_styles( $hook ) {
    7373
    74             $box_id = $this->get_box_for_this_page();
    75 
    76             if( $box_id ) {
     74            $boxes = $this->get_boxes_for_this_page();
     75
     76            if( !empty( $boxes ) ) {
    7777
    7878                // Use minified libraries if SCRIPT_DEBUG is turned off
     
    155155        public function maybe_display_items() {
    156156
    157             $box_id = $this->get_box_for_this_page();
    158 
    159             if( $box_id ) {
     157            $active_boxes = $this->get_boxes_for_this_page();
     158
     159            foreach( $active_boxes as $box_id ) {
    160160                self::$instance->show_box_types( $box_id );
    161161            }
     162
    162163        }
    163164
     
    168169         * @return      string
    169170         */
    170         public function get_box_for_this_page() {
     171        public function get_boxes_for_this_page() {
     172
     173            $active_boxes = [];
    171174
    172175            // do checks for page conditionals, logged in, etc here
     
    229232                    continue;
    230233
    231                 return $box_id;
    232 
    233             }
     234                $active_boxes[] = $box_id;
     235
     236            }
     237
     238            return $active_boxes;
    234239
    235240        }
     
    540545            $post_content = get_post($id);
    541546            $content = $post_content->post_content;
    542             $content = apply_filters('the_content', $content );
    543547            $content = apply_filters('hollerbox_content', $content, $id );
    544548            return do_shortcode( $content );
  • holler-box/trunk/readme.txt

    r2506068 r2514366  
    55Requires at least: 4.5
    66Tested up to: 5.7
    7 Stable tag: 1.5.6
     7Stable tag: 1.5.7
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    149149= 1.5.6 =
    150150
     151* Fix for multiple boxes on one page
     152* Fix for Elementor and WPBakery showing page content in box
     153
     154= 1.5.6 =
     155
    151156* Fix broken icons
    152157* Fix for Elementor
Note: See TracChangeset for help on using the changeset viewer.