[lipid_form]

/** * Title: Lipid Profile Form * Shortcode: [lipid_form] * Description: Saisit 3 paramètres : Total Chol, HDL-C, Triglycerides (mg/dL ou mmol/L), * insère via AJAX => wp_crx_lipidic_data */ //————————————– // [lipid_form] //————————————– add_shortcode(‘lipid_form’, function() { if (!is_user_logged_in()) { return…Continue reading

[lipid_table]

/** * Title: Lipid Table * Shortcode: [lipid_table] * Description: Displays stored lipid measurements in a Syncfusion Grid: * – Date, Total Chol, HDL-C, Trig */ /******************************************************* * 2) LIPID TABLE SHORTCODE + DELETE AJAX *******************************************************/ add_shortcode(‘lipid_table’, function(){ if(!is_user_logged_in()){ return…Continue reading

[cholesterol_gauge]

/** * SHORTCODE: [cholesterol_gauge] * A CircularGauge from 100..400 mg/dL, * with color-coded ranges: * green, 200..239 => yellow, 240..400 => red */ add_shortcode(‘cholesterol_gauge’, function(){ ob_start(); ?>Continue reading

[cholesterol_stage_syncfusion]

/** * SHORTCODE: [cholesterol_stage_syncfusion] * Syncfusion Grid => 3 categories: “Optimal”, 200..239 => “Intermediate”, ≥240 => “High” */ add_shortcode(‘cholesterol_stage_syncfusion’, function(){ ob_start(); ?>Continue reading

[hdl_gauge]

/** * SHORTCODE: [hdl_gauge] * A CircularGauge for HDL => range 20..120 mg/dL * color-coded: * High risk => red, * 40..60 => borderline => yellow, * >60 => optimal => green */ add_shortcode(‘hdl_gauge’, function(){ ob_start(); ?>Continue reading

[hdl_stage_syncfusion]

/** * SHORTCODE: [hdl_stage_syncfusion] * 3 categories for HDL mg/dL: * “High risk”, 40..60 => “Intermediate”, >60 => “Optimal” */ add_shortcode(‘hdl_stage_syncfusion’, function(){ ob_start(); ?>Continue reading

[tg_gauge]

/** * SHORTCODE: [tg_gauge] * A CircularGauge => 50..600 mg/dL * color-coded: * green, * 150..199 => yellow, * >=200 => red */ add_shortcode(‘tg_gauge’, function(){ ob_start(); ?>Continue reading

[tg_stage_syncfusion]

/** * SHORTCODE: [tg_stage_syncfusion] * 3 categories for Trig mg/dL: * “Optimal”, 150..199 => “Intermediate”, >=200 => “High” */ add_shortcode(‘tg_stage_syncfusion’, function(){ ob_start(); ?>Continue reading

[whr_form]

/******************************************************* * 1) [whr_form] + AJAX insert => whr_submit_data *******************************************************/ add_shortcode(‘whr_form’, function() { if (!is_user_logged_in()) { return “ You must be logged in to add data. “; } ob_start(); ?> Waist Unit Hip Unit Submit Your WHR measurement was saved…Continue reading

[whr_table], [whr_gauge], [whr_stage_syncfusion], [whr_interpretation]

/******************************************************* * 2) [whr_table], [whr_gauge], [whr_stage_syncfusion], [whr_interpretation] *******************************************************/ /** * SHORTCODE: [whr_table] * Lists records from wp_crx_whr_data => date, waist, hip, whr * Real-time => addWhrTableRow, custom delete => whr_delete_data */ add_shortcode(‘whr_table’, function(){ if(!is_user_logged_in()){ return “ You must be logged…Continue reading