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
{# Array of months withing a specific month and year #} | |
{% set events = craft.venti.allEvents().startDate('and', '>= ' ~ prevMonth, '<= ' ~ nextMonth).find() %} | |
{# Parameters needed for calender output. Venti Events, Month, Year #} | |
{% set params = { "events": events, "month": currentMonth, "year": currentYear } %} | |
{% calendar params as days %} | |
<div> | |
<table> | |
<thead> | |
<tr> | |
{% for item in calendar.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
/* | |
* Gulp install plugins | |
* @package.json | |
*/ | |
var gulp = require('gulp'), | |
gulpLoadPlugins = require('gulp-load-plugins'), | |
$ = gulpLoadPlugins(); | |
/* |
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
{ | |
"name": "gulp", | |
"version": "0.0.1", | |
"author": "Author Name", | |
"devDependencies": { | |
"gulp": "^3.9.0", | |
"gulp-bower-mf": "^0.4.1", | |
"gulp-changed": "^1.2.1", | |
"gulp-concat": "^2.6.0", | |
"gulp-jshint": "^1.5.1", |
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
javascript:(function(){var styles = document.querySelectorAll('link[rel=\'stylesheet\']'); for (var s = 0; s < styles.length; s++) {styles[s].mediax = styles[s].media;if (styles[s].media === 'only x') { styles[s].media = styles[s].mediax; } else if (styles[s].media !== 'print') {styles[s].media = 'only x';}}})(); |
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
{% set bread = craft.entries({ section: 'bread' }).limit(null) %} | |
{# | |
# Users with bread on 3 days | |
#} | |
{% set users3Days = craft.users({ | |
group: 'customers', | |
relatedTo: [ | |
'and', | |
{ targetElement: bread, field: 'breadForMonday' }, |
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
/* | |
* Gulp install plugins | |
* @package.json | |
*/ | |
var gulp = require('gulp'), | |
gulpLoadPlugins = require('gulp-load-plugins'), | |
$ = gulpLoadPlugins(), | |
LessPluginAutoPrefix = require('less-plugin-autoprefix'), | |
autoprefix = new LessPluginAutoPrefix({ browsers: ["last 2 versions"] }), | |
filter = require('gulp-filter'); |
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
.box-1 | |
.box-2 | |
.box-3 | |
.box-4 |
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
{# You can filter this way if not needing to focus on recurring events in a specific order. #} | |
{% craft.entries.section('events').order().limit() %} | |
{# Or filter in the loop of craft.Events because you have access to any of the other fields in the entry through the variable entry.#} | |
{% for event in craft.Events.getAllEvents() %} | |
if(event.entry.fieldName == 'whatever'){ |
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
<html> | |
<head> | |
<title>Select styles with CSS only</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
body { | |
background-color: #fff; | |
font-family: helvetica, sans-serif; | |
margin: 4% 10% | |
} |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "parallels/ubuntu-12.04" | |
config.vm.network :private_network, ip: "192.168.50.4" | |
config.vm.provision :shell, :path => "install.sh" |