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
#foundation-breakpoint-indicator:before { | |
content: 'NULL'; | |
display: block; | |
position: fixed; | |
top: 0; | |
left: 50%; | |
margin-left: -50px; | |
width: 100px; | |
background-color: blue; | |
text-align: center; |
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
<ul class="post-share"> | |
{% set post_url_safe = entry.url | url_encode %} | |
{% set post_title_safe = entry.title | url_encode %} | |
{% set site_name_safe = siteName | url_encode %} | |
<li class="share-link share-link-twitter"><a target="_blank" href="http://twitter.com/intent/tweet?url={{ post_url_safe}}&text={{ post_title_safe }}&via={{ site_name_safe }}">Share on Twitter</a></li> | |
<li class="share-link share-link-linkedin"><a target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&url={{ post_url_safe}}&title={{ post_title_safe }}">Share on LinkedIn</a></li> | |
<li class="share-link share-link-facebook"><a target="_blank" href="http://facebook.com/sharer.php?u={{ post_url_safe}}&t={{ post_title_safe }}">Share on Facebook</a></li> | |
<li class="share-link share-link-email"><a target="_blank" href="mailto:?subject={{ post_title_safe }}&body={{ post_url_safe }}">Share by Email</a></li> | |
</ul> <!-- post-share --> |
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
{embed="layout/_start" | |
body_class="" | |
section="" | |
{!-- BETTER META OPTIONS BELOW --} | |
title="" | |
title_suffix="" | |
title_prefix="" | |
description="" | |
keywords="" | |
robots_index="" |
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
{embed="layout/_start" | |
body_class="" | |
section="" | |
{!-- BETTER META OPTIONS BELOW --} | |
title="" | |
title_suffix="" | |
title_prefix="" | |
description="" | |
keywords="" | |
robots_index="" |
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
{!-- | |
Conditionally output up to three images in a Foundation block-grid | |
Assumptions: | |
* Channel "Pages" (pages) | |
* Custom field "cf_page_images" | |
* Addons : P&T Assets, Croxton's Stash, Switchee | |
* Assets field set to allow multiple images | |
* Template uses ZURB Foundation framework | |
* Limit is set to three images, but ZURB Foundation block-grids go up till five | |
--} |
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
{exp:low_events:calendar | |
events_field="cf_events_date_time" | |
date="{freebie_4}" | |
} | |
<table class="calendar" cellspacing="0" cellpadding="0"> | |
<thead> | |
<tr id="month_pager"> | |
<th colspan="1" class="previous"><a href="{structure:page:uri} | |
on/{prev_month_url}" title="{prev_month format='%F %Y'}">←</a></th> | |
<th colspan="5" class="month_title"><a href="{structure:page:uri} |
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
Output the picturefill HTML, so you don't have to repeat it all over the templates. | |
- Param: big_img, src for big image | |
- Param: small_img, src for small image | |
- Param: alt, alt attribute for image | |
- Param: media_query, media query to use, defaults to (min-width: 600px) | |
- Param: class, class for wrapper, defaults to hero | |
Example Usage: | |
{exp:vl:picturefill | |
big_img="{custom_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
<?php | |
public function sessions_end($session) | |
{ | |
if ($session->userdata['can_access_cp'] === 'y') { | |
$new_global_vars['gv_can_preview'] = TRUE; | |
} else { | |
$new_global_vars['gv_can_preview'] = FALSE; | |
} |
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
var _flash_installed = ((typeof navigator.plugins != "undefined" && typeof navigator.plugins["Shockwave Flash"] == "object") || (window.ActiveXObject && (new ActiveXObject("ShockwaveFlash.ShockwaveFlash")) != false)); |
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
(function($){ | |
$(function(){ | |
var $form = $('#search'), // Search form | |
$target = $('#results'), // Results container | |
rp = 'search/ajax-results'; // Template for results only | |
// Function to execute on success | |
var success = function(data, status, xhr) { | |
$target.html(data); | |
}; |
OlderNewer