-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from perfectsense/feature/gallery
BSP-1571 Gallery
- Loading branch information
Showing
20 changed files
with
1,296 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{{#defineBlock "GalleryIntro"}} | ||
|
||
{{#defineElement "titleShort"}}data-shorttext="{{this}}"{{/defineElement}} | ||
{{#defineElement "title" noWith=true}} | ||
<div class="{{elementName}}" {{element "titleShort"}} itemprop="headline"> | ||
<span>{{title}}</span> | ||
</div> | ||
{{/defineElement}} | ||
|
||
{{#defineElement "descriptionShort"}}data-shorttext="{{this}}"{{/defineElement}} | ||
{{#defineElement "description" noWith=true}} | ||
<div class="{{elementName}}" {{element "descriptionShort"}} itemprop="description"> | ||
<span>{{description}}</span> | ||
</div> | ||
{{/defineElement}} | ||
|
||
{{#defineBlockContainer}} | ||
<div class="{{blockName}}" {{extraAttributes}}> | ||
|
||
{{#defineBlockBody}} | ||
{{element "title"}} | ||
{{element "description"}} | ||
{{/defineBlockBody}} | ||
|
||
</div> | ||
{{/defineBlockContainer}} | ||
{{/defineBlock}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.GalleryIntro { | ||
|
||
&-title { | ||
&:extend(.GalleryIntro-title all); | ||
} | ||
|
||
&-description { | ||
&:extend(.GalleryIntro-description all); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{{#defineBlock "GallerySlide"}} | ||
|
||
{{#defineElement "mediaContent"}} | ||
<div class="{{elementName}}">{{this}}</div> | ||
{{/defineElement}} | ||
|
||
{{#defineElement "mediaControlsZoom" noWith=true}} | ||
<button title="Increase image size" class="{{elementName}}">Zoom</button> | ||
{{/defineElement}} | ||
|
||
{{#defineElement "mediaControls" noWith=true}} | ||
<div class="{{elementName}}"> | ||
{{element "mediaControlsZoom"}} | ||
</div> | ||
{{/defineElement}} | ||
|
||
{{#defineElement "media" noWith=true}} | ||
<div class="{{elementName}}"> | ||
{{element "mediaControls"}} | ||
{{element "mediaContent"}} | ||
</div> | ||
{{/defineElement}} | ||
|
||
{{#defineElement "infoTitleShort"}}data-shorttext="{{this}}"{{/defineElement}} | ||
{{#defineElement "infoTitle" noWith=true}} | ||
<div class="{{elementName}}" {{element "infoTitleShort"}} itemprop="name"> | ||
<span>{{infoTitle}}</span> | ||
</div> | ||
{{/defineElement}} | ||
|
||
{{#defineElement "infoDescriptionShort"}}data-shorttext="{{this}}"{{/defineElement}} | ||
{{#defineElement "infoDescription" noWith=true}} | ||
<div class="{{elementName}}" {{element "infoDescriptionShort"}} itemprop="description"> | ||
<span>{{infoDescription}}</span> | ||
</div> | ||
{{/defineElement}} | ||
|
||
{{#defineElement "infoAttribution"}} | ||
<div class="{{elementName}}">{{this}}</div> | ||
{{/defineElement}} | ||
|
||
{{#defineElement "info" noWith=true}} | ||
<div class="{{elementName}}"> | ||
{{element "infoTitle"}} | ||
{{element "infoDescription"}} | ||
{{element "infoAttribution"}} | ||
</div> | ||
{{/defineElement}} | ||
|
||
{{#defineBlockContainer}} | ||
<div class="{{blockName}}" itemprop="image" itemtype="http://schema.org/ImageObject" {{extraAttributes}}> | ||
|
||
{{#defineBlockBody}} | ||
{{element "media"}} | ||
{{element "info"}} | ||
{{/defineBlockBody}} | ||
|
||
</div> | ||
{{/defineBlockContainer}} | ||
{{/defineBlock}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
.GallerySlide { | ||
|
||
&-image { | ||
&:extend(.GallerySlide-image all); | ||
} | ||
|
||
&-info { | ||
&:extend(.GallerySlide-info all); | ||
} | ||
|
||
&-infoTitle { | ||
&:extend(.GallerySlide-infoTitle all); | ||
} | ||
|
||
&-infoDescription { | ||
&:extend(.GallerySlide-infoDescription all); | ||
} | ||
|
||
&-infoAttribution { | ||
&:extend(.GallerySlide-infoAttribution all); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
{{#defineBlock "Gallery"}} | ||
|
||
{{#defineElement "intro"}} | ||
<div class="{{elementName}}">{{this}}</div> | ||
{{/defineElement}} | ||
|
||
{{#defineElement "controls" noWith=true}} | ||
<div class="{{elementName}}"> | ||
<span class="{{elementName}}-count"></span> | ||
<span class="{{elementName}}-buttons"> | ||
<button class="{{elementName}}-buttons-list"><span>List</span></button> | ||
<button class="{{elementName}}-buttons-tiles"><span>Tiles<span></button> | ||
</span> | ||
</div> | ||
{{/defineElement}} | ||
|
||
{{#defineElement "slides" noWith=true}} | ||
<div class="{{elementName}}"> | ||
{{#each slides}}{{this}}{{/each}} | ||
</div> | ||
{{/defineElement}} | ||
|
||
{{#defineElement "modalControlsClose" noWith=true}} | ||
<button class="{{elementName}}"><span>Close</span></button> | ||
{{/defineElement}} | ||
{{#defineElement "modalControlsFullscreen" noWith=true}} | ||
<button class="{{elementName}}"><span>Fullscreen</span></button> | ||
{{/defineElement}} | ||
|
||
{{#defineElement "modalControlsPrev" noWith=true}} | ||
<button class="{{elementName}}"><span>Previous</span></button> | ||
{{/defineElement}} | ||
|
||
{{#defineElement "modalControlsNext" noWith=true}} | ||
<button class="{{elementName}}"><span>Next</span></button> | ||
{{/defineElement}} | ||
|
||
{{#defineElement "modalControlsCount" noWith=true}} | ||
<span class="{{elementName}}"></span> | ||
{{/defineElement}} | ||
|
||
{{#defineElement "modalControlsInfo" noWith=true}} | ||
<button class="{{elementName}}"><span>Info</span></button> | ||
{{/defineElement}} | ||
|
||
{{#defineElement "modalControls" noWith=true}} | ||
<div class="{{elementName}}"> | ||
{{element "modalControlsClose"}} | ||
{{element "modalControlsFullscreen"}} | ||
{{element "modalControlsPrev"}} | ||
{{element "modalControlsCount"}} | ||
{{element "modalControlsNext"}} | ||
{{element "modalControlsInfo"}} | ||
</div> | ||
{{/defineElement}} | ||
|
||
{{#defineElement "modalCarousel" noWith=true}} | ||
<div class="{{elementName}}"></div> | ||
{{/defineElement}} | ||
|
||
{{#defineElement "modal" noWith=true}} | ||
<div class="{{elementName}}"> | ||
{{element "modalControls"}} | ||
{{element "modalCarousel"}} | ||
</div> | ||
{{/defineElement}} | ||
|
||
{{#defineBlockContainer}} | ||
<section class="{{blockName}}" | ||
itemscope itemtype="https://schema.org/ImageGallery" | ||
data-bsp-gallery-list | ||
data-bsp-gallery-list-options="{ "singleton":"{{singleton}}", "id":"{{id}}", "introBackgroundImage":"{{introBackgroundImage}}" }" {{extraAttributes}}> | ||
|
||
{{#defineBlockBody}} | ||
{{#unless singleton}} | ||
{{element "intro"}} | ||
{{element "controls"}} | ||
{{/unless}} | ||
{{element "slides"}} | ||
{{element "modal"}} | ||
{{/defineBlockBody}} | ||
|
||
</section> | ||
{{/defineBlockContainer}} | ||
{{/defineBlock}} |
Oops, something went wrong.