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
/* Add repeater field data as UL */ | |
function carawebs_repeater_ul() { | |
if(get_field('repeater_field')): ?> | |
<h3>Heading if Necessary</h3> | |
<ul> | |
<?php while(has_sub_field('repeater_field')): ?> |
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
jQuery(document).ready(function($) { | |
$("body").backstretch([BackStretchImg.src],{duration:3000,fade:750}); | |
}); |
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
/*====================================================================== | |
* jQuery Masonry | |
* ===================================================================*/ | |
/* Add Masonry and link to masonry control script file into footer */ | |
function cw_enqueue_masonry() { | |
// Run on the front page (static page) only | |
if (is_front_page()) { |
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
# Find and remove files | |
# cd to parent directory | |
find . -name *-460x260.* | xargs rm -f |
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 carawebs_image_attribution() { | |
// Variables: | |
$name = get_field('attr_name'); // Text field | |
$name_url = get_field('attr_url'); // Text field | |
$permission = get_field('permission'); // True False field | |
// Build a variable namelink if a URL has been specified | |
if ($name_url!="") { | |
$namelink = "<a href='" . $name_url ."'> $name</a>"; |
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
/*Indent uls so that text wraps and aligns below the text rather than the bullet*/ | |
/*IE8 and lower specific code - class ie8 added */ | |
.ie8 .post_box ul { | |
margin-left: 15px; | |
padding-right: 15px; | |
padding-left:10px; | |
line-height:25px; | |
list-style: square; | |
} |
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
/** use dashes as bullet characters**/ | |
.post_box ul { | |
list-style:none; | |
margin-left:0; | |
padding-left:1em; | |
} | |
.post_box ul li:before { | |
display:inline-block; | |
content:"–"; | |
width:1em; |
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
/* use dashes as bullet characters for ul and indent second line properly for ul */ | |
ul.dash { | |
list-style:none; | |
margin-left:20px; | |
padding-left:10px; | |
} | |
ul.dash li:before { | |
display:inline-block; |
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
/* Front Page Twitter */ | |
function carawebs_frontpage_twitter() { | |
?><h2 class="twitter_headline"><a href="http://twitter.com/XXX">@TWITTER_HANDLE</a></h2> | |
<div class="shortbox"><?php | |
$tweets = getTweets(TWITTER_HANDLE_NO@, 1); // Twitter handle, number of tweets to display | |
if(is_array($tweets)){ |
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
/*Search*/ | |
/* Initial State */ | |
#search_container { | |
width: 140px; | |
height: 20px; | |
float: right; | |
} |
OlderNewer