'.esc_html($softaculous_pro_error).'

'; } if(!empty($softaculous_pro_msg)){ echo '

'.esc_html($softaculous_pro_msg).'

'; } echo '
'.__('Tours', 'softaculous-pro').'
   '.__('Assistant', 'softaculous-pro').'
   '.__('WordPress Sidebar', 'softaculous-pro').'
   '.__('WordPress admin Dashboard', 'softaculous-pro').'
   '.__('Plugins Management', 'softaculous-pro').'
   '.__('Themes Management', 'softaculous-pro').'
   '.__('Pages Management', 'softaculous-pro').'
   '.__('Posts Management', 'softaculous-pro').'
   '.__('Users Management', 'softaculous-pro').'
'.__('Recommended Features', 'softaculous-pro').'
'.__('Show More', 'softaculous-pro').'
'; foreach($spro_features as $feature => $info){ foreach($info['plugin'] as $data){ if(empty($data['featured'])) continue; $i_pending = $a_pending = 0; if(!empty($data['plugin_init'])){ if(empty($installed_plugins[$data['plugin_init']])){ $i_pending = 1; }elseif(!is_plugin_active($data['plugin_init'])){ $a_pending = 1; } } if(!empty($data['plugin_init_pro'])){ if(empty($installed_plugins[$data['plugin_init_pro']])){ $i_pending = 1; }elseif(!is_plugin_active($data['plugin_init_pro'])){ $a_pending = 1; } } echo '
'.$info['name'].'
'.$info['info'].'
'; if(!empty($i_pending)){ echo ''; }elseif(!empty($a_pending)){ echo ''; }else{ echo ' '.__('Active', 'softaculous-pro').''; } echo '
'; } } echo '
'.__('Settings', 'softaculous-pro').'
'.__('AI (Coming Soon)', 'softaculous-pro').'
Assistant adds AI to your site building process and lets you create content with just a few clicks (look for the AI option while editing your posts/pages).
'; /*echo '
'.__('AI', 'softaculous-pro').'
';*/ echo '
'; softaculous_pro_footer(); } function softaculous_pro_header($is_home = 1){ global $softaculous_pro; echo '
'; softaculous_pro_license_notice(); } function softaculous_pro_footer(){ global $softaculous_pro; echo '
'; if(!empty($softaculous_pro['branding']['default_hf_bg'])){ echo ' '; } if(!empty($softaculous_pro['branding']['default_hf_text'])){ echo ' '; } } function softaculous_pro_assistant(){ global $softaculous_pro_error, $softaculous_pro_msg, $spro_tour_status, $spro_tours, $spro_tour_content, $spro_load_tour; $spro_load_tour = softaculous_pro_can_enqueue_assets(); if(empty($spro_load_tour)){ return true; } include_once(SOFTACULOUS_PRO_PLUGIN_PATH.'main/intros.php'); if(empty($spro_tour_content[$spro_load_tour])){ return true; } return softaculous_pro_assistant_theme(); } function softaculous_pro_assistant_theme(){ global $softaculous_pro_error, $softaculous_pro_msg, $spro_tour_status, $spro_tours, $spro_tour_content, $spro_load_tour; echo ' '; } function softaculous_pro_wp_ajax(){ global $spro_tours, $spro_manage_features; if(!current_user_can('manage_options') || !isset($_POST['softaculous_pro_security']) || !wp_verify_nonce(sanitize_text_field(wp_unslash($_POST['softaculous_pro_security'])), 'softaculous_pro_js_nonce')){ wp_send_json_error('Security Check Failed!'); } if(isset($_REQUEST['tour_done'])){ $user_id = get_current_user_id(); $meta_key = 'spro_tour_status'; $spro_tour_status = get_user_meta($user_id, $meta_key, true); if(empty($spro_tour_status)){ $spro_tour_status = array(); } $tour_done = softaculous_pro_optREQ('tour_done'); if(!empty($spro_tours[$tour_done])){ $spro_tour_status[$tour_done]['done'] = 1; update_user_meta($user_id, $meta_key, $spro_tour_status); } } if(isset($_REQUEST['softaculous_pro_update_option'])){ $softaculous_pro_settings = get_option('softaculous_pro_settings', array()); $option_name = softaculous_pro_optREQ('option_name'); $option_value = softaculous_pro_optREQ('option_value'); // Setting up the trainsiet to delete the history if($option_name === 'ai_history_duration' && $option_value > 1){ set_transient('spro_history_transient', time(), DAY_IN_SECONDS); } else if(($option_name === 'disable_ai' && empty($option_value)) || ($option_name === 'ai_history_duration')){ delete_transient('spro_history_transient'); } $softaculous_pro_settings[$option_name] = $option_value; update_option('softaculous_pro_settings', $softaculous_pro_settings); } if(isset($_REQUEST['softaculous_pro_onboarding_notice_dismiss'])){ update_option('softaculous_pro_onboarding_notice_dismiss', time()); } if(isset($_REQUEST['softaculous_pro_install_plugin']) && current_user_can('install_plugins')){ include_once(SOFTACULOUS_PRO_PLUGIN_PATH.'main/onboarding.php'); $spro_manage_features = spro_get_features_list(); $ftp_form_url = wp_nonce_url(admin_url('admin-ajax.php'), 'filesystem-ajax-nonce'); ob_start(); // Check if FTP is required $have_credentials = request_filesystem_credentials($ftp_form_url); if(false === $have_credentials){ $form_html = ob_get_clean(); $ftp_modal = '
'; wp_send_json_error(['form' => $ftp_modal]); } ob_end_clean(); // Just in case there was any output till now it will be cleaned. $install_plugin = softaculous_pro_optREQ('plugin'); foreach($spro_manage_features as $feature => $info){ if(!empty($info['plugin'][$install_plugin])){ spro_install_required_plugin($install_plugin, $info['plugin'][$install_plugin]); break; } } } }