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
/** | |
* | |
* HIDE THE WORDPRESS UPDATE NOTIFICATION (FOR ALL USERS EXCEPT SYSADMIN) | |
* | |
**/ | |
global $user_login; | |
get_currentuserinfo(); | |
if (!current_user_can('update_plugins')) { // checks to see if current user can update plugins | |
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 | |
$client_id = "xxx"; //your client-id here | |
$tag = "kittens"; //your tag here | |
$cachefile = "instagram_cache/$tag.cache"; | |
if (file_exists($cachefile) && time()-filemtime($cachefile)<3600) { | |
$contents = file_get_contents($cachefile); | |
} else { |
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(){ | |
$("ul.dropdown li").hover(function(){ | |
$(this).addClass("hover"); | |
$('ul:first',this).css('visibility', 'visible'); | |
}, function(){ | |
$(this).removeClass("hover"); |
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 $get_the_image_as_array = get_the_image( array( 'image_scan' => true, 'format' => 'array' ) ); ?> | |
<?php if ($get_the_image_as_array[url]) { ?> | |
<div class="thumbnail-wrap"> | |
<?php if ( function_exists( 'get_the_image' ) ) { ?> | |
<img src="<?php echo $get_the_image_as_array[url]; ?>"> | |
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
# Apache configuration file | |
# httpd.apache.org/docs/2.2/mod/quickreference.html | |
# Note .htaccess files are an overhead, this logic should be in your Apache config if possible | |
# httpd.apache.org/docs/2.2/howto/htaccess.html | |
# Techniques in here adapted from all over, including: | |
# Kroc Camen: camendesign.com/.htaccess | |
# perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/ | |
# Sample .htaccess file of CMS MODx: modxcms.com |
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 $number = get_tiger_balm('tiger_slideshownumber'); | |
if ( $number == "0" ) { ?> | |
<img id="slide1" src="<?php echo get_tiger_balm('tiger_slide1'); ?>" alt="<?php bloginfo('name'); ?>" /> | |
<img id="slide2" src="<?php echo get_tiger_balm('tiger_slide2'); ?>" alt="<?php bloginfo('name'); ?>" /> | |
<?php } elseif ($number == "1") { ?> | |
<img id="slide1" src="<?php echo get_tiger_balm('tiger_slide1'); ?>" alt="<?php bloginfo('name'); ?>" /> |
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
@media print, | |
(-o-min-device-pixel-ratio: 5/4), | |
(-webkit-min-device-pixel-ratio: 1.25), | |
(min-resolution: 120dpi) { | |
} |
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 $attachments = get_children( array('post_parent' => get_the_ID(), 'post_type' => 'attachment', 'post_mime_type' =>'image') ); | |
foreach ( $attachments as $attachment_id => $attachment ) { | |
$url = wp_get_attachment_url($attachment->ID); | |
echo '<a href="' . $url . '" rel="prettyPhoto[' . $gallerynumber . ']">' . wp_get_attachment_image( $attachment_id, 'full_size' ) . '</a>'; | |
} ?> |
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
span.cursor { | |
display: inline-block; | |
margin-left: 1px; | |
-webkit-animation: blink 2s linear 0s infinite; | |
-moz-animation: blink 2s linear 0s infinite; | |
-ms-animation: blink 2s linear 0s infinite; | |
-o-animation: blink 2s linear 0s infinite; | |
} | |
@-webkit-keyframes blink { |
OlderNewer