=== Apiary Simple Syrup Calculator === Contributors: mist3rm Tags: beekeeping, bees, syrup, calculator, feeding Requires at least: 6.0 Tested up to: 6.9 Requires PHP: 7.4 Stable tag: 2.2.6 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html A modern bee sugar syrup calculator (1:1 & 2:1) with batch calculator, additive dosing, and print-friendly recipes. == Description == Apiary Simple Syrup Calculator helps beekeepers quickly calculate sugar syrup recipes for feeding honey bees. Features: * 1:1 and 2:1 syrup ratios * Choose input and output units (gallons, quarts, cups) * Additive dosage guidance for common syrup additives (HiveAlive, Pro Health, Honey B Healthy, Complete) * Print/PDF-friendly recipe card with logo * Admin settings for branding and colors * Shortcode: [apissc_syrup_calculator] Note: Additive dosing is shown as typical guidance. Always follow your specific product’s label directions. == Installation == 1. Upload the plugin folder to /wp-content/plugins/ or upload the ZIP via Plugins → Add New → Upload Plugin. 2. Activate the plugin through the 'Plugins' menu in WordPress. 3. Add the shortcode [apissc_syrup_calculator] to any page or post. == Frequently Asked Questions == = What ratio should I feed bees? = Use 1:1 in spring to stimulate brood rearing and 2:1 in fall to help bees store food for winter. = Does this calculator support multiple hives? = Yes. Use the Hive feeding planner to scale batches for your apiary. = Can I customize the colors to match my site? = Yes. Go to Settings → TBH Syrup Calculator and adjust the color pickers. == Screenshots == 1. Calculator widget on a page 2. Admin settings screen 3. Print/PDF recipe card == Changelog == = 2.2.6 = * Fix: Calculator now initializes correctly (no missing function/variable references). * Added visible Reset button (data-tbh-action="reset"). = 2.2.5 = * Fix: Button bindings now support both data-tbh-action="calc/reset" and data-tbh-calc/data-apissc-reset attributes. = 2.2.4 = * Fix: Cache-busting for JS/CSS enqueues using file modification times. = 2.2.3 = * Fix: Button handlers now work reliably with deferred/async scripts and page builders (delegated events + auto-init). = 2.2.2 = * Fix: Robust JS initialization (works when scripts are deferred/optimized and DOMContentLoaded already fired). = 2.2.1 = * Fix: Ensure scripts/styles enqueue reliably when the shortcode renders (works in blocks/templates). = 2.2.0 = * Switched to professional weight-based syrup math while still accepting a target finished volume. * Outputs precise sugar/water weights plus approximate volume equivalents. * Removed hive planner logic from the calculator. = 2.1.17 = * Fixed a fatal error caused by malformed config array in asset registration. = 2.1.16 = * Removed Hive Planner settings from admin and frontend. * Added a Reset button to quickly clear the form and results. = 2.1.15 = * Removed Hive Planner feature due to calculation inconsistencies. = 2.1.14 = * Compliance: Prefixed JS globals and any custom action names to avoid conflicts. = 2.1.13 = * Compliance: Renamed main plugin file to match slug. * Compliance: Updated shortcode, class, handles, and option names to use a unique APISSC prefix. = 2.1.11 = * Fixed text domain to match WordPress.org slug requirement. = 2.1.10 = * Updated developer name to mist3rm. = 2.1.9 = * Packaging: Plugin name and slug standardized to "Apiary Simple Syrup Calculator". * Branding: Restored bundled Texas Bee Haus logo inside the app UI. = 2.1.8 = * Packaging: Renamed plugin to a generic name/slug to avoid trademark/confusion flags. * Branding: Removed bundled logo as default; uses bee icon unless a logo URL is configured. = 2.1.7 = * Bugfix: Hive Planner now calculates total syrup as hives × per-hive amount (no double counting). * UI: Added mode switch (Manual batch / Batch calculator) with helper note. = 2.1.6 = * Added GPLv2+ license header fields and LICENSE.txt * Added WordPress.org readme.txt metadata == Upgrade Notice == = 2.1.6 = Licensing and packaging improvements for WordPress.org submission.