Skip to content
This repository was archived by the owner on Dec 2, 2022. It is now read-only.

Commit 2fd10d7

Browse files
committed
Fixed
1 parent c4bf2d7 commit 2fd10d7

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

redux-core/inc/extensions/import_export/import_export/class-redux-import-export.php

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -107,18 +107,18 @@ class="button-secondary">
107107
<textarea
108108
id="import-code-value"
109109
name="<?php echo esc_attr( $this->parent->args['opt_name'] ); ?>[import_code]"
110-
class="large-text no-update" rows="2"></textarea>
110+
class="large-text no-update" rows="3"></textarea>
111111
</div>
112112
<div id="redux-import-link-wrapper">
113113
<p class="description" id="import-link-description">
114114
<?php // phpcs:ignore WordPress.NamingConventions.ValidHookName ?>
115115
<?php echo esc_html( apply_filters( 'redux-import-link-description', esc_html__( 'Input the URL to another sites options set and hit Import to load the options from that site.', 'redux-framework' ) ) ); ?>
116116
</p>
117-
<textarea
117+
<input
118118
class="large-text no-update"
119119
id="import-link-value"
120120
name="<?php echo esc_attr( $this->parent->args['opt_name'] ); ?>[import_link]"
121-
rows="2"></textarea>
121+
rows="2"/>
122122
</div>
123123
<p id="redux-import-action">
124124
<input
@@ -146,23 +146,18 @@ class="button-primary"
146146
</div>
147147
<?php $link = admin_url( 'admin-ajax.php?action=redux_download_options-' . $this->parent->args['opt_name'] . '&secret=' . $secret ); ?>
148148
<p>
149-
<a data-secret="<?php echo $secret; ?>" id="redux-export-code-copy" class="button-secondary">
149+
<button id="redux-export-code-copy" class="button-secondary" data-secret="<?php echo esc_attr( $secret ); ?>" data-copy="<?php esc_attr_e( 'Copy Data', 'redux-framework' ); ?>" data-copied="<?php esc_attr_e( 'Data Copied!', 'redux-framework' ); ?>">
150150
<?php esc_html_e( 'Copy Data', 'redux-framework' ); ?>
151-
</a>
151+
</button>
152152
<a href="<?php echo esc_url( $link ); ?>" id="redux-export-code-dl" class="button-primary">
153-
<?php esc_html_e( 'Download Data File', 'redux-framework' ); ?>
153+
<?php esc_html_e( 'Export File', 'redux-framework' ); ?>
154154
</a>
155-
<a href="javascript:void(0);" id="redux-export-link" class="button-secondary">
155+
<a href="javascript:void(0);" id="redux-export-link" class="button-secondary" data-copy="<?php esc_attr_e( 'Copy Export URL', 'redux-framework' ); ?>" data-copied="<?php esc_attr_e( 'URL Copied!', 'redux-framework' ); ?>" data-url="<?php echo esc_url( $link ); ?>">
156156
<?php esc_html_e( 'Copy Export URL', 'redux-framework' ); ?>
157157
</a>
158158
</p>
159159
<p></p>
160-
<textarea class="large-text no-update" id="redux-export-code" rows="2"></textarea>
161-
<textarea
162-
class="large-text no-update"
163-
id="redux-export-link-value"
164-
data-url="<?php echo esc_url( $link ); ?>"
165-
rows="2"><?php echo esc_url( $link ); ?></textarea>
160+
<textarea class="large-text no-update" id="redux-export-code" rows="1"></textarea>
166161
<?php
167162
}
168163

0 commit comments

Comments
 (0)