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
<form> | |
<fieldset> | |
<legend>Billing</legend> | |
<input type="text" name="first_name" /> | |
<input type="text" name="last_name" /> | |
<input type="text" name="billing_address_1" /> | |
<input type="text" name="billing_address_2" /> | |
<input type="text" name="billing_city" /> | |
<input type="text" name="billing_state" /> | |
<input type="text" name="billing_zip" /> |
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
-- | |
title: My Post | |
related_entries: | |
- /blog/related-post-1 | |
- /blog/related-post-2 | |
--- | |
This is actually your post's md file. I named it txt otherwise Github will try to format it as markdown and it looks funky. |
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
{{ bison:best_sellers }} | |
{{ if no_results }} | |
<p>I dunno? Nothing has been sold yet.</p> | |
{{ else }} | |
{{ if first }} | |
<ul> | |
{{ endif }} | |
<li><a href="{{ url }}">{{ title }} has sold {{ total_sales }} times</li> | |
{{ if last }} | |
</ul> |
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
module.exports = function(grunt) { | |
grunt.initConfig({ | |
... | |
themePath: '_themes/theme_name', | |
watch: { | |
options: { livereload: true }, | |
css: { |
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
module.exports = function(grunt) { | |
grunt.initConfig({ | |
concat: { | |
// js stuff | |
}, | |
uglify: { | |
// more js stuff |
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
{{ entries:listing }} | |
<div class="entry-{{ count }}"></div> | |
{{ /entries:listing }} | |
<style> | |
{{ entries:listing }} | |
.entry-{{ count }} { background: {{ image }}; } | |
{{ /entries:listing }} | |
</style> |
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 | |
class Hooks_rename_date_fields extends Hooks | |
{ | |
public function control_panel__add_to_foot() | |
{ | |
if (URL::getCurrent() == '/publish') { | |
return $this->js->inline(' | |
var form = $(".primary-form"); | |
form.find("label:contains(\'Publish Date\')").text("New date field name"); |
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 template for raven stuff. | |
Display this at a URL like /contact-form for example | |
Exclude this URL from html_caching | |
Make this form look/act like it was part of the parent page. | |
The contents of #raven will be injected into it. | |
--> |
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
module.exports = -> | |
@initConfig | |
sandbox: '/users/jason/sites/statamic-sandbox' | |
copy: | |
sandbox: | |
files: [ | |
expand: true | |
cwd: '_add-ons/calendar/' | |
src: '**' |
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
{{ calendar:set_month folder="calendar" year="{ segment_3 }" month="{ segment_4 }" }} | |
<h1>{{ calendar:month_name }} {{ segment_3 }}</h1> | |
{{ calendar:prev_month }} | |
<a href="/calendar/month/{{ year }}/{{ month }}" title="{{ month_name }} {{ year }}">← Prev</a> | |
{{ /calendar:prev_month }} | |
{{ calendar:date_select attr="id:month-select" }} |