Skip to content

Commit 90b6419

Browse files
committed
Merge branch 'nb73dev'
2 parents db59ba6 + 7848ae7 commit 90b6419

11 files changed

Lines changed: 413 additions & 11 deletions

File tree

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ This is NetBeans plugin for WordPress.
1616
- code completion for filter and action
1717
- create new theme action
1818
- hyperlink navigate
19+
- create new plugin action
1920

2021
### Impotant Files
2122
It contains wp-config.php
@@ -65,13 +66,26 @@ WP_DEBUG value(wp-config.php) is displayed on bottome-right of IDE.
6566
If you click there, you can change WP_DEBUG value.
6667

6768
### Create New Theme Action
68-
Right-click Project > WordPress > Create Theme (_s)
69+
Right-click Project > WordPress > Create Theme
6970

71+
#### Underscores
7072
Create theme from [Underscores | A Starter Theme for WordPress](http://underscores.me/). Underscores is awesome!
7173
This plugin uses [Automattic/_s · GitHub](https://github.com/automattic/_s).
7274

7375
**Please notice that license of created theme is GPLv2**
7476

77+
#### Barebones
78+
Create theme form [welcomebrand/Barebones · GitHub](https://github.com/welcomebrand/Barebones).
79+
80+
### Create New Plugin Action
81+
Right-click Project > WordPress > Create Plugin
82+
83+
This is very simple feature.
84+
- input plugin name(plugin_name)
85+
- create new plugin directory(plugins/plugin_name)
86+
- add main plugin file (plugins/plugin_name/plugin_name.php)
87+
- add readme file (plugins/plugin_name/readme.txt)
88+
7589
### Hyperlink Navigate
7690
This feature is available the followings:
7791
- add_filter, remove_filter

manifest.mf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ Manifest-Version: 1.0
22
OpenIDE-Module: org.netbeans.modules.php.wordpress
33
OpenIDE-Module-Layer: org/netbeans/modules/php/wordpress/resources/layer.xml
44
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/php/wordpress/Bundle.properties
5-
OpenIDE-Module-Specification-Version: 0.4.3
5+
OpenIDE-Module-Specification-Version: 0.4.4
66

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
OpenIDE-Module-Display-Category=PHP
22
OpenIDE-Module-Long-Description=\
33
Support for WordPress.This plugin provides the following features.\n\
4-
<ul>\n<li>New Wordpress Project wizard</li>\n<li>Create theme(Underscores) action</li>\n<li>Hyperlink navigation and code completion for filter and action function</li>\n<li>Shortcut nodes for theme and plugin directory</li>\n<li>Zip compress for your custom theme and plugin directory</li>\n</ul>
4+
<ul>\n<li>New Wordpress Project wizard</li>\n<li>Create theme(Underscores, Barebones) action</li>\n<li>Create plugin action</li>\n<li>Hyperlink navigation and code completion for filter and action function</li>\n<li>Shortcut nodes for theme and plugin directory</li>\n<li>Zip compress for your custom theme and plugin directory</li>\n</ul>
55
OpenIDE-Module-Name=PHP WordPress Blog/CMS
66
OpenIDE-Module-Short-Description=Support for WordPress

src/org/netbeans/modules/php/wordpress/WordPressActionsExtender.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
import javax.swing.Action;
4747
import org.netbeans.modules.php.spi.framework.PhpModuleActionsExtender;
4848
import org.netbeans.modules.php.wordpress.ui.actions.CodeCompletionRefreshAction;
49+
import org.netbeans.modules.php.wordpress.ui.actions.CreatePluginAction;
4950
import org.netbeans.modules.php.wordpress.ui.actions.CreateThemeAction;
5051
import org.openide.util.NbBundle;
5152

@@ -65,6 +66,7 @@ public String getMenuName() {
6566
public List<? extends Action> getActions() {
6667
List<Action> actions = new ArrayList<Action>();
6768
actions.add(CreateThemeAction.getInstance());
69+
actions.add(CreatePluginAction.getInstance());
6870
actions.add(new CodeCompletionRefreshAction());
6971
return actions;
7072
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
/*
3+
Plugin Name: ${name}
4+
Plugin URI:
5+
Description:
6+
Version: 1.0.0
7+
Author:
8+
Author URI:
9+
License: GPLv2
10+
*/
11+

src/org/netbeans/modules/php/wordpress/resources/layer.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,8 @@
1010
</folder>
1111
</folder>
1212
</folder>
13+
<folder name="org-netbeans-modules-php-wordpress">
14+
<file name="WpPlugin.php" url="WpPlugin.php" />
15+
<file name="readme.txt" url="readme.txt" />
16+
</folder>
1317
</filesystem>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
=== Plugin Name ===
2+
Contributors:
3+
Donate link:
4+
Tags:
5+
Requires at least:
6+
Tested up to:
7+
Stable tag:
8+
License: GPLv2 or later
9+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10+
11+
12+
== Description ==
13+
14+
15+
== Installation ==
16+
17+
18+
== Changelog ==
19+
20+
= 1.0 =

0 commit comments

Comments
 (0)