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
var queryForm = function(settings){ | |
var utm_data = ['utm_source','utm_medium','utm_campaign','utm_term','utm_content']; | |
var reset = settings && settings.reset ? settings.reset : false; | |
var self = window.location.toString(); | |
var querystring = self.split("?"); | |
if (querystring.length > 1) { | |
var pairs = querystring[1].split("&"); | |
for (i in pairs) { | |
var keyval = pairs[i].split("="); | |
var supported_params = utm_data.indexOf(keyval[0]) !=-1; |
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 | |
// probably in functions.php .... | |
add_filter('wp_title', 'thisdomain_news_archive_title'); | |
function thisdomain_news_archive_title($title) { | |
//check if its a blog post | |
if (!is_single()) | |
return $title; |
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 $post_type = get_post_type_object( get_post_type( get_the_ID()) ); | |
echo $post_type->labels->singular_name ; ?> |
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 filter_input_object($input_object, $sfid) | |
{ | |
//ensure we are only filtering the correct field name - in this case the field we want to filter has the name `_sfm_colours` | |
//we also want to make sure its a `select` input type we're filtering | |
if(($input_object['name']!='_sfm_colours')||($input_object['type']!='select')) | |
{ | |
return $input_object; | |
} | |
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
Snippet: [[SnippetName]] | |
Chunk: [[$ChunkName]] | |
System Setting: [[++SettingName]] | |
TV: [[*fieldName/TvName]] | |
Link tag: [[~PageId? ¶mName=`value`]] | |
Placeholder: [[+PlaceholderName]] | |
<?php |
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 id="tbox"></div> | |
<script type="text/javascript"> | |
twttr.anywhere(function (T) { | |
T("#tbox").tweetBox({ | |
height: 100, | |
width: 275, | |
label: '<span style="font-size:12px; padding-top:6px; color:#999999; display:inline-block; font-weight:bold;">Hello World!</span>', | |
defaultContent: "@winkpress " |