Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Hardened the security. #27

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 38 additions & 38 deletions bb-bootstrap-alerts-module/includes/frontend.php
Original file line number Diff line number Diff line change
@@ -1,50 +1,50 @@
<!-- Bootstrap alert start -->
<?php $name = 'bbba-'.$module->node; ?>
<?php $is_enable=true; ?>
<?php if( ! FLBuilderModel::is_builder_active() ) { ?>
<?php if( isset( $_COOKIE[$name] ) && $_COOKIE[$name] != null ):
$is_enable=false;
endif ?>
<?php } ?>
<?php if( $is_enable ): ?>
<?php if(! FLBuilderModel::is_builder_active() ) : ?>
<?php if(isset($_COOKIE[$name]) && $_COOKIE[$name] != null ) :
$is_enable=false;
endif; ?>
<?php endif; ?>
<?php if($is_enable ) : ?>
<div class="bb-bootstrap-alerts">

<!-- Navigation Link -->
<?php if($settings->bbn_dropdown_link=='yes'): ?>
<a href="<?php echo ($nav_link=$settings->bbn_navigation_link != '')? $nav_link=$settings->bbn_navigation_link : '#' ;?>" target="<?php echo $nav_target=$settings->bbn_navigation_target;?>" >
<?php endif; ?>
<!-- Alert class -->
<div class="alert <?php echo $settings->bbn_dropdown_field; ?> fade in" >
<!-- Close Button -->
<?php if( $settings->bbn_closable == 'yes' ): ?>
<span class="close" data-dismiss="alert" aria-label="close"><i class="fa fa-times" aria-hidden="true"></i></span>
<?php endif; ?>
<!-- Navigation Link -->
<?php if($settings->bbn_dropdown_link=='yes') : ?>
<a href="<?php echo ($nav_link=$settings->bbn_navigation_link != '')? esc_url($nav_link=$settings->bbn_navigation_link) : '#' ;?>" target="<?php echo esc_attr($nav_target=$settings->bbn_navigation_target);?>" >
<?php endif; ?>
<!-- Alert class -->
<div class="alert <?php echo esc_attr($settings->bbn_dropdown_field); ?> fade in" >
<!-- Close Button -->
<?php if($settings->bbn_closable == 'yes' ) : ?>
<span class="close" data-dismiss="alert" aria-label="close"><i class="fa fa-times" aria-hidden="true"></i></span>
<?php endif; ?>

<!-- Alert contents -->
<span class="bbn_information ">
<div class="alert-padding">
<!-- Alert contents -->
<span class="bbn_information ">
<div class="alert-padding">

<!-- Before text icon -->
<?php if( $settings->bbn_icon_align == 'before' ): ?>
<i class="<?php echo $settings->bbn_icon_field; ?>"></i>
<?php endif; ?>
<!-- Before text icon -->
<?php if($settings->bbn_icon_align == 'before' ) : ?>
<i class="<?php echo esc_attr($settings->bbn_icon_field); ?>"></i>
<?php endif; ?>

<!-- Alert Contents -->
<?php echo $settings->bbn_textarea_field; ?>
<!-- Alert Contents -->
<?php echo $settings->bbn_textarea_field; ?>

<!-- After text icon -->
<?php if( $settings->bbn_icon_align == 'after' ): ?>
<i class="<?php echo $settings->bbn_icon_field; ?>"></i>
<?php endif; ?>
<!-- After text icon -->
<?php if($settings->bbn_icon_align == 'after' ) : ?>
<i class="<?php echo esc_attr($settings->bbn_icon_field); ?>"></i>
<?php endif; ?>

</div>
</span>
</div>
<!-- Navigation Link Close-->
<?php if($settings->bbn_dropdown_link=='yes'): ?>
</a>
<?php endif; ?>
</div>
</span>
</div>
<!-- Navigation Link Close-->
<?php if($settings->bbn_dropdown_link=='yes') : ?>
</a>
<?php endif; ?>
</div>
<!-- Bootstrap alert end -->
<?php endif ?>
<?php endif; ?>
2 changes: 1 addition & 1 deletion bb-bootstrap-alerts.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Alerts for Beaver Builder
* Plugin URI: http://www.brainstormforce.com
* Description: This is the plugin to create predefined alert messages.
* Version: 1.2.1
* Version: 1.2.2
* Author: Brainstorm Force
* Author URI: https://www.brainstormforce.com/
* Text Domain: bb-bootstrap-alerts
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: brainstormforce
Donate link: https://www.paypal.me/BrainstormForce
Requires at least: 4.4
Tags: beaver builder, page builder plugin, alerts, notification, bootstrap, drag and drop alerts, bb bootstrap, bb alerts, bb notification
Stable tag: 1.2.1
Stable tag: 1.2.2
Tested up to: 5.5
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -76,6 +76,9 @@ Visit our website to know more about the top WordPress products and services we

== Changelog ==

= 1.2.2 =
- Improvement: Hardened the security.

= 1.2.1 =
- Fix: PHP illegal warnings and notices for font family and font weight

Expand Down