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
[user] | |
name = Your Name | |
email = your@email.com | |
[core] | |
autocrlf = input | |
[color] | |
ui = 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
jQuery(document).ready(function($){ | |
var debug = true; | |
if ( debug ) console.log('Init'); | |
}); |
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 | |
/** | |
* Callback to render custom comment markup | |
*/ | |
function project_name_comment( $comment, $args, $depth ) { | |
$GLOBALS['comment'] = $comment; | |
// Proceed with normal comments. | |
global $post; | |
?> |
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
<script> | |
(function(doc) { | |
var viewport = document.getElementById('viewport'); | |
if ( navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPod/i)) { | |
viewport.setAttribute("content", "initial-scale=0.3"); | |
} else if ( navigator.userAgent.match(/iPad/i) ) { | |
viewport.setAttribute("content", "initial-scale=0.7"); | |
} | |
}(document)); | |
</script> |
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
upstream phpfpm { | |
server unix:/var/run/php5-fpm.sock; | |
} | |
upstream hhvm { | |
server unix:/var/run/hhvm/hhvm.sock; | |
} | |
# SSL | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; |
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 has_wpml_category( $category_slug = null ) { | |
// bye bye no slug provided | |
if ( is_null( $category_slug ) ) | |
return false; | |
// Default languange don't need to be checked | |
global $sitepress; |
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 | |
/** | |
* Adds boddy class on Multisite Activation and Sign Up pages. | |
* | |
*/ | |
function twentyfourteen_multisite_classes() { | |
add_filter( 'body_class', 'twentyfourteen_add_multisite_classes' ); | |
} | |
add_action( 'activate_header', 'twentyfourteen_multisite_classes' ); |
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
/* | |
Theme Name: Theme Name | |
Theme URI: http://underscores.me/ | |
Author: Author | |
Author URI: | |
Description: | |
Version: 1.0 | |
Text Domain: theme-name | |
Domain Path: /languages/ |
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 | |
define('WP_DEBUG', true); | |
define('SCRIPT_DEBUG', true); | |
define('WP_DEBUG_DISPLAY', false); | |
define('SAVEQUERIES', true); | |
?> |
NewerOlder