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 | |
add_filter('body_class','browser_body_class'); | |
function browser_body_class($classes) { | |
global $is_lynx, $is_gecko, $is_IE, $is_opera, $is_NS4, $is_safari, $is_chrome, $is_iphone; | |
if($is_lynx) $classes[] = 'lynx'; | |
elseif($is_gecko) $classes[] = 'gecko'; | |
elseif($is_opera) $classes[] = 'opera'; | |
elseif($is_NS4) $classes[] = 'ns4'; | |
elseif($is_safari) $classes[] = 'safari'; |
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: Plugin Boilerplate | |
Version: 0.1-alpha | |
Description: This is how I like to make sense of the WordPress plugin architecture | |
Author: Adam Davis | |
Author URI: http://admataz.com | |
Plugin URI: http://admataz.com | |
Text Domain: admataz-plugin-boilerplate | |
Domain Path: /languages |
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
::-webkit-scrollbar { | |
width: 12px; | |
} | |
::-webkit-scrollbar-track { | |
background: none; | |
} | |
::-webkit-scrollbar-thumb { | |
background: -webkit-linear-gradient(left, #547c90, #002640); |
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
$(document).ready(function(){ | |
$("#go-to-top").hide(); | |
$(function () { | |
$(window).scroll(function () { | |
if ($(this).scrollTop() > 100) { | |
$('#go-to-top').fadeIn(); | |
} else { | |
$('#go-to-top').fadeOut(); | |
} | |
}); |
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
<!-- Countdown dashboard start --> | |
<div id="countdown_dashboard"> | |
<!--<h1>jQuery Countdown</h1>--> | |
<hr class="light"> | |
<div class="dash weeks_dash"> | |
<span class="dash_title">weeks</span> | |
<div class="digit">4</div> | |
<div class="digit">6</div> | |
</div> |
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
//Disable the dashboard welcome screen | |
//This will only hide the panel, not replace it with any other content. | |
add_filter("get_user_metadata", "my_own_welcome_panel", 1, 4); | |
function my_own_welcome_panel($null, $object_id, $meta_key, $single) { | |
if($meta_key === 'my_own_welcome_panel') { return 0; } | |
} |
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 1 - This is for the page template page-gform2.php --> | |
<style type="text/css"> | |
#gform_wrapper_2{font-family:"Trebuchet MS", Arial, Helvetica, sans-serif} | |
</style> | |
<?php gravity_form(2,false,false) ?> |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"/> | |
<title>Responsive Cycle</title> | |
<style> |
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
<h1>Animicons</h1> | |
<h4><span class='quiet'>♦</span> Sprite Animations Using Icon Fonts <span class='quiet'>♦</span></h3> | |
<div id='icon-container'> | |
<!-- Broadcast --> | |
<span data-start='e000' | |
data-frames='3' | |
data-interval='200'> | |
</span> |