Skip to content

Instantly share code, notes, and snippets.

@jdsimcoe
jdsimcoe / master.xsl
Created August 22, 2012 18:18
Subnav Entry
<xsl:template name="subnav-entry">
<xsl:variable name="active-parent" select="//tags-all-entries/entry[ @id = $pt1 ]/parent/item/@id" />
<xsl:variable name="child" select="//tags-all-entries/entry[ (parent/item) ]" />
<xsl:variable name="has-children" select="child::*" />
<li>
<xsl:attribute name="class">
<xsl:text>entry </xsl:text>
<xsl:if test="$pt1 = @id or $active-parent = @id or //tags-all-entries/entry[ @id = $active-parent ]/parent/item/@id = @id">
@jdsimcoe
jdsimcoe / output.xml
Created August 22, 2012 18:26
Events All Entries
<tags-all-entries>
<section id="3" handle="tags">Tags</section>
<entry id="13391">
<description mode="normal" word-count="3" handle="im-new-here" handle-en="im-new-here">I'm New Here</description>
<hide-from-footer>No</hide-from-footer>
<hide-from-header>No</hide-from-header>
<parent field-id="141" subsection-id="3" items="1">
<item id="18">
<tag mode="normal" word-count="1" handle="about" handle-en="about">About</tag>
</item>
<xsl:template name="template-header-inside-container">
<xsl:variable name="parent" select="//tags-all-entries/entry[@id = $pt1]/parent/item/@id" />
<xsl:if test="$pt1 and not($pt1 = //tags-all-entries/entry[tag/@handle = 'home']/@id)">
<div class="jumbotron masthead" id="overview">
<div class="subnav">
<xsl:for-each select="//tags-all-entries/entry[@id = $pt1]/parent/item/@id">
<xsl:call-template name="nav-tier" />
</xsl:for-each>
@jdsimcoe
jdsimcoe / twitter.html
Created September 19, 2012 14:09
Twitter Symphony API
Are you 18-24?<em> Come fellowship,<em> study Romans 2 and relax with us at 1824 group tonight at 7 in the sanctuary!<em> http:<em>/<em>/t.co/2gHP5g6k</em>
{
"color_scheme": "Packages/Color Scheme - Default/Tricolore.tmTheme",
"font_face": "Menlo",
"font_size": 11.5,
"ignored_packages":
[
"Vintage",
"TrailingSpaces"
],
"theme": "Soda Light.sublime-theme",
@jdsimcoe
jdsimcoe / featured.xsl
Created September 27, 2012 22:09
Featured object
@jdsimcoe
jdsimcoe / featured.xsl
Created September 27, 2012 22:25
emptied
@jdsimcoe
jdsimcoe / template.xsl
Created September 27, 2012 22:41
template code
<xsl:for-each select="//featured-random/entry">
<xsl:call-template name="component-featured" />
</xsl:for-each>
@jdsimcoe
jdsimcoe / template.xsl
Created September 27, 2012 22:43
template
<div class="feature">
<div class="container main-container">
<div class="row home">
<div id="main-content" class="span12">
<h3>Featured Content</h3>
<div class="component component-teachings large">
<div class="latest">
<xsl:for-each select="//teachings-featured-filtered/entry">
<xsl:call-template name="teaching-entry" />
</xsl:for-each>
@jdsimcoe
jdsimcoe / common.js
Created October 4, 2012 14:51
common.js for dtrmn
(function ($, document, window) {
"use strict";
$(function () {
$.fn.exists = function () {
return $(this).length > 0;
};