Skip to content

Commit 24adfa5

Browse files
committed
Remove remaining Extendify integration
Signed-off-by: Kev Provance <[email protected]>
1 parent b83eeba commit 24adfa5

File tree

5 files changed

+1
-140
lines changed

5 files changed

+1
-140
lines changed

class-redux-framework-plugin.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -163,17 +163,6 @@ public function includes() {
163163
require_once dirname( __FILE__ ) . '/redux-core/framework.php';
164164
}
165165

166-
// TODO: Delete when stable.
167-
//Redux_Core::$extendify_templates_enabled = (bool) get_option( 'use_extendify_templates', true );
168-
169-
// Including extendify sdk.
170-
//if ( true === (bool) get_option( 'use_extendify_templates', true ) ) {
171-
// if ( file_exists( dirname( __FILE__ ) . '/extendify-sdk/loader.php' ) ) {
172-
// $GLOBALS['extendify_sdk_partner'] = 'Redux';
173-
// require_once dirname( __FILE__ ) . '/extendify-sdk/loader.php';
174-
// }
175-
//}
176-
177166
if ( file_exists( dirname( __FILE__ ) . '/redux-templates/redux-templates.php' ) ) {
178167
require_once dirname( __FILE__ ) . '/redux-templates/redux-templates.php';
179168
}
@@ -183,7 +172,6 @@ public function includes() {
183172
}
184173

185174
add_action( 'setup_theme', array( $this, 'load_sample_config' ) );
186-
187175
}
188176

189177
/**

redux-core/class-redux-core.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,6 @@ class Redux_Core {
135135
*/
136136
public static $welcome = null;
137137

138-
// TODO: Delete when stable.
139-
/**
140-
* Flag for Extendify Template enabled status.
141-
*
142-
* @var bool
143-
*/
144-
// public static $extendify_templates_enabled = true;
145-
146138
/**
147139
* Creates instance of class.
148140
*

redux-core/inc/classes/class-redux-connection-banner.php

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,6 @@ public function maybe_initialize_hooks( $current_screen ) {
288288

289289
// Don't show the connect notice anywhere but the plugins.php after activating
290290
if ( 'plugins' !== $current_screen->base && 'dashboard' !== $current_screen->base ) {
291-
// TODO: Delete when stable.
292-
// add_action( 'redux_admin_notices_run', array( $this, 'panel_admin_notice' ), 100, 2 );
293291
add_action( 'admin_head', array( $this, 'admin_head' ) );
294292

295293
return;
@@ -304,42 +302,6 @@ public function maybe_initialize_hooks( $current_screen ) {
304302
}
305303
}
306304

307-
// TODO: Delete when stable.
308-
/**
309-
* Display the admin notice to users that have not opted-in or out
310-
*
311-
* @return void
312-
*/
313-
// public function panel_admin_notice( $args ) {
314-
//
315-
// $urls = $this->get_urls( 'panel_banner' );
316-
//
317-
// $this->client = Redux_Core::$appsero;
318-
// // don't show tracking if a local server
319-
//
320-
// if ( empty( $this->notice ) ) {
321-
// $name = 'Redux';
322-
// $notice = sprintf( __( 'Register <strong>%1$s</strong> to enable automatic Google Font updates service. Plus unlock all free block templates in the Redux template library.', 'redux-framework' ), $name );
323-
// } else {
324-
// $notice = $this->notice;
325-
// }
326-
//
327-
// $notice .= ' (<a class="redux-insights-data-we-collect" href="#" style="white-space: nowrap;">' . __( 'learn more', 'redux-framework' ) . '</a>)';
328-
//
329-
// $notice .= '<p class="description" style="display:none;">' . self::tos_blurb( 'option_panel' ) . ' </p>';
330-
//
331-
// echo '<div class="updated" id="redux-connect-message" data-nonce="' . wp_create_nonce( $this->nonce ) . '" style="border-left-color: #24b0a6;"><p>';
332-
// echo $notice;
333-
// echo '</p><p class="submit">';
334-
// echo '&nbsp;<a href="' . esc_url( $urls['register'] ) . '" class="button-primary button-large redux-activate-connection redux-connection-banner-action" data-url="' . admin_url( 'admin-ajax.php' ) . '" data-activate="panel_banner">' . __( 'Register Now', 'redux-framework' ) . '</a>';
335-
// echo '&nbsp;&nbsp;&nbsp;<a href="' . esc_url( $urls['dismiss'] ) . '" style="color: #aaa;" class="redux-connection-banner-action" data-activate="false" data-url="' . admin_url( 'admin-ajax.php' ) . '">' . __( 'No thanks', 'redux-framework' ) . '</a>';
336-
// echo '</p></div>';
337-
// echo '<style>.wp-core-ui .button-primary.redux-activate-connection{background: #24b0a6;}.wp-core-ui .button-primary.redux-activate-connection:hover{background: #19837c;}</style>';
338-
//
339-
// echo "<noscript><style>#redux-connect-message{display:none;}</style></noscript>";
340-
//
341-
// }
342-
343305
/**
344306
* Hide Individual Dashboard Pages
345307
*
@@ -455,21 +417,6 @@ public function network_connect_notice() {
455417
<noscript><style>#message{display:none;}</style></noscript>
456418
<?php
457419
}
458-
459-
// TODO: Delete when stable.
460-
/**
461-
* Prints a TOS blurb used throughout the connection prompts.
462-
*
463-
* @since 4.0
464-
*
465-
* @echo string
466-
*/
467-
//public static function tos_blurb( $campaign = 'options_panel' ): string {
468-
// return sprintf(
469-
// __( 'By clicking the <strong>Register</strong> button, you agree to our <a href="%1$s" target="_blank">terms of service</a>, to create an account, and to share details of your usage metrics with Redux.io. We may also occasionally send you emails with product updates, special offers, or other marketing content.', 'redux-framework' ),
470-
// Redux_Functions_Ex::get_site_utm_url( 'terms', 'appsero', 'activate', $campaign )
471-
// );
472-
//}
473420
}
474421
}
475422

