Version Description
- Removed anonymous function call to support PHP <5.3 installs
- Added link to GitHub, please contribute!
Download this release
Release Info
Developer | jchristopher |
Plugin | Duplicate Menu |
Version | 0.1.1 |
Comparing to | |
See all releases |
Code changes from version 0.1 to 0.1.1
- duplicate-menu.php +10 -12
- readme.md +34 -0
- readme.txt +20 -6
- screenshot-1.png +0 -0
duplicate-menu.php
CHANGED
@@ -2,14 +2,14 @@
|
|
2 |
|
3 |
/*
|
4 |
Plugin Name: Duplicate Menu
|
5 |
-
Plugin URI:
|
6 |
Description: Easily duplicate your WordPress Menus
|
7 |
Author: Jonathan Christopher
|
8 |
-
Version: 0.1
|
9 |
Author URI: http://mondaybynoon.com
|
10 |
*/
|
11 |
|
12 |
-
/* Copyright 2011 - 2012 Jonathan Christopher (email : jonathan@
|
13 |
|
14 |
This program is free software; you can redistribute it and/or modify
|
15 |
it under the terms of the GNU General Public License as published by
|
@@ -31,16 +31,19 @@ Author URI: http://mondaybynoon.com
|
|
31 |
if( !defined( 'IS_ADMIN' ) )
|
32 |
define( 'IS_ADMIN', is_admin() );
|
33 |
|
34 |
-
define( 'DUPLICATE_MENU_VERSION', '0.1' );
|
35 |
define( 'DUPLICATE_MENU_DIR', plugin_dir_path( __FILE__ ) );
|
36 |
define( 'DUPLICATE_MENU_URL', plugin_dir_url( __FILE__ ) );
|
37 |
|
|
|
|
|
|
|
|
|
|
|
38 |
// WordPress actions
|
39 |
if( IS_ADMIN )
|
40 |
{
|
41 |
-
add_action( 'admin_menu',
|
42 |
-
add_theme_page( 'Duplicate Menu', 'Duplicate Menu', 'manage_options', 'duplicate-menu', array( 'DuplicateMenu', 'options_screen' ) );
|
43 |
-
} );
|
44 |
|
45 |
}
|
46 |
|
@@ -104,11 +107,6 @@ class DuplicateMenu
|
|
104 |
$i++;
|
105 |
}
|
106 |
|
107 |
-
foreach( $source_items as $menu_item )
|
108 |
-
{
|
109 |
-
|
110 |
-
}
|
111 |
-
|
112 |
return $new_id;
|
113 |
}
|
114 |
|
2 |
|
3 |
/*
|
4 |
Plugin Name: Duplicate Menu
|
5 |
+
Plugin URI: https://github.com/jchristopher/duplicate-menu
|
6 |
Description: Easily duplicate your WordPress Menus
|
7 |
Author: Jonathan Christopher
|
8 |
+
Version: 0.1.1
|
9 |
Author URI: http://mondaybynoon.com
|
10 |
*/
|
11 |
|
12 |
+
/* Copyright 2011 - 2012 Jonathan Christopher (email : jonathan@mondaybynoon.com)
|
13 |
|
14 |
This program is free software; you can redistribute it and/or modify
|
15 |
it under the terms of the GNU General Public License as published by
|
31 |
if( !defined( 'IS_ADMIN' ) )
|
32 |
define( 'IS_ADMIN', is_admin() );
|
33 |
|
34 |
+
define( 'DUPLICATE_MENU_VERSION', '0.1.1' );
|
35 |
define( 'DUPLICATE_MENU_DIR', plugin_dir_path( __FILE__ ) );
|
36 |
define( 'DUPLICATE_MENU_URL', plugin_dir_url( __FILE__ ) );
|
37 |
|
38 |
+
function duplicate_menu_options_page()
|
39 |
+
{
|
40 |
+
add_theme_page( 'Duplicate Menu', 'Duplicate Menu', 'manage_options', 'duplicate-menu', array( 'DuplicateMenu', 'options_screen' ) );
|
41 |
+
}
|
42 |
+
|
43 |
// WordPress actions
|
44 |
if( IS_ADMIN )
|
45 |
{
|
46 |
+
add_action( 'admin_menu', 'duplicate_menu_options_page' );
|
|
|
|
|
47 |
|
48 |
}
|
49 |
|
107 |
$i++;
|
108 |
}
|
109 |
|
|
|
|
|
|
|
|
|
|
|
110 |
return $new_id;
|
111 |
}
|
112 |
|
readme.md
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
|
3 |
+
# Duplicate Menu
|
4 |
+
|
5 |
+
Easily duplicate your WordPress menus with one click
|
6 |
+
|
7 |
+
## Description
|
8 |
+
|
9 |
+
Some WordPress installs use very elaborate navigation systems powered by core Menus. They're a fantastic feature that can often make or break a theme. Menus aren't very portable out of the box, however. If you're looking to make a change to a Menu you're pretty much working live without a quick way to revert back to an old version. That's where Duplicate Menu comes in.
|
10 |
+
|
11 |
+
Duplicate Menu will allow you to create a second (or third, or fourth, etc.) copy of an existing Menu to do with what you will. It generates the clone on a programmatic level and recreates all necessary relationships to ensure the structure is retained as well.
|
12 |
+
|
13 |
+
Find out more information in my [explanatory article on Duplicate Menu](http://mondaybynoon.com/20120723/wordpress-plugin-duplicate-menu/)
|
14 |
+
|
15 |
+
## Installation
|
16 |
+
|
17 |
+
1. Download the plugin and extract the files
|
18 |
+
1. Upload `duplicate-posts` to your `~/wp-content/plugins/` directory
|
19 |
+
1. Activate the plugin through the 'Plugins' menu in WordPress
|
20 |
+
|
21 |
+
## Usage
|
22 |
+
|
23 |
+
After activation, navigate to Appearance > Duplicate Menu to create a copy of an existing Menu
|
24 |
+
|
25 |
+
![Easily create a carbon copy of an existing Menu](http://mondaybynoon.com/wp-content/uploads/duplicate-menu-screenshot-1.png)
|
26 |
+
|
27 |
+
### Changelog
|
28 |
+
|
29 |
+
0.1.1
|
30 |
+
: Removed anonymous function call to support PHP <5.3 installs
|
31 |
+
: Added link to GitHub, please contribute!
|
32 |
+
|
33 |
+
0.1
|
34 |
+
: Initial release
|
readme.txt
CHANGED
@@ -1,16 +1,22 @@
|
|
1 |
=== Duplicate Menu ===
|
2 |
Contributors: jchristopher
|
3 |
Donate link: http://mondaybynoon.com/donate/
|
4 |
-
Tags: menu, duplicate
|
5 |
-
Requires at least: 3.4.
|
6 |
-
Tested up to: 3.4.
|
7 |
-
Stable tag: 0.1
|
|
|
|
|
8 |
|
9 |
-
Easily duplicate your WordPress menus with one click
|
10 |
|
11 |
== Description ==
|
12 |
|
13 |
-
|
|
|
|
|
|
|
|
|
14 |
|
15 |
== Installation ==
|
16 |
|
@@ -18,7 +24,15 @@ Easily duplicate your WordPress menus with one click
|
|
18 |
1. Upload `duplicate-posts` to your `~/wp-content/plugins/` directory
|
19 |
1. Activate the plugin through the 'Plugins' menu in WordPress
|
20 |
|
|
|
|
|
|
|
|
|
21 |
== Changelog ==
|
22 |
|
|
|
|
|
|
|
|
|
23 |
= 0.1 =
|
24 |
* Initial release
|
1 |
=== Duplicate Menu ===
|
2 |
Contributors: jchristopher
|
3 |
Donate link: http://mondaybynoon.com/donate/
|
4 |
+
Tags: menu, duplicate, copy, clone
|
5 |
+
Requires at least: 3.4.2
|
6 |
+
Tested up to: 3.4.2
|
7 |
+
Stable tag: 0.1.1
|
8 |
+
License: GPLv2 or later
|
9 |
+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
+
Easily duplicate your WordPress menus with one click.
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
+
Some WordPress installs use very elaborate navigation systems powered by core Menus. They're a fantastic feature that can often make or break a theme. Menus aren't very portable out of the box, however. If you're looking to make a change to a Menu you're pretty much working live without a quick way to revert back to an old version. That's where Duplicate Menu comes in.
|
16 |
+
|
17 |
+
Duplicate Menu will allow you to create a second (or third, or fourth, etc.) copy of an existing Menu to do with what you will. It generates the clone on a programmatic level and recreates all necessary relationships to ensure the structure is retained as well.
|
18 |
+
|
19 |
+
Find out more information in my [explanatory article on Duplicate Menu](http://mondaybynoon.com/20120723/wordpress-plugin-duplicate-menu/)
|
20 |
|
21 |
== Installation ==
|
22 |
|
24 |
1. Upload `duplicate-posts` to your `~/wp-content/plugins/` directory
|
25 |
1. Activate the plugin through the 'Plugins' menu in WordPress
|
26 |
|
27 |
+
== Screenshots ==
|
28 |
+
|
29 |
+
1. Easily create a carbon copy of an existing Menu
|
30 |
+
|
31 |
== Changelog ==
|
32 |
|
33 |
+
= 0.1.1 =
|
34 |
+
* Removed anonymous function call to support PHP <5.3 installs
|
35 |
+
* Added link to GitHub, please contribute!
|
36 |
+
|
37 |
= 0.1 =
|
38 |
* Initial release
|
screenshot-1.png
ADDED
Binary file
|