Skip to content

Instantly share code, notes, and snippets.

View ctbarber's full-sized avatar

Todd Barber ctbarber

View GitHub Profile
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet SYSTEM "http://commons.omniupdate.com/dtd/standard.dtd">
<xsl:stylesheet version="3.0"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:ou="http://omniupdate.com/XSL/Variables"
xmlns:ouc="http://omniupdate.com/XSL/Variables"
exclude-result-prefixes="xs ou ouc">
@ctbarber
ctbarber / interior.tmpl
Last active March 13, 2017 19:55
tmpl file that creates each pcf page structure. This gist shows how the Foundation grid classes are built into the template.
<main-content>
<rows>
<row>
<full>
<!--full-->
<div class="columns">
<ouc:div label="row-1-full" group="Everyone" break="break" button-text="Row 1"><ouc:editor csspath="/-resources/2015/ou/editor/uthsc-ouc-editor.css" cssmenu="/-resources/2015/ou/editor/uthsc-styles-dropdown.txt" /></ouc:div>
</div>
</full>
<half>
@ctbarber
ctbarber / callout.inc
Created March 13, 2017 20:26
The HTML table structure to create a snippet for a callout
<table class="snippet-callout">
<tbody>
<tr class="uthsc-ouc-instructions"><th>Callout Directions [do not delete]</th><th>Content [edit this column to display on the page]</th></tr>
<tr>
<td class="uthsc-ouc-instructions">
<p>Creates a basic callout with a gray background. <strong>Should be used when you need to call attention to an object that will remain on the page for a long time.</strong> For an informational callout, use the secondary callout snippet. For a warning callout (for a closing or short term problem), use the warning callout.</p>
</td>
<td>
<h2>Callout Heading, if needed</h2>
<p>Use the callout to provide attention to a certain section of the page. Information here should be kept short and informative.</p>
@ctbarber
ctbarber / callout.xsl
Created March 13, 2017 20:27
The XSL for table transformation
<!-- begin template match for callout snippet -->
<xsl:template match="table[@class='snippet-callout']" mode="copy">
<div class="callout">
<xsl:apply-templates select="tbody/tr[2]/td[2]/node()" mode="copy"/>
</div>
</xsl:template>
<!-- end template match for callout snippet -->
<table class="snippet-callout-secondary">
<tbody>
<tr class="uthsc-ouc-instructions"><th>SECONDARY Callout Directions [do not delete]</th><th>Content [edit this column to display on the page]</th></tr>
<tr>
<td class="uthsc-ouc-instructions">
<p>Creates a secondary, or informational, callout with a light blue background. <strong>Should be used when you need to call attention to an object that will remain on the page for a short time.</strong> For a basic callout, use the callout snippet. For a warning callout (for a closing or short term problem), use the warning callout.</p>
</td>
<td>
<h2>Callout Heading, if needed</h2>
<p>Use the callout to provide attention to a certain section of the page. Information here should be kept short and informative.</p>
<!-- begin template match for secondary callout snippet -->
<xsl:template match="table[@class='snippet-callout-secondary']" mode="copy">
<div class="callout secondary">
<xsl:apply-templates select="tbody/tr[2]/td[2]/node()" mode="copy"/>
</div>
</xsl:template>
<!-- end template match for secondary callout snippet -->
@ctbarber
ctbarber / callout-warning.inc
Created March 13, 2017 20:46
Should be used when you need to call attention to a short term closing, an update, system changes, etc.
<table class="snippet-callout-warning">
<tbody>
<tr class="uthsc-ouc-instructions"><th>WARNING Callout Directions [do not delete]</th><th>Content [edit this column to display on the page]</th></tr>
<tr>
<td class="uthsc-ouc-instructions">
<p>Creates a warning callout with a light yellow background. <strong>Should be used when you need to call attention to a short term closing, an update, system changes, etc.</strong> For a basic callout, use the callout snippet. For an informational callout, use the secondary callout snippet.</p>
</td>
<td>
<h2>Callout Heading, if needed</h2>
<p>Use the callout to provide attention to a certain section of the page. Information here should be kept short and informative.</p>
<!-- begin template match for warning callout snippet -->
<xsl:template match="table[@class='snippet-callout-warning']" mode="copy">
<div class="callout warning">
<xsl:apply-templates select="tbody/tr[2]/td[2]/node()" mode="copy"/>
</div>
</xsl:template>
<!-- end template match for warning callout snippet -->
<table class="snippet-half-column">
<tbody>
<tr class="uthsc-ouc-instructions"><th colspan="2">Half Columns Directions [do not delete]</th></tr>
<tr>
<td class="uthsc-ouc-instructions">Place your content for the left column below.</td>
<td class="uthsc-ouc-instructions">Place your content for the right column below.</td>
</tr>
<tr>
<td>
<h2>Left Column</h2>