protected function print_dialog_content() { $exp = $this->exp; ?> <p><?php printf(__('You are about to overwrite the original %s with the content of an alternative. Please, remember <strong>this operation cannot be undone</strong>. Are you sure you want to overwrite it?', 'nelioab'), $this->post_type['name']); ?> </p> <form id="apply_alternative" method="post" action="<?php echo admin_url('admin.php?page=nelioab-experiments&action=progress&' . 'id=' . $exp->get_id() . '&' . 'type=' . $exp->get_type()); ?> "> <input type="hidden" name="apply_alternative" value="true" /> <input type="hidden" name="nelioab_exp_type" value="<?php echo $exp->get_type(); ?> " /> <input type="hidden" id="original" name="original" value="<?php echo $exp->get_originals_id(); ?> " /> <input type="hidden" id="alternative" name="alternative" value="" /> <p><input type="checkbox" id="copy_content" name="copy_content" checked="checked" disabled="disabled" /><?php _e('Override title and content', 'nelioab'); ?> </p> <p><input type="checkbox" id="copy_meta" name="copy_meta" <?php if (NelioABSettings::is_copying_metadata_enabled()) { echo 'checked="checked" '; } ?> /><?php _e('Override all metadata', 'nelioab'); ?> </p> <?php if (!'page' == $this->post_type['name']) { ?> <p><input type="checkbox" id="copy_categories" name="copy_categories" <?php if (NelioABSettings::is_copying_categories_enabled()) { echo 'checked="checked" '; } ?> /><?php _e('Override categories', 'nelioab'); ?> </p> <p><input type="checkbox" id="copy_tags" name="copy_tags" <?php if (NelioABSettings::is_copying_tags_enabled()) { echo 'checked="checked" '; } ?> /><?php _e('Override tags', 'nelioab'); ?> </p><?php } ?> </form> <?php }