/********************************************************* * BLOCK 1 * [meta_form] + [meta_table] * => Insert job/exercise => wp_crx_metabolic_data * => Also store data in localStorage for [cdx_4scores] *********************************************************/ /** * SHORTCODE: [meta_form] */ add_shortcode(‘meta_form’, function() { if(!is_user_logged_in()){ return “ You must be logged in…Continue reading
/** * Plugin Name: Profile Plugin (Dynamic) * Description: Form to store user’s gender, DOB, and age into wp_crx_profile_data. Range check (19–79) with Syncfusion. Also pushes data to localStorage => cdx_personal_data + calls update4Scores(). */ /** * SHORTCODE: [profile_form] *…Continue reading
/** * Shortcode: [medication_form] * Collects (anti_hypertensive, statins, anti_diabetes) * Displays in a 3-column layout with Syncfusion radio buttons. * AJAX => ‘medication_submit_data_10’ */ add_shortcode(‘medication_form’, function () { if (!is_user_logged_in()) { return “ You must be logged in to update…Continue reading
/** * Shortcode: [medical_profile] * Collects (current_smoker, diabetes, heart_attack_stroke) * Shows them in a 3-column layout with Syncfusion radio buttons. * AJAX => ‘medical_profile_submit’ */ add_shortcode(‘medical_profile’, function() { if (!is_user_logged_in()) { return “ You must be logged in to update…Continue reading
/** * Plugin Name: CVD Risk Assessment (Matching Refresh Button Style) * Description: Shortcode [cvd_risk_assessment] with a 4-column layout and a gauge aligned similarly to MetS, plus a matching Refresh button. */ add_action(‘wp_ajax_get_cvd_data’,’handle_get_cvd_data’); function handle_get_cvd_data(){ if(!is_user_logged_in()){ wp_send_json_error([‘message’=>’Not logged in’]); }…Continue reading
/** * Plugin Name: Metabolic Syndrome (Aligned with CVD Code) * Description: Adds AJAX + Shortcode [metabolic_syndrome] with a grid-based layout, bigger gauge, and factor badges aligned with the style used in CVD code. */ /******************************************************* * 1) AJAX Handler…Continue reading
/** * Plugin Name: Cardioxon Multi-Page Modal (Optimized) * Description: A single reusable Bootstrap modal that loads multiple WP pages by slug with server-side & client-side caching. * Version: 1.0 * Author: YourName */ /** * 1) AJAX endpoint: get_cdx_modal_content…Continue reading
/** * Plugin Name: Advanced Metrics (Bootstrap & LaTeX) * Description: Provides a [advanced_metrics] shortcode with a Bootstrap table, AJAX calculations, LaTeX formulas, and an info icon that opens a modal (placeholder). * Version: 2.0 * Author: YourName */ //…Continue reading
/** * Plugin Name: CDX 8 Scores (Bootstrap, Centered Formulas) * Description: Shortcode [cdx_4scores] => shows 8 body composition scores (BMR, TDEE, TBW, BFP, IBW, ABW, LBM, FFMI) in a responsive Bootstrap table with centered MathJax formulas. * Version: 1.0…Continue reading
// Description: This code defines two functions to fetch user data from the database based on a provided VG Number (vg_nummer). It retrieves the email, first_name, and last_name from the testing_Sumaiya table. Designed for integration with FlowMattic workflows to enable…Continue reading