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
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="200" height="230" id="FM3" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="allowFullScreen" value="false" /> <param name="movie" value="http://www.zendesk.com/media/FM3.swf" /> <param name="quality" value="high" /> <param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" /> <embed src="http://www.zendesk.com/media/FM3.swf" quality="high" wmode="transparent" bgcolor="#ffffff" width="200" height="230" name="FM3" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object/> |
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
$terms = get_the_terms($post->ID, $taxonomy); | |
end($terms); | |
$term_id = key($terms); | |
$term = get_term($term_id,$taxonomy); | |
echo $term->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
/* | |
* 404 Checker | |
* | |
*/ | |
var casper = require('casper').create({ | |
loadImages: false, | |
javascriptEnabled: false, | |
loadPlugins: false, | |
verbose: true, |
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
* Force admin over SSL | |
*/ | |
define('FORCE_SSL_LOGIN', true); | |
define('FORCE_SSL_ADMIN', true); | |
/* That's all, stop editing! Happy blogging. */ | |
/** Absolute path to the WordPress directory. */ | |
if ( !defined('ABSPATH') ) | |
define('ABSPATH', dirname(__FILE__) . '/'); |
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
@mixin FF-only { | |
@-moz-document url-prefix() { @content; } | |
} |
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 | |
function not_foo( $class ) { | |
if ( get_bloginfo('name') != 'foo' ) { | |
$class[] = 'not_foo'; | |
} | |
else {}; | |
return $class; | |
} |
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 | |
function get_category_names_for_any_post(){ | |
// Create empty array for later | |
$categoriesArray = array(); | |
// Get current post type | |
$curentPostType = get_post_type($post->ID); |
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 postToMarketo() { | |
var form = $('<form class="marketo-form" method="post" enctype="application/x-www-form-urlencoded" action="http://info.domain.com/index.php/leadCapture/save" id="mktForm_ID" name="mktForm_ID">'); | |
var inputArr = {}; | |
var selectedArr = {}; | |
var key; | |
var inputs = $('form.leadgen input'); | |
var selected = $('form.leadgen option[selected]'); | |
var iframe = $('<iframe style="display:none;" id="new-form" src="/marketo_success.html"></iframe>'); | |
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 fs = require('fs'); | |
var mkdirp = require('mkdirp'); | |
var request = require('request'); | |
localPathToThing = '/path/to/things'; | |
arrayOfUrls = ['http://all-the-things.com/thing-1.png','http://all-the-things.com/thing-2.png','http://all-the-things.com/thing-3.png', ...] | |
arrayOfUrls.forEach(function(url,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
if( $blog_id !== '1' ) { | |
echo '<link rel="stylesheet" type="text/css" media="all" href="/screen_i18n.css">'; | |
} else { | |
echo '<link rel="stylesheet" type="text/css" media="all" href="/screen.css" />'; | |
} |
OlderNewer