first commit
This commit is contained in:
23
wp-content/plugins/duplicate-page/css/dp_gutenberg.css
Normal file
23
wp-content/plugins/duplicate-page/css/dp_gutenberg.css
Normal file
@@ -0,0 +1,23 @@
|
||||
.dt-duplicate-post-status-info .components-button.is-tertiary.is-link {
|
||||
color: #ffffff;
|
||||
background-color: #007cba;
|
||||
border: 1px solid #007cba;
|
||||
text-decoration: none;
|
||||
border-radius: 3px;
|
||||
padding: 5px 10px 8px;
|
||||
font-weight: bold;
|
||||
transition: all 0.3s ease;
|
||||
-webkit-transition: all 0.3s ease;
|
||||
-moz-transition: all 0.3s ease;
|
||||
-ms-transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.dt-duplicate-post-status-info .components-button.is-tertiary.is-link:hover{
|
||||
border-color: #0071a1;
|
||||
background-color: #0071a1;
|
||||
transition: all 0.3s ease;
|
||||
-webkit-transition: all 0.3s ease;
|
||||
-moz-transition: all 0.3s ease;
|
||||
-ms-transition: all 0.3s ease;
|
||||
|
||||
}
|
||||
90
wp-content/plugins/duplicate-page/css/duplicate_page.css
Normal file
90
wp-content/plugins/duplicate-page/css/duplicate_page.css
Normal file
@@ -0,0 +1,90 @@
|
||||
.dpmrs {
|
||||
width: 100%;
|
||||
background: #f5f5f5;
|
||||
border: 1px solid #cdcdcd;
|
||||
border-left: 4px solid #0073aa;
|
||||
display: none;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.dpmrs .l_dpmrs {
|
||||
width: 200px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.dpmrs .l_dpmrs img {
|
||||
float: left;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.dpmrs .r_dpmrs {
|
||||
float: left;
|
||||
padding: 15px 10px;
|
||||
}
|
||||
|
||||
.close_dp_help {
|
||||
text-decoration: none;
|
||||
border-radius: 4px;
|
||||
padding: 5px 15px;
|
||||
color: #fff;
|
||||
font-size: 16px;
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
.close_dp_help:hover {
|
||||
color: #fff !important;
|
||||
}
|
||||
|
||||
.close_dp_help.fm_close_btn {
|
||||
float: right;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
background: #e00e0e;
|
||||
border-radius: 100%;
|
||||
padding: 0px 6px;
|
||||
display: block;
|
||||
color: #fff;
|
||||
font-size: 10px;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
.close_dp_help.fm_close_btn_1 {
|
||||
background: #fbc21c;
|
||||
border-bottom: 3px solid #b18400;
|
||||
margin-right: 0px;
|
||||
margin-left: 0px;
|
||||
}
|
||||
|
||||
.close_dp_help.fm_close_btn_2 {
|
||||
background: #239200;
|
||||
border-bottom: 3px solid #155600;
|
||||
margin-right: 0px;
|
||||
}
|
||||
|
||||
.close_dp_help.fm_close_btn_3 {
|
||||
background: #ff1105;
|
||||
border-bottom: 3px solid #b30900;
|
||||
}
|
||||
|
||||
.clear {
|
||||
clear: both;
|
||||
}
|
||||
.duplicate_page_settings .saving-txt {
|
||||
background: #fff;
|
||||
padding: 10px 15px;
|
||||
box-shadow: 0 1px 1px rgb(0 0 0 / 4%);
|
||||
margin-top: 20px;
|
||||
border-radius: 3px;
|
||||
border:1px solid #c3c4c7;
|
||||
border-left: solid 4px #2271b1;
|
||||
}
|
||||
.duplicate_page_settings .settings-error{
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.duplicate_page_settings #poststuff{
|
||||
padding-top: 0px;
|
||||
}
|
||||
.duplicate_page_settings .settings-error.notice{
|
||||
margin-top: 20px;
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
397
wp-content/plugins/duplicate-page/duplicatepage.php
Normal file
397
wp-content/plugins/duplicate-page/duplicatepage.php
Normal file
@@ -0,0 +1,397 @@
|
||||
<?php
|
||||
/*
|
||||
Plugin Name: Duplicate Page
|
||||
Plugin URI: https://wordpress.org/plugins/duplicate-page/
|
||||
Description: Duplicate Posts, Pages and Custom Posts using single click.
|
||||
Author: mndpsingh287
|
||||
Version: 4.5.3
|
||||
Author URI: https://profiles.wordpress.org/mndpsingh287/
|
||||
License: GPLv2
|
||||
Text Domain: duplicate-page
|
||||
*/
|
||||
if (!defined('DUPLICATE_PAGE_PLUGIN_DIRNAME')) {
|
||||
define('DUPLICATE_PAGE_PLUGIN_DIRNAME', plugin_basename(dirname(__FILE__)));
|
||||
}
|
||||
if (!defined('DUPLICATE_PAGE_PLUGIN_VERSION')) {
|
||||
define('DUPLICATE_PAGE_PLUGIN_VERSION', '4.5.3');
|
||||
}
|
||||
if (!class_exists('duplicate_page')):
|
||||
class duplicate_page
|
||||
{
|
||||
/*
|
||||
* AutoLoad Hooks
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$opt = get_option('duplicate_page_options');
|
||||
register_activation_hook(__FILE__, array(&$this, 'duplicate_page_install'));
|
||||
add_action('admin_menu', array(&$this, 'duplicate_page_options_page'));
|
||||
add_filter('plugin_action_links', array(&$this, 'duplicate_page_plugin_action_links'), 10, 2);
|
||||
add_action('admin_action_dt_duplicate_post_as_draft', array(&$this, 'dt_duplicate_post_as_draft'));
|
||||
|
||||
add_filter('post_row_actions', array(&$this, 'dt_duplicate_post_link'), 10, 2);
|
||||
add_filter('page_row_actions', array(&$this, 'dt_duplicate_post_link'), 10, 2);
|
||||
if (isset($opt['duplicate_post_editor']) && $opt['duplicate_post_editor'] == 'gutenberg') {
|
||||
add_action('admin_head', array(&$this, 'duplicate_page_custom_button_guten'));
|
||||
} elseif(isset($opt['duplicate_post_editor']) && $opt['duplicate_post_editor'] == 'all'){
|
||||
add_action('admin_head', array(&$this, 'duplicate_page_custom_button_guten'));
|
||||
add_action('post_submitbox_misc_actions', array(&$this, 'duplicate_page_custom_button_classic'));
|
||||
} else {
|
||||
add_action('post_submitbox_misc_actions', array(&$this, 'duplicate_page_custom_button_classic'));
|
||||
}
|
||||
add_action('wp_before_admin_bar_render', array(&$this, 'duplicate_page_admin_bar_link'));
|
||||
add_action('init', array(&$this, 'duplicate_page_load_text_domain'));
|
||||
add_action('wp_ajax_mk_dp_close_dp_help', array($this, 'mk_dp_close_dp_help'));
|
||||
}
|
||||
|
||||
/*
|
||||
* Localization - 19-dec-2016
|
||||
*/
|
||||
public function duplicate_page_load_text_domain()
|
||||
{
|
||||
load_plugin_textdomain('duplicate-page', false, DUPLICATE_PAGE_PLUGIN_DIRNAME.'/languages');
|
||||
}
|
||||
|
||||
/*
|
||||
* Activation Hook
|
||||
*/
|
||||
public function duplicate_page_install()
|
||||
{
|
||||
$defaultsettings = array(
|
||||
'duplicate_post_status' => 'draft',
|
||||
'duplicate_post_redirect' => 'to_list',
|
||||
'duplicate_post_suffix' => '',
|
||||
'duplicate_post_editor' => 'classic',
|
||||
);
|
||||
$opt = get_option('duplicate_page_options');
|
||||
if (!isset($opt['duplicate_post_status'])) {
|
||||
update_option('duplicate_page_options', $defaultsettings);
|
||||
}
|
||||
}
|
||||
/*
|
||||
Action Links
|
||||
*/
|
||||
public function duplicate_page_plugin_action_links($links, $file)
|
||||
{
|
||||
if ($file == plugin_basename(__FILE__)) {
|
||||
$duplicate_page_links = '<a href="'.esc_url(get_admin_url()).'options-general.php?page=duplicate_page_settings">'.__('Settings', 'duplicate-page').'</a>';
|
||||
$duplicate_page_donate = '<a href="https://www.webdesi9.com/donate/?plugin=duplicate-page" title="'.__('Donate Now','duplicate-page').'" target="_blank" style="font-weight:bold">'.__('Donate', 'duplicate-page').'</a>';
|
||||
array_unshift($links, $duplicate_page_donate);
|
||||
array_unshift($links, $duplicate_page_links);
|
||||
}
|
||||
|
||||
return $links;
|
||||
}
|
||||
|
||||
/*
|
||||
* Admin Menu
|
||||
*/
|
||||
public function duplicate_page_options_page()
|
||||
{
|
||||
add_options_page(__('Duplicate Page', 'duplicate-page'), __('Duplicate Page', 'duplicate-page'), 'manage_options', 'duplicate_page_settings', array(&$this, 'duplicate_page_settings'));
|
||||
}
|
||||
|
||||
/*
|
||||
* Duplicate Page Admin Settings
|
||||
*/
|
||||
public function duplicate_page_settings()
|
||||
{
|
||||
if (current_user_can('manage_options')) {
|
||||
include 'inc/admin-settings.php';
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Main function
|
||||
*/
|
||||
public function dt_duplicate_post_as_draft()
|
||||
{
|
||||
/*
|
||||
* get Nonce value
|
||||
*/
|
||||
$nonce = sanitize_text_field($_REQUEST['nonce']);
|
||||
/*
|
||||
* get the original post id
|
||||
*/
|
||||
|
||||
$post_id = (isset($_GET['post']) ? intval($_GET['post']) : intval($_POST['post']));
|
||||
$post = get_post($post_id);
|
||||
$current_user_id = get_current_user_id();
|
||||
if(wp_verify_nonce( $nonce, 'dt-duplicate-page-'.$post_id)) {
|
||||
if (current_user_can('manage_options') || current_user_can('edit_others_posts')) {
|
||||
$this->duplicate_edit_post($post_id);
|
||||
}
|
||||
else if (current_user_can('contributor') && $current_user_id == $post->post_author){
|
||||
$this->duplicate_edit_post($post_id, 'pending');
|
||||
}
|
||||
else if (current_user_can('edit_posts') && $current_user_id == $post->post_author ){
|
||||
$this->duplicate_edit_post($post_id);
|
||||
}
|
||||
else {
|
||||
wp_die(__('Unauthorized Access.','duplicate-page'));
|
||||
}
|
||||
}
|
||||
|
||||
else {
|
||||
wp_die(__('Security check issue, Please try again.','duplicate-page'));
|
||||
}
|
||||
|
||||
}
|
||||
/**
|
||||
* Duplicate edit post
|
||||
*/
|
||||
public function duplicate_edit_post($post_id,$post_status_update='')
|
||||
{
|
||||
global $wpdb;
|
||||
$opt = get_option('duplicate_page_options');
|
||||
$suffix = isset($opt['duplicate_post_suffix']) && !empty($opt['duplicate_post_suffix']) ? ' -- '.esc_attr($opt['duplicate_post_suffix']) : '';
|
||||
if($post_status_update == ''){
|
||||
$post_status = !empty($opt['duplicate_post_status']) ? esc_attr($opt['duplicate_post_status']) : 'draft';
|
||||
}else{
|
||||
$post_status = $post_status_update;
|
||||
}
|
||||
$redirectit = !empty($opt['duplicate_post_redirect']) ? esc_attr($opt['duplicate_post_redirect']) : 'to_list';
|
||||
if (!(isset($_GET['post']) || isset($_POST['post']) || (isset($_REQUEST['action']) && 'dt_duplicate_post_as_draft' == sanitize_text_field($_REQUEST['action'])))) {
|
||||
wp_die(__('No post to duplicate has been supplied!','duplicate-page'));
|
||||
}
|
||||
$returnpage = '';
|
||||
/*
|
||||
* and all the original post data then
|
||||
*/
|
||||
$post = get_post($post_id);
|
||||
/*
|
||||
* if you don't want current user to be the new post author,
|
||||
* then change next couple of lines to this: $new_post_author = $post->post_author;
|
||||
*/
|
||||
$current_user = wp_get_current_user();
|
||||
$new_post_author = $current_user->ID;
|
||||
/*
|
||||
* if post data exists, create the post duplicate
|
||||
*/
|
||||
if (isset($post) && $post != null) {
|
||||
/*
|
||||
* new post data array
|
||||
*/
|
||||
$args = array(
|
||||
'comment_status' => $post->comment_status,
|
||||
'ping_status' => $post->ping_status,
|
||||
'post_author' => $new_post_author,
|
||||
'post_content' => (isset($opt['duplicate_post_editor']) && $opt['duplicate_post_editor'] == 'gutenberg') ? wp_slash($post->post_content) : $post->post_content,
|
||||
'post_excerpt' => $post->post_excerpt,
|
||||
'post_parent' => $post->post_parent,
|
||||
'post_password' => $post->post_password,
|
||||
'post_status' => $post_status,
|
||||
'post_title' => $post->post_title.$suffix,
|
||||
'post_type' => $post->post_type,
|
||||
'to_ping' => $post->to_ping,
|
||||
'menu_order' => $post->menu_order,
|
||||
);
|
||||
/*
|
||||
* insert the post by wp_insert_post() function
|
||||
*/
|
||||
$new_post_id = wp_insert_post($args);
|
||||
if(is_wp_error($new_post_id)){
|
||||
wp_die(__($new_post_id->get_error_message(),'duplicate-page'));
|
||||
}
|
||||
|
||||
/*
|
||||
* get all current post terms ad set them to the new post draft
|
||||
*/
|
||||
$taxonomies = array_map('sanitize_text_field',get_object_taxonomies($post->post_type));
|
||||
if (!empty($taxonomies) && is_array($taxonomies)):
|
||||
foreach ($taxonomies as $taxonomy) {
|
||||
$post_terms = wp_get_object_terms($post_id, $taxonomy, array('fields' => 'slugs'));
|
||||
wp_set_object_terms($new_post_id, $post_terms, $taxonomy, false);
|
||||
}
|
||||
endif;
|
||||
/*
|
||||
* duplicate all post meta
|
||||
*/
|
||||
$post_meta_keys = get_post_custom_keys( $post_id );
|
||||
if(!empty($post_meta_keys)){
|
||||
foreach ( $post_meta_keys as $meta_key ) {
|
||||
$meta_values = get_post_custom_values( $meta_key, $post_id );
|
||||
foreach ( $meta_values as $meta_value ) {
|
||||
$meta_value = maybe_unserialize( $meta_value );
|
||||
update_post_meta( $new_post_id, $meta_key, wp_slash( $meta_value ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Elementor compatibility fixes
|
||||
*/
|
||||
if(is_plugin_active( 'elementor/elementor.php' )){
|
||||
$css = Elementor\Core\Files\CSS\Post::create( $new_post_id );
|
||||
$css->update();
|
||||
}
|
||||
/*
|
||||
* finally, redirecting to your choice
|
||||
*/
|
||||
if ($post->post_type != 'post'){
|
||||
$returnpage = '?post_type='.$post->post_type;
|
||||
}
|
||||
if (!empty($redirectit) && $redirectit == 'to_list'){
|
||||
wp_redirect(esc_url_raw(admin_url('edit.php'.$returnpage)));
|
||||
} elseif (!empty($redirectit) && $redirectit == 'to_page'){
|
||||
wp_redirect(esc_url_raw(admin_url('post.php?action=edit&post='.$new_post_id)));
|
||||
} else {
|
||||
wp_redirect(esc_url_raw(admin_url('edit.php'.$returnpage)));
|
||||
}
|
||||
exit;
|
||||
}
|
||||
else {
|
||||
wp_die(__('Error! Post creation failed, could not find original post: ','duplicate-page').$post_id);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Add the duplicate link to action list for post_row_actions
|
||||
*/
|
||||
public function dt_duplicate_post_link($actions, $post)
|
||||
{
|
||||
// Skip acf-field-group post type
|
||||
if($post->post_type == 'acf-field-group'){
|
||||
return $actions;
|
||||
}
|
||||
|
||||
$opt = get_option('duplicate_page_options');
|
||||
$post_status = !empty($opt['duplicate_post_status']) ? esc_attr($opt['duplicate_post_status']) : 'draft';
|
||||
if (current_user_can('edit_posts')) {
|
||||
$actions['duplicate'] = isset($post) ? '<a href="admin.php?action=dt_duplicate_post_as_draft&post='.intval($post->ID).'&nonce='.wp_create_nonce( 'dt-duplicate-page-'.intval($post->ID) ).'" title="'.__('Duplicate this as ', 'duplicate-page').$post_status.'" rel="permalink">'.__('Duplicate This', 'duplicate-page').'</a>' : '';
|
||||
}
|
||||
|
||||
return $actions;
|
||||
}
|
||||
|
||||
/*
|
||||
* Add the duplicate link to edit screen - classic editor
|
||||
*/
|
||||
public function duplicate_page_custom_button_classic()
|
||||
{
|
||||
global $post;
|
||||
$opt = get_option('duplicate_page_options');
|
||||
$post_status = !empty($opt['duplicate_post_status']) ? esc_attr($opt['duplicate_post_status']) : 'draft';
|
||||
$html = '<div id="major-publishing-actions">';
|
||||
$html .= '<div id="export-action">';
|
||||
$html .= isset($post) ? '<a href="admin.php?action=dt_duplicate_post_as_draft&post='.intval($post->ID).'&nonce='.wp_create_nonce( 'dt-duplicate-page-'.$post->ID ).'" title="'.__('Duplicate this as ','duplicate-page').$post_status.'" rel="permalink">'.__('Duplicate This', 'duplicate-page').'</a>' :'';
|
||||
$html .= '</div>';
|
||||
$html .= '</div>';
|
||||
$content = apply_filters('wpautop', $html);
|
||||
$content = str_replace(']]>', ']]>', $content);
|
||||
echo $content;
|
||||
}
|
||||
|
||||
/*
|
||||
* Add the duplicate link to edit screen - gutenberg
|
||||
*/
|
||||
public function duplicate_page_custom_button_guten()
|
||||
{
|
||||
global $post;
|
||||
if ($post) {
|
||||
$opt = get_option('duplicate_page_options');
|
||||
$post_status = !empty($opt['duplicate_post_status']) ? esc_attr($opt['duplicate_post_status']) : 'draft';
|
||||
if (isset($opt['duplicate_post_editor']) && ($opt['duplicate_post_editor'] == 'gutenberg' || $opt['duplicate_post_editor'] == 'all')) {
|
||||
wp_enqueue_style('dp-main-style', plugin_dir_url(__FILE__) . 'css/dp_gutenberg.css');
|
||||
wp_register_script( "dt_duplicate_post_script", plugins_url( '/js/editor-script.js', __FILE__ ), array( 'wp-edit-post', 'wp-plugins', 'wp-i18n', 'wp-element' ), DUPLICATE_PAGE_PLUGIN_VERSION);
|
||||
wp_localize_script( 'dt_duplicate_post_script', 'dt_params', array(
|
||||
'dp_post_id' => intval($post->ID),
|
||||
'dtnonce' => wp_create_nonce( 'dt-duplicate-page-'.intval($post->ID)),
|
||||
'dp_post_text' => __("Duplicate This",'duplicate-page'),
|
||||
'dp_post_title'=> __('Duplicate this as ','duplicate-page').$post_status,
|
||||
'dp_duplicate_link' => "admin.php?action=dt_duplicate_post_as_draft"
|
||||
)
|
||||
);
|
||||
wp_enqueue_script( 'dt_duplicate_post_script' );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Admin Bar Duplicate This Link
|
||||
*/
|
||||
public function duplicate_page_admin_bar_link()
|
||||
{
|
||||
global $wp_admin_bar, $post;
|
||||
$opt = get_option('duplicate_page_options');
|
||||
$post_status = !empty($opt['duplicate_post_status']) ? esc_attr($opt['duplicate_post_status']) : 'draft';
|
||||
$current_object = get_queried_object();
|
||||
if (empty($current_object)) {
|
||||
return;
|
||||
}
|
||||
if (!empty($current_object->post_type)
|
||||
&& ($post_type_object = get_post_type_object($current_object->post_type))
|
||||
&& ($post_type_object->show_ui || $current_object->post_type == 'attachment')) {
|
||||
$wp_admin_bar->add_menu(array(
|
||||
'parent' => 'edit',
|
||||
'id' => 'duplicate_this',
|
||||
'title' => __('Duplicate This as ', 'duplicate-page').$post_status,
|
||||
'href' => isset($post) ? esc_url_raw(admin_url().'admin.php?action=dt_duplicate_post_as_draft&post='.intval($post->ID).'&nonce='.wp_create_nonce( 'dt-duplicate-page-'.intval($post->ID))) :'',
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Redirect function
|
||||
*/
|
||||
public static function dp_redirect($url)
|
||||
{
|
||||
$web_url = esc_url_raw($url);
|
||||
wp_register_script( 'dp-setting-redirect', '');
|
||||
wp_enqueue_script( 'dp-setting-redirect' );
|
||||
wp_add_inline_script(
|
||||
'dp-setting-redirect',
|
||||
' window.location.href="'.$web_url.'" ;'
|
||||
);
|
||||
}
|
||||
/*
|
||||
Load Help Desk
|
||||
*/
|
||||
public function load_help_desk() {
|
||||
$mkcontent = '';
|
||||
$mkcontent .= '<div class="dpmrs" style="display:none;">';
|
||||
$mkcontent .= '<div class="l_dpmrs">';
|
||||
$mkcontent .= '';
|
||||
$mkcontent .= '</div>';
|
||||
$mkcontent .= '<div class="r_dpmrs">';
|
||||
$mkcontent .= '<a class="close_dp_help fm_close_btn" href="javascript:void(0)" data-ct="rate_later" title="'.__('close','duplicate-page').'">X</a><strong>'.__('Duplicate Page','duplicate-page').'</strong><p>'.__('We love and care about you. Our team is putting maximum efforts to provide you the best functionalities. It would be highly appreciable if you could spend a couple of seconds to give a Nice Review to the plugin to appreciate our efforts. So we can work hard to provide new features regularly :)','duplicate-page').'</p><a class="close_dp_help fm_close_btn_1" href="javascript:void(0)" data-ct="rate_later" title="'.__('Remind me later','duplicate-page').'">'.__('Later','duplicate-page').'</a> <a class="close_dp_help fm_close_btn_2" href="https://wordpress.org/support/plugin/duplicate-page/reviews/?filter=5" data-ct="rate_now" title="'.__('Rate us now','duplicate-page').'" target="_blank">'.__('Rate Us','duplicate-page').'</a> <a class="close_dp_help fm_close_btn_3" href="javascript:void(0)" data-ct="rate_never" title="'.__('Not interested','duplicate-page').'">'.__('Never','duplicate-page').'</a>';
|
||||
$mkcontent .= '</div></div>';
|
||||
if (false === ($mk_dp_close_dp_help_c = get_option('mk_fm_close_fm_help_c'))) {
|
||||
echo apply_filters('the_content', $mkcontent);
|
||||
}
|
||||
}
|
||||
/*
|
||||
Close Help
|
||||
*/
|
||||
public function mk_dp_close_dp_help() {
|
||||
$nonce = sanitize_text_field($_REQUEST['nonce']);
|
||||
if (wp_verify_nonce($nonce, 'nc_help_desk')) {
|
||||
if (false === ($mk_fm_close_fm_help_c = get_option('mk_fm_close_fm_help_c'))) {
|
||||
$set = update_option('mk_fm_close_fm_help_c', 'done');
|
||||
if ($set) {
|
||||
echo 'ok';
|
||||
} else {
|
||||
echo 'oh';
|
||||
}
|
||||
} else {
|
||||
echo 'ac';
|
||||
}
|
||||
}else {
|
||||
echo 'ac';
|
||||
}
|
||||
die;
|
||||
}
|
||||
/*
|
||||
Custom Assets
|
||||
*/
|
||||
public function custom_assets() {
|
||||
wp_enqueue_style( 'duplicate-page', plugins_url( '/css/duplicate_page.css', __FILE__ ) );
|
||||
wp_enqueue_script( 'duplicate-page', plugins_url( '/js/duplicate_page.js', __FILE__ ) );
|
||||
wp_localize_script( 'duplicate-page', 'dt_params', array(
|
||||
'ajax_url' => admin_url( 'admin-ajax.php'),
|
||||
'nonce' => wp_create_nonce( 'nc_help_desk' ))
|
||||
);
|
||||
}
|
||||
}
|
||||
new duplicate_page();
|
||||
endif;
|
||||
90
wp-content/plugins/duplicate-page/inc/admin-settings.php
Normal file
90
wp-content/plugins/duplicate-page/inc/admin-settings.php
Normal file
@@ -0,0 +1,90 @@
|
||||
<?php if (!defined('ABSPATH') && !current_user_can('manage_options')) {
|
||||
exit;
|
||||
}
|
||||
$this->custom_assets();
|
||||
?>
|
||||
<div class="wrap duplicate_page_settings">
|
||||
<?php
|
||||
$this->load_help_desk(); ?>
|
||||
<h1><?php _e('Duplicate Page Settings ', 'duplicate-page'); ?><a href="https://duplicatepro.com/pro/" target="_blank" class="button button-primary"><?php _e('Buy PRO', 'duplicate-page'); ?></a></h1>
|
||||
<?php
|
||||
$msg = isset($_GET['msg']) ? intval($_GET['msg']) : '';
|
||||
if (current_user_can('manage_options') && isset($_POST['submit_duplicate_page']) && wp_verify_nonce(sanitize_text_field($_POST['duplicatepage_nonce_field']), 'duplicatepage_action')):
|
||||
_e('<div class="saving-txt"><strong>Saving Please wait...</strong></div>','duplicate-page');
|
||||
$duplicatepageoptions = array(
|
||||
"duplicate_post_editor" => sanitize_text_field(htmlentities($_POST["duplicate_post_editor"])),
|
||||
"duplicate_post_status" => sanitize_text_field(htmlentities($_POST["duplicate_post_status"])),
|
||||
"duplicate_post_redirect" => sanitize_text_field(htmlentities($_POST["duplicate_post_redirect"])),
|
||||
"duplicate_post_suffix" => sanitize_text_field(htmlentities($_POST["duplicate_post_suffix"]))
|
||||
);
|
||||
|
||||
$saveSettings = update_option('duplicate_page_options', $duplicatepageoptions);
|
||||
if ($saveSettings) {
|
||||
duplicate_page::dp_redirect('options-general.php?page=duplicate_page_settings&msg=1');
|
||||
} else {
|
||||
duplicate_page::dp_redirect('options-general.php?page=duplicate_page_settings&msg=2');
|
||||
}
|
||||
endif;
|
||||
|
||||
$opt = get_option('duplicate_page_options');
|
||||
if (!empty($msg) && $msg == 1):
|
||||
_e('<div class="updated settings-error notice is-dismissible" id="setting-error-settings_updated">
|
||||
<p><strong>Settings saved.</strong></p><button class="notice-dismiss button-custom-dismiss" type="button"><span class="screen-reader-text">Dismiss this notice</span></button></div>','duplicate-page');
|
||||
elseif (!empty($msg) && $msg == 2):
|
||||
_e('<div class="error settings-error notice is-dismissible" id="setting-error-settings_updated">
|
||||
<p><strong>Settings not saved.</strong></p><button class="notice-dismiss button-custom-dismiss" type="button"><span class="screen-reader-text">Dismiss this notice</span></button></div>','duplicate-page');
|
||||
endif;
|
||||
?>
|
||||
<div id="poststuff">
|
||||
<div id="post-body" class="metabox-holder columns-2">
|
||||
<div id="post-body-content" style="position: relative;">
|
||||
<form action="" method="post" name="duplicate_page_form">
|
||||
<?php wp_nonce_field('duplicatepage_action', 'duplicatepage_nonce_field'); ?>
|
||||
<table class="form-table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row"><label for="duplicate_post_editor"><?php _e('Choose Editor', 'duplicate-page'); ?></label></th>
|
||||
<td>
|
||||
<select id="duplicate_post_editor" name="duplicate_post_editor">
|
||||
<option value="all" <?php echo (isset($opt['duplicate_post_editor']) && $opt['duplicate_post_editor'] == 'all') ? "selected = 'selected'" : ''; ?>><?php _e('All Editors', 'duplicate-page'); ?></option>
|
||||
<option value="classic" <?php echo (isset($opt['duplicate_post_editor']) && $opt['duplicate_post_editor'] == 'classic') ? "selected = 'selected'" : ''; ?>><?php _e('Classic Editor', 'duplicate-page'); ?></option>
|
||||
<option value="gutenberg" <?php echo (isset($opt['duplicate_post_editor']) && $opt['duplicate_post_editor'] == 'gutenberg') ? "selected = 'selected'" : ''; ?>><?php _e('Gutenberg Editor', 'duplicate-page'); ?></option>
|
||||
</select>
|
||||
<p><?php _e('Please select which editor you are using.<strong> Default: </strong> Classic Editor', 'duplicate-page'); ?></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="duplicate_post_status"><?php _e('Duplicate Post Status', 'duplicate-page'); ?></label></th>
|
||||
<td>
|
||||
<select id="duplicate_post_status" name="duplicate_post_status">
|
||||
<option value="draft" <?php echo($opt['duplicate_post_status'] == 'draft') ? "selected = 'selected'" : ''; ?>><?php _e('Draft', 'duplicate-page'); ?></option>
|
||||
<option value="publish" <?php echo($opt['duplicate_post_status'] == 'publish') ? "selected = 'selected'" : ''; ?>><?php _e('Publish', 'duplicate-page'); ?></option>
|
||||
<option value="private" <?php echo($opt['duplicate_post_status'] == 'private') ? "selected = 'selected'" : ''; ?>><?php _e('Private', 'duplicate-page'); ?></option>
|
||||
<option value="pending" <?php echo($opt['duplicate_post_status'] == 'pending') ? "selected = 'selected'" : ''; ?>><?php _e('Pending', 'duplicate-page'); ?></option>
|
||||
</select>
|
||||
<p><?php _e('Please select any post status you want to assign for duplicate post.<strong> Default: </strong> Draft','duplicate-page'); ?></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="duplicate_post_redirect"><?php _e('Redirect to after click on <strong>Duplicate This Link</strong>', 'duplicate-page'); ?></label></th>
|
||||
<td><select id="duplicate_post_redirect" name="duplicate_post_redirect">
|
||||
<option value="to_list" <?php echo($opt['duplicate_post_redirect'] == 'to_list') ? "selected = 'selected'" : ''; ?>><?php _e('To All Posts List', 'duplicate-page'); ?></option>
|
||||
<option value="to_page" <?php echo($opt['duplicate_post_redirect'] == 'to_page') ? "selected = 'selected'" : ''; ?>><?php _e('To Duplicate Edit Screen', 'duplicate-page'); ?></option>
|
||||
</select>
|
||||
<p><?php _e('Please select any post redirection, redirect you to selected after click on duplicate this link.<strong> Default: </strong>To All Posts List','duplicate-page'); ?></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="duplicate_post_suffix"><?php _e('Duplicate Post Suffix', 'duplicate-page'); ?></label></th>
|
||||
<td>
|
||||
<input type="text" class="regular-text" value="<?php echo !empty($opt['duplicate_post_suffix']) ? esc_attr($opt['duplicate_post_suffix']) : ''; ?>" id="duplicate_post_suffix" name="duplicate_post_suffix">
|
||||
<p><?php _e('Add a suffix for duplicate or clone post as Copy, Clone etc. It will show after title.', 'duplicate-page'); ?></p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody></table>
|
||||
<p class="submit"><input type="submit" value="<?php _e('Save Changes','duplicate-page'); ?>" class="button button-primary" id="submit" name="submit_duplicate_page"></p>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
28
wp-content/plugins/duplicate-page/js/duplicate_page.js
Normal file
28
wp-content/plugins/duplicate-page/js/duplicate_page.js
Normal file
@@ -0,0 +1,28 @@
|
||||
jQuery(window).on('load',function() {
|
||||
jQuery('.dpmrs').delay(10000).slideDown('slow');
|
||||
});
|
||||
jQuery(document).ready(function () {
|
||||
jQuery('.close_dp_help').on('click', function (e) {
|
||||
var what_to_do = jQuery(this).data('ct');
|
||||
var nonce = dt_params.nonce
|
||||
jQuery.ajax({
|
||||
type: "post",
|
||||
url: dt_params.ajax_url,
|
||||
data: {
|
||||
action: "mk_dp_close_dp_help",
|
||||
what_to_do: what_to_do,
|
||||
nonce:nonce
|
||||
},
|
||||
success: function (response) {
|
||||
jQuery('.dpmrs').slideUp('slow');
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
jQuery(document).ready(function() {
|
||||
var admin_page_url = "options-general.php?page=duplicate_page_settings";
|
||||
window.history.replaceState({}, document.title, admin_page_url);
|
||||
});
|
||||
jQuery(document).on('click', '.button-custom-dismiss', function(e) {
|
||||
jQuery(this).parent().hide();
|
||||
})
|
||||
28
wp-content/plugins/duplicate-page/js/editor-script.js
Normal file
28
wp-content/plugins/duplicate-page/js/editor-script.js
Normal file
@@ -0,0 +1,28 @@
|
||||
var el = wp.element.createElement;
|
||||
var __ = wp.i18n.__;
|
||||
var registerPlugin = wp.plugins.registerPlugin;
|
||||
var PluginPostStatusInfo = wp.editPost.PluginPostStatusInfo;
|
||||
var buttonControl = wp.components.Button;
|
||||
|
||||
function dpGutenButton({}) {
|
||||
return el(
|
||||
PluginPostStatusInfo,
|
||||
{
|
||||
className: 'dt-duplicate-post-status-info'
|
||||
},
|
||||
el(
|
||||
buttonControl,
|
||||
{
|
||||
isTertiary: true,
|
||||
name: 'duplicate_page_link_guten',
|
||||
isLink: true,
|
||||
title: dt_params.dp_post_title,
|
||||
href : dt_params.dp_duplicate_link+"&post="+dt_params.dp_post_id+"&nonce="+dt_params.dtnonce
|
||||
}, dt_params.dp_post_text
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
registerPlugin( 'dt-duplicate-post-status-info-plugin', {
|
||||
render: dpGutenButton
|
||||
} );
|
||||
Binary file not shown.
@@ -0,0 +1,142 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Duplicate Page v Češtině (v2)\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2017-01-12 19:23+0100\n"
|
||||
"PO-Revision-Date: 2018-02-05 16:32+0530\n"
|
||||
"Language-Team: LeBaux <lebaux@gmail.com>\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Generator: Poedit 2.0.4\n"
|
||||
"Last-Translator: Pierre LeBaux (EN>SK>CS) <lebaux@gmail.com>\n"
|
||||
"Language: cs_CZ\n"
|
||||
|
||||
#: admin-settings.php:3
|
||||
msgid "Duplicate Page Settings"
|
||||
msgstr "Nastavení duplikátoru obsahu"
|
||||
|
||||
#: admin-settings.php:8
|
||||
msgid "<strong>Saving Please wait...</strong>"
|
||||
msgstr "<strong>Ukládám nastavení...</strong>"
|
||||
|
||||
#: admin-settings.php:27
|
||||
msgid ""
|
||||
"<div class=\"updated settings-error notice is-dismissible\" id=\"setting-"
|
||||
"error-settings_updated\"> \n"
|
||||
"<p><strong>Settings saved.</strong></p><button class=\"notice-dismiss\" type="
|
||||
"\"button\"><span class=\"screen-reader-text\">Dismiss this notice.</span></"
|
||||
"button></div>"
|
||||
msgstr ""
|
||||
"<div class=\"updated settings-error notice is-dismissible\" id=\"setting-"
|
||||
"error-settings_updated\"> \n"
|
||||
"<p><strong>Nastavení uloženo.</strong></p><button class=\"notice-dismiss\" "
|
||||
"type=\"button\"><span class=\"screen-reader-text\">Rozumím.</span></button></"
|
||||
"div>"
|
||||
|
||||
#: admin-settings.php:30
|
||||
msgid ""
|
||||
"<div class=\"error settings-error notice is-dismissible\" id=\"setting-error-"
|
||||
"settings_updated\"> \n"
|
||||
"<p><strong>Settings not saved.</strong></p><button class=\"notice-dismiss\" "
|
||||
"type=\"button\"><span class=\"screen-reader-text\">Dismiss this notice.</"
|
||||
"span></button></div>"
|
||||
msgstr ""
|
||||
"<div class=\"error settings-error notice is-dismissible\" id=\"setting-error-"
|
||||
"settings_updated\"> \n"
|
||||
"<p><strong>Nastavení nebylo uloženo!</strong></p><button class=\"notice-"
|
||||
"dismiss\" type=\"button\"><span class=\"screen-reader-text\">Rozumím.</"
|
||||
"span></button></div>"
|
||||
|
||||
#: admin-settings.php:43
|
||||
msgid "Duplicate Post Status"
|
||||
msgstr "Stav duplikátu po vytvoření"
|
||||
|
||||
#: admin-settings.php:50
|
||||
msgid ""
|
||||
"Please select any post status you want to assign for duplicate post. "
|
||||
"<strong>Default:</strong> Draft."
|
||||
msgstr ""
|
||||
"Když se vytvoří duplikát, je potřeba mu nastavit stav publikovaní. "
|
||||
"<strong>Výchozí:</strong> Koncept"
|
||||
|
||||
#: admin-settings.php:54
|
||||
msgid "Redirect to after click on <strong>Duplicate This Link</strong>"
|
||||
msgstr "Kam přesměrovat potom, co se vytvoří <strong>duplikát</strong>"
|
||||
|
||||
#: admin-settings.php:56
|
||||
msgid "To All Posts List"
|
||||
msgstr "Zůstat kde jste byli"
|
||||
|
||||
#: admin-settings.php:57
|
||||
msgid "To Duplicate Edit Screen"
|
||||
msgstr "Otevřít duplikát pro editaci"
|
||||
|
||||
#: admin-settings.php:59
|
||||
msgid ""
|
||||
"Please select any post redirection, redirect you to selected after click on "
|
||||
"duplicate this link. <strong>Default:</strong> To current list."
|
||||
msgstr ""
|
||||
"Co se stane poté, co kliknete na tlačítko duplikovat. <strong>Výchozí:</"
|
||||
"strong> Zůstat kde jste byli"
|
||||
|
||||
#: admin-settings.php:63
|
||||
msgid "Duplicate Post Suffix"
|
||||
msgstr "Přípona duplikovaného obsahu"
|
||||
|
||||
#: admin-settings.php:66
|
||||
msgid ""
|
||||
"Add a suffix for duplicate or clone post as Copy, Clone etc. It will show "
|
||||
"after title."
|
||||
msgstr ""
|
||||
"Zde si můžete zvolit příponu, kterou plugin připojí k názvu duplikované "
|
||||
"položky. Může zůstat prázdné, nebo například: kopie."
|
||||
|
||||
#: admin-settings.php:76
|
||||
msgid ""
|
||||
"Contribute some donation, to make plugin more stable. You can pay amount of "
|
||||
"your choice."
|
||||
msgstr ""
|
||||
"Pokud je pro vás tento plugin užitečný, můžete vývojářovi třeba přispět na "
|
||||
"jedno orosené."
|
||||
|
||||
#. Name of the plugin
|
||||
msgid "Duplicate Page"
|
||||
msgstr "Duplikátor obsahu"
|
||||
|
||||
#. Description of the plugin
|
||||
msgid "Duplicate Posts, Pages and Custom Posts using single click."
|
||||
msgstr "Duplikujte Příspěvky, Stránky a Custom Posty jedním kliknutím."
|
||||
|
||||
#. URI of the plugin
|
||||
msgid "https://wordpress.org/plugins/duplicate-page/"
|
||||
msgstr "https://wordpress.org/plugins/duplicate-page/"
|
||||
|
||||
#. Author of the plugin
|
||||
msgid "mndpsingh287"
|
||||
msgstr "mndpsingh287"
|
||||
|
||||
#. Author URI of the plugin
|
||||
msgid "https://profiles.wordpress.org/mndpsingh287/"
|
||||
msgstr "https://profiles.wordpress.org/mndpsingh287/"
|
||||
|
||||
#. Post Links
|
||||
msgid "Duplicate This"
|
||||
msgstr "Duplikovat"
|
||||
|
||||
#. Post Link title (status as draft)
|
||||
msgid "Duplicate this as draft"
|
||||
msgstr "Duplikujte to jako koncept"
|
||||
|
||||
#. Post Link title (status as publish)
|
||||
msgid "Duplicate this as publish"
|
||||
msgstr "Duplikujte to jako publikovat"
|
||||
|
||||
#. Post Link title (status as private)
|
||||
msgid "Duplicate this as private"
|
||||
msgstr "Duplikujte to jako soukromé"
|
||||
|
||||
#. Post Link title (status as pending)
|
||||
msgid "Duplicate this as pending"
|
||||
msgstr "Duplikujte to jako čekající"
|
||||
Binary file not shown.
@@ -0,0 +1,182 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Duplicate Page\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-11-16 11:31+0100\n"
|
||||
"PO-Revision-Date: 2018-11-16 11:32+0100\n"
|
||||
"Last-Translator: Thorsten Wollenhöfer <thorsten.wollenhoefer@gmail.com>\n"
|
||||
"Language-Team: Hindi\n"
|
||||
"Language: de_DE@formal\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"X-Generator: Poedit 2.2\n"
|
||||
|
||||
#: admin-settings.php:3
|
||||
msgid "Duplicate Page Settings "
|
||||
msgstr "Duplicate Page Einstellungen "
|
||||
|
||||
#: admin-settings.php:3
|
||||
msgid "Buy PRO"
|
||||
msgstr "PRO-Version kaufen"
|
||||
|
||||
#: admin-settings.php:8
|
||||
msgid "<strong>Saving Please wait...</strong>"
|
||||
msgstr "<strong>Speichern... Bitte warten.</strong>"
|
||||
|
||||
#: admin-settings.php:27
|
||||
msgid ""
|
||||
"<div class=\"updated settings-error notice is-dismissible\" id=\"setting-"
|
||||
"error-settings_updated\"> \n"
|
||||
"<p><strong>Settings saved.</strong></p><button class=\"notice-dismiss\" type="
|
||||
"\"button\"><span class=\"screen-reader-text\">Dismiss this notice.</span></"
|
||||
"button></div>"
|
||||
msgstr ""
|
||||
"<div class=\"updated settings-error notice is-dismissible\" id=\"setting-"
|
||||
"error-settings_updated\"> \n"
|
||||
"<p><strong>Einstellungen gespeichert.</strong></p><button class=\"notice-"
|
||||
"dismiss\" type=\"button\"><span class=\"screen-reader-text\">Meldung "
|
||||
"ausblenden.</span></button></div>"
|
||||
|
||||
#: admin-settings.php:30
|
||||
msgid ""
|
||||
"<div class=\"error settings-error notice is-dismissible\" id=\"setting-error-"
|
||||
"settings_updated\"> \n"
|
||||
"<p><strong>Settings not saved.</strong></p><button class=\"notice-dismiss\" "
|
||||
"type=\"button\"><span class=\"screen-reader-text\">Dismiss this notice.</"
|
||||
"span></button></div>"
|
||||
msgstr ""
|
||||
"<div class=\"error settings-error notice is-dismissible\" id=\"setting-error-"
|
||||
"settings_updated\"> \n"
|
||||
"<p><strong>Einstellungen nicht gespeichert.</strong></p><button class="
|
||||
"\"notice-dismiss\" type=\"button\"><span class=\"screen-reader-text"
|
||||
"\">Meldung ausblenden.</span></button></div>"
|
||||
|
||||
#: admin-settings.php:42
|
||||
msgid "Duplicate Post Status"
|
||||
msgstr "Duplicate Post Status"
|
||||
|
||||
#: admin-settings.php:45
|
||||
msgid "Draft"
|
||||
msgstr "Entwurf"
|
||||
|
||||
#: admin-settings.php:46
|
||||
msgid "Publish"
|
||||
msgstr "Veröffentlichen"
|
||||
|
||||
#: admin-settings.php:47
|
||||
msgid "Private"
|
||||
msgstr "Privat"
|
||||
|
||||
#: admin-settings.php:48
|
||||
msgid "Pending"
|
||||
msgstr "Ausstehend"
|
||||
|
||||
#: admin-settings.php:50
|
||||
msgid ""
|
||||
"Please select any post status you want to assign for duplicate post. "
|
||||
"<strong>Default:</strong> Draft."
|
||||
msgstr ""
|
||||
"Bitte wählen Sie einen beliebigen Beitragsstatus, den Sie dem duplizierten "
|
||||
"Beitrag zuweisen wollen. <strong>Standard:</strong> Entwurf."
|
||||
|
||||
#: admin-settings.php:54
|
||||
msgid "Redirect to after click on <strong>Duplicate This Link</strong>"
|
||||
msgstr "Weiterleiten nach Klick auf <strong>Diesen Link duplizieren</strong>"
|
||||
|
||||
#: admin-settings.php:56
|
||||
msgid "To All Posts List"
|
||||
msgstr "Zur Liste mit allen Beiträgen"
|
||||
|
||||
#: admin-settings.php:57
|
||||
msgid "To Duplicate Edit Screen"
|
||||
msgstr "Zum Duplizieren-Bildschirm-bearbeiten"
|
||||
|
||||
#: admin-settings.php:59
|
||||
msgid ""
|
||||
"Please select any post redirection, redirect you to selected after click on "
|
||||
"duplicate this link. <strong>Default:</strong> To current list."
|
||||
msgstr ""
|
||||
"Bitte wählen Sie eine beliebige Beitragsweiterleitung aus. Sie werden "
|
||||
"weitergeleitet, sobald sie auf die Auswahl für das Duplizieren des Links "
|
||||
"klicken. <strong>Standard:</strong> Zur aktuellen Liste."
|
||||
|
||||
#: admin-settings.php:63
|
||||
msgid "Duplicate Post Suffix"
|
||||
msgstr "Beitragssuffix duplizieren"
|
||||
|
||||
#: admin-settings.php:66
|
||||
msgid ""
|
||||
"Add a suffix for duplicate or clone post as Copy, Clone etc. It will show "
|
||||
"after title."
|
||||
msgstr ""
|
||||
"Füge einen Suffix für das Duplizieren oder Klonen eines Beitrags als Kopie, "
|
||||
"Klon etc hinzu. Dieser wird nach dem Titel angezeigt."
|
||||
|
||||
#: admin-settings.php:76
|
||||
msgid ""
|
||||
"Contribute some donation, to make plugin more stable. You can pay amount of "
|
||||
"your choice."
|
||||
msgstr ""
|
||||
"Spenden Sie etwas, um das Plugin stabiler zu machen. Sie können den Betrag "
|
||||
"Ihrer Wahl bestimmen."
|
||||
|
||||
#: duplicatepage.php:55
|
||||
msgid "Settings"
|
||||
msgstr "Einstellungen"
|
||||
|
||||
#: duplicatepage.php:56
|
||||
msgid "Donate"
|
||||
msgstr "Spenden"
|
||||
|
||||
#. Plugin Name of the plugin/theme
|
||||
#: duplicatepage.php:67
|
||||
msgid "Duplicate Page"
|
||||
msgstr "Seite duplizieren"
|
||||
|
||||
#: duplicatepage.php:179 duplicatepage.php:192
|
||||
msgid "Duplicate This"
|
||||
msgstr "Seite duplizieren"
|
||||
|
||||
#: duplicatepage.php:214
|
||||
msgid "Duplicate This as "
|
||||
msgstr "Duplizieren Sie dies als "
|
||||
|
||||
#. Plugin URI of the plugin/theme
|
||||
msgid "https://wordpress.org/plugins/duplicate-page/"
|
||||
msgstr "https://wordpress.org/plugins/duplicate-page/"
|
||||
|
||||
#. Description of the plugin/theme
|
||||
msgid "Duplicate Posts, Pages and Custom Posts using single click."
|
||||
msgstr ""
|
||||
"Duplizieren Sie Beiträge, Seiten und benutzerdefinierte Beiträge mit einem "
|
||||
"einzigen Klick."
|
||||
|
||||
#. Author of the plugin/theme
|
||||
msgid "mndpsingh287"
|
||||
msgstr "mndpsingh287"
|
||||
|
||||
#. Author URI of the plugin/theme
|
||||
msgid "https://profiles.wordpress.org/mndpsingh287/"
|
||||
msgstr "https://profiles.wordpress.org/mndpsingh287/"
|
||||
|
||||
#. Post Link
|
||||
msgid "Duplicate This"
|
||||
msgstr "Seite duplizieren"
|
||||
|
||||
#. Post Link title (status as draft)
|
||||
msgid "Duplicate this as draft"
|
||||
msgstr "Duplizieren Sie dies als Entwurf"
|
||||
|
||||
#. Post Link title (status as publish)
|
||||
msgid "Duplicate this as publish"
|
||||
msgstr "Duplizieren Sie dies als veröffentlichen"
|
||||
|
||||
#. Post Link title (status as private)
|
||||
msgid "Duplicate this as private"
|
||||
msgstr "Dupliziere dies als privat"
|
||||
|
||||
#. Post Link title (status as pending)
|
||||
msgid "Duplicate this as pending"
|
||||
msgstr "Duplizieren Sie dies als ausstehend"
|
||||
Binary file not shown.
@@ -0,0 +1,144 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Duplicate Page\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-02-23 14:05+0100\n"
|
||||
"PO-Revision-Date: 2018-02-23 14:16+0100\n"
|
||||
"Language-Team: Hindi\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Generator: Poedit 1.8.11\n"
|
||||
"Last-Translator: \n"
|
||||
"Language: fr_FR\n"
|
||||
|
||||
#: admin-settings.php:3
|
||||
msgid "Duplicate Page Settings"
|
||||
msgstr "Réglages \"DUPLICATE PAGE\""
|
||||
|
||||
#: admin-settings.php:8
|
||||
msgid "<strong>Saving Please wait...</strong>"
|
||||
msgstr "<strong>Enregistrement, patientez...</strong>"
|
||||
|
||||
#: admin-settings.php:27
|
||||
msgid ""
|
||||
"<div class=\"updated settings-error notice is-dismissible\" id=\"setting-"
|
||||
"error-settings_updated\"> \n"
|
||||
"<p><strong>Settings saved.</strong></p><button class=\"notice-dismiss\" type="
|
||||
"\"button\"><span class=\"screen-reader-text\">Dismiss this notice.</span></"
|
||||
"button></div>"
|
||||
msgstr ""
|
||||
"<div class=\"updated settings-error notice is-dismissible\" id=\"setting-"
|
||||
"error-settings_updated\"> \n"
|
||||
"<p><strong>Paramètres enregistrés</strong></p><button class=\"notice-dismiss"
|
||||
"\" type=\"button\"><span class=\"screen-reader-text\">Fermer la notice</"
|
||||
"span></button></div>"
|
||||
|
||||
#: admin-settings.php:30
|
||||
msgid ""
|
||||
"<div class=\"error settings-error notice is-dismissible\" id=\"setting-error-"
|
||||
"settings_updated\"> \n"
|
||||
"<p><strong>Settings not saved.</strong></p><button class=\"notice-dismiss\" "
|
||||
"type=\"button\"><span class=\"screen-reader-text\">Dismiss this notice.</"
|
||||
"span></button></div>"
|
||||
msgstr ""
|
||||
"<div class=\"error settings-error notice is-dismissible\" id=\"setting-error-"
|
||||
"settings_updated\"> \n"
|
||||
"<p><strong>Settings not saved.</strong></p><button class=\"notice-dismiss\" "
|
||||
"type=\"button\"><span class=\"screen-reader-text\">Fermer la notice</span></"
|
||||
"button></div>"
|
||||
|
||||
#: admin-settings.php:43
|
||||
msgid "Duplicate Post Status"
|
||||
msgstr "Statut \"DUPLICATE PAGE\""
|
||||
|
||||
#: admin-settings.php:50
|
||||
msgid ""
|
||||
"Please select any post status you want to assign for duplicate post. "
|
||||
"<strong>Default:</strong> Draft."
|
||||
msgstr ""
|
||||
"Veuillez sélectionner un statut de publication que vous souhaitez attribuer "
|
||||
"pour une page dubliqué<strong> Par défaut: </ strong> Brouillon."
|
||||
|
||||
#: admin-settings.php:54
|
||||
msgid "Redirect to after click on <strong>Duplicate This Link</strong>"
|
||||
msgstr "Rediriger après avoir cliquer sur <strong>Dupliquer ce lien</strong>"
|
||||
|
||||
#: admin-settings.php:56
|
||||
msgid "To All Posts List"
|
||||
msgstr "Sur la liste de tout les articles"
|
||||
|
||||
#: admin-settings.php:57
|
||||
msgid "To Duplicate Edit Screen"
|
||||
msgstr "Sur l’écran de duplication"
|
||||
|
||||
#: admin-settings.php:59
|
||||
msgid ""
|
||||
"Please select any post redirection, redirect you to selected after click on "
|
||||
"duplicate this link. <strong>Default:</strong> To current list."
|
||||
msgstr ""
|
||||
"S'il vous plaît sélectionner chaque redirection d'article, afin de "
|
||||
"déterminer l’action après avoir cliqué sur dupliquer ce lien. <strong>Par "
|
||||
"défaut:</strong> Sur la liste de tous les articles"
|
||||
|
||||
#: admin-settings.php:63
|
||||
msgid "Duplicate Post Suffix"
|
||||
msgstr "Dupliquer le suffixe de l'article"
|
||||
|
||||
#: admin-settings.php:66
|
||||
msgid ""
|
||||
"Add a suffix for duplicate or clone post as Copy, Clone etc. It will show "
|
||||
"after title."
|
||||
msgstr ""
|
||||
"Ajoute un suffixe lorsque vous dupliquez ou clonez. Il sera mis après le "
|
||||
"titre"
|
||||
|
||||
#: admin-settings.php:76
|
||||
msgid ""
|
||||
"Contribute some donation, to make plugin more stable. You can pay amount of "
|
||||
"your choice."
|
||||
msgstr ""
|
||||
"Contribuer à un don, pour rendre le plugin plus stable. Vous pouvez donner "
|
||||
"le montant de votre choix."
|
||||
|
||||
#. Name of the plugin
|
||||
msgid "Duplicate Page"
|
||||
msgstr "Dupliquer les Pages"
|
||||
|
||||
#. Description of the plugin
|
||||
msgid "Duplicate Posts, Pages and Custom Posts using single click."
|
||||
msgstr ""
|
||||
"Dupliquer les articles, pages, et articles personnalisé juste en cliquant"
|
||||
|
||||
#. URI of the plugin
|
||||
msgid "https://wordpress.org/plugins/duplicate-page/"
|
||||
msgstr "https://wordpress.org/plugins/duplicate-page/"
|
||||
|
||||
#. Author of the plugin
|
||||
msgid "mndpsingh287"
|
||||
msgstr "mndpsingh287"
|
||||
|
||||
#. Author URI of the plugin
|
||||
msgid "https://profiles.wordpress.org/mndpsingh287/"
|
||||
msgstr "https://profiles.wordpress.org/mndpsingh287/"
|
||||
|
||||
#. Post Links
|
||||
msgid "Duplicate This"
|
||||
msgstr "Dupliquer ceci"
|
||||
|
||||
#. Post Link title (status as draft)
|
||||
msgid "Duplicate this as draft"
|
||||
msgstr "Dupliquer ceci comme brouillon"
|
||||
|
||||
#. Post Link title (status as publish)
|
||||
msgid "Duplicate this as publish"
|
||||
msgstr "Dupliquer cela comme publier"
|
||||
|
||||
#. Post Link title (status as private)
|
||||
msgid "Duplicate this as private"
|
||||
msgstr "Dupliquez cela comme privé"
|
||||
|
||||
#. Post Link title (status as pending)
|
||||
msgid "Duplicate this as pending"
|
||||
msgstr "Dupliquer cela en attente"
|
||||
Binary file not shown.
@@ -0,0 +1,124 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Duplicate Page\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2016-12-19 12:43+0000\n"
|
||||
"PO-Revision-Date: 2016-12-19 12:52+0000\n"
|
||||
"Last-Translator: admin <munishthedeveloper48@gmail.com>\n"
|
||||
"Language-Team: Hindi\n"
|
||||
"Language: hi-IN\n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Generator: Loco - https://localise.biz/"
|
||||
|
||||
#: admin-settings.php:3
|
||||
msgid "Duplicate Page Settings"
|
||||
msgstr "डुप्लिकेट पृष्ठ सेटिंग"
|
||||
|
||||
#: admin-settings.php:8
|
||||
msgid "<strong>Saving Please wait...</strong>"
|
||||
msgstr "<strong>सुरक्षित कर रहा है कृपया प्रतीक्षा करें...</strong>"
|
||||
|
||||
#: admin-settings.php:27
|
||||
msgid ""
|
||||
"<div class=\"updated settings-error notice is-dismissible\" id=\"setting-"
|
||||
"error-settings_updated\"> \n"
|
||||
"<p><strong>Settings saved.</strong></p><button class=\"notice-dismiss\" "
|
||||
"type=\"button\"><span class=\"screen-reader-text\">Dismiss this notice."
|
||||
"</span></button></div>"
|
||||
msgstr ""
|
||||
"<div class=\"updated settings-error notice is-dismissible\" id=\"setting-"
|
||||
"error-settings_updated\"> \n"
|
||||
"<p><strong>सेटिंग्स को सहेजा गया।</strong></p><button class=\"notice-"
|
||||
"dismiss\" type=\"button\"><span class=\"screen-reader-text\">इस नोटिस को "
|
||||
"खारिज करें।</span></button></div>"
|
||||
|
||||
#: admin-settings.php:30
|
||||
msgid ""
|
||||
"<div class=\"error settings-error notice is-dismissible\" id=\"setting-error-"
|
||||
"settings_updated\"> \n"
|
||||
"<p><strong>Settings not saved.</strong></p><button class=\"notice-dismiss\" "
|
||||
"type=\"button\"><span class=\"screen-reader-text\">Dismiss this notice."
|
||||
"</span></button></div>"
|
||||
msgstr ""
|
||||
"<div class=\"error settings-error notice is-dismissible\" id=\"setting-error-"
|
||||
"settings_updated\"> \n"
|
||||
"<p><strong>सेटिंग सहेजा नहीं।</strong></p><button class=\"notice-dismiss\" "
|
||||
"type=\"button\"><span class=\"screen-reader-text\">इस नोटिस को खारिज "
|
||||
"करें।</span></button></div>"
|
||||
|
||||
#: admin-settings.php:43
|
||||
msgid "Duplicate Post Status"
|
||||
msgstr "पोस्ट की स्थिति डुप्लिकेट"
|
||||
|
||||
#: admin-settings.php:50
|
||||
msgid ""
|
||||
"Please select any post status you want to assign for duplicate post. <strong>"
|
||||
"Default:</strong> Draft."
|
||||
msgstr ""
|
||||
"कृपया किसी भी पोस्ट की स्थिति आप दोहरे पद के लिए प्रदान करना चाहते हैं का "
|
||||
"चयन करें।<strong>चूक:</strong> प्रारूप।"
|
||||
|
||||
#: admin-settings.php:54
|
||||
msgid "Redirect to after click on <strong>Duplicate This Link</strong>"
|
||||
msgstr ""
|
||||
"पर क्लिक करने के बाद पुन: निर्देशित करने के लिए <strong> डुप्लिकेट इस लिंक "
|
||||
"</ strong>"
|
||||
|
||||
#: admin-settings.php:56
|
||||
msgid "To All Posts List"
|
||||
msgstr "सभी पदों की सूची के लिए"
|
||||
|
||||
#: admin-settings.php:57
|
||||
msgid "To Duplicate Edit Screen"
|
||||
msgstr "स्क्रीन संपादित करने के लिए डुप्लिकेट"
|
||||
|
||||
#: admin-settings.php:59
|
||||
msgid ""
|
||||
"Please select any post redirection, redirect you to selected after click on "
|
||||
"duplicate this link. <strong>Default:</strong> To current list."
|
||||
msgstr ""
|
||||
"कृपया किसी भी पद पुनर्निर्देशन का चयन करें, आप इस लिंक पर क्लिक करने के बाद "
|
||||
"नकल चयनित करने के लिए भेज दें। <Strong> डिफ़ॉल्ट: </ strong> वर्तमान सूची पर।"
|
||||
|
||||
#: admin-settings.php:63
|
||||
msgid "Duplicate Post Suffix"
|
||||
msgstr "दोहरे पद प्रत्यय"
|
||||
|
||||
#: admin-settings.php:66
|
||||
msgid ""
|
||||
"Add a suffix for duplicate or clone post as Copy, Clone etc. It will show "
|
||||
"after title."
|
||||
msgstr ""
|
||||
"कॉपी, क्लोन आदि के रूप में डुप्लिकेट या क्लोन के बाद यह खिताब के बाद दिखाएगा "
|
||||
"के लिए एक प्रत्यय जोड़ें।"
|
||||
|
||||
#: admin-settings.php:76
|
||||
msgid ""
|
||||
"Contribute some donation, to make plugin more stable. You can pay amount of "
|
||||
"your choice."
|
||||
msgstr ""
|
||||
"कुछ दान योगदान, प्लगइन अधिक स्थिर बनाने के लिए। आप अपनी पसंद की राशि का "
|
||||
"भुगतान कर सकते हैं।"
|
||||
|
||||
#. Name of the plugin
|
||||
msgid "Duplicate Page"
|
||||
msgstr "डुप्लिकेट पृष्ठ"
|
||||
|
||||
#. Description of the plugin
|
||||
msgid "Duplicate Posts, Pages and Custom Posts using single click."
|
||||
msgstr "डुप्लिकेट पोस्ट, पन्ने और कस्टम पदों सिंगल क्लिक का उपयोग कर"
|
||||
|
||||
#. URI of the plugin
|
||||
msgid "https://wordpress.org/plugins/duplicate-page/"
|
||||
msgstr ""
|
||||
|
||||
#. Author of the plugin
|
||||
msgid "mndpsingh287"
|
||||
msgstr ""
|
||||
|
||||
#. Author URI of the plugin
|
||||
msgid "https://profiles.wordpress.org/mndpsingh287/"
|
||||
msgstr ""
|
||||
BIN
wp-content/plugins/duplicate-page/languages/duplicate-page.mo
Normal file
BIN
wp-content/plugins/duplicate-page/languages/duplicate-page.mo
Normal file
Binary file not shown.
121
wp-content/plugins/duplicate-page/languages/duplicate-page.po
Normal file
121
wp-content/plugins/duplicate-page/languages/duplicate-page.po
Normal file
@@ -0,0 +1,121 @@
|
||||
# This file was generated by WPML
|
||||
# WPML is a WordPress plugin that can turn any WordPress site into a full featured multilingual content management system.
|
||||
# https://wpml.org
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Project-Id-Version: WPML_EXPORT\n"
|
||||
"POT-Creation-Date: \n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"Language: en\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"X-Generator: Poedit 2.0.4\n"
|
||||
|
||||
# <div class="wrap duplicate_page_settings">
|
||||
# <h1><?php _e('Duplicate Page Settings', 'duplicate-page')?></h1>
|
||||
# <?php $duplicatepageoptions = array();
|
||||
msgid "Duplicate Page Settings"
|
||||
msgstr ""
|
||||
|
||||
# if(isset($_POST['submit_duplicate_page']) && wp_verify_nonce( $_POST['duplicatepage_nonce_field'], 'duplicatepage_action' )):
|
||||
# _e("<strong>Saving Please wait...</strong>", 'duplicate-page');
|
||||
# $needToUnset = array('submit_duplicate_page');//no need to save in Database
|
||||
msgid "<strong>Saving Please wait...</strong>"
|
||||
msgstr ""
|
||||
|
||||
# if(!empty($msg) && $msg == 1):
|
||||
# _e( '<div class="updated settings-error notice is-dismissible" id="setting-error-settings_updated">
|
||||
# <p><strong>Settings saved.</strong></p><button class="notice-dismiss" type="button"><span class="screen-reader-text">Dismiss this notice.</span></button></div>', 'duplicate-page');
|
||||
msgid ""
|
||||
"<div class=\"updated settings-error notice is-dismissible\" id=\"setting-error-settings_updated\"> \r\n"
|
||||
"<p><strong>Settings saved.</strong></p><button class=\"notice-dismiss\" type=\"button\"><span class=\"screen-reader-text\">Dismiss this notice.</span></button></div>"
|
||||
msgstr ""
|
||||
|
||||
# elseif(!empty($msg) && $msg == 2):
|
||||
# _e( '<div class="error settings-error notice is-dismissible" id="setting-error-settings_updated">
|
||||
# <p><strong>Settings not saved.</strong></p><button class="notice-dismiss" type="button"><span class="screen-reader-text">Dismiss this notice.</span></button></div>', 'duplicate-page');
|
||||
msgid ""
|
||||
"<div class=\"error settings-error notice is-dismissible\" id=\"setting-error-settings_updated\"> \r\n"
|
||||
"<p><strong>Settings not saved.</strong></p><button class=\"notice-dismiss\" type=\"button\"><span class=\"screen-reader-text\">Dismiss this notice.</span></button></div>"
|
||||
msgstr ""
|
||||
|
||||
# <tr>
|
||||
# <th scope="row"><label for="duplicate_post_status"><?php _e('Duplicate Post Status', 'duplicate-page')?></label></th>
|
||||
# <td><select id="duplicate_post_status" name="duplicate_post_status">
|
||||
msgid "Duplicate Post Status"
|
||||
msgstr ""
|
||||
|
||||
# </select>
|
||||
# <p><?php _e('Please select any post status you want to assign for duplicate post. <strong>Default:</strong> Draft.', 'duplicate-page')?></p>
|
||||
# </td>
|
||||
msgid "Please select any post status you want to assign for duplicate post. <strong>Default:</strong> Draft."
|
||||
msgstr ""
|
||||
|
||||
# <tr>
|
||||
# <th scope="row"><label for="duplicate_post_redirect"><?php _e('Redirect to after click on <strong>Duplicate This Link</strong>', 'duplicate-page')?></label></th>
|
||||
# <td><select id="duplicate_post_redirect" name="duplicate_post_redirect">
|
||||
msgid "Redirect to after click on <strong>Duplicate This Link</strong>"
|
||||
msgstr ""
|
||||
|
||||
# <td><select id="duplicate_post_redirect" name="duplicate_post_redirect">
|
||||
# <option value="to_list" <?php echo($opt['duplicate_post_redirect'] == 'to_list' ) ? "selected = 'selected'" : ""; ?>><?php _e('To All Posts List', 'duplicate-page')?></option>
|
||||
# <option value="to_page" <?php echo($opt['duplicate_post_redirect'] == 'to_page' ) ? "selected = 'selected'" : ""; ?>><?php _e('To Duplicate Edit Screen', 'duplicate-page')?></option>
|
||||
msgid "To All Posts List"
|
||||
msgstr ""
|
||||
|
||||
# <option value="to_list" <?php echo($opt['duplicate_post_redirect'] == 'to_list' ) ? "selected = 'selected'" : ""; ?>><?php _e('To All Posts List', 'duplicate-page')?></option>
|
||||
# <option value="to_page" <?php echo($opt['duplicate_post_redirect'] == 'to_page' ) ? "selected = 'selected'" : ""; ?>><?php _e('To Duplicate Edit Screen', 'duplicate-page')?></option>
|
||||
# </select>
|
||||
msgid "To Duplicate Edit Screen"
|
||||
msgstr ""
|
||||
|
||||
# </select>
|
||||
# <p><?php _e('Please select any post redirection, redirect you to selected after click on duplicate this link. <strong>Default:</strong> To current list.', 'duplicate-page')?></p>
|
||||
# </td>
|
||||
msgid "Please select any post redirection, redirect you to selected after click on duplicate this link. <strong>Default:</strong> To current list."
|
||||
msgstr ""
|
||||
|
||||
# <tr>
|
||||
# <th scope="row"><label for="duplicate_post_suffix"><?php _e('Duplicate Post Suffix', 'duplicate-page')?></label></th>
|
||||
# <td>
|
||||
msgid "Duplicate Post Suffix"
|
||||
msgstr ""
|
||||
|
||||
# <input type="text" class="regular-text" value="<?php echo !empty($opt['duplicate_post_suffix']) ? $opt['duplicate_post_suffix'] : ''?>" id="duplicate_post_suffix" name="duplicate_post_suffix">
|
||||
# <p><?php _e('Add a suffix for duplicate or clone post as Copy, Clone etc. It will show after title.', 'duplicate-page')?></p>
|
||||
# </td>
|
||||
msgid "Add a suffix for duplicate or clone post as Copy, Clone etc. It will show after title."
|
||||
msgstr ""
|
||||
|
||||
# <div id="submitdiv" class="postbox" style="padding: 6px;">
|
||||
# <p><strong style="color:#F00"><?php _e('Contribute some donation, to make plugin more stable. You can pay amount of your choice.', 'duplicate-page')?></strong></p>
|
||||
# <form name="_xclick" action="https://www.paypal.com/yt/cgi-bin/webscr" method="post">
|
||||
msgid "Contribute some donation, to make plugin more stable. You can pay amount of your choice."
|
||||
msgstr ""
|
||||
|
||||
# if ( $file == plugin_basename( __FILE__ ) ) {
|
||||
# $duplicate_page_links = '<a href="'.get_admin_url().'options-general.php?page=duplicate_page_settings">'.__('Settings', 'duplicate-page').'</a>';
|
||||
# $duplicate_page_donate = '<a href="http://www.webdesi9.com/donate/?plugin=duplicate-page" title="Donate Now" target="_blank" style="font-weight:bold">'.__('Donate', 'duplicate-page').'</a>';
|
||||
msgid "Settings"
|
||||
msgstr ""
|
||||
|
||||
# $duplicate_page_links = '<a href="'.get_admin_url().'options-general.php?page=duplicate_page_settings">'.__('Settings', 'duplicate-page').'</a>';
|
||||
# $duplicate_page_donate = '<a href="http://www.webdesi9.com/donate/?plugin=duplicate-page" title="Donate Now" target="_blank" style="font-weight:bold">'.__('Donate', 'duplicate-page').'</a>';
|
||||
# array_unshift( $links, $duplicate_page_donate );
|
||||
msgid "Donate"
|
||||
msgstr ""
|
||||
|
||||
# public function duplicate_page_options_page(){
|
||||
# add_options_page( __( 'Duplicate Page', 'duplicate-page' ), __( 'Duplicate Page', 'duplicate-page' ), 'manage_options', 'duplicate_page_settings',array(&$this, 'duplicate_page_settings'));
|
||||
# }
|
||||
msgid "Duplicate Page"
|
||||
msgstr ""
|
||||
|
||||
# if (current_user_can('edit_posts')) {
|
||||
# $actions['duplicate'] = '<a href="admin.php?action=dt_duplicate_post_as_draft&post=' . $post->ID . '" title="Duplicate this as '.$post_status.'" rel="permalink">'.__( "Duplicate This", "duplicate-page" ).'</a>';
|
||||
# }
|
||||
msgid "Duplicate This"
|
||||
msgstr ""
|
||||
125
wp-content/plugins/duplicate-page/languages/duplicate-page.pot
Normal file
125
wp-content/plugins/duplicate-page/languages/duplicate-page.pot
Normal file
@@ -0,0 +1,125 @@
|
||||
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Duplicate Page\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2016-12-19 12:43+0000\n"
|
||||
"PO-Revision-Date: 2016-12-19 12:52+0000\n"
|
||||
"Last-Translator: admin <munishthedeveloper48@gmail.com>\n"
|
||||
"Language-Team: Hindi\n"
|
||||
"Language: hi-IN\n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Generator: Loco - https://localise.biz/"
|
||||
#: admin-settings.php:3
|
||||
msgid "Duplicate Page Settings"
|
||||
msgstr "डुप्लिकेट पृष्ठ सेटिंग"
|
||||
#: admin-settings.php:8
|
||||
msgid "<strong>Saving Please wait...</strong>"
|
||||
msgstr "<strong>सुरक्षित कर रहा है कृपया प्रतीक्षा करें...</strong>"
|
||||
#: admin-settings.php:27
|
||||
msgid ""
|
||||
"<div class=\"updated settings-error notice is-dismissible\" id=\"setting-"
|
||||
"error-settings_updated\"> \n"
|
||||
"<p><strong>Settings saved.</strong></p><button class=\"notice-dismiss\" "
|
||||
"type=\"button\"><span class=\"screen-reader-text\">Dismiss this notice."
|
||||
"</span></button></div>"
|
||||
msgstr ""
|
||||
"<div class=\"updated settings-error notice is-dismissible\" id=\"setting-"
|
||||
"error-settings_updated\"> \n"
|
||||
"<p><strong>सेटिंग्स को सहेजा गया।</strong></p><button class=\"notice-"
|
||||
"dismiss\" type=\"button\"><span class=\"screen-reader-text\">इस नोटिस को "
|
||||
"खारिज करें।</span></button></div>"
|
||||
#: admin-settings.php:30
|
||||
msgid ""
|
||||
"<div class=\"error settings-error notice is-dismissible\" id=\"setting-error-"
|
||||
"settings_updated\"> \n"
|
||||
"<p><strong>Settings not saved.</strong></p><button class=\"notice-dismiss\" "
|
||||
"type=\"button\"><span class=\"screen-reader-text\">Dismiss this notice."
|
||||
"</span></button></div>"
|
||||
msgstr ""
|
||||
"<div class=\"error settings-error notice is-dismissible\" id=\"setting-error-"
|
||||
"settings_updated\"> \n"
|
||||
"<p><strong>सेटिंग सहेजा नहीं।</strong></p><button class=\"notice-dismiss\" "
|
||||
"type=\"button\"><span class=\"screen-reader-text\">इस नोटिस को खारिज "
|
||||
"करें।</span></button></div>"
|
||||
#: admin-settings.php:43
|
||||
msgid "Duplicate Post Status"
|
||||
msgstr "पोस्ट की स्थिति डुप्लिकेट"
|
||||
#: admin-settings.php:50
|
||||
msgid ""
|
||||
"Please select any post status you want to assign for duplicate post. <strong>"
|
||||
"Default:</strong> Draft."
|
||||
msgstr ""
|
||||
"कृपया किसी भी पोस्ट की स्थिति आप दोहरे पद के लिए प्रदान करना चाहते हैं का "
|
||||
"चयन करें।<strong>चूक:</strong> प्रारूप।"
|
||||
#: admin-settings.php:54
|
||||
msgid "Redirect to after click on <strong>Duplicate This Link</strong>"
|
||||
msgstr ""
|
||||
"पर क्लिक करने के बाद पुन: निर्देशित करने के लिए <strong> डुप्लिकेट इस लिंक "
|
||||
"</ strong>"
|
||||
#: admin-settings.php:56
|
||||
msgid "To All Posts List"
|
||||
msgstr "सभी पदों की सूची के लिए"
|
||||
#: admin-settings.php:57
|
||||
msgid "To Duplicate Edit Screen"
|
||||
msgstr "स्क्रीन संपादित करने के लिए डुप्लिकेट"
|
||||
#: admin-settings.php:59
|
||||
msgid ""
|
||||
"Please select any post redirection, redirect you to selected after click on "
|
||||
"duplicate this link. <strong>Default:</strong> To current list."
|
||||
msgstr ""
|
||||
"कृपया किसी भी पद पुनर्निर्देशन का चयन करें, आप इस लिंक पर क्लिक करने के बाद "
|
||||
"नकल चयनित करने के लिए भेज दें। <Strong> डिफ़ॉल्ट: </ strong> वर्तमान सूची पर।"
|
||||
#: admin-settings.php:63
|
||||
msgid "Duplicate Post Suffix"
|
||||
msgstr "दोहरे पद प्रत्यय"
|
||||
#: admin-settings.php:66
|
||||
msgid ""
|
||||
"Add a suffix for duplicate or clone post as Copy, Clone etc. It will show "
|
||||
"after title."
|
||||
msgstr ""
|
||||
"कॉपी, क्लोन आदि के रूप में डुप्लिकेट या क्लोन के बाद यह खिताब के बाद दिखाएगा "
|
||||
"के लिए एक प्रत्यय जोड़ें।"
|
||||
#: admin-settings.php:76
|
||||
msgid ""
|
||||
"Contribute some donation, to make plugin more stable. You can pay amount of "
|
||||
"your choice."
|
||||
msgstr ""
|
||||
"कुछ दान योगदान, प्लगइन अधिक स्थिर बनाने के लिए। आप अपनी पसंद की राशि का "
|
||||
"भुगतान कर सकते हैं।"
|
||||
#. Name of the plugin
|
||||
msgid "Duplicate Page"
|
||||
msgstr "डुप्लिकेट पृष्ठ"
|
||||
#. Description of the plugin
|
||||
msgid "Duplicate Posts, Pages and Custom Posts using single click."
|
||||
msgstr "डुप्लिकेट पोस्ट, पन्ने और कस्टम पदों सिंगल क्लिक का उपयोग कर"
|
||||
#. URI of the plugin
|
||||
msgid "https://wordpress.org/plugins/duplicate-page/"
|
||||
msgstr ""
|
||||
#. Author of the plugin
|
||||
msgid "mndpsingh287"
|
||||
msgstr ""
|
||||
#. Author URI of the plugin
|
||||
msgid "https://profiles.wordpress.org/mndpsingh287/"
|
||||
msgstr ""
|
||||
#. Post link
|
||||
msgid "Duplicate This"
|
||||
msgstr ""
|
||||
#. Post Link title (status as draft)
|
||||
msgid "Duplicate this as draft"
|
||||
msgstr ""
|
||||
|
||||
#. Post Link title (status as publish)
|
||||
msgid "Duplicate this as publish"
|
||||
msgstr ""
|
||||
|
||||
#. Post Link title (status as private)
|
||||
msgid "Duplicate this as private"
|
||||
msgstr ""
|
||||
|
||||
#. Post Link title (status as pending)
|
||||
msgid "Duplicate this as pending"
|
||||
msgstr ""
|
||||
231
wp-content/plugins/duplicate-page/readme.txt
Normal file
231
wp-content/plugins/duplicate-page/readme.txt
Normal file
@@ -0,0 +1,231 @@
|
||||
=== Duplicate Page ===
|
||||
Contributors: mndpsingh287
|
||||
Tags: Page Duplicate, Post duplicate, duplicate custom posts, duplicate page, duplicate post, duplicate ,custom posts, post, page, duplicate this, duplicate, content duplicate, duplicate content, data duplicate, duplicate data, copy page, clone page,wordpress page duplicate, wordpress post duplicate, Copy post, wordpress page duplicator, wordpress post duplicator, Cloner, duplicate post
|
||||
Requires at least: 3.4
|
||||
Tested up to: 6.3.1
|
||||
Stable tag: 4.5.3
|
||||
License: GPLv2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
|
||||
Duplicate Posts, Pages and Custom Posts easily using single click
|
||||
|
||||
== Description ==
|
||||
|
||||
Duplicate Posts, Pages and Custom Posts easily using single click. You can duplicate your pages, posts and custom post by just one click and it will save as your selected options (draft, private, public, pending).
|
||||
|
||||
= Key Features in Duplicate Page Pro Editions =
|
||||
|
||||
* **User Roles:** Allow User Roles To access Duplicate Page.
|
||||
* **Post Types:** Filter to show Duplicate Page link in post types.
|
||||
* **Clone Link Location:** Option where to show clone link.
|
||||
* **Status:** Option to select Duplicate Posts Status.
|
||||
* **Redirection:** Option to Redirect after click on clone link..
|
||||
* **Clone Link Title:** Option to change Duplicate Post Link Title.
|
||||
* **Post Prefix:** Option to add Post Prefix.
|
||||
* **Post Suffix:** Option to add Post Suffix.
|
||||
* **Editor**: And Many More Filters and Features.
|
||||
|
||||
> <strong>[Buy Pro Version](https://duplicatepro.com/pro/?utm_source=Wordpress.org&utm_medium=Website&utm_campaign=Duplicate%20Page%20Pro)</strong> with various features & support.
|
||||
|
||||
> <strong>[Contact us](https://duplicatepro.com/contact/?utm_source=Wordpress.org&utm_medium=Website&utm_campaign=Duplicate%20Page%20Pro)</strong> for Support Only Pro Version Users.
|
||||
|
||||
**[Upgrade to Pro Version](https://duplicatepro.com/pro/?utm_source=Wordpress.org&utm_medium=Website&utm_campaign=Duplicate%20Page%20Pro)**
|
||||
|
||||
https://www.youtube.com/watch?v=Fj8BHxvebXs&feature=youtu.be
|
||||
|
||||
== Installation ==
|
||||
|
||||
1. Upload the `duplicate-page` folder to the directory `/wp-content/plugins/`.
|
||||
2. Activate the plugin using the 'Plugins' menu in WordPress.
|
||||
|
||||
== Frequently asked questions ==
|
||||
|
||||
## How to use
|
||||
|
||||
1. First Activate Plugin.
|
||||
2. Go Select to Duplicate Page settings Menu from Settings Tab and savings settings.
|
||||
1. Then Create New Post/Page or Use old.
|
||||
2. After click on duplicate this link, then duplicate post/ page will be created and saved as draft,publish,pending,private depending upon settings.
|
||||
|
||||
== Screenshots ==
|
||||
|
||||
1. Activate Screen
|
||||
2. Duplicate Page Settings Screen
|
||||
3. Select Option from Settings Page.
|
||||
4. Click on Duplicate This.
|
||||
5. Duplicate Post / Page will Appear.
|
||||
|
||||
== Changelog ==
|
||||
= 4.5.3(11th Sept, 2023)
|
||||
|
||||
* Compatible with wordpress 6.3.1
|
||||
|
||||
= 4.5.2(4th May, 2023)
|
||||
|
||||
* Compatible with wordpress 6.2
|
||||
|
||||
= 4.5.1(8th Feb, 2023)
|
||||
|
||||
* Fixes compatibility issues with event calendar plugin.
|
||||
* Minor bug fixes
|
||||
|
||||
= 4.5(14th Dec, 2022)
|
||||
|
||||
* Checked compatibility with wordpress v6.1.1
|
||||
* Fixes elementor sections compatibility issue
|
||||
|
||||
= 4.4.9(15th Jul, 2022)
|
||||
|
||||
* Checked compatibility with wordpress v6.0.1
|
||||
|
||||
= 4.4.8(27th Jan, 2022)
|
||||
|
||||
* Checked compatibility with wordpress v5.9
|
||||
|
||||
= 4.4.7(16th Dec, 2021)
|
||||
|
||||
* Added editor role check
|
||||
|
||||
= 4.4.6(7th Dec, 2021)
|
||||
|
||||
* Fixed security issues.
|
||||
|
||||
= 4.4.5(29th Sep, 2021)
|
||||
|
||||
* Fixed the issue for content HTML displaying in the sidebar.
|
||||
|
||||
= 4.4.4(16th Sep, 2021)
|
||||
|
||||
* Fixed sanitization Issues as per wordpress standards.
|
||||
|
||||
= 4.4.3(8th Sep, 2021)
|
||||
|
||||
* Updated code sanitization process for secure data submission
|
||||
|
||||
= 4.4.2(6th Sep, 2021)
|
||||
|
||||
* Added sanitization as per wordpress standards.
|
||||
|
||||
= 4.4.1(27th July, 2021) =
|
||||
|
||||
* Checked compatibility with wordpress v5.8
|
||||
* Fixed php warnings
|
||||
|
||||
= 4.4(18th Mar, 2021) =
|
||||
|
||||
* Tested upto wordpress v5.7
|
||||
|
||||
= 4.3(28th Aug, 2020) =
|
||||
|
||||
* Tested with wordpress v5.5
|
||||
|
||||
= 4.2(26th March, 2020) =
|
||||
|
||||
* Fixed Translations string issue
|
||||
|
||||
= 4.1(20th Feb, 2020) =
|
||||
|
||||
* Fixed Translations issue
|
||||
|
||||
= 4.0(20th Sep, 2019) =
|
||||
|
||||
* Fixed slug duplication issue
|
||||
|
||||
= 3.9 (6th Aug, 2019) =
|
||||
|
||||
* Fixed some compatibility issues
|
||||
|
||||
= 3.8 (18th July, 2019) =
|
||||
|
||||
* Fixed compatibility issues with GT3 editor
|
||||
|
||||
= 3.7 (18th July, 2019) =
|
||||
|
||||
* Fixed compatibility issues with other editors
|
||||
|
||||
= 3.6 (16th July, 2019) =
|
||||
|
||||
* Security fixes addressed by wordpress
|
||||
|
||||
= 3.5 (2nd Apr, 2019) =
|
||||
|
||||
* Gutenberg and advanced custom fields compatibility
|
||||
|
||||
= 3.4 (1st Apr, 2019) =
|
||||
|
||||
* Security issues fixes addressed by Securi
|
||||
|
||||
= 3.3 (14th March, 2019) =
|
||||
|
||||
* Compatible with WordPress 5.1.1
|
||||
|
||||
= 3.2 (25th Dec, 2018) =
|
||||
|
||||
* Gutenberg Compatible
|
||||
|
||||
= 3.1 (5th Dec, 2018) =
|
||||
|
||||
* removed nag
|
||||
|
||||
= 3.0 (3rd Dec, 2018) =
|
||||
|
||||
* German Formal lang added
|
||||
|
||||
= 2.9 (16th Nov, 2018) =
|
||||
|
||||
* Minor bug fixes
|
||||
|
||||
= 2.8 (20th Oct, 2018) =
|
||||
|
||||
* Compatible with php 7.3 and wordpress 5.0
|
||||
|
||||
= 2.7 (28th July, 2018) =
|
||||
|
||||
* removed useless adsense code
|
||||
|
||||
= 2.6 (24th March, 2018) =
|
||||
|
||||
* Added signup popup and minor fixes.
|
||||
|
||||
= 2.5 (5th Feb, 2018) =
|
||||
|
||||
* Translations issue resolve.
|
||||
|
||||
= 2.4 (29th Nov, 2017) =
|
||||
|
||||
* Duplicate Page appends original post name issue fixed.
|
||||
|
||||
= 2.3 (27st april, 2017) =
|
||||
|
||||
* Minor Fixes
|
||||
|
||||
= 2.2 (28th Jan, 2017) =
|
||||
|
||||
* Strings Translations
|
||||
|
||||
= 2.1 (25th Aug, 2016) =
|
||||
|
||||
* New Text field added in settings page for duplicate post title suffix to remove confusion of currently duplicate page.
|
||||
|
||||
= 1.4 (18th Jun, 2016) =
|
||||
|
||||
* New Features added
|
||||
|
||||
= 1.3 (23th May, 2016) =
|
||||
|
||||
* New Features added
|
||||
|
||||
= 1.2 (05th May, 2016) =
|
||||
|
||||
* Duplicate Page Settings Menu Added.
|
||||
|
||||
= 1.1 (04th May ,2016) =
|
||||
|
||||
* fix some Bug in 1.0
|
||||
|
||||
== Other Notes ==
|
||||
|
||||
== Minimum requirements for Duplicate Page ==
|
||||
* Wordpress 3.3+
|
||||
* PHP 5.x
|
||||
* MySQL 5.x
|
||||
Reference in New Issue
Block a user