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
<?xml version="1.0" encoding="UTF-8"?> | |
<forms version="1.6.12"> | |
<form labelPlacement="top_label" useCurrentUserAsAuthor="1"> | |
<title><![CDATA[GF Form 1 Test - Top aligned labels, Descriptions below inputs]]></title> | |
<description><![CDATA[We would love to hear from you! Please fill out this form and we will get in touch with you shortly.]]></description> | |
<confirmation type="message"> | |
<message><![CDATA[Thanks for contacting us! We will get in touch with you shortly.]]></message> | |
</confirmation> | |
<button type="text"> | |
<text><![CDATA[Submit]]></text> |
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 ($) { | |
'use strict'; | |
function doneResizing() { | |
if (Modernizr.mq('screen and (min-width:768px)')) { | |
// action for screen widths including and above 768 pixels | |
} else if (Modernizr.mq('screen and (max-width:767px)')) { | |
// action for screen widths below 768 pixels | |
} | |
} |
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 | |
/* | |
Term Archive Pages: | |
- http://example.com/recipes/dinner/ | |
- http://example.com/recipes/breakfast,brunch/ | |
Single Recipe Pages: | |
- http://example.com/recipes/dinner/soup-title/ |
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 | |
$posts = array(5, 2, 43, 12); | |
// Get the posts | |
$my_loop = new WP_Query(array( | |
'post__in' => $posts, | |
'post_type' => 'any', | |
'posts_per_page' => -1, | |
)); |
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
Show hidden characters
{ | |
"word_separators": "./\\()\"'-:,.;<>~!@#%^&*|+=[]{}`~?" | |
} |
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
#!/bin/bash | |
# | |
# This script configures WordPress file permissions based on recommendations | |
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
# | |
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org> | |
# | |
WP_OWNER=www-data # <-- wordpress owner | |
WP_GROUP=www-data # <-- wordpress group | |
WP_ROOT=$1 # <-- wordpress root directory |
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 | |
// Prevent unwanted results from appearing in (future) Stream records - v 1.x | |
add_filter( 'wp_stream_record_array', 'bhww_core_wp_stream_filter_record_array', 10, 1 ); | |
function bhww_core_wp_stream_filter_record_array( $recordarr ) { | |
// BackupBuddy (iThemes) entries | |
$context = 'settings'; | |
$option = 'ithemes-updater-cache'; | |
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
/** | |
* Regular Expression snippets to validate Google Analytics tracking code | |
* see http://code.google.com/apis/analytics/docs/concepts/gaConceptsAccounts.html#webProperty | |
* | |
* @author Faisalman <[email protected]> | |
* @license http://www.opensource.org/licenses/mit-license.php | |
* @link http://gist.github.com/faisalman | |
* @param str string to be validated | |
* @return Boolean | |
*/ |
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 ( $post->post_parent ) | |
{ | |
wp_redirect( get_permalink( $post->post_parent ), 301 ); | |
} | |
else | |
{ | |
wp_redirect( site_url(), 301 ) ); | |
} | |
die(); |
OlderNewer