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
.cross-hover { | |
overflow: hidden; | |
} | |
.cross-hover tr:hover, | |
.cross-hover tr:focus { | |
background: rgba(191,148,86,.25); /* whatever color you like */ | |
} | |
.cross-hover thead tr, |
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
wp-content/cache | |
wp-content/themes/twenty* | |
wp-content/upgrade | |
wp-content/uploads | |
wp-config-sample.php | |
wp-config.php | |
bower_components/ | |
node_modules/ | |
.bowerrc | |
.DS_Store |
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
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
# Attempt to load files from production if | |
# they're not in our local version | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule wp-content/uploads/(.*) \ | |
http://{PROD}/wp-content/uploads/$1 [NC,L] | |
</IfModule> |
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
AL : Alabama | |
AK : Alaska | |
AZ : Arizona | |
AR : Arkansas | |
CA : California | |
CO : Colorado | |
CT : Connecticut | |
DE : Delaware | |
DC : District of Columbia | |
FL : Florida |
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 | |
/** | |
* Hook our function. We are using priority 100 to make sure it fires AFTER | |
* the theme stylesheet is registered/enqueued. | |
* | |
* @link https://developer.wordpress.org/reference/hooks/wp_enqueue_scripts/ | |
* Description of `wp_enqueue_scripts` hook | |
*/ | |
add_action( 'wp_enqueue_scripts', 'slimline_enqueue_template_stylesheet', 100 ); |
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
text/html text/plain text/xml text/css text/javascript application/javascript application/xhtml+xml application/xml application/rss+xml application/atom_xml application/x-javascript application/x-httpd-php application/x-httpd-fastphp application/x-httpd-eruby image/svg+xml |
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
/** | |
* Slimline WordPress Globals | |
* | |
* Javascript conversion of WordPress vars.php needed for when I am using page caching, but still need browser-based body classes, etc. | |
* | |
* @link https://gist.github.com/michaeldozark/17412e3eeda6b391ae8c | |
* @version 0.1.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
add_filter( 'get_terms_orderby', 'slimline_get_terms_orderby_name_as_number', 10, 2 ); | |
/** | |
* slimline_get_terms_orderby_name_as_number function | |
* | |
* @param string $orderby The orderby string created from the initial arguments passed through `get_terms` | |
* @param array $args `get_terms` arguments | |
* @return string $orderby Name cast as a number if `orderby` is 'name_as_number', otherwise unchanged | |
*/ | |
function slimline_get_terms_orderby_name_as_number( $orderby, $args ) { |
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 | |
/** | |
* Login Functions | |
* | |
* Functions and filters that run only on the WordPress login screen. | |
* | |
* @package Slimline | |
* @subpackage Login | |
*/ |
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( 'get_terms_args', 'slimline_get_terms_args', 0 ); // allow extra filtering of terms arguments | |
/** | |
* slimline_get_terms_args filter | |
* | |
* Adds additional filtering to get_terms as needed. | |
* | |
* @param array $args An array of arguments passed from the get_terms() function |
NewerOlder