Works with PhotoSwipe 4.1.0 https://github.com/dimsemenov/photoswipe
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
<?php | |
c::set('guggenheim.kirbytext.tagname','guggenheim'); | |
//.. |
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
#!/bin/bash | |
if test ! $(which brew); then | |
echo "Installing homebrew" | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
fi | |
echo -e "\n\nChecking for brew updates..." | |
echo "==============================" |
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
<?php | |
// Custom image kirbytag highjack | |
// This file should reflect the image tag functionality found in /kirby/extensions/tags.php | |
kirbytext::$tags['image'] = array( | |
'attr' => array( | |
'width', | |
'height', | |
'alt', | |
'text', |
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
.guggenheim { | |
max-width: 100%; | |
box-sizing: content-box; | |
} | |
.guggenheim__ratio-container { | |
position: relative; | |
} | |
.guggenheim__figure, | |
.guggenheim__link, | |
.guggenheim__image { |
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
/* | |
Add these in the main.scss that ships with PhotoSwipe. | |
*/ | |
.pswp__item--ratiofix .pswp__img:last-child { | |
opacity: 0.001; | |
will-change: opacity; | |
transition: opacity $pswp__show-hide-transition-duration cubic-bezier(.4,0,.22,1); | |
} |
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
{% comment %} | |
Input | |
{% endcomment %}{% capture _content %}{{ content }}{% endcapture %}{% comment %} | |
Remove redundant closing tags | |
{% endcomment %}{% assign _endings = "html head body li dt dd p rt rp optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% for _element in _endings %} | |
{% capture _end %}</{{ _element }}>{% endcapture %} |
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
<?php | |
// This file should reflect the image tag functionality found in /kirby/extensions/tags.php | |
// image tag | |
kirbytext::$tags['image'] = array( | |
'attr' => array( | |
'width', | |
'height', |