The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
<?php | |
/*-----------------------------------------------------------------------------------*/ | |
/* Conditional Logic to Detect Various Event Related Views/Pages | |
/*-----------------------------------------------------------------------------------*/ | |
if( tribe_is_month() && !is_tax() ) { // Month View Page | |
echo 'were on the month view page'; | |
} elseif( tribe_is_month() && is_tax() ) { // Month View Category Page |
add_action( 'wp_print_styles', 'deregister_styles', 100 ); | |
function deregister_styles() { | |
if( tribe_is_month() && !is_tax() ) { // The Main Calendar Page | |
} elseif( tribe_is_month() && is_tax() ) { // Calendar Category Pages | |
} elseif( tribe_is_event() && !tribe_is_day() && !is_single() ) { // The Main Events List | |
} elseif( tribe_is_event() && is_single() ) { // Single Events | |
<?php | |
/** | |
* Taxonomies | |
* | |
* This file registers any custom taxonomies | |
* | |
* @package WPS_Starter_Genesis_Child | |
* @author Travis Smith <[email protected]> | |
* @copyright Copyright (c) 2012, Travis Smith | |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
<form class='form-inline' id='my-custom-form'> | |
<div class="form-group"> | |
<input type='email' class='form-control' placeholder='Your email address' required> | |
</div> | |
<button class="btn btn-primary" type='submit'>Sign up</button> | |
</form> | |
<!-- Actual form that gets submitted to HubSpot --> | |
<div class="hidden" id='hubspot-form'> | |
<script charset="utf-8" src="//js.hsforms.net/forms/current.js"></script> |
User-agent: * | |
# Directories | |
Disallow: /cgi-bin/ | |
Disallow: /wp-admin/ | |
Disallow: /trackback/ | |
Disallow: /wp-includes/ | |
Disallow: /comment-page- | |
Disallow: /wp-content/themes/ | |
Disallow: /wp-content/plugins/ | |
# Files |
<?php | |
/** | |
* aheadWorks Co. | |
* | |
* NOTICE OF LICENSE | |
* | |
* This source file is subject to the EULA | |
* that is bundled with this package in the file LICENSE.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://ecommerce.aheadworks.com/AW-LICENSE.txt |
var map = null; | |
var marker = null; | |
var infowindow = new google.maps.InfoWindow({size: new google.maps.Size(150, 50)}); | |
function createMarker(latlng, name, html) { | |
var contentString = html; | |
var marker = new google.maps.Marker( | |
{ | |
position: latlng, | |
map: map, |
#Techniques for Anti-Aliasing @font-face on Windows
It all started with an email from a client: Do these fonts look funky to you? The title is prickly.
The font in question was Port Lligat Sans from Google Web Fonts.