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
server { | |
listen 80 default; | |
server_name example.com *.example.com; | |
# server-side header so I don't have w3c validation errors | |
add_header X-UA-Compatible "IE=Edge,chrome=1"; | |
# edit locations as desired | |
access_log /var/www/example.com/logs/access.log; | |
error_log /var/www/example.com/logs/error.log; |
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
jQuery(document).ready(function($){ | |
// Mobile navigation | |
$('#prim-selector, #sec-selector').change(function(){ | |
if ($(this).val()!='') { | |
window.location.href=$(this).val(); | |
} | |
}); | |
}); |
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 | |
//Plugin Name: Basic Google Analytics | |
new Basic_Google_Analytics(); | |
class Basic_Google_Analytics { | |
function __construct( ) { | |
add_action( 'admin_init' , array( &$this , 'register_fields' ) ); | |
add_action( 'init' , array( &$this , 'load_after' ) ); | |
} |
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 | |
# Spotify | |
wp_embed_register_handler( 'spotify', '#https?://open\.spotify\.com/.*#', 'spotify_embed_handler' ); | |
add_shortcode( 'spotify', 'spotify_shortcode' ); | |
if ( get_option('embed_autourls') ) | |
add_filter( 'the_content', 'spotify_embed_ids', 7 ); |