-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b0dcd2a
commit aa43eab
Showing
3 changed files
with
97 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,70 @@ | ||
=== SMNTCS Wapuu Widget === | ||
|
||
Contributors: nielslange | ||
Tags: Wapuu, Widget, Sidebar | ||
Version: 1.7 | ||
Stable tag: 1.7 | ||
Tested up to: 5.8 | ||
Requires at least: 3.4 | ||
Requires PHP: 5.6 | ||
License: GPLv2 or later | ||
License URI: https://opensource.org/licenses/GPL-2.0 | ||
|
||
Sidebar widget to show random Wapuu. | ||
|
||
== Description == | ||
|
||
Sidebar widget to show random Wapuu. | ||
|
||
== Installation == | ||
|
||
1. Upload `smntcs-wapuu-widget’ to the `/wp-content/plugins/` directory. | ||
2. Activate the plugin through the `Plugins` menu in WordPress. | ||
3. Go to `Appearance » Customize » Widget` and add the *Wapuu Widget* to the required widget area. | ||
|
||
== Screenshots == | ||
|
||
1. Show a random Wapuu on every page refresh. | ||
2. Add `Wapuu Widget` to the required widget area. | ||
|
||
== Contribute == | ||
|
||
Contributions are more than welcome. Simply head over to [Github](https://github.com/nielslange/smntcs-wapuu-widget/pulls) and open a pull request. | ||
|
||
== Changelog == | ||
|
||
= 1.7 (2022.01.09) = | ||
* Test up to 5.8 | ||
|
||
= 1.6 (2020.03.19) = | ||
* Test up to 5.4 | ||
|
||
= 1.5 (2019.06.30) = | ||
* Test up to 5.2 | ||
|
||
= 1.4 (2019.03.01) = | ||
* Add new Wapuus | ||
|
||
= 1.3 (2019.02.19) = | ||
* Test up to 5.1 | ||
|
||
= 1.2 (2019.02.19) = | ||
* Add README.md | ||
* Test up to 5.0 | ||
|
||
= 1.1 (2019.02.19) = | ||
* Fix issue with relative image link | ||
|
||
= 1.0 (2019.02.19) = | ||
* Initial release | ||
=== SMNTCS Wapuu Widget === | ||
|
||
Contributors: nielslange | ||
Tags: Wapuu, Widget, Sidebar | ||
Stable tag: 1.8 | ||
Tested up to: 6.1 | ||
Requires PHP: 5.6 | ||
Requires at least: 3.4 | ||
License: GPL v2 or later | ||
License URI: https://www.gnu.org/licenses/gpl-2.0.html | ||
|
||
Sidebar widget to show random Wapuu. | ||
|
||
== Description == | ||
|
||
Sidebar widget to show random Wapuu. | ||
|
||
== Installation == | ||
|
||
1. Upload `smntcs-wapuu-widget` to the `/wp-content/plugins/` directory. | ||
2. Activate the plugin through the `Plugins` menu in WordPress. | ||
3. Go to `Appearance » Customize » Widget` and add the *Wapuu Widget* to the required widget area. | ||
|
||
== Screenshots == | ||
|
||
1. Show a random Wapuu on every page refresh. | ||
2. Add `Wapuu Widget` to the required widget area. | ||
|
||
== Contribute == | ||
|
||
Contributions are more than welcome. Simply head over to [Github](https://github.com/nielslange/smntcs-wapuu-widget/pulls) and open a pull request. | ||
|
||
== Changelog == | ||
|
||
= 1.8 (2022.12.03) = | ||
|
||
- Test up to WP 6.1 | ||
|
||
= 1.7 (2022.01.09) = | ||
|
||
- Test up to WP 5.8 | ||
|
||
= 1.6 (2020.03.19) = | ||
|
||
- Test up to WP 5.4 | ||
|
||
= 1.5 (2019.06.30) = | ||
|
||
- Test up to WP 5.2 | ||
|
||
= 1.4 (2019.03.01) = | ||
|
||
- Add new Wapuus | ||
|
||
= 1.3 (2019.02.19) = | ||
|
||
- Test up to WP 5.1 | ||
|
||
= 1.2 (2019.02.19) = | ||
|
||
- Add README.md | ||
- Test up to WP 5.0 | ||
|
||
= 1.1 (2019.02.19) = | ||
|
||
- Fix issue with relative image link | ||
|
||
= 1.0 (2019.02.19) = | ||
|
||
- Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,20 @@ | ||
<?php | ||
/** | ||
* Plugin Name: SMNTCS Wapuu Widget | ||
* Plugin URI: https://github.com/nielslange/smntcs-wapuu-widget | ||
* Description: Sidebar widget to show random Wapuu | ||
* Author: Niels Lange <[email protected]> | ||
* Author URI: https://nielslange.de | ||
* Text Domain: smntcs-wapuu-widget | ||
* Version: 1.7 | ||
* Stable tag: 1.7 | ||
* Tested up to: 5.8 | ||
* Requires at least: 3.4 | ||
* Requires PHP: 5.6 | ||
* License: GPLv2 or later | ||
* License URI: https://opensource.org/licenses/GPL-2.0 | ||
* Plugin Name: SMNTCS Wapuu Widget | ||
* Plugin URI: https://github.com/nielslange/smntcs-wapuu-widget | ||
* Description: Sidebar widget to show random Wapuu. | ||
* Author: Niels Lange | ||
* Author URI: https://nielslange.de | ||
* Text Domain: smntcs-wapuu-widget | ||
* Version: 1.8 | ||
* Requires PHP: 5.6 | ||
* Requires at least: 3.4 | ||
* License: GPL v2 or later | ||
* License URI: https://www.gnu.org/licenses/gpl-2.0.html | ||
* | ||
* @category Plugin | ||
* @package WordPress | ||
* @subpackage SMNTCS Wapuu Widget | ||
* @author Niels Lange <[email protected]> | ||
* @license https://opensource.org/licenses/GPL-2.0 GNU Public License version 2 | ||
* @package SMNTCS_Wapuu_Widget | ||
*/ | ||
|
||
// Avoid direct plugin access. | ||
defined( 'ABSPATH' ) || exit; | ||
|
||
/** | ||
|
@@ -46,12 +39,12 @@ function smntcs_wapuu_widget_enqueue_scripts() { | |
* @param string $links The original settings link on the plugin page. | ||
* @return string $links The updated settings link on the plugin page. | ||
*/ | ||
function smntcs_wapuu_widget_plugin_settings_link( $links ) { | ||
$admin_url = admin_url( 'widgets.php' ); | ||
$settings_url = sprintf( '<a href="%s">%s</a>', $admin_url, __( 'Settings', 'smntcs-wapuu-widget' ) ); | ||
array_unshift( $links, $settings_url ); | ||
function smntcs_wapuu_widget_plugin_settings_link( $url ) { | ||
$admin_url = admin_url( 'widgets.php' ); | ||
$settings_link = sprintf( '<a href="%s">%s</a>', $admin_url, __( 'Settings', 'smntcs-wapuu-widget' ) ); | ||
array_unshift( $url, $settings_link ); | ||
|
||
return $links; | ||
return $url; | ||
} | ||
add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), 'smntcs_wapuu_widget_plugin_settings_link' ); | ||
|
||
|