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 | |
/* | |
* Here are some basic WordPress admin customizations. | |
*/ | |
// load a custom stylesheet for wp-login.php | |
function neato_prefix_custom_login_stylesheet() { | |
wp_enqueue_style( 'custom_login_stylesheet', get_template_directory_uri() . '/css/login.css' ); | |
} |
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
var loading = false; | |
$(window).scroll(function(){ | |
if((($(window).scrollTop()+$(window).height())+250)>=$(document).height()){ | |
if(loading == false){ | |
loading = true; | |
$('#loadingbar').css("display","block"); | |
$.get("load.php?start="+$('#loaded_max').val(), function(loaded){ | |
$('body').append(loaded); | |
$('#loaded_max').val(parseInt($('#loaded_max').val())+50); | |
$('#loadingbar').css("display","none"); |
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
// Easy lettering.js | |
$('.splitWord').children().andSelf().contents().each(function() { | |
if (this.nodeType == 3) { | |
$(this).replaceWith( | |
$(this).text().replace(/(\w)/g, "<span class='char'>$&</span>") | |
); | |
} | |
}); | |
// Adds class,to each letter `.char1`, `.char2`, `.char3`, ... |
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
@function black($opacity){ | |
@return rgba(0,0,0,$opacity) | |
} | |
@function white($opacity){ | |
@return rgba(255,255,255,$opacity) | |
} | |
@mixin box-emboss($opacity, $opacity2){ | |
box-shadow:white($opacity) 0 1px 0, inset black($opacity2) 0 1px 0; | |
} |
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 | |
/* | |
Plugin Name: TogetherJS for WordPress | |
Plugin URI: http://www.rami.nu | |
Description: Integrates TogetherJS with WordPress | |
Version: 0.1 | |
Author: ramiabraham | |
Author URI: http://rami.nu | |
License: GPL 2.0 | |
* |
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 | |
/** | |
* Include and setup custom widgets | |
* | |
*/ | |
/** | |
* display featured posts | |
* | |
* @return OTT_Widgets |
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 | |
/** | |
* Disable all non-whitelisted jetpack modules. | |
* | |
* This will allow all of the currently available Jetpack modules to work | |
* normally. If there's a module you'd like to disable, simply comment it out | |
* or remove it from the whitelist and it will no longer load. | |
* | |
* @author FAT Media, LLC | |
* @link http://wpbacon.com/tutorials/disable-jetpack-modules/ |
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 | |
/** | |
* Plugin Name: Static Templates | |
* | |
* If most of your site content is in .php template files, and you're tired of | |
* creating new pages, assigning them page templates, creating page templates | |
* then doing it all over again on production, this plugin is for you. | |
* | |
* Examples: | |
* |
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
// Allows you to add ?debug=true query parameter | |
// For live sites in which a dev environment is not possible. | |
if ( isset($_GET['debug']) && $_GET['debug'] == 'true') { | |
define('WP_DEBUG', true); | |
} | |
// A nice stack recommended by @jjeaton, | |
// for dev environments: |
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 (($meta_field['type']['type'] == 'checkbox') && is_array($meta_field['type']['options'])) { | |
to: | |
if ((is_array($meta_field['type'])) && ($meta_field['type']['type'] == 'checkbox') && is_array($meta_field['type']['options'])) { |
OlderNewer