Stash 2.3.4 (beta) or later
/layouts/
standard.html
/partials/
listing.html
<?php | |
// Dynamic paths for cross-server compatibility | |
$protocol = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on") ? "https://" : "http://"; | |
$base_url = $protocol . $_SERVER['HTTP_HOST']; | |
$base_path = $_SERVER['DOCUMENT_ROOT']; | |
$system_folder = "system"; | |
$images_folder = "images"; | |
$images_path = $base_path . "/" . $images_folder; |
{exp:low_events:calendar | |
events_field="cf_events_date_time" | |
date="{freebie_4}" | |
} | |
<table class="calendar" cellspacing="0" cellpadding="0"> | |
<thead> | |
<tr id="month_pager"> | |
<th colspan="1" class="previous"><a href="{structure:page:uri} | |
on/{prev_month_url}" title="{prev_month format='%F %Y'}">←</a></th> | |
<th colspan="5" class="month_title"><a href="{structure:page:uri} |
<?php | |
namespace Craft; | |
/** | |
* The class name is the UTC timestamp in the format of mYYMMDD_HHMMSS_pluginHandle_migrationName. | |
*/ | |
class m150904_071603_inspections_DistanceText extends BaseMigration | |
{ | |
/** |
<?php | |
/** | |
* Change the brightness of the passed in color | |
* | |
* $diff should be negative to go darker, positive to go lighter and | |
* is subtracted from the decimal (0-255) value of the color | |
* | |
* @param string $hex color to be modified | |
* @param string $diff amount to change the color |
#!/usr/bin/env python | |
import json | |
import os | |
import time | |
import clouddns | |
USERNAME = '' | |
APIKEY = '' |
# Varnish 4.0 file for our Craft CMS projects | |
# Based on https://github.com/mattiasgeniar/varnish-4.0-configuration-templates/blob/master/default.vcl | |
# | |
# This is still work in progress, comments appreciated. | |
vcl 4.0; | |
import std; | |
import directors; |
Stash 2.3.4 (beta) or later
/layouts/
standard.html
/partials/
listing.html
import boto3 | |
s3 = boto3.client('s3') | |
bucket_name = '<bucket name>' | |
valid_content_type = ['image/jpeg', 'image/png', 'image/gif'] | |
def is_valid_header(bucket, key): | |
try: |
server { | |
listen 80; | |
server_name site.production.designcompany.com; | |
root /home/forge/site.production.designcompany.com/public; | |
# enable gzip compression | |
gzip on; | |
gzip_min_length 1100; | |
gzip_buffers 4 32k; | |
gzip_types text/plain application/x-javascript image/svg+xml text/xml text/css; |
<?php | |
namespace craft\contentmigrations; | |
use Craft; | |
use craft\db\Migration; | |
/** | |
* m170831_195046_second_migration migration. | |
*/ |