Skip to content

Commit

Permalink
Merge pull request #44 from brainstormforce/sant-plug
Browse files Browse the repository at this point in the history
EPS-612: Improved codebase
  • Loading branch information
sushmak02 authored Jul 12, 2024
2 parents b9eee56 + bf6774a commit 0652deb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
14 changes: 7 additions & 7 deletions bb-bootstrap-alerts-module/includes/frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@

<!-- 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;?>" >
<a href="<?php echo esc_url($nav_link=$settings->bbn_navigation_link != '')? $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 $settings->bbn_dropdown_field; ?> fade in" >
<div class="alert <?php echo esc_attr( $settings->bbn_dropdown_field ); ?> fade in" >
<!-- Close Button -->
<?php if( $settings->bbn_closable == 'yes' ): ?>
<?php if( ( esc_attr( $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; ?>

Expand All @@ -25,16 +25,16 @@
<div class="alert-padding">

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

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

</div>
Expand Down
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.4
* Version: 1.2.5
* Author: Pratik Chaskar
* Author URI: https://pratikchaskar.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: pratikchaskar
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.4
Stable tag: 1.2.5
Tested up to: 6.6
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.5 =
- Improvement: Improved codebase for improved security.

= 1.2.4 =
- Improvement: Added compatibility to WordPress 6.1

Expand Down

0 comments on commit 0652deb

Please sign in to comment.