Sharraxaad
SMiLE Basic Web is a powerful, modular, and user-friendly WordPress plugin that integrates multiple essential tools into a single solution. It includes a flexible Contact Form system with real-time email preview via the Customizer, a dynamic Sitemap Generator supporting various formats, and a comprehensive Cookie Consent Manager fully compliant with international data protection regulations such as GDPR and ePrivacy. With lightweight, accessible, and brand-adaptable interfaces, SMiLE Basic Web empowers site owners to ensure transparency, control, and legal compliance while maintaining a seamless user experience.
Key Features:
- Customizable contact form with advanced SMTP configuration.
- Support for multiple custom fields, including new types: single/multi-select, user email, and textarea.
- Required field indicators and placeholders.
- Field reordering with drag-and-drop interface.
- Google reCAPTCHA v3 integration for spam protection.
- Send a copy of the form to the user, with a customizable message.
- Insert logo and company link in user copy emails.
- Privacy policy and legal notice checkbox fields with linked pages.
- Optional marketing opt-in field with customizable text.
- Explanation field to describe the purpose of the form.
- Real-time preview of the user email using the WordPress Customizer.
- Modular tab interface supporting additional tools.
- Dynamic generation of:
llms.txt
(text or JSON format).sitemap.xml
sitemap-images.xml
robots.txt
- New “General” tab that centralises global options.
- Toggle to allow safe SVG / SVGZ uploads (sanitised & thumb-ready).
- Automatic image Alt-Text: copies IPTC/XMP “Alt Text Accessibility” (fallback to Title).
-Cookie Consent Panel:- Clean, responsive, and customizable cookie banner.
- Three display sizes: Small, Large, or Fullscreen.
- Consent tab with position options: Left, Center, or Right.
- Auto-hide on Accept or Deny with full keyboard accessibility.
- Multilingual-ready and fully translatable (.pot included).
- Preferences panel for per-script consent using
<details>
. - Add unlimited scripts with name, description, and JS code.
- Scripts injected only on Accept; removed on Deny.
- Consent stored securely in LocalStorage.
- Backend settings for texts, styles, legal pages, and tab behavior.
- Fully compliant with GDPR, CNIL, and ePrivacy.
- Built with vanilla JavaScript – no jQuery dependency.
Use the shortcode [smile_contact_form]
to embed the form on any page or post.
External services
This plugin integrates Google reCAPTCHA v3 to protect the form from spam and abuse.
What the service is and what it is used for:
Google reCAPTCHA v3 analyzes user behavior to block automated spam submissions.
What data is sent and when:
Upon form submission, the following data is sent to Google:
– reCAPTCHA token
– User’s IP address
– Your reCAPTCHA secret key
Links to terms and privacy policy:
– Google Terms of Service
– Google Privacy PolicySMiLE Basic Web is actively maintained. If you find it helpful, consider supporting development through donations. Contributions and feedback are always welcome!
Sawir-shaashado
Screenshot-1.png: Admin interface showing SMTP, reCAPTCHA, and custom field configuration. Screenshot-2.png: Appearance customization for the contact form using WordPress Customizer. Screenshot-3.png: Live preview of the email sent to users via the WordPress Customizer. Screenshot-4.png: Sitemaps settings tab for configuring llms.txt, sitemap.xml, and robots.txt. Screenshot-5.png: Enable secure SVG/SVGZ uploads and auto-fill image ALT text from EXIF metadata for better accessibility. Screenshot-6.png: Backend settings panel for customizing colors, text and scripts. Screenshot-7.png: Cookie banner with preferences toggle, script injection only after consent is given.
Rakibaad
- Upload the
smile-basic-web
plugin folder to your/wp-content/plugins/
directory. - Activate the plugin through the “Plugins” menu in your WordPress admin panel.
- Go to the “SMiLE Basic Web” settings page in the admin menu.
- Configure the Contact Form and other tools in their respective tabs.
- Insert the form anywhere using the
[smile_contact_form]
shortcode. - In the “Sitemaps” tab, activate the dynamic generation of llms.txt, sitemap.xml, sitemap-images.xml and robots.txt.
- Enable the Cookie Notice and configure the appearance and behavior of the panel.
- Optionally add third-party tracking scripts and descriptions in the Preferences section.
SBI
-
What is SMiLE Basic Web?
-
A feature-rich plugin with a modular system for Contact Form, sitemaps, and email customization.
-
How can I add or reorder custom fields?
-
Navigate to the “Custom Fields” section under the “Contact Form” tab. Use the admin interface to add, edit, delete, and reorder fields.
-
How does the user copy feature work?
-
If enabled, users receive an HTML email containing their submitted data, a custom message, your logo, and a link to your company.
-
Can I preview the email sent to users?
-
Yes, go to “Customize” > “Email Preview” in the WordPress Customizer to see how the email will look.
-
Are privacy and marketing consents included?
-
Yes. You can enable privacy and legal notice checkboxes and add a marketing opt-in field with custom text.
-
What are the new features in 1.2.0?
-
This version introduces a dedicated “Sitemaps” tab where you can generate llms.txt, sitemap.xml, robots.txt, and images sitemap dynamically.
-
Does this plugin block scripts until consent is given?
-
Yes. Scripts are injected only after the user gives consent, and only those matching accepted categories.
-
Is it GDPR-compliant?
-
Yes. This plugin was built with GDPR and ePrivacy Directive in mind.
-
Can I add my own scripts or analytics tools?
-
Absolutely. You can register any custom script in the admin panel, along with a name and purpose.
Ka-qaybgalayaasha & Horumariyayaasha
“SMiLE Basic Web” waa softiweer il furan. Dadka soo socda ayaa wax ku biiriyay kaabahan.
Ka-qaybgalayaasha“SMiLE Basic Web” waxaa lagu tarjumay 2 luqadood. Way ku mahadsan yihiin turjumaannada ka-qaybqaadashadooda.
Ku tarjun “SMiLE Basic Web” luqaddaada.
Ma xiisaynaysaa horumarinta?
Baadh koodka, fiiri bakhaarka SVN, ama iska qor diiwaanka horumarinta adigoo adeegsanaya RSS.
Isbeddellada
1.3.0
- NEW: Added “General” tab; now loaded first and order overridable via filters.
- NEW: Safe SVG / SVGZ upload support with sanitisation, dedicated checkbox in General tab.
- NEW: Auto-populate image Alternative-Text from embedded XMP AltTextAccessibility or IPTC Title.
- UPDATED: Uninstall script now deletes preview page, options, transients and cache keys across all sites.
- Initial public release of Cookie Consent functionality.
- Includes responsive and accessible cookie panel.
1.2.1
- FIXED: Resolved settings conflicts between tabs by properly separating
option_group
andoption_page
inregister_setting()
. - FIXED: Fixed issue that prevented the “SMiLE Basic Web Form Appearance” section from appearing in the WordPress Customizer.
- UPDATED: Fully implemented modular tab architecture (
SBWSCF_Tab_Manager
andSBWSCF_Tab_Interface
), allowing new features to be added without altering the plugin core. - UPDATED: Refactored script and style loading system to ensure assets are enqueued only when their corresponding tab is active.
- UPDATED: Integrated JavaScript internationalization using
wp.i18n.__()
and connected it withwp_set_script_translations()
to enable translations via.po
files. - FIXED: Backend reCAPTCHA field validation improved for dynamic required fields.
- NEW: Full Multisite support added to
uninstall.php
, cleaning up options, transients, cron jobs, and custom pages network-wide. - FIXED: Ensured the email preview page (
sbwscf-customizer-email-preview
) is created and properly linked to the Customizer for live email preview. - FIXED: Removed duplicate URL entries in
sitemap.xml
to prevent confusion and ensure each canonical URL appears only once. - UPDATED:
<lastmod>
timestamps in bothsitemap.xml
andsitemap-images.xml
now include full ISO-8601 date and time for greater precision. - FIXED: Included images embedded in pages so they now appear correctly in sitemap-images.xml.
1.2.0
- NEW: Added “Sitemaps” tab with dynamic generation of llms.txt, sitemap.xml, sitemap-images.xml, and robots.txt.
- NEW: Choose between TXT or JSON format for llms.txt.
- NEW: Filter by content types and set priority category in sitemap output.
1.1.0
- NEW: Added support for select (single/multiple) and “user email” field types.
- NEW: Added drag-and-drop field reordering.
- NEW: Added form explanation field.
- NEW: Added Legal Notice checkbox with link to a specific page.
- NEW: Added optional Marketing Opt-In checkbox with custom label.
- NEW: Introduced real-time email preview with WordPress Customizer.
- NEW: Added validation to prevent duplicate field names.
- UPDATED: Improved sanitization constants and structure.
- UPDATED: Modularized codebase for maintainability.
1.0.0
- Initial release of SMiLE Basic Web.
- Integrated Contact Form with SMTP settings.
- Supported custom fields with placeholders and required markers.
- Enabled user copy email with company logo and link.
- Added privacy policy checkbox.
- Integrated Google reCAPTCHA v3.