PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` 'Enable Docs', 'e' => 'You can write documentations about your product(s) and API, if this feature is enabled']; // Kkart $opts['kkart-pro'] = ['t' => 'Enable Kkart E-Commerce', 'e' => 'If you would like to convert your site to a shopping cart, please enable this feature', 'comp' => function(){ $ret = array(); if(version_compare(PHP_VERSION, '7.2.0') < 0){ $ret['error'][] = __('PHP version must be at least 7.2.0 to enable Kkart. And your current PHP version: ') . PHP_VERSION . "\n"; } return $ret; }]; $opts['speedycache'] = ['t' =>'Enable SpeedyCache', 'e' => 'SpeedyCache for Lightning-Fast Sitepad website', 'pro' => 1]; $opts['gosmtp'] = ['t' =>'Enable GoSMTP', 'e' => 'Send emails from your Sitepad site using your preferred SMTP provider like Gmail, Outlook, AWS, Zoho, SMTP.com, Sendinblue, Mailgun, Postmark, Sendgrid, Sparkpost, Sendlayer or any custom SMTP provider.', 'pro' => 1]; $opts['cookieadmin'] = ['t' =>'Enable cookieadmin', 'e' => 'CookieAdmin provides easy to configure cookie consent banner with GDPR and CCPA law support.', 'pro' => 1, 'comp' => function(){ $ret = array(); if (version_compare(PHP_VERSION, '7.0.0', '<')) { $ret['error'][] = sprintf( __('PHP version must be at least 7.0.0 to enable Cookieadmin. Your current PHP version: %s'), PHP_VERSION ); } return $ret; }]; if(!empty($sitepad['dev'])){ $opts['siteseo'] = ['t' =>'Enable SiteSEO', 'e' => 'Streamline your site with powerful SEO plugin, SiteSEO.', 'pro' => 1]; // HR Monitor $opts['workviewer'] = ['t' => 'WorkViewer', 'e' => 'Tracker office work']; // Google Site Kit $opts['google-site-kit'] = ['t' => 'Google Site Kit', 'e' => 'Connect with Google Services']; // AMP $opts['amp'] = ['t' => 'AMP', 'e' => 'Accelerated Mobile Pages (by Google)']; } $message = array(); if(isset($_REQUEST['submit'])){ // Check nonce check_admin_referer( 'sitepad-options' ); $success = false; foreach($opts as $v => $r){ $enable = get_option('enable_'.$v); $new_enable = isset($_POST['enable_'.$v]) ? (bool)$_POST['enable_'.$v] : false; if( !empty($new_enable) && isset($r['comp']) && is_callable($r['comp']) ){ $ret = $r['comp'](); if( !empty($ret) && isset($ret['error']) ){ foreach($ret['error'] as $note){ $message[] = '

'.$note.'

'; } continue; } } $success = true; update_option('enable_'.$v, $new_enable); if(!empty($new_enable) && empty($enable)){ activate_plugin($v.'/'.$v.'.php'); if(!empty($r['pro'])){ activate_plugin($v.'-pro/'.$v.'-pro.php'); } } // When new enable is empty and plugin is enable then it will deactivate the plugin if(empty($new_enable) && !empty($enable)){ deactivate_plugins($v.'/'.$v.'.php'); if(!empty($r['pro'])){ deactivate_plugins($v.'-pro/'.$v.'-pro.php'); } } } if($success){ $message[] = '

'.__('Your preferences have been updated successfully !').'

'; set_transient('features_message', $message ); wp_safe_redirect(admin_url('features.php')); exit; } } $transient = get_transient('features_message'); if(!empty($transient)){ $message = $transient; set_transient('features_message', array() ); } $title = __( 'SitePad Feature Management' ); include( ABSPATH . 'site-admin/admin-header.php' ); echo '

'.$title.'


'; foreach($message as $msg){ echo $msg; } ?>
$v){ echo ''; } ?>

'. _( $v['e'] ).'