Skip to content

Commit

Permalink
Complete plugin revamp to use our grunt-wp-plugin boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Apr 21, 2015
1 parent 56a97ab commit a3b03a9
Show file tree
Hide file tree
Showing 41 changed files with 916 additions and 570 deletions.
21 changes: 21 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org

# WordPress Coding Standards
# http://make.wordpress.org/core/handbook/coding-standards/

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab

[{.jshintrc,*.json,*.yml}]
indent_style = space
indent_size = 2

[{*.txt,wp-config-sample.php}]
end_of_line = crlf
16 changes: 14 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,20 @@
.DS_Store

# npm
node_modules
/node_modules

# Release task
/release

# Build files
/js/*.js
/js/*.map
/css/*.css
/css/*.map

# Sass
.sass-cache

# Vendor (e.g. Composer)
vendor/*
!vendor/.gitkeep
!vendor/.gitkeep
23 changes: 23 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
language: php

php:
- 5.2
- 5.3
- 5.4
- 5.5
- 5.6

env:
- WP_VERSION=latest WP_MULTISITE=0
- WP_VERSION=latest WP_MULTISITE=1
- WP_VERSION=4.1.1 WP_MULTISITE=0
- WP_VERSION=4.1.1 WP_MULTISITE=1
- WP_VERSION=4.0.1 WP_MULTISITE=0
- WP_VERSION=4.0.1 WP_MULTISITE=1
- WP_VERSION=3.9.3 WP_MULTISITE=0
- WP_VERSION=3.9.3 WP_MULTISITE=1

before_script:
- bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION

script: phpunit
10 changes: 5 additions & 5 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module.exports = function (grunt) {

// measures the time each task takes
require('time-grunt')(grunt);
// measures the time each task takes
require('time-grunt')(grunt);

// load grunt config
require('load-grunt-config')(grunt);
// load grunt config
require('load-grunt-config')(grunt);

};
};
2 changes: 1 addition & 1 deletion LICENSE.txt
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -336,4 +336,4 @@ This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.
Public License instead of this License.
63 changes: 25 additions & 38 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
# WP Team List #
**Contributors:** wearerequired, neverything, swissspidy
**Donate link:** http://required.ch/
**Tags:** widgets, admin, dashboard, sidebar widgets, dashboard widgets, disable widgets
**Requires at least:** 3.5.1
**Tested up to:** 4.2
**Stable tag:** 1.1.2
**License:** GPLv2 or later
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html

Disable Sidebar and Dashboard Widgets with an easy to use interface.
# WP Widget Disable #
Contributors: wearerequired
Donate link: http://required.ch
Tags: widgets, admin, dashboard, sidebar widgets, dashboard widgets, disable widgets
Requires at least: 3.5.1
Tested up to: 4.2
Stable tag: 1.1.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Disable sidebar and dashboard widgets with an easy to use interface.

## Description ##

This simple plugin allows you to disable any Sidebar and Dashboard Widget for the current WordPress site you are on. It provides a simple user interface available to users with `edit_theme_options` capabilities (usually Administrator role) available under Appearance -> Disable Widgets.
After saving the settings, it removes the Sidebar and Dashboard Widgets selected.

**Developer? Get to know the hooks**

First of all, this plugin is strucuted on the shoulders of the fantastic [WordPress Plugin Boilerplate](https://github.com/tommcfarlin/WordPress-Plugin-Boilerplate/) by [Tom McFarlin](http://profiles.wordpress.org/tommcfarlin/), you might could use this too for your next plugin.

Let's have a look at the filters we provide:
Lets have a look at the filters we provide:

* `rplus_wp_widget_disable_capability` change the min. capability to change the settings, defaults to `edit_theme_options`.
* `rplus_wp_widget_disable_default_sidebar_filter` gives you back the list (array) of all sidebar widgets before we store them, so you could basically remove sidebar widgets from being disabled.
Expand All @@ -29,37 +28,25 @@ Let's have a look at the filters we provide:

If you would like to contribute to this plugin, report an isse or anything like that, please note that we develop this plugin on [GitHub](https://github.com/wearerequired/WP-Widget-Disable).

Developed by [required+](http://required.ch/ "Team of experienced web professionals from Switzerland & Germany")
Developed by [required+](http://required.ch/ Team of experienced web professionals from Switzerland & Germany)

## Installation ##

Here is how you install WP Widget Disable.

**Using The WordPress Dashboard**

1. Navigate to the 'Add New' in the plugins dashboard
2. Search for 'WP Widget Disable'
3. Click 'Install Now'
4. Activate the plugin on the Plugin dashboard
### Manual Installation ###

**Uploading in WordPress Dashboard**
1. Upload the entire `/wp-widget-disable` directory to the `/wp-content/plugins/` directory.
2. Activate WP Widget Disable through the Plugins menu in WordPress.
3. Go to Appearance -> Disable Widgets to manage sidebar and dashboard widgets.

1. Navigate to the 'Add New' in the plugins dashboard
2. Navigate to the 'Upload' area
3. Select `rplus-wp-widget-disable.zip` from your computer
4. Click 'Install Now'
5. Activate the plugin in the Plugin dashboard
## Frequently Asked Questions ##

**Using FTP**
### Question ###

1. Download `rplus-wp-widget-disable.zip`
2. Extract the `rplus-wp-widget-disable` directory to your computer
3. Upload the `rplus-wp-widget-disable` directory to the `/wp-content/plugins/` directory
4. Activate the plugin in the Plugin dashboard
Answer

## Screenshots ##

No Screenshots yet.
1. Description of first screenshot

## Changelog ##

Expand All @@ -69,13 +56,13 @@ No Screenshots yet.
### 1.1.1 ###
* New: Repdigit version number.
* Fixed: Added correct changelog.
* Fixed: Properly translate "Select all" option.
* Fixed: Properly translate Select all option.

### 1.1.0 ###
* New: Get Dashboard Widgets without roundtrip to the dashboard first.
* New: "Select all" option to disable all widgets in one go.
* New: Select all option to disable all widgets in one go.
* New: Added German (Switzerland) translation.
* Enhancement: Code cleanup! We're doing more with less code now.
* Enhancement: Code cleanup! Were doing more with less code now.
* Fixed: Lots of bugs and typos.

### 1.0.1 ###
Expand All @@ -102,4 +89,4 @@ More features with less code! Get Dashboard Widgets without roundtrip to the das
I18n improvements

### 1.0.0 ###
Initial Release
Initial Release
105 changes: 0 additions & 105 deletions README.txt

This file was deleted.

1 change: 0 additions & 1 deletion admin/views/index.php

This file was deleted.

8 changes: 8 additions & 0 deletions assets/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Assets directory

This directory is for WordPress.org plugins.

Put in two files:

* `banner-1544x500.png` or `banner-1544x500.png`
* `banner-772x250.png` or `banner-772x250.jpg`
Loading

0 comments on commit a3b03a9

Please sign in to comment.