[sugar_form] v6

/** * Title: Sugar Form * Shortcode: [sugar_form] * Description: Collects Glucose (mg/dL or mmol/L) + optional A1C, inserts into wp_crx_sugar_data. */ /******************************************************* * 1) SUGAR FORM SHORTCODE + INSERT AJAX *******************************************************/ add_shortcode(‘sugar_form’, function() { // Only for logged in…Continue reading

[sugar_table] v6

/******************************************************* * 2) SUGAR TABLE SHORTCODE + DELETE AJAX *******************************************************/ /** * Shortcode: [sugar_table] * – Displays sugar data (Date, Glucose, A1C) in a Syncfusion Grid * – Allows row deletion via a Bootstrap modal */ add_shortcode(‘sugar_table’, function(){ if(!is_user_logged_in()){ return…Continue reading

[hba1c_gauge] v6

/** * Title: HbA1C Gauge * Shortcode: [hba1c_gauge] * Description: A 0..14% circular gauge for A1C, mimicking the same style as [glucose_gauge]. */ add_shortcode(‘hba1c_gauge’, function(){ ob_start(); ?>Continue reading

[glucose_gauge] v6

/** * Title: Glucose Gauge * Shortcode: [glucose_gauge] * Description: A 40..600 mg/dL circular gauge. */ add_shortcode(‘glucose_gauge’, function(){ ob_start(); ?>Continue reading

[glucose_interpretation] v6

/** * SHORTCODE: [glucose_interpretation] * – Interprets a fasting glucose reading: * Normal, Prediabetes, else => Diabetes * – Calls highlightGlucoseStageRow(…) if present */ add_shortcode(‘glucose_interpretation’, function() { ob_start(); ?> No glucose measurement found yet. Please submit a measurement.Continue reading

[hba1c_interpretation]

/** * SHORTCODE: [hba1c_interpretation] * – Interprets A1C: * Normal, Prediabetes, else => Diabetes * – Calls highlightHba1cStageRow(…) if present */ add_shortcode(‘hba1c_interpretation’, function(){ ob_start(); ?> No A1C measurement found yet. Please submit a measurement.Continue reading

[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