diff --git a/templates/.DS_Store b/templates/.DS_Store new file mode 100644 index 0000000..96a97e8 Binary files /dev/null and b/templates/.DS_Store differ diff --git a/templates/djangocms_picture/default/.aldryn-folder b/templates/djangocms_picture/default/.aldryn-folder new file mode 100644 index 0000000..e69de29 diff --git a/templates/djangocms_picture/default/picture.html b/templates/djangocms_picture/default/picture.html new file mode 100644 index 0000000..1b74a77 --- /dev/null +++ b/templates/djangocms_picture/default/picture.html @@ -0,0 +1,72 @@ +{% load thumbnail %} + +{% if picture_link %} + +{% endif %} + +{# start render figure/figcaption #} +{% if instance.caption_text %} +
+{% endif %} +{# end render figure/figcaption #} + +{{ instance.picture.default_alt_text }} + +{# start render figure/figcaption #} +{% if instance.caption_text %} +
{{ instance.caption_text }}
+
+{% endif %} +{# end render figure/figcaption #} + +{% if picture_link %} +
+{% endif %} + +{% comment %} + # https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img + # https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figure + # https://github.com/divio/django-filer/blob/master/filer/models/imagemodels.py + # http://easy-thumbnails.readthedocs.io/en/2.1/usage/#templates + {{ instance.picture }} + # Available variables: + {{ instance.width }} + {{ instance.height }} + {{ instance.alignment }} + {{ instance.caption_text }} + {{ instance.attributes_str }} + # picture helper + {{ instance.get_size }} or {{ picture_size }} + # link settings + {{ instance.link_url }} + {{ instance.link_page }} + {{ instance.link_target }} + {{ instance.link_attributes_str }} + # link helper + {{ instance.get_link }} or {{ picture_link }} + # cropping settings + {{ instance.use_automatic_scaling }} + {{ instance.use_no_cropping }} + {{ instance.use_crop }} + {{ instance.use_upscale }} + {{ instance.thumbnail_options }} + # activate DJANGOCMS_PICTURE_NESTING to enable nested plugins: + {% for plugin in instance.child_plugin_instances %} + {% render_plugin plugin %} + {% endfor %} +{% endcomment %}