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
{# Language switcher #} | |
{# Loop through all of the site locales, except the current one #} | |
{% set otherLocales = craft.i18n.getSiteLocaleIds()|without(craft.locale) %} | |
{% for locale in otherLocales %} | |
{# Is this an entry page? #} | |
{% if entry is defined %} | |
{# Find the current entry in the other locale #} | |
{% set localeEntry = craft.entries.id(entry.id).locale(locale).first %} |
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
@import "settings"; | |
@import "foundation"; | |
// Or selectively include components | |
// @import | |
// "foundation/components/accordion", | |
// "foundation/components/alert-boxes", | |
// "foundation/components/block-grid", | |
// "foundation/components/breadcrumbs", | |
// "foundation/components/button-groups", |
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
# Don't allow web crawlers to index Craft | |
User-agent: * | |
Disallow: /craft/ |
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
<div id="fb-root"></div> | |
<script> | |
(function(d, s, id) { | |
var js, fjs = d.getElementsByTagName(s)[0]; | |
if (d.getElementById(id)) return; | |
js = d.createElement(s); js.id = id; | |
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; | |
fjs.parentNode.insertBefore(js, fjs); | |
} |
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
<blockquote class="twitter-tweet"><p>We can now embed Public Facebook Posts on websites. <a href="http://t.co/Bmqpq3GgSB">http://t.co/Bmqpq3GgSB</a></p>— Andrea DeMers (@ademers) <a href="https://twitter.com/ademers/statuses/370530357390888960">August 22, 2013</a></blockquote> | |
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script> |
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
# Statamic # | |
###################### | |
# Ignore all files in _cache dir | |
_cache/ | |
# Ignore all log files in _logs/ dir, if logging enabled | |
_logs/ | |
# Ignore all files in transformed images dir | |
photos/resized/ |
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
<p><img src="{{ transform src="{ image_file }" width="594" }}" alt="{{ title }}" width="594"></p> |
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> | |
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> | |
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> | |
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> | |
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title>Blog/publish</title> | |
<meta name="description" content=""> |
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
{exp:safecracker | |
channel="blog" | |
allow_comments="yes" | |
return="blog/URL_TITLE" | |
datepicker="no" | |
include_jquery="no" | |
error_handling="inline" | |
form_class="form-horizontal" | |
safecracker_head="yes" | |
author_only="yes" |