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 | |
/* | |
Description: Adds a taxonomy filter in the admin list page for a custom post type. | |
Written for: http://wordpress.stackexchange.com/posts/582/ | |
By: Mike Schinkel - http://mikeschinkel.com/custom-workpress-plugins | |
Instructions: Put this code in your theme's functions.php file or inside your own plugin. Edit to suite your post types and taxonomies. Hope this helps... | |
*/ | |
add_filter('manage_listing_posts_columns', 'add_businesses_column_to_listing_list'); | |
function add_businesses_column_to_listing_list( $posts_columns ) { | |
if (!isset($posts_columns['author'])) { |
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
/* ========================================================================== | |
INUITCSS | |
========================================================================== */ | |
/** | |
* inuitcss, by @csswizardry | |
* | |
* github.com/inuitcss | inuitcss.com | |
*/ |
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
///*------------------------------------*\ | |
// #MIXINS | |
//\*------------------------------------*/ | |
// Spit out vendor prefixes in one go. Very pragmatic, far from perfect. | |
@mixin vendor($property, $value...) { | |
-webkit-#{$property}: $value; | |
-moz-#{$property}: $value; | |
#{$property}: $value; | |
} |
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
///*------------------------------------*\ | |
// #GLOBAL | |
//\*------------------------------------*/ | |
$brand-color: #000000; | |
$brand-round: 3px; | |
$base-round: $brand-round; |
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
///*------------------------------------*\ | |
// #COLORS | |
//\*------------------------------------*/ | |
$color-brand: $brand-color; | |
$color-pink: $color-brand; | |
$color-gray: #333; | |
$color-gray-light: #999; | |
$color-gray-ui: #ddd; | |
$color-green: #859900; |
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
/*------------------------------------*\ | |
#SHOW-HIDE | |
\*------------------------------------*/ | |
.hide, .screen-reader-text { @include hide(); } | |
@include media-query(palm) { | |
.hide-palm { @include hide(); } | |
} |
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 | |
/** | |
* Register all actions and filters for the plugin | |
* | |
* @link http://chinarajames.com | |
* @since 1.0.0 | |
* | |
* @package Studiousapp_Notes | |
* @subpackage Studiousapp_Notes/includes |
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
add_action('init', 'studious_redirect_to_custom_login'); | |
function studious_redirect_to_custom_login() { | |
$login_page = home_url('/login/'); | |
$page = basename($_SERVER['REQUEST_URI']); | |
if( $page == "wp-login.php" && $_SERVER['REQUEST_METHOD'] == 'GET') { | |
wp_redirect($login_page); | |
exit; | |
} | |
} |
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 | |
use Vault\Sage\Wrapper; | |
function sage_wrap_info() { | |
$format = '<h6>The %s template being used is: %s</h6>'; | |
$main = Wrapper\SpringWrapping::$main_template; | |
global $template; | |
printf($format, 'Main', $main); |