apt-get install pkg-config libmagickwand-dev -y
cd ~/downloads
wget https://pecl.php.net/get/imagick-3.4.0.tgz
tar xvzf imagick-3.4.0.tgz
cd imagick-3.4.0
/opt/sp/php7.0/bin/phpize
./configure --with-php-config=/opt/sp/php7.0/bin/php-config
make install
rm -rf /tmp/imagick-3.4.0*
This file contains hidden or 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 | |
namespace craft\contentmigrations; | |
use Craft; | |
use craft\db\Migration; | |
/** | |
* m200829_184642_fix_colour_swatches migration. | |
*/ |
This file contains hidden or 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 | |
class CacheBustingCraftValetDriver extends ValetDriver | |
{ | |
/** | |
* Determine if the driver serves the request. | |
* | |
* @param string $sitePath | |
* @param string $siteName | |
* @param string $uri |
This file contains hidden or 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
### Keybase proof | |
I hereby claim: | |
* I am mildlygeeky on github. | |
* I am mildlygeeky (https://keybase.io/mildlygeeky) on keybase. | |
* I have a public key ASDegx54rfKDh0lbjQR4XWM2gLQaeLKl9g1hgtKNVbzVPgo | |
To claim this, I am signing this object: |
This file contains hidden or 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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<!-- Responsive-ness --> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<!-- SE-Oh --> | |
{% include '_includes/seo_meta' %} | |
</head> |
This file contains hidden or 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
{% if entry.homepageHeroDesktop|length > 0 and entry.homepageHeroMobile|length > 0 %} | |
<div class="homepage-hero homepage-hero--image"> | |
<figure> | |
<picture> | |
{% set homepageHeroDesktop = entry.homepageHeroDesktop.first().getUrl() %} | |
{% set homepageHeroMobile = entry.homepageHeroMobile.first().getUrl() %} | |
<!--[if IE 9]><video style="display: none;"><![endif]--> | |
<source srcset="{{ homepageHeroDesktop }}" media="(min-width: 540px)"> |
This file contains hidden or 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
{% for block in entry.bodyBlocks %} | |
{%- if loop.first %}<ul>{% endif %} | |
<li><a href="#bodyblock-{{ block.ownerId }}-{{ block.id }}">{{ block.blockName }}</a></li> | |
{%- if loop.first %}</ul>{% endif %} | |
{%- endfor %} |
This file contains hidden or 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
{# For this, I wanted the nav to show the top-level node and second-level nodes #} | |
{# when on level 1, and then show the second-level and its children when on #} | |
{# level 2 or level 3 (so we get good parent, child, and sibling navigation. #} | |
{# Requires string 'sectionName' to be passed with Structure section name #} | |
{% if entry.showLeftNavigation %} | |
<nav class="interior-page__nav"> |
This file contains hidden or 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
/* ========================================================================== | |
Print styles. | |
Inlined to avoid required HTTP connection: h5bp.com/r | |
========================================================================== */ | |
@media print { | |
* { | |
background: transparent !important; | |
color: #000 !important; /* Black prints faster: h5bp.com/s */ | |
box-shadow: none !important; |