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 | |
/** | |
* Dont Update the Theme | |
* | |
* If there is a theme in the repo with the same name, this prevents WP from prompting an update. | |
* | |
* @since 1.0.0 | |
* @param array $r Existing request arguments | |
* @param string $url Request URL | |
* @return array Amended request arguments |
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
<a href="{{ shop.url }}"> | |
<img | |
src="{{ 'logo.png' | asset_url }}" | |
alt="{{ shop.name }}" | |
data-retina-src="{{ 'logo.svg' | asset_url }}"> | |
</a> | |
<script type="text/javascript"> | |
Modernizr.addTest('retina', function () { | |
return (!!navigator.userAgent.match(/Macintosh|Mac|iPhone|iPad/i) && window.devicePixelRatio==2); | |
}); |