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
{* Custom Embed template: Embed-Latest *} | |
{* User inserts an object, chooses embed-latest as view *} | |
{* Page viewer is then shown the most recent article or media_page under that object *} | |
{cache-block expiry=300 keys=array($object.id, $object.modified,$object.main_node_id)} | |
{def $article = fetch( 'content', 'list', | |
hash( 'parent_node_id', $object.main_node_id , | |
'sort_by', array( 'published', false() ), | |
'class_filter_type', 'include', | |
'class_filter_array', array('media_page', 'article', 'link', 'blog_post'), | |
'limit', 1))} |
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
<script type="text/javascript"> | |
jwplayer("csps-video-0").setup({ | |
logo: {hide: true}, | |
height: 314, | |
width: 480, | |
controlbar: "bottom", | |
plugins: { | |
"timeslidertooltipplugin-1": { | |
displayhours: "true", | |
marginBottom: "22", |
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
<div class="landing-video-surround"> | |
<div class="audio-player" id="LandingPageVideo"></div> | |
</div> | |
<script type="text/javascript"> | |
var videoURL = '{$video-url|trim}', | |
videoHeight = '{$player_height}', | |
videoWidth = '{$player_width}', | |
jwPlayer = {'javascript/player.swf'|ezdesign}, | |
titleCard = '{$title-card-url}', | |
rtmpFile = '{$rtmp-file|trim}', |
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
url = $.url(); | |
params = url.param(); | |
if (params.q != null) { | |
qs = buildQueryString(params); | |
} | |
buildQueryString = function(params) { | |
var param, qs; | |
qs = ''; |
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
rwdTables = -> | |
container = $('<div class="table-menu table-menu-hidden"><ul /></div>') | |
$( "thead th" ).each (i) -> | |
th = $(this) | |
id = th.attr("id") | |
classes = th.attr("class"); # essential, optional (or other content identifiers) | |
# assign an ID to each header, if none is in the markup | |
if id is undefined | |
id = ( "col-" ) + i; |
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
/* ***** Carets and other CSS icons ***** */ | |
.caret { | |
&.up { | |
border-bottom: 4px solid #000000; | |
border-top: none; | |
} | |
&.left { | |
border-top: 4px solid transparent; | |
border-right: 5px solid #000000; | |
border-bottom: 4px solid transparent; |
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
$.fn.accessibleDropDown = -> | |
el = $(this); | |
enter = -> $(this).addClass('hover') | |
leave = -> $(this).removeClass('hover') | |
# Hover dropdown | |
$("li", el).hoverIntent(enter,leave) | |
# Make dropdown menus keyboard accessible | |
$("a", el).focus( -> | |
$(this).parents("li").addClass("hover"); |
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
$alert.on('unaffixed.bs.affix', function () { | |
// ... Code Here | |
}); | |
$alert.on('affixed.bs.affix', function () { | |
// ... Code Here | |
}); |
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
import os | |
PROJECT_DIR = os.path.dirname(os.path.abspath(__file__)) | |
BASE_DIR = os.path.abspath(os.path.join(PROJECT_DIR, '../../')) | |
# URL prefix for static files. | |
# Example: "http://example.com/static/", "http://static.example.com/" | |
STATIC_URL = '/static/' | |
# Additional locations of static files |