Moc / cookbook

Important: NOT READY FOR RELEASE YET!! A fully featured Cookbook plugin for e107, for all your recipes. Includes functionalities such as categorization, sharing, and bookmarking.
Apache License 2.0
2 stars 3 forks source link

add class parameter to sc_cookbook_recipe_thumb() #22

Closed Jimmi08 closed 1 year ago

Jimmi08 commented 2 years ago

Motivation

Your output is '<img class="img-responsive" src="'.$thumbUrl.'" alt="'.$this->sc_cookbook_recipe_name('no_url').'" />';

Image class should be parameter as in other part of core

Thanks

Jimmi08 commented 2 years ago

This is alternative but it is very non standard solution:

 {SETIMAGE: w=0&h=0}
<img class="card-img-top" src="{COOKBOOK_RECIPE_THUMB=url}" alt="{COOKBOOK_RECIPE_NAME=no_url}">
Moc commented 1 year ago

Fixed in #21 and https://github.com/Moc/cookbook/commit/a0783d6fcbb7a60faa4afc8962fec9d74f28a972