Changeset 2186878
- Timestamp:
- 11/06/2019 12:01:09 PM (6 years ago)
- Location:
- duplicate-wp-page-post/trunk
- Files:
-
- 3 edited
-
duplicate-wp-page-post-setting.php (modified) (2 diffs)
-
duplicate-wp-page-post.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
duplicate-wp-page-post/trunk/duplicate-wp-page-post-setting.php
r2042094 r2186878 2 2 <div class="wrap dpp_page_settings"> 3 3 <h1><?php _e('Plugin Settings', 'dpp_wpp_page')?></h1> 4 <?php $dpp_options = array(); 4 <?php 5 $dpp_options = array(); 5 6 $opt = get_option('dpp_wpp_page_options'); 6 7 $instruct = isset($_GET['instruct']) ? $_GET['instruct'] : ''; … … 31 32 <table class="form-table"> 32 33 <tbody> 33 <tr><th scope="row"><label for="dpp_posteditor"><?php _e('Select Editor<br><em>Default: Classic Editor</em>', 'dpp_wpp_page'); ?></label></th> 34 <td><select id="dpp_posteditor" name="dpp_posteditor"><option value="classic" <?php echo (isset($opt['dpp_posteditor']) && $opt['dpp_posteditor'] == 'classic') ? "selected = 'selected'" : ''; ?>><?php _e('Classic Editor', 'dpp_wpp_page'); ?></option><option value="gutenberg" <?php echo (isset($opt['dpp_posteditor']) && $opt['dpp_posteditor'] == 'gutenberg') ? "selected = 'selected'" : ''; ?>><?php _e('Gutenberg Editor', 'dpp_wpp_page'); ?></option></select> 35 <p><?php _e('Please select which editor you are using.<br> If you are using Gutenberg, select gutenberg editor otherwise it will not show Duplicate button on edit screen.', 'dpp_wpp_page'); ?></p> 36 </td> 34 <tr> 35 <th scope="row"><label for="dpp_posteditor"><?php _e('Select Editor<br><em>Default: Classic Editor</em>', 'dpp_wpp_page'); ?></label></th> 36 <td> 37 <select id="dpp_posteditor" name="dpp_posteditor"> 38 <option value="classic" <?php echo (isset($opt['dpp_posteditor']) && $opt['dpp_posteditor'] == 'classic') ? "selected = 'selected'" : ''; ?>><?php _e('Classic Editor', 'dpp_wpp_page'); ?></option> 39 <option value="gutenberg" <?php echo (isset($opt['dpp_posteditor']) && $opt['dpp_posteditor'] == 'gutenberg') ? "selected = 'selected'" : ''; ?>><?php _e('Gutenberg Editor', 'dpp_wpp_page'); ?></option> 40 </select> 41 <p><?php _e('Please select which editor you are using.<br> If you are using Gutenberg, select gutenberg editor otherwise it will not show Duplicate button on edit screen.', 'dpp_wpp_page'); ?></p> 42 </td> 37 43 </tr> 38 <tr><th scope="row"><label for="dpp_post_status"><?php _e('Post Status<br><em>Default: Draft</em>', 'dpp_wpp_page'); ?></label></th> 39 <td><select id="dpp_post_status" name="dpp_post_status"><option value="draft" <?php echo($opt['dpp_post_status'] == 'draft') ? "selected = 'selected'" : ''; ?>><?php _e('Draft', 'dpp_wpp_page'); ?></option><option value="publish" <?php echo($opt['dpp_post_status'] == 'publish') ? "selected = 'selected'" : ''; ?>><?php _e('Publish', 'dpp_wpp_page'); ?></option><option value="private" <?php echo($opt['dpp_post_status'] == 'private') ? "selected = 'selected'" : ''; ?>><?php _e('Private', 'dpp_wpp_page'); ?></option><option value="pending" <?php echo($opt['dpp_post_status'] == 'pending') ? "selected = 'selected'" : ''; ?>><?php _e('Pending', 'dpp_wpp_page'); ?></option></select> 40 <p><?php _e('Please select any post status you want to assign for duplicate post.', 'dpp_wpp_page'); ?></p> 41 </td> 44 <tr> 45 <th scope="row"><label for="dpp_post_status"><?php _e('Post Status<br><em>Default: Draft</em>', 'dpp_wpp_page'); ?></label></th> 46 <td> 47 <select id="dpp_post_status" name="dpp_post_status"> 48 <option value="draft" <?php echo($opt['dpp_post_status'] == 'draft') ? "selected = 'selected'" : ''; ?>><?php _e('Draft', 'dpp_wpp_page'); ?></option> 49 <option value="publish" <?php echo($opt['dpp_post_status'] == 'publish') ? "selected = 'selected'" : ''; ?>><?php _e('Publish', 'dpp_wpp_page'); ?></option> 50 <option value="private" <?php echo($opt['dpp_post_status'] == 'private') ? "selected = 'selected'" : ''; ?>><?php _e('Private', 'dpp_wpp_page'); ?></option> 51 <option value="pending" <?php echo($opt['dpp_post_status'] == 'pending') ? "selected = 'selected'" : ''; ?>><?php _e('Pending', 'dpp_wpp_page'); ?></option> 52 </select> 53 <p><?php _e('Please select any post status you want to assign for duplicate post.', 'dpp_wpp_page'); ?></p> 54 </td> 42 55 </tr> 43 <tr><th scope="row"><label for="dpp_post_redirect"><?php _e('Redirect<br><em>Default: To current list.</em><br>(After click on <strong>Duplicate</strong>)', 'dpp_wpp_page'); ?></label></th> 44 <td><select id="dpp_post_redirect" name="dpp_post_redirect"><option value="to_list" <?php echo($opt['dpp_post_redirect'] == 'to_list') ? "selected = 'selected'" : ''; ?>><?php _e('All Post List', 'dpp_wpp_page'); ?></option><option value="to_page" <?php echo($opt['dpp_post_redirect'] == 'to_page') ? "selected = 'selected'" : ''; ?>><?php _e('Direct Edit', 'dpp_wpp_page'); ?></option></select> 45 <p><?php _e('Please select any post redirection, redirect you to selected after click on duplicate.', 'dpp_wpp_page'); ?></p> 46 </td> 56 <tr> 57 <th scope="row"><label for="dpp_post_redirect"><?php _e('Redirect<br><em>Default: To current list.</em><br>(After click on <strong>Duplicate</strong>)', 'dpp_wpp_page'); ?></label></th> 58 <td> 59 <select id="dpp_post_redirect" name="dpp_post_redirect"> 60 <option value="to_list" <?php echo($opt['dpp_post_redirect'] == 'to_list') ? "selected = 'selected'" : ''; ?>><?php _e('All Post List', 'dpp_wpp_page'); ?></option> 61 <option value="to_page" <?php echo($opt['dpp_post_redirect'] == 'to_page') ? "selected = 'selected'" : ''; ?>><?php _e('Direct Edit', 'dpp_wpp_page'); ?></option> 62 </select> 63 <p><?php _e('Please select any post redirection, redirect you to selected after click on duplicate.', 'dpp_wpp_page'); ?></p> 64 </td> 47 65 </tr> 48 <tr><th scope="row"><label for="dpp_post_suffix"><?php _e('Duplicate Post Suffix<br><em>Default: Empty</em>', 'dpp_wpp_page')?></label></th> 49 <td><input type="text" class="regular-text" value="<?php echo !empty($opt['dpp_post_suffix']) ? $opt['dpp_post_suffix'] : ''?>" id="dpp_post_suffix" name="dpp_post_suffix"> 50 <p><?php _e('Add a suffix for duplicate page and post. It will show after title.', 'dpp_wpp_page')?></p> 51 </td> 52 </tr> 53 54 <tr><th scope="row"><label for="dpp_post_link_title"><?php _e('Duplicate Link Text<br><em>Default: Duplicate</em>', 'dpp_wpp_page')?></label></th> 55 <td><input type="text" class="regular-text" value="<?php echo !empty($opt['dpp_post_link_title']) ? $opt['dpp_post_link_title'] : ''?>" id="dpp_post_link_title" name="dpp_post_link_title"> 56 <p><?php _e('It will show above text on duplicate page/post link button instead of default (Duplicate)', 'dpp_wpp_page')?></p> 57 </td> 66 <tr> 67 <th scope="row"><label for="dpp_post_suffix"><?php _e('Duplicate Post Suffix<br><em>Default: Empty</em>', 'dpp_wpp_page')?></label></th> 68 69 <td> 70 <input type="text" class="regular-text" value="<?php echo !empty($opt['dpp_post_suffix']) ? $opt['dpp_post_suffix'] : ''?>" id="dpp_post_suffix" name="dpp_post_suffix"> 71 <p><?php _e('Add a suffix for duplicate page and post. It will show after title.', 'dpp_wpp_page')?></p> 72 </td> 73 </tr> 74 <tr> 75 <th scope="row"><label for="dpp_post_link_title"><?php _e('Duplicate Link Text<br><em>Default: Duplicate</em>', 'dpp_wpp_page')?></label></th> 76 <td> 77 <input type="text" class="regular-text" value="<?php echo !empty($opt['dpp_post_link_title']) ? $opt['dpp_post_link_title'] : ''?>" id="dpp_post_link_title" name="dpp_post_link_title"> 78 <p><?php _e('It will show above text on duplicate page/post link button instead of default (Duplicate)', 'dpp_wpp_page')?></p> 79 </td> 58 80 </tr> 59 60 81 </tbody> 61 82 </table> 62 83 <p class="submit"><input type="submit" value="Save Settings" class="button button-primary" id="submit" name="submit_dpp_wpp_page"></p> 63 84 </form></div></div> 85 <div> 86 <h3><a href="https://wordpress.org/support/plugin/duplicate-wp-page-post/reviews/?filter=5#new-post">Please review us</a> if you like the plugin.</h3> 87 </div> 64 88 </div> 65 89 </div> -
duplicate-wp-page-post/trunk/duplicate-wp-page-post.php
r2169785 r2186878 6 6 Author: Arjun Thakur 7 7 Author URI: https://profiles.wordpress.org/arjunthakur#content-plugins 8 Version: 2.5. 48 Version: 2.5.5 9 9 License: GPLv2 or later 10 10 Text Domain: dpp_wpp_page … … 227 227 } 228 228 } 229 new dpp_wpp_page; 229 new dpp_wpp_page; 230 231 /*plugin settings page link*/ 232 add_filter('plugin_action_links_'.plugin_basename(__FILE__), 'dpp_settings_link'); 233 function dpp_settings_link( $links ) { 234 $links[] = '<a href="' . 235 admin_url( 'options-general.php?page=dpp_page_settings' ) . 236 '">' . __('Settings') . '</a>'; 237 return $links; 238 } 239 230 240 endif; 241 242 231 243 ?> -
duplicate-wp-page-post/trunk/readme.txt
r2169785 r2186878 1 1 === Duplicate Page and Post === 2 Contributors: arjunthakur 3 Tags: duplicate post, duplicate page, duplicate custom posts, wordpress page duplicator, wordpress post duplicator, page duplicate, page and post clone, page clone, post clone, wp post clone, gutenberg editor.2 Contributors: arjunthakur, efficientninja 3 Tags: duplicate post, duplicate page, clone page, clone post, duplicate custom posts, clone custom post, wordpress page duplicator, wordpress post duplicator, page duplicate, clone page and post, wp post clone. 4 4 Requires at least: 3.5 5 Tested up to: 5.2. 35 Tested up to: 5.2.4 6 6 Requires PHP: 5.2.4 7 Stable tag: 2.5. 48 Version: 2.5. 47 Stable tag: 2.5.5 8 Version: 2.5.5 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 14 14 == Description == 15 15 16 Duplicate page and post plugin provides functionality to create s a clone of page or posts. You can duplicate pages, posts and custom post byclick and it will be saved as draft.16 Duplicate page and post plugin provides functionality to create a clone of page or posts. You can duplicate pages, posts and custom post by single click and it will be saved as draft. 17 17 Duplicate page and post doesn't have a lot of features that other plugins have, but it also is lightning fast by comparison. 18 18 19 19 = Major features of this plugin include = 20 20 21 * ** Create a clone of particular page.**22 * ** Create a clone of particular post.**23 * ** Create a clone of particular custom post(CPT).**24 * ** Option to select editor (Classic and Gutenberg)**25 * ** Option to add Post Suffix.**26 * ** Option to add custom text for duplicate link button.**27 * ** Option to select Duplicate Posts Status.**28 * ** Option to Redirect after click on Duplicate.**21 * Create a clone of particular page. 22 * Create a clone of particular post. 23 * Create a clone of particular custom post(CPT). 24 * Option to select editor (Classic and Gutenberg) 25 * Option to add Post Suffix. 26 * Option to add custom text for duplicate link button. 27 * Option to select Duplicate Posts Status. 28 * Option to Redirect after click on Duplicate. 29 29 30 30 == Installation ==
Note: See TracChangeset
for help on using the changeset viewer.