Skip to content

Commit

Permalink
Updates to release v1.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-v committed Oct 16, 2021
1 parent 8be8874 commit 6a45d7d
Show file tree
Hide file tree
Showing 14 changed files with 65 additions and 36 deletions.
6 changes: 6 additions & 0 deletions CHANGE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Change Log: `yii2-widget-alert`
===============================

## Version 1.1.5

**Date:** 16-Oct-2021

- Enhancements for Bootstrap 5.x support.

## Version 1.1.4

**Date:** 02-Jun-2020
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2014 - 2020, Kartik Visweswaran
Copyright (c) 2014 - 2021, Kartik Visweswaran
Krajee.com
All rights reserved.

Expand Down
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,27 @@
<h1 align="center">
<a href="http://demos.krajee.com" title="Krajee Demos" target="_blank">
<a href="http://plugins.krajee.com" title="Krajee Plugins" target="_blank">
<img src="http://kartik-v.github.io/bootstrap-fileinput-samples/samples/krajee-logo-b.png" alt="Krajee Logo"/>
</a>
<br>
yii2-widget-alert
<hr>
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=DTP3NZQ6G2AYU"
title="Donate via Paypal" target="_blank">
<img src="http://kartik-v.github.io/bootstrap-fileinput-samples/samples/donate.png" alt="Donate"/>
</a>
title="Donate via Paypal" target="_blank"><img src="https://kartik-v.github.io/bootstrap-fileinput-samples/samples/donate.png" height="60" alt="Donate"/></a>
&nbsp; &nbsp; &nbsp;
<a href="https://www.buymeacoffee.com/kartikv" title="Buy me a coffee" ><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" height="60" alt="kartikv" /></a>
</h1>

<div align="center">

[![Stable Version](https://poser.pugx.org/kartik-v/yii2-widget-alert/v/stable)](https://packagist.org/packages/kartik-v/yii2-widget-alert)
[![Unstable Version](https://poser.pugx.org/kartik-v/yii2-widget-alert/v/unstable)](https://packagist.org/packages/kartik-v/yii2-widget-alert)
[![License](https://poser.pugx.org/kartik-v/yii2-widget-alert/license)](https://packagist.org/packages/kartik-v/yii2-widget-alert)
[![Total Downloads](https://poser.pugx.org/kartik-v/yii2-widget-alert/downloads)](https://packagist.org/packages/kartik-v/yii2-widget-alert)
[![Monthly Downloads](https://poser.pugx.org/kartik-v/yii2-widget-alert/d/monthly)](https://packagist.org/packages/kartik-v/yii2-widget-alert)
[![Daily Downloads](https://poser.pugx.org/kartik-v/yii2-widget-alert/d/daily)](https://packagist.org/packages/kartik-v/yii2-widget-alert)

</div>

This extension contains a couple of useful widgets. The `Alert` widget extends the `\yii\bootstrap\Alert` widget with more easy styling and auto fade out options. In addition, it includes a `AlertBlock` widget that groups multiple `\kartik\widget\Alert` or `kartik\widget\Growl` widgets in one single block and renders them stacked vertically on the current page.
You can choose the `TYPE_ALERT` style or the `TYPE_GROWL` style for your notifications. You can also set the widget to automatically read and display session flash
messages (which is the default setting). Alternatively, you can setup and configure your own block of custom alerts.
Expand Down
13 changes: 7 additions & 6 deletions src/Alert.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

/**
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2020
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2021
* @package yii2-widgets
* @subpackage yii2-widget-alert
* @version 1.1.4
* @version 1.1.5
*/

namespace kartik\alert;
Expand Down Expand Up @@ -67,9 +67,10 @@ public function run()
if (isset($this->delay)) {
$opts['delay'] = $this->delay;
}
if ($this->isBs4()) {
return Bs4Alert::widget($opts);
}
return Bs3Alert::widget($opts);
/**
* @var Widget $class
*/
$class = '\\kartik\\alert\\Bs' . $this->getBsVer() . 'Alert';
return $class::widget($opts);
}
}
4 changes: 2 additions & 2 deletions src/AlertAsset.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

/**
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2020
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2021
* @package yii2-widgets
* @subpackage yii2-widget-alert
* @version 1.1.4
* @version 1.1.5
*/

namespace kartik\alert;
Expand Down
4 changes: 2 additions & 2 deletions src/AlertBlock.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

/**
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2020
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2021
* @package yii2-widgets
* @subpackage yii2-widget-alert
* @version 1.1.4
* @version 1.1.5
*/

namespace kartik\alert;
Expand Down
4 changes: 2 additions & 2 deletions src/AlertInterface.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

/**
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2020
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2021
* @package yii2-widgets
* @subpackage yii2-widget-alert
* @version 1.1.4
* @version 1.1.5
*/

namespace kartik\alert;
Expand Down
4 changes: 2 additions & 2 deletions src/AlertMethodsTrait.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

/**
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2020
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2021
* @package yii2-widgets
* @subpackage yii2-widget-alert
* @version 1.1.4
* @version 1.1.5
*/

namespace kartik\alert;
Expand Down
4 changes: 2 additions & 2 deletions src/AlertTrait.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

/**
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2020
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2021
* @package yii2-widgets
* @subpackage yii2-widget-alert
* @version 1.1.4
* @version 1.1.5
*/

namespace kartik\alert;
Expand Down
5 changes: 2 additions & 3 deletions src/Bs3Alert.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
<?php

/**
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2020
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2021
* @package yii2-widgets
* @subpackage yii2-widget-alert
* @version 1.1.4
* @version 1.1.5
*/

namespace kartik\alert;

use Yii;
use yii\bootstrap\Alert;

/**
Expand Down
5 changes: 2 additions & 3 deletions src/Bs4Alert.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
<?php

/**
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2020
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2021
* @package yii2-widgets
* @subpackage yii2-widget-alert
* @version 1.1.4
* @version 1.1.5
*/

namespace kartik\alert;

use Yii;
use yii\bootstrap4\Alert;

/**
Expand Down
24 changes: 24 additions & 0 deletions src/Bs5Alert.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

/**
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2021
* @package yii2-widgets
* @subpackage yii2-widget-alert
* @version 1.1.5
*/

namespace kartik\alert;

use yii\bootstrap5\Alert;

/**
* Alert widget extends the [[Alert]] widget with an easier configuration and additional styling options including
* auto fade out.
*
* @author Kartik Visweswaran <[email protected]>
* @since 1.0
*/
class Bs5Alert extends Alert implements AlertInterface
{
use AlertMethodsTrait;
}
4 changes: 2 additions & 2 deletions src/assets/css/alert.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2020
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2021
* @package yii2-widgets
* @version 1.1.4
* @version 1.1.5
*
* Styling for \kartik\widgets\Alert widget for Bootstrap 3.x
*/
Expand Down
10 changes: 3 additions & 7 deletions src/assets/css/alert.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6a45d7d

Please sign in to comment.