Skip to content

Commit 94c9181

Browse files
committed
removed leftover testing code
1 parent 7c53f00 commit 94c9181

File tree

1 file changed

+4
-24
lines changed

1 file changed

+4
-24
lines changed

classes/Visualizer/Render/Library.php

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ private function _renderLibrary() {
222222
$license_key = $license->key;
223223
$download_id = $license->download_id;
224224
}
225-
$admin_license_url = admin_url('options-general.php#visualizer_pro_license');
226-
$renew_license_url = tsdk_utmify( Visualizer_Plugin::STORE_URL . '?edd_license_key=' . $license_key . '&download_id=' .$download_id, 'visualizer_license_block' );
225+
$admin_license_url = admin_url( 'options-general.php#visualizer_pro_license' );
226+
$renew_license_url = tsdk_utmify( Visualizer_Plugin::STORE_URL . '?edd_license_key=' . $license_key . '&download_id=' . $download_id, 'visualizer_license_block' );
227227
// Added by Ash/Upwork
228228
$filterBy = ! empty( $_GET['s'] ) ? sanitize_text_field( wp_unslash( $_GET['s'] ) ) : null; // phpcs:ignore WordPress.Security.NonceVerification.Recommended
229229
// Added by Ash/Upwork
@@ -235,12 +235,12 @@ private function _renderLibrary() {
235235
<h1 class="vizualizer-renew-notice-heading">Alert!</h1>
236236
<p class="vizualizer-renew-notice-message">' . esc_html__( 'In order to edit premium charts, benefit from updates and support for Visualizer Premium plugin, please renew your license code or activate it.', 'visualizer' ) . ' </p>
237237
<div class="vizualizer-renew-notice-buttons-container">
238-
<a href="' . esc_url($renew_license_url) . '" target="_blank">
238+
<a href="' . esc_url( $renew_license_url) . '" target="_blank">
239239
<button class="vizualizer-renew-notice-button vizualizer-renew-notice-renew-button">
240240
<span class="dashicons dashicons-cart"></span>' . esc_html__( 'Renew License', 'visualizer' ) . '
241241
</button>
242242
</a>
243-
<a href="' . esc_url($admin_license_url) . '">
243+
<a href="' . esc_url( $admin_license_url ) . '">
244244
<button class="vizualizer-renew-notice-button vizualizer-renew-notice-activate-button">
245245
<span class="dashicons dashicons-unlock"></span> ' . esc_html__( 'Activate License', 'visualizer' ) . '
246246
</button>
@@ -289,26 +289,6 @@ private function _renderLibrary() {
289289
$this->_renderSidebar();
290290
}
291291
echo '</div>';
292-
293-
// echo '
294-
//
295-
// <h1 class="vizualizer-renew-notice-heading">Alert!</h1>
296-
// <p class="vizualizer-renew-notice-message">
297-
// In order to edit premium charts, benefit from updates and support for Visualizer Premium plugin, please renew your license code or activate it.
298-
// </p>
299-
// <div class="vizualizer-renew-notice-buttons-container">
300-
// <a href="${visualizer.renew_license_url}" target="_blank">
301-
// <button class="vizualizer-renew-notice-button vizualizer-renew-notice-renew-button">
302-
// <span class="dashicons dashicons-cart"></span> Renew License
303-
// </button>
304-
// </a>
305-
// <a href="${visualizer.admin_license_url}">
306-
// <button class="vizualizer-renew-notice-button vizualizer-renew-notice-activate-button">
307-
// <span class="dashicons dashicons-unlock"></span> Activate License
308-
// </button>
309-
// </a>
310-
// </div>
311-
// <i class="dashicons dashicons-no vizualizer-renew-notice-close-icon"></i> ';
312292
} else {
313293
echo '<div id="visualizer-library" class="visualizer-clearfix">';
314294
echo '<div class="items"><div class="visualizer-chart">';

0 commit comments

Comments
 (0)