WP Manifestindependent plugin directory
manifest / content / dietary-icon-generator

Dietary Icon Generator

Create beautiful dietary badges with food-specific graphics - perfect for menus and food photography. WordPress plugin.

by Arnel Go · github.com/adonix26/dietary-icon-generator · website

1stars
1forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/adonix26/dietary-icon-generator/archive/refs/heads/main.zip

Create beautiful dietary badges with food-specific graphics - perfect for menus and food photography.

Description

The Dietary Icon Generator plugin allows you to create and display professional dietary restriction icons/badges on your WordPress site. Perfect for restaurants, food blogs, recipe sites, and catering businesses.

Features

  • 6 Dietary Icon Types: Vegan, Vegetarian, Gluten-Free, Dairy-Free, Egg-Free, and Halal
  • 5 Visual Styles: Flat, Subtle 3D, Glossy, Minimal Ring, and Illustrated (with food graphics)
  • Multiple Size Options: Generate icons from 128px to 1024px
  • Easy Shortcodes: Display icons anywhere with simple shortcodes
  • Customizable: Configure default styles and sizes
  • Performance Optimized: Optional icon caching for faster loading
  • Responsive: Works perfectly on all devices

Installation

  1. Upload the dietary-icon-generator folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Go to 'Dietary Icons' in your admin menu to configure settings and generate icons

Usage

Shortcodes

Display a Single Icon

[dietary_icon type="vegan" style="subtle" size="64"]

Parameters:

  • type: vegan, vegetarian, gluten-free, dairy-free, egg-free, halal
  • style: flat, subtle, glossy, minimal, illustrated
  • size: Icon size in pixels (default: 64)
  • class: Additional CSS classes

Display a Badge with Label

[dietary_badge type="vegan" label="Vegan Friendly" style="subtle" size="32"]

Parameters:

  • type: vegan, vegetarian, gluten-free, dairy-free, egg-free, halal
  • label: Custom label text (optional, defaults to icon name)
  • style: flat, subtle, glossy, minimal, illustrated
  • size: Icon size in pixels (default: 32)

Display Multiple Icons

[dietary_icons types="vegan,gluten-free,dairy-free" style="subtle" size="36" labels="true"]

Parameters:

  • types: Comma-separated list of icon types
  • style: flat, subtle, glossy, minimal, illustrated
  • size: Icon size in pixels (default: 36)
  • labels: Show labels (true/false, default: false)

Admin Interface

Navigate to Dietary Icons in your WordPress admin menu to:

  • Generate and download icons in various styles and sizes
  • View live examples
  • Configure plugin settings
  • See shortcode documentation

Icon Types

  • Vegan (VG): Plant-based, no animal products
  • Vegetarian (V): No meat, may include dairy/eggs
  • Gluten-Free (GF): No wheat, barley, or rye
  • Dairy-Free (DF): No milk products
  • Egg-Free (EF): No eggs
  • Halal (H): Islamic dietary standards

Icon Styles

  • Flat: Simple solid color design
  • Subtle 3D: Gentle gradient with soft shadow
  • Glossy: Shiny appearance with highlights
  • Minimal Ring: Clean outline style
  • Illustrated: Includes relevant food graphics

Settings

  • Default Icon Size: Set the default size for generated icons
  • Default Icon Style: Choose your preferred style
  • Enable Shortcodes: Turn shortcodes on/off
  • Cache Icons: Save generated icons for better performance

Requirements

  • WordPress 5.0 or higher
  • PHP 7.4 or higher

Support

For support, feature requests, or bug reports, please visit:

Changelog

1.0.0

  • Initial release
  • 6 dietary icon types
  • 5 visual styles
  • Admin interface for icon generation
  • Shortcode support
  • Caching system
  • Responsive design

How to Contribute

We welcome contributions! Here's how you can help:

🐛 Reporting Bugs

  1. Check if the bug has already been reported in Issues
  2. If not, open a new issue
  3. Include:
    • WordPress version
    • PHP version
    • Browser & version
    • Steps to reproduce
    • Expected vs actual behavior
    • Screenshots (if applicable)

💡 Suggesting Features

  1. Open a new issue with the "Feature Request" label
  2. Describe the feature and why it would be useful
  3. Include any design mockups or examples

🔧 Submitting Code Changes

  1. Fork the repository
  2. Clone your fork:
    git clone https://github.com/your-username/dietary-icon-generator.git
  3. Create a branch for your feature:
    git checkout -b feature/your-feature-name
  4. Make your changes following WordPress coding standards
  5. Test your changes thoroughly
  6. Commit with clear messages:
    git commit -m "Add: brief description of changes"
  7. Push to your fork:
    git push origin feature/your-feature-name
  8. Submit a Pull Request with:
    • Clear description of changes
    • Link to related issue (if any)
    • Screenshots of UI changes (if applicable)

📝 Coding Standards

  • Follow WordPress Coding Standards
  • Use meaningful variable and function names
  • Add comments for complex logic
  • Keep functions focused and modular
  • Test with WordPress debug mode enabled

🧪 Testing Checklist

Before submitting:

  • [ ] Plugin activates without errors
  • [ ] Admin interface loads correctly
  • [ ] Shortcodes work on frontend
  • [ ] Icons generate in all 5 styles
  • [ ] No PHP warnings or notices
  • [ ] Responsive on mobile devices

Thank you for contributing! 🙏

License

GPL v2 or later

Credits

Created by Adonix