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
| // Match heights of elements on homepage for uniform display | |
| matchHeight = function() { | |
| //Timeout added to counteract delays in element sizing from loading | |
| setTimeout(function(){ | |
| jQuery('.equal').each(function(){ | |
| var maxHeight = '0'; | |
| jQuery('.equal').each(function(){ | |
| maxHeight = (jQuery(this).height() > maxHeight) ? jQuery(this).height() : maxHeight; | |
| }); | |
| jQuery('.equal').height(maxHeight); |
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(){ | |
| $('#mytext').keyup(function(){ | |
| $('#carrytext').html(this.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
| /* ------------ RESPONSIVE MEDIA QUERIES ------- */ | |
| @media (max-width: 1024px) { | |
| } | |
| /* iPad portrait */ | |
| @media (max-width: 768px) { | |
| } |
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
| function shortenText($text, $chars) { | |
| // Change to the number of characters you want to display | |
| $text = $text." "; | |
| $text = substr($text,0,$chars); | |
| $text = substr($text,0,strrpos($text,' ')); | |
| $text = $text."..."; | |
| return $text; | |
| } |
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
| switch($_SERVER['SERVER_NAME']) { | |
| //local | |
| case 'localhost': | |
| define('DB_NAME', ''); | |
| define('DB_USER', ''); | |
| define('DB_PASSWORD', ''); | |
| define('DB_HOST', '127.0.0.1'); | |
| define('DB_CHARSET', 'utf8'); | |
| define('DB_COLLATE', ''); | |
| define('WP_DEBUG', true); |
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
| // just add this to functions.php | |
| function remove_page_class($wp_list_pages) { | |
| $pattern = '/\<li class="page_item[^>]*>/'; | |
| $replace_with = '<li>'; | |
| return preg_replace($pattern, $replace_with, $wp_list_pages); | |
| } | |
| add_filter('wp_list_pages', 'remove_page_class'); |
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
| // ---------------------------------------------------------- | |
| // A short snippet for detecting versions of IE in JavaScript | |
| // without resorting to user-agent sniffing | |
| // ---------------------------------------------------------- | |
| // If you're not in IE (or IE version is less than 5) then: | |
| // ie === undefined | |
| // If you're in IE (>=5) then you can determine which version: | |
| // ie === 7; // IE7 | |
| // Thus, to detect IE: | |
| // if (ie) {} |
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
| /* =Reset default browser CSS. Based on work by Eric Meyer: http://meyerweb.com/eric/tools/css/reset/index.html | |
| -------------------------------------------------------------- */ | |
| html, body, div, span, applet, object, iframe, | |
| h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
| a, abbr, acronym, address, big, cite, code, | |
| del, dfn, em, font, ins, kbd, q, s, samp, | |
| small, strike, strong, sub, sup, tt, var, | |
| dl, dt, dd, ol, ul, li, | |
| fieldset, form, label, legend, |
NewerOlder