This file contains hidden or 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 | |
function the_breadcrumb() { | |
global $wp_query, $wp; | |
$total_results = $wp_query->found_posts; | |
echo '<ul id="crumbs">'; | |
if(!is_home() && is_search()) { |
This file contains hidden or 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
// Customize twitter feed | |
var hideTwitterAttempts = 0; | |
function hideTwitterBoxElements() { | |
setTimeout( function() { | |
if ( $('[id*=twitter]').length ) { | |
$('[id*=twitter]').each( function(){ | |
if ( $(this).width() == 220 ) { | |
$(this).width( 220 ); | |
$(this).height( 425 ); | |
} |
This file contains hidden or 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 pattern - 24.01.14 | |
* Author: @ElmahdiMahmoud | |
* Licensed under the MIT license | |
*/ | |
;(function ( $, window, document, undefined ) { | |
$.fn.plugiName = function (options) { | |
// set up default options |
This file contains hidden or 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
$('.selector').html( | |
$(this).is(':visible') ? "Hide" : "Show" | |
); |
This file contains hidden or 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
<form id="contactForm" method="post"> | |
<fieldset class="grid halves"> | |
<div class="grid-item"> | |
<ol> | |
<li> | |
<label class="label--has-placeholder" for="firstName">First Name</label> | |
<input type="text" placeholder="First Name" name="firstName" id="firstName"> | |
</li> | |
<li> | |
<label class="label--has-placeholder" for="lastName">Last Name</label> |
This file contains hidden or 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
/* placeholder for oldIe */ | |
$('.ie8 [placeholder], .ie9 [placeholder]').focus(function() { | |
var input = $(this); | |
if (input.val() == input.attr('placeholder')) { | |
input.val(''); | |
input.removeClass('placeholder'); | |
} | |
}).blur(function() { | |
var input = $(this); | |
if (input.val() == '' || input.val() == input.attr('placeholder')) { |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<title>Carousel</title> | |
<style> | |
.carousel_container { | |
margin-top: 10px; | |
} | |
.carousel_inner { |
This file contains hidden or 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
$(".clone").on('click', function(e) { | |
e.preventDefault(); | |
var $repeatable = $(this).closest('.toclone').find('.repeatable').eq(0).clone(); | |
var $selectAll = $repeatable.find('select').clone(); | |
$repeatable.empty(); | |
$repeatable.append($selectAll).addClass('cloned'); | |
$repeatable.append('<a class="removeCloned" href="#">x</a><div class="clear"></div>'); |
This file contains hidden or 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="toclone"> | |
<div class="repeatable"> | |
<select> | |
<option value="title">Theme title</option> | |
</select> | |
</div> | |
<a class="clone" href="#">+Add</a> | |
</div> |
This file contains hidden or 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="progressbar" data-value="20"></div> | |
<div class="progressbar" data-value="40"></div> | |
<div class="progressbar" data-value="60"></div> | |
<div class="progressbar" data-value="80"></div> | |
<div class="progressbar" data-value="100"></div> | |