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-appearance: definitions | |
https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Webkit_Extensions | |
*/ | |
/* | |
Only apply to touch devices. | |
Font-size at 16px avoids the automatic screen zooming. | |
*/ | |
html.touch select, |
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
# parent theme | |
<?php bloginfo('template_directory'); ?> | |
# child theme | |
<?php bloginfo('stylesheet_directory'); ?> |
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 | |
if ( is_page_template('page-about.php') ) { | |
// Returns true when 'page-about.php' is being used. | |
} else { | |
// Returns false when 'page-about.php' is not being used. | |
} | |
?> |
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
// easy retina-ready images | |
// http://37signals.com/svn/posts/3271-easy-retina-ready-images-using-scss | |
@mixin image-2x($image, $width, $height) { | |
@media (-webkit-min-device-pixel-ratio: 2), | |
(min--moz-device-pixel-ratio: 2), | |
(-o-min-device-pixel-ratio: 2/1), | |
(min-device-pixel-ratio: 2), | |
(min-resolution: 192dpi), | |
(min-resolution: 2dppx) { | |
/* on retina, use image that's scaled by 2 */ |
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
/* https://stackoverflow.com/a/27315792 */ | |
/* IE 6 */ | |
* html .ie6 { | |
property: value; | |
} | |
/* or */ | |
.ie6 { | |
_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
/* IE 7 only hack */ | |
*:first-child+html #myDiv { definition } | |
/* IE 7 and below hacks */ | |
*:first-child+html #myDiv, | |
* html #myDiv { definition } | |
/* IE 6 and below hacks */ | |
* html #myDiv { definition } |
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
* html p { | |
overflow: visible; | |
zoom: 1; | |
} |
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
img { | |
-ms-interpolation-mode: bicubic; | |
} |
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
Search: <BIG>(.*)</BIG> | |
Replace: <FONT SIZE="+1">\1</FONT> | |
OR | |
Search: <BIG>([^<]*)<BIG> | |
Replace: <FONT SIZE="+1">\1</FONT> |
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 | |
$block = module_invoke('views', 'block', 'view', 'BLOCK-NAME-block_10'); | |
if ($block['content']) { ?> | |
<div class="name"> | |
<?php | |
print $block['content']; | |
?> | |
</div> | |
<?php } ?> |
OlderNewer