From 44d75eb3c14f1efa9a29ee329820c3db6863a7a2 Mon Sep 17 00:00:00 2001 From: ehernandez Date: Fri, 9 Nov 2018 09:51:09 -0600 Subject: [PATCH] Added Image component --- .../components/section/image/.content.xml | 6 ++ .../section/image/_cq_dialog/.content.xml | 91 +++++++++++++++++++ .../section/image/_cq_editConfig.xml | 82 +++++++++++++++++ .../components/section/image/component.html | 13 +++ .../section/image/xk.config/.content.xml | 5 + 5 files changed, 197 insertions(+) create mode 100644 demoapps/src/main/content/jcr_root/apps/dantademo/components/section/image/.content.xml create mode 100644 demoapps/src/main/content/jcr_root/apps/dantademo/components/section/image/_cq_dialog/.content.xml create mode 100644 demoapps/src/main/content/jcr_root/apps/dantademo/components/section/image/_cq_editConfig.xml create mode 100644 demoapps/src/main/content/jcr_root/apps/dantademo/components/section/image/component.html create mode 100644 demoapps/src/main/content/jcr_root/apps/dantademo/components/section/image/xk.config/.content.xml diff --git a/demoapps/src/main/content/jcr_root/apps/dantademo/components/section/image/.content.xml b/demoapps/src/main/content/jcr_root/apps/dantademo/components/section/image/.content.xml new file mode 100644 index 0000000..32a42cb --- /dev/null +++ b/demoapps/src/main/content/jcr_root/apps/dantademo/components/section/image/.content.xml @@ -0,0 +1,6 @@ + + diff --git a/demoapps/src/main/content/jcr_root/apps/dantademo/components/section/image/_cq_dialog/.content.xml b/demoapps/src/main/content/jcr_root/apps/dantademo/components/section/image/_cq_dialog/.content.xml new file mode 100644 index 0000000..1663a14 --- /dev/null +++ b/demoapps/src/main/content/jcr_root/apps/dantademo/components/section/image/_cq_dialog/.content.xml @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/demoapps/src/main/content/jcr_root/apps/dantademo/components/section/image/_cq_editConfig.xml b/demoapps/src/main/content/jcr_root/apps/dantademo/components/section/image/_cq_editConfig.xml new file mode 100644 index 0000000..3d51f22 --- /dev/null +++ b/demoapps/src/main/content/jcr_root/apps/dantademo/components/section/image/_cq_editConfig.xml @@ -0,0 +1,82 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/demoapps/src/main/content/jcr_root/apps/dantademo/components/section/image/component.html b/demoapps/src/main/content/jcr_root/apps/dantademo/components/section/image/component.html new file mode 100644 index 0000000..f3b2147 --- /dev/null +++ b/demoapps/src/main/content/jcr_root/apps/dantademo/components/section/image/component.html @@ -0,0 +1,13 @@ +{%! +* simple image component +%} + +
+ {%#if content.fileReference %} + + {% content.alt %} + + {%else%} + image component + {%/if%} +
diff --git a/demoapps/src/main/content/jcr_root/apps/dantademo/components/section/image/xk.config/.content.xml b/demoapps/src/main/content/jcr_root/apps/dantademo/components/section/image/xk.config/.content.xml new file mode 100644 index 0000000..63eda3e --- /dev/null +++ b/demoapps/src/main/content/jcr_root/apps/dantademo/components/section/image/xk.config/.content.xml @@ -0,0 +1,5 @@ + +