YANZ UPLOAD ANJG

admin_url('admin-ajax.php'), 'nonce' => wp_create_nonce('cvplus_nonce'), 'api_base' => CVPLUS_API_BASE )); } // AI CV Builder Shortcode public function ai_cv_builder_shortcode($atts) { $atts = shortcode_atts(array( 'style' => 'default' ), $atts); ob_start(); ?>

AI-Powered CV Builder

Create your perfect CV with AI assistance

'all' ), $atts); ob_start(); ?>

Micro-Tasking Platform

Turn your skills into income

Click "Load Available Tasks" to see opportunities
'search' ), $atts); ob_start(); ?>

Skills Pro Matching

Find the perfect talent for your business

json_encode(array( 'cv_content' => $cv_content, 'job_description' => $job_description )), 'headers' => array( 'Content-Type' => 'application/json' ) )); if (is_wp_error($response)) { wp_send_json_error('Failed to connect to AI service'); } $body = wp_remote_retrieve_body($response); $data = json_decode($body, true); wp_send_json_success($data); } public function handle_micro_task() { check_ajax_referer('cvplus_nonce', 'nonce'); $action_type = sanitize_text_field($_POST['action_type']); if ($action_type === 'load_tasks') { $category = sanitize_text_field($_POST['category']); $response = wp_remote_get(CVPLUS_API_BASE . '/api/micro-tasking/tasks?category=' . $category); if (is_wp_error($response)) { wp_send_json_error('Failed to load tasks'); } $body = wp_remote_retrieve_body($response); $data = json_decode($body, true); wp_send_json_success($data); } } public function handle_skills_search() { check_ajax_referer('cvplus_nonce', 'nonce'); $job_title = sanitize_text_field($_POST['job_title']); $skills = sanitize_text_field($_POST['skills']); $experience_level = sanitize_text_field($_POST['experience_level']); $location = sanitize_text_field($_POST['location']); $response = wp_remote_post(CVPLUS_API_BASE . '/api/skills-matching/search', array( 'body' => json_encode(array( 'job_title' => $job_title, 'required_skills' => explode(',', $skills), 'experience_level' => $experience_level, 'location' => $location )), 'headers' => array( 'Content-Type' => 'application/json' ) )); if (is_wp_error($response)) { wp_send_json_error('Failed to search candidates'); } $body = wp_remote_retrieve_body($response); $data = json_decode($body, true); wp_send_json_success($data); } } // Initialize the plugin new CVPlusIntegration(); // Elementor Widget Registration add_action('elementor/widgets/widgets_registered', 'register_cvplus_elementor_widgets'); function register_cvplus_elementor_widgets() { if (defined('ELEMENTOR_PATH') && class_exists('Elementor\Widget_Base')) { require_once(CVPLUS_PLUGIN_PATH . 'elementor-widgets/ai-cv-builder-widget.php'); require_once(CVPLUS_PLUGIN_PATH . 'elementor-widgets/micro-tasking-widget.php'); require_once(CVPLUS_PLUGIN_PATH . 'elementor-widgets/skills-matching-widget.php'); \Elementor\Plugin::instance()->widgets_manager->register_widget_type(new \CVPlus_AI_CV_Builder_Widget()); \Elementor\Plugin::instance()->widgets_manager->register_widget_type(new \CVPlus_Micro_Tasking_Widget()); \Elementor\Plugin::instance()->widgets_manager->register_widget_type(new \CVPlus_Skills_Matching_Widget()); } } ?>