redux-core/inc/welcome/class-redux-welcome.php

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,6 @@ public function __construct() {
5050
//add_action( 'admin_init', array( $this, 'register_options' ) );
5151
}
5252

53-
// TODO: Delete when stable.
54-
/**
55-
* Register template option.
56-
*/
57-
//public function register_options() {
58-
// register_setting( 'redux_templates', 'use_redux_templates' );
59-
// register_setting( 'redux_templates', 'use_extendify_templates' );
60-
//}
61-
6253
/**
6354
* Class init.
6455
*/
@@ -186,17 +177,6 @@ class="nav-tab <?php echo( 'redux-framework' === $selected ? 'nav-tab-active' :
186177
href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'redux-framework' ), 'options-general.php' ) ) ); ?>">
187178
<?php esc_attr_e( 'What is Redux?', 'redux-framework' ); ?>
188179
</a>
189-
<?php // TODO: Delete when stable. ?>
190-
<?php // if ( Redux_Core::$is_plugin ) { ?>
191-
<!-- <a
192-
class="nav-tab <?php // echo( 'redux-templates' === $selected ? 'nav-tab-active' : '' ); ?>"
193-
href="<?php // echo esc_url( admin_url( add_query_arg( array( 'page' => 'redux-templates' ), 'options-general.php' ) ) ); ?>">
194-
<?php // esc_attr_e( 'Templates', 'redux-framework' ); ?>
195-
</a> -->
196-
<?php // } ?>
197-
<?php // phpcs:ignore WordPress.NamingConventions.ValidHookName ?>
198-
<?php // do_action( 'redux/pro/welcome/admin/tab', $selected ); ?>
199-
200180
</h2>
201181
<?php
202182
}
@@ -215,21 +195,6 @@ public function about_screen() {
215195
require_once 'views/about.php';
216196
}
217197

218-
// TODO: Delete when stable.
219-
/**
220-
* Render Templates Screen
221-
*
222-
* @access public
223-
* @since 4.2
224-
* @return void
225-
*/
226-
// public function templates() {
227-
// Stupid hack for WordPress alerts and warnings.
228-
// echo '<div class="wrap" style="height:0;overflow:hidden;"><h2></h2></div>';
229-
230-
// require_once 'views/templates.php';
231-
//}
232-
233198
/**
234199
* Action.
235200
*/

redux-core/inc/welcome/views/templates.php

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -25,35 +25,4 @@
2525

2626
<?php $this->actions(); ?>
2727
<?php $this->tabs(); ?>
28-
29-
<?php // TODO: Delete when stable. ?>
30-
<?php // $ext_value = Redux_Core::$extendify_templates_enabled; ?>
31-
32-
<!-- <div class="feature-section one-col">
33-
<div class="col">
34-
<?php // translators: %s: HTML. ?>
35-
<h2><?php // echo sprintf( esc_html__( ' Template Libraries', 'redux-framework' ), '<br />' ); ?></h2>
36-
</div>
37-
</div>
38-
<div class='wrap'>
39-
<form method="post" action="options.php">
40-
<?php // settings_fields( 'redux_templates' ); ?>
41-
<table class="form-table">
42-
<tbody>
43-
<?php // if ( ! Redux_Functions_Ex::is_plugin_active( 'extendify' ) ) { ?>
44-
<tr style='vertical-align:top'>
45-
<th scope='row' style='vertical-align:top'>
46-
<?php // esc_html_e( 'Extendify Template Library', 'redux-framework' ); ?>
47-
</th>
48-
<td>
49-
<input id="extendify-templates" name="use_extendify_templates" type="checkbox" class="regular-text" value="1" <?php // checked( $ext_value, '1' ); ?>/>
50-
<label class="description" for="use_extendify_templates"><?php // esc_html_e( 'Load Extendify template library', 'redux-framework' ); ?></label>
51-
</td>
52-
</tr>
53-
<?php // } ?>
54-
</tbody>
55-
</table>
56-
<?php // submit_button(); ?>
57-
</form>
58-
<hr>
59-
</div> -->
28+
</div>

0 commit comments

Comments
 (0)