forked from stfnhmplr/pagekit-gallery
-
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.
added slideshow for blog/site with shortcode
- Loading branch information
stfnhmplr
committed
Aug 26, 2016
1 parent
56b370f
commit 02f155c
Showing
8 changed files
with
74 additions
and
18 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
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 |
---|---|---|
@@ -1,5 +1,24 @@ | ||
<ul class="uk-slideshow" data-uk-slideshow> | ||
{% for image in images %} | ||
<li><img src="storage/shw-gallery/{{ image.filename }}" alt="{{ image.alt }}"></li> | ||
{% endfor %} | ||
</ul> | ||
<?php $view->script('minigallery', '', ['uikit', 'uikit-slideshow']) ?> | ||
|
||
<div class="uk-slidenav-position uk-width-large-3-4 uk-container-center" | ||
style="width:<?= $attributes['width'] ?>; height:<?= $attributes['height'] ?>;" | ||
data-uk-slideshow=""> | ||
<?php if ($attributes['title']) : ?> | ||
<h3 class="uk-margin-remove"><?= $attributes['title'] ?></h3> | ||
<?php endif ?> | ||
<ul class="uk-slideshow"> | ||
<?php foreach ($images as $image): ?> | ||
<li> | ||
<img src="storage/shw-gallery/<?=$image->filename?>" alt="<?=$image->title?>"> | ||
</li> | ||
<?php endforeach ?> | ||
</ul> | ||
<?php if(count($images) > 1): ?> | ||
<a href="" class="uk-slidenav uk-slidenav-contrast uk-slidenav-previous" data-uk-slideshow-item="previous"></a> | ||
<a href="" class="uk-slidenav uk-slidenav-contrast uk-slidenav-next" data-uk-slideshow-item="next"></a> | ||
<?php endif ?> | ||
<?php if ($attributes['description']) : ?> | ||
<p class="uk-margin-remove"><?= $attributes['description'] ?></p> | ||
<?php endif ?> | ||
</div> | ||
|
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