| Server IP : 217.160.0.73 / Your IP : 216.73.217.74 Web Server : Apache System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux User : ws67451637 ( 67451637) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /homepages/10/d4299163471/htdocs/wordpress/wp-content/plugins/duplicate-page/js/ |
Upload File : |
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
} );