This plugin creates an image of the EU tyre label. With an easy button in the classic tinyMCE editor, or with text in a gutenberg block, you can inser …
This plugin creates an image of the legally required EU tyre label with parameter via a shortcode.
[eutl fuel= "A" grip="G" noise="3" db="77" size="" ]
To add the shortcode you have the following options:
Within the shortcode you can specify all the necessary parameter options of the label:
You can specify the size of the resulting image. By default the shortcode generates an image with 225 x 330 pixel. The size parameter determines the width of the image. Possible values are 25 px width up to max 300 px width (at 440 px height).
The shortcode calls a php-function and returns a png-image of the label.
Further information about the EU tyre label requirements and legal background can be found here:
IMPORTANT: We created this plugin as a useful tool for you. We do not claim that it follows 100 % whatever legal regulations and requirements. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY. You have to check legal aspects yourself. If you use this plugin, you agree to this.
You can enter the shortcode manually, or very comfortabel via a button in the tinyMCE editor.(screenshot-01.png).
The button in the tinyMCE editor opens a window where you can input all parameter data. The size parameter is optional. (screenshot-02.png).
The shortcode contains all necessary parameter for the label image.(screenshot-03.png).
The default size of the generated image is 225 x 330 px. But you can use any width from 25 to 300 pixel. The maximum size is 300 x 440 pixel(screenshot-04.png).
A correct shortcode looks like this:
[eutl fuel="A" grip="G" noise="3" db="77" size="" ]
You can specify in the shortcode the parameter size with the width of the generated image in pixel. Minimum width is 25 pixel; maximum is 300 pixel. If you leave this parameter empty, the image will be generated in the default size of 225 x 330 pixel. The maximum is 300 x 440 pixel.
<img src="http:// … /wp-content/plugins/eu-tyre-label-shortcode/php/get-eu-tyre-label.php?fuel=A&grip=G&noise=3&db=77&size=225" alt="EU tyre label" />
This error can occur when the shortcode is not correctly formated. Check that all values in the shortcode are inside double quotes. Also make sure, that an empty value is represented by an empty pair of double quotes.
A correct shortcode looks like this:
[eutl fuel="A" grip="G" noise="3" db="77" size="" ]
Check if the quotation marks in the shortcode are correct. The simple quotation marks are needed, not typographic marks.
The images are not stored, and do not occupy space. They are generated on the fly each time the shortcode is called.
As this is a free plugin, we can only offer limited support to the direct use of the shortcode. If you need further professional service for implementing the EU tyre label in you projects, you can contact us for an individual agreement. Leusing Webdesign
Yes, at Leusing Webdesign we work on a special plugin for WooCommerce with database connection. This will be soon available as premium version.
We got a feedback, that the label should show one more parameter for the type of vehicle, C1, C2 or C3. The coding for this extra parameter is ready. If you like to see this feature, please give us an info, then we will publish and update the new code here.
The plugin contains by nature very little text. Only the parameter fields of the shortcode have some words. So far the version is english. A later version will soon have translation features.
Also we plan a specific german version, too.
Any suggestions are very welcome! Please visit www.leusing.de/kontakt and tell us about the issue you found.
Yes, we appreciate your feedback. Also any financial contributions are welcome! Just visit my website and click on the donate button. Thank you!