2022-10-28 17:07:13 +02:00
|
|
|
<template>
|
2022-11-13 22:39:25 +01:00
|
|
|
<div
|
|
|
|
|
v-if="myel"
|
|
|
|
|
:class="
|
|
|
|
|
(editOn ? ` clEditDiv` : ``) +
|
|
|
|
|
`` +
|
|
|
|
|
(!myel.active ? ` clEditNotActive` : ``)
|
|
|
|
|
"
|
2022-11-11 18:16:28 +01:00
|
|
|
>
|
2022-11-13 22:39:25 +01:00
|
|
|
<div>
|
|
|
|
|
<div v-if="myel.type === shared_consts.ELEMTYPE.TEXT">
|
|
|
|
|
<div
|
2022-11-18 18:54:30 +01:00
|
|
|
:class="myel.class + (editOn ? ` clEdit` : ``) + getClass() + ` `+ myel.class_anim"
|
2022-11-13 22:39:25 +01:00
|
|
|
@click="clickOnElem"
|
2022-11-10 19:32:56 +01:00
|
|
|
>
|
2022-11-13 22:39:25 +01:00
|
|
|
{{ myel.container }}
|
|
|
|
|
</div>
|
2022-11-10 19:32:56 +01:00
|
|
|
</div>
|
2022-11-11 18:16:28 +01:00
|
|
|
<div
|
2022-11-13 22:39:25 +01:00
|
|
|
v-if="myel.type === shared_consts.ELEMTYPE.CARD"
|
|
|
|
|
:class="myel.span ? '' : ''"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
:class="myel.class + (editOn ? ` clEdit` : ``) + getClass()"
|
|
|
|
|
@click="clickOnElem"
|
|
|
|
|
>
|
|
|
|
|
<div v-for="(rec, ind) in myel.listcards" :key="ind" >
|
2022-11-17 08:10:43 +01:00
|
|
|
<q-card :class="`my-card center_img bordered ` + myel.class3"
|
|
|
|
|
:style="rec.style">
|
2022-11-18 18:54:30 +01:00
|
|
|
<q-img :class="myel.class_anim" :src="tools.getImgFileByElem(myel, rec)" />
|
2022-11-13 22:39:25 +01:00
|
|
|
<q-card-section>
|
|
|
|
|
<div :class="` ` + rec.size" :style="`color: ` + rec.color">
|
|
|
|
|
{{ rec.alt }}
|
|
|
|
|
</div>
|
|
|
|
|
<div :class="`q-mt-sm q-mb-xs `" v-html="rec.content"></div>
|
|
|
|
|
<div
|
|
|
|
|
v-if="rec.description"
|
|
|
|
|
class="text-caption"
|
|
|
|
|
:style="`color: ` + rec.colorsub"
|
|
|
|
|
>
|
|
|
|
|
{{ rec.description }}
|
|
|
|
|
</div>
|
|
|
|
|
</q-card-section>
|
2022-11-12 11:52:20 +01:00
|
|
|
|
2022-11-13 22:39:25 +01:00
|
|
|
<!--<q-card-actions>
|
2022-11-12 11:52:20 +01:00
|
|
|
<q-btn flat color="dark" label="Share"/>
|
|
|
|
|
<q-btn flat color="primary" label="Book"/>
|
|
|
|
|
|
|
|
|
|
<q-space/>
|
|
|
|
|
|
|
|
|
|
<q-btn
|
|
|
|
|
color="grey"
|
|
|
|
|
round
|
|
|
|
|
flat
|
|
|
|
|
dense
|
|
|
|
|
:icon="expanded ? 'keyboard_arrow_up' : 'keyboard_arrow_down'"
|
|
|
|
|
@click="expanded = !expanded"
|
|
|
|
|
/>
|
|
|
|
|
</q-card-actions>-->
|
|
|
|
|
|
2022-11-13 22:39:25 +01:00
|
|
|
<!--<q-slide-transition>
|
|
|
|
|
<div v-show="expanded">
|
|
|
|
|
<q-separator />
|
2022-11-18 18:54:30 +01:00
|
|
|
<q-card-section class="text-subtitle2">
|
2022-11-10 19:32:56 +01:00
|
|
|
|
2022-11-13 22:39:25 +01:00
|
|
|
</q-card-section>
|
|
|
|
|
</div>
|
|
|
|
|
</q-slide-transition>
|
|
|
|
|
-->
|
|
|
|
|
</q-card>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2022-11-10 19:32:56 +01:00
|
|
|
</div>
|
|
|
|
|
|
2022-11-13 22:39:25 +01:00
|
|
|
<div v-if="myel.type === shared_consts.ELEMTYPE.MARGINI">
|
2022-11-11 18:16:28 +01:00
|
|
|
<div
|
2022-11-12 11:52:20 +01:00
|
|
|
:class="myel.class + (editOn ? ` clEdit` : ``) + getClass()"
|
2022-11-13 22:39:25 +01:00
|
|
|
@click="clickOnElem"
|
|
|
|
|
:style="`margin: ` + myel.size"
|
2022-11-10 19:32:56 +01:00
|
|
|
>
|
2022-11-13 22:39:25 +01:00
|
|
|
|
|
|
|
|
</div>
|
2022-11-10 19:32:56 +01:00
|
|
|
</div>
|
2022-11-13 22:39:25 +01:00
|
|
|
<div v-else-if="myel.type === shared_consts.ELEMTYPE.TITLE">
|
|
|
|
|
<div>
|
|
|
|
|
<div
|
2022-11-18 18:54:30 +01:00
|
|
|
:class="myel.class + (editOn ? ` clEdit` : ``) + getClass()+ ` `+ myel.class_anim"
|
2022-11-13 22:39:25 +01:00
|
|
|
@click="clickOnElem"
|
|
|
|
|
>
|
|
|
|
|
<CTitle
|
|
|
|
|
:imgbackground="myel.imgback"
|
|
|
|
|
:headtitle="myel.title"
|
|
|
|
|
:sizes="myel.size"
|
|
|
|
|
:styleadd="myel.styleadd"
|
|
|
|
|
>
|
|
|
|
|
</CTitle>
|
|
|
|
|
</div>
|
2022-11-11 18:16:28 +01:00
|
|
|
</div>
|
2022-11-10 19:32:56 +01:00
|
|
|
</div>
|
2022-11-13 22:39:25 +01:00
|
|
|
<div v-else-if="myel.type === shared_consts.ELEMTYPE.IMGTITLE">
|
|
|
|
|
<div>
|
|
|
|
|
<div
|
2022-11-18 18:54:30 +01:00
|
|
|
:class="myel.class + (editOn ? ` clEdit` : ``) + getClass() + ` `+ myel.class_anim"
|
2022-11-13 22:39:25 +01:00
|
|
|
@click="clickOnElem"
|
|
|
|
|
>
|
|
|
|
|
<CImgTitle
|
2022-11-18 18:54:30 +01:00
|
|
|
v-if="myel.image"
|
|
|
|
|
:src="tools.getImgFileByElem(myel, rec)"
|
|
|
|
|
:title="myel.container"
|
|
|
|
|
:legendinside="myel.container2"
|
2022-11-13 22:39:25 +01:00
|
|
|
>
|
|
|
|
|
</CImgTitle>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2022-11-18 18:54:30 +01:00
|
|
|
</div> <div v-else-if="myel.type === shared_consts.ELEMTYPE.IMGPOSTER">
|
|
|
|
|
<div>
|
|
|
|
|
<div
|
|
|
|
|
:class="myel.class + (editOn ? ` clEdit` : ``) + getClass()"
|
|
|
|
|
@click="clickOnElem"
|
|
|
|
|
>
|
|
|
|
|
<CImgPoster
|
|
|
|
|
v-if="myel.image"
|
|
|
|
|
:src="tools.getImgFileByElem(myel, rec)"
|
|
|
|
|
:title="myel.container"
|
|
|
|
|
:myheight="myel.heightimg"
|
|
|
|
|
:colorTitle="myel.color"
|
|
|
|
|
:classTitle="myel.class4"
|
|
|
|
|
:vertalign="myel.vertalign"
|
|
|
|
|
:speed="myel.speed"
|
|
|
|
|
:classSubtitle="myel.class3"
|
|
|
|
|
:colorSubtitle="myel.colorsub"
|
|
|
|
|
:legendinside="myel.container2"
|
|
|
|
|
:logo="tools.getImgFileByFilename(myel, myel.container3)"
|
|
|
|
|
:logoheight="myel.height"
|
|
|
|
|
:logowidth="myel.width"
|
|
|
|
|
:fit="myel.fit"
|
|
|
|
|
:class_anim="myel.class_anim"
|
|
|
|
|
:class_anim2="myel.class_anim2"
|
|
|
|
|
>
|
|
|
|
|
</CImgPoster>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2022-11-10 19:32:56 +01:00
|
|
|
</div>
|
2022-11-13 22:39:25 +01:00
|
|
|
<div v-else-if="myel.type === shared_consts.ELEMTYPE.HTML">
|
|
|
|
|
<div>
|
|
|
|
|
<div
|
2022-11-18 18:54:30 +01:00
|
|
|
:class="myel.class + (editOn ? ` clEdit` : ``) + getClass() + ` `+ myel.class_anim"
|
2022-11-13 22:39:25 +01:00
|
|
|
@click="clickOnElem"
|
|
|
|
|
v-html="myel.containerHtml"
|
|
|
|
|
></div>
|
|
|
|
|
</div>
|
2022-11-10 19:32:56 +01:00
|
|
|
</div>
|
2022-11-13 22:39:25 +01:00
|
|
|
<div v-else-if="myel.type === shared_consts.ELEMTYPE.IMAGE">
|
|
|
|
|
<div class="text-center">
|
|
|
|
|
<div
|
2022-11-18 18:54:30 +01:00
|
|
|
:class="myel.class + (editOn ? ` clEdit` : ``) + getClass() + ` `+ myel.class_anim"
|
2022-11-13 22:39:25 +01:00
|
|
|
@click="clickOnElem"
|
2022-11-10 19:32:56 +01:00
|
|
|
>
|
2022-11-13 22:39:25 +01:00
|
|
|
<q-img
|
2022-11-18 18:54:30 +01:00
|
|
|
:src="tools.getImgFileByElem(myel.image)"
|
2022-11-13 22:39:25 +01:00
|
|
|
:fit="myel.fit"
|
|
|
|
|
class="img"
|
|
|
|
|
:width="myel.widthimg ? myel.widthimg : undefined"
|
|
|
|
|
:height="myel.heightimg ? myel.heightimg : undefined"
|
|
|
|
|
></q-img>
|
|
|
|
|
</div>
|
2022-11-10 19:32:56 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2022-11-13 22:39:25 +01:00
|
|
|
|
|
|
|
|
<div v-else-if="myel.type === shared_consts.ELEMTYPE.IMAGEUPLOAD">
|
|
|
|
|
<div class="text-center">
|
|
|
|
|
<div
|
2022-11-18 18:54:30 +01:00
|
|
|
:class="myel.class + (editOn ? ` clEdit` : ``) + getClass() + ` `+ myel.class_anim"
|
2022-11-13 22:39:25 +01:00
|
|
|
@click="clickOnElem"
|
|
|
|
|
>
|
|
|
|
|
<q-img
|
2022-11-18 18:54:30 +01:00
|
|
|
:src="tools.getImgFileByElem(myel)"
|
2022-11-13 22:39:25 +01:00
|
|
|
:fit="myel.fit"
|
|
|
|
|
class="img"
|
|
|
|
|
:width="myel.widthimg ? myel.widthimg : undefined"
|
|
|
|
|
:height="myel.heightimg ? myel.heightimg : undefined"
|
|
|
|
|
></q-img>
|
|
|
|
|
</div>
|
2022-11-11 18:16:28 +01:00
|
|
|
</div>
|
2022-10-28 17:07:13 +02:00
|
|
|
</div>
|
2022-11-13 22:39:25 +01:00
|
|
|
<div v-else-if="myel.type === shared_consts.ELEMTYPE.VIDEO">
|
|
|
|
|
<div
|
|
|
|
|
:class="myel.class + (editOn ? ` clEdit` : ``) + getClass()"
|
|
|
|
|
@click="clickOnElem"
|
2022-11-10 19:32:56 +01:00
|
|
|
>
|
2022-11-13 22:39:25 +01:00
|
|
|
<q-video
|
|
|
|
|
v-if="!!rec.container"
|
|
|
|
|
:src="rec.container"
|
|
|
|
|
:ratio="rec.ratio"
|
|
|
|
|
>
|
|
|
|
|
</q-video>
|
|
|
|
|
</div>
|
2022-11-10 19:32:56 +01:00
|
|
|
</div>
|
2022-11-13 22:39:25 +01:00
|
|
|
<div v-else-if="myel.type === shared_consts.ELEMTYPE.FOOTER">
|
|
|
|
|
<div
|
|
|
|
|
:class="myel.class + (editOn ? ` clEdit` : ``) + getClass()"
|
|
|
|
|
@click="clickOnElem"
|
|
|
|
|
>
|
|
|
|
|
<LandingFooter></LandingFooter>
|
|
|
|
|
</div>
|
2022-11-11 18:16:28 +01:00
|
|
|
</div>
|
2022-11-13 22:39:25 +01:00
|
|
|
<div v-else-if="myel.type === shared_consts.ELEMTYPE.PAGE">
|
|
|
|
|
<div
|
|
|
|
|
:class="myel.class + (editOn ? ` clEdit` : ``) + getClass()"
|
|
|
|
|
@click="clickOnElem"
|
|
|
|
|
>
|
|
|
|
|
<CMyPage :mypath="myel.container"> </CMyPage>
|
|
|
|
|
</div>
|
2022-11-12 11:52:20 +01:00
|
|
|
</div>
|
2022-11-13 22:39:25 +01:00
|
|
|
<div v-else-if="myel.type === shared_consts.ELEMTYPE.PAGEINTRO">
|
|
|
|
|
<div
|
|
|
|
|
:class="myel.class + (editOn ? ` clEdit` : ``) + getClass()"
|
|
|
|
|
@click="clickOnElem"
|
2022-11-10 19:32:56 +01:00
|
|
|
>
|
2022-11-13 22:39:25 +01:00
|
|
|
<CMyPageIntro
|
|
|
|
|
:mypath="myel.container"
|
|
|
|
|
:maxheightimg="myel.heightimg"
|
|
|
|
|
:maxwidthimg="myel.widthimg"
|
|
|
|
|
:link="myel.link"
|
|
|
|
|
></CMyPageIntro>
|
|
|
|
|
</div>
|
2022-11-10 19:32:56 +01:00
|
|
|
</div>
|
2022-11-13 22:39:25 +01:00
|
|
|
<div
|
|
|
|
|
v-else-if="myel.type === shared_consts.ELEMTYPE.CAROUSEL_IDISCIPLINE"
|
|
|
|
|
>
|
|
|
|
|
<CCardCarousel :myarr="getArrDisciplines()"> </CCardCarousel>
|
2022-11-11 18:16:28 +01:00
|
|
|
</div>
|
2022-11-13 22:39:25 +01:00
|
|
|
<div v-else-if="myel.type === shared_consts.ELEMTYPE.OPENSTREETMAP">
|
|
|
|
|
<div
|
|
|
|
|
:class="myel.class + (editOn ? ` clEdit` : ``) + getClass()"
|
|
|
|
|
@click="clickOnElem"
|
2022-11-10 19:32:56 +01:00
|
|
|
>
|
2022-11-13 22:39:25 +01:00
|
|
|
<div v-if="myel.container">
|
|
|
|
|
<!-- Da Fare -->
|
|
|
|
|
<COpenStreetMap
|
|
|
|
|
:imgmap="myel.container"
|
|
|
|
|
:urlmap="myel.container2"
|
|
|
|
|
:title="myel.container3"
|
|
|
|
|
:coordinates="myel.containerHtml"
|
|
|
|
|
:coord_big="myel.link"
|
|
|
|
|
>
|
|
|
|
|
</COpenStreetMap>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2022-11-11 18:16:28 +01:00
|
|
|
</div>
|
2022-11-13 22:39:25 +01:00
|
|
|
<div v-else-if="myel.type === shared_consts.ELEMTYPE.CAROUSEL_IMGS">
|
|
|
|
|
<section
|
2022-11-17 08:10:43 +01:00
|
|
|
class="padding_gallery bg-white text-grey-10 text-center"
|
2022-11-13 22:39:25 +01:00
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
:class="myel.class + (editOn ? ` clEdit` : ``) + getClass()"
|
|
|
|
|
@click="clickOnElem"
|
2022-11-11 18:16:28 +01:00
|
|
|
>
|
2022-11-10 19:32:56 +01:00
|
|
|
<q-carousel
|
|
|
|
|
swipeable
|
2022-11-13 22:39:25 +01:00
|
|
|
animated
|
|
|
|
|
:autoplay="myel.container2 ? myel.container2 * 1000 : 8000"
|
|
|
|
|
v-model="slide2"
|
|
|
|
|
arrows
|
|
|
|
|
:fit="myel.fit"
|
|
|
|
|
:thumbnails="myel.parambool2"
|
2022-11-10 19:32:56 +01:00
|
|
|
infinite
|
2022-11-17 08:10:43 +01:00
|
|
|
:height="myel.heightimg ? myel.heightimg.toString() : tools.getheightgallery()"
|
2022-11-10 19:32:56 +01:00
|
|
|
>
|
2022-11-17 08:10:43 +01:00
|
|
|
|
2022-11-10 19:32:56 +01:00
|
|
|
<q-carousel-slide
|
2022-11-13 22:39:25 +01:00
|
|
|
v-for="(rec, index) in myel.list"
|
|
|
|
|
:key="index"
|
|
|
|
|
:name="index"
|
|
|
|
|
:img-src="
|
2022-11-17 08:10:43 +01:00
|
|
|
getsrcbyimg(`upload/pages/` + myel.path + `/` + rec.imagefile)
|
2022-11-13 22:39:25 +01:00
|
|
|
"
|
|
|
|
|
:alt="rec.alt"
|
|
|
|
|
class="carousel_slide"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
v-if="myel.parambool"
|
|
|
|
|
class="absolute-bottom custom-caption"
|
|
|
|
|
style="margin-bottom: 70px"
|
|
|
|
|
>
|
|
|
|
|
<div class="text-h5">
|
|
|
|
|
<span class="text-h6 text-grey-1 shadow-max"
|
|
|
|
|
>{{ index + 1 }}.
|
|
|
|
|
</span>
|
|
|
|
|
<span v-if="rec.alt" class="text-h6 text-grey-2 shadow">{{
|
|
|
|
|
rec.alt
|
|
|
|
|
}}</span>
|
2022-10-28 17:07:13 +02:00
|
|
|
</div>
|
2022-11-13 22:39:25 +01:00
|
|
|
<div class="text-subtitle1" v-if="rec.description">
|
|
|
|
|
<span class="text-grey-4 shadow">{{
|
|
|
|
|
rec.description
|
|
|
|
|
}}</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</q-carousel-slide>
|
|
|
|
|
</q-carousel>
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else-if="myel.type === shared_consts.ELEMTYPE.CAROUSEL_HOME">
|
|
|
|
|
<section>
|
|
|
|
|
<div class="landing">
|
|
|
|
|
<div class="landing__hero maxwidth1200 text-white">
|
|
|
|
|
<q-carousel
|
|
|
|
|
animated
|
|
|
|
|
:autoplay="animare"
|
|
|
|
|
swipeable
|
|
|
|
|
infinite
|
|
|
|
|
navigation
|
|
|
|
|
transition-next="slide-left"
|
|
|
|
|
transition-prev="slide-right"
|
|
|
|
|
v-model="slide"
|
|
|
|
|
:height="getheightgallery()"
|
|
|
|
|
width="100%"
|
|
|
|
|
>
|
|
|
|
|
<q-carousel-slide
|
|
|
|
|
v-for="(myrec, ind) in myel.list"
|
|
|
|
|
:key="ind"
|
|
|
|
|
:name="ind"
|
|
|
|
|
:img-src="getsrcbyimg(`images/` + myrec.imagefile)"
|
|
|
|
|
>
|
|
|
|
|
<div class="landing__header"></div>
|
|
|
|
|
<div
|
|
|
|
|
class="
|
|
|
|
|
landing__hero-content
|
|
|
|
|
row
|
|
|
|
|
justify-center
|
|
|
|
|
q-gutter-xs
|
|
|
|
|
clgutter
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<div class="row"> </div>
|
|
|
|
|
<div class="flex justify-end">
|
|
|
|
|
<div class="q-gutter-xs testo-banda clgutter">
|
|
|
|
|
<h1 class="text-h1 shadow-max">
|
|
|
|
|
{{ tools.getappname() }}
|
|
|
|
|
</h1>
|
|
|
|
|
<div class="text-subtitle1 shadow text-italic q-pl-sm">
|
|
|
|
|
{{ myel.container }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="
|
|
|
|
|
text-subtitle1
|
|
|
|
|
shadow-max
|
|
|
|
|
big
|
|
|
|
|
text-italic
|
|
|
|
|
q-pl-sm
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
{{ myel.container2 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="text-subtitle2 shadow text-italic q-pl-sm">
|
|
|
|
|
{{ myel.container3 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<br /><br />
|
|
|
|
|
<div
|
|
|
|
|
v-if="!tools.isLogged()"
|
|
|
|
|
style="margin: 5px; padding: 5px"
|
|
|
|
|
class="home"
|
|
|
|
|
>
|
|
|
|
|
<br /><br />
|
|
|
|
|
</div>
|
2022-10-28 17:07:13 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2022-11-13 22:39:25 +01:00
|
|
|
<!--<div class="landing__arrow absolute-bottom text-center">
|
2022-10-28 17:07:13 +02:00
|
|
|
<i aria-hidden="true"
|
|
|
|
|
class="q-icon text-h2 text-white material-icons">expand_more</i>
|
|
|
|
|
</div>-->
|
2022-11-13 22:39:25 +01:00
|
|
|
</q-carousel-slide>
|
|
|
|
|
</q-carousel>
|
|
|
|
|
</div>
|
2022-11-10 19:32:56 +01:00
|
|
|
</div>
|
2022-11-13 22:39:25 +01:00
|
|
|
</section>
|
2022-11-11 18:16:28 +01:00
|
|
|
</div>
|
2022-11-13 22:39:25 +01:00
|
|
|
<div v-else-if="myel.type === shared_consts.ELEMTYPE.CALENDAR">
|
|
|
|
|
<CEventsCalendar :mysingleevent="null" :showfirstN="myel.number || 3">
|
|
|
|
|
</CEventsCalendar>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else-if="myel.type === shared_consts.ELEMTYPE.CHECK_EMAIL">
|
|
|
|
|
<div class="q-pa-md q-gutter-md">
|
|
|
|
|
<div v-if="tools.isLogged() && !isVerified" class="text-verified">
|
|
|
|
|
{{ $t('components.authentication.email_verification.link_sent') }}
|
|
|
|
|
</div>
|
2022-10-28 17:07:13 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts" src="./CMyElem.ts">
|
|
|
|
|
</script>
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
@import './CMyElem.scss';
|
|
|
|
|
</style>
|