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
if(has_post_thumbnail()) | |
{ | |
the_post_thumbnail(); | |
} | |
//the_post_thumbnail() can take an argument of an image size | |
//http://codex.wordpress.org/Function_Reference/the_post_thumbnail |
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
<!DOCTYPE html> | |
<html lang="en" dir="ltr"> | |
<head> | |
<title></title> | |
<!-- ||| Meta information for search engine goodness and iThings ||| --> | |
<meta charset="utf-8"> |
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
<ul> | |
<li><a href="http://earth.local.significantlybetter/shop/?range=-29">Under <span class="pricedisplay">£30.00</span></a></li> | |
<li><a href="http://earth.local.significantlybetter/shop/?range=30-39"><span class="pricedisplay">£30.00</span> - <span class="pricedisplay">£39.00</span></a></li> | |
<li><a href="http://earth.local.significantlybetter/shop/?range=40-59"><span class="pricedisplay">£40.00</span> - <span class="pricedisplay">£59.00</span></a></li> | |
<li><a href="http://earth.local.significantlybetter/shop/?range=60-99"><span class="pricedisplay">£60.00</span> - <span class="pricedisplay">£99.00</span></a></li> | |
<li><a href="http://earth.local.significantlybetter/shop/?range=100-239"><span class="pricedisplay">£100.00</span> - <span class="pricedisplay">£239.00</span></a></li> | |
<li><a href="http://earth.local.significantlybetter/shop/?range=240-">Over <span class="pricedisplay">£240.00</span></a></li> | |
<li><a href="http://earth.local.significantlybetter/shop/?range=all">Show All</a></li> | |
</ul> |
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 | |
if( !class_exists( 'friendly_responsiveslides_slider' ) ) | |
{ | |
/** | |
* Friendly ResponsiveSlider using http://responsive-slides.viljamis.com/ | |
* | |
* @package Earth | |
* @author iamfriendly |
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 global $post; $protected = ( !empty( $post->post_password ) ) ? "custom_class" : ""; ?> | |
<body <?php body_class( $protected ); ?>> | |
. | |
. | |
. | |
</body> |
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
//In your functions.php (or wherever) | |
register_sidebar( | |
array( | |
'id' => 'primary', | |
'name' => __( 'Primary', 'your_theme' ), | |
'description' => __( 'The primary sidebar used on pages and posts. By default on the Right Hand Side', 'your_theme' ), | |
'before_widget' => '<div id="%1$s" class="widget %2$s">', | |
'after_widget' => '</div>', | |
'before_title' => '<h4 class="widget-title"><span class="title">', | |
'after_title' => '</span></h4>' |
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 my_myme_types($mime_types){ | |
$mime_types['svg'] = 'image/svg+xml'; | |
return $mime_types; | |
} | |
add_filter('upload_mimes', 'my_myme_types', 1, 1); |
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 | |
extract(shortcode_atts(array("dir" => $directory, "button" => 'Upload To Dropbox!'), $atts)); | |
$rad_dropbox_settings = admin_url( 'admin.php?page=rad_dropbox_settings', '' ); | |
if (empty($wp_settings_check)) { echo '<div class="message-yellow">You must enter your Dropbox account details first! Please go to the <a href="'.$rad_dropbox_settings.'">settings</a> page!</div><br>'; } | |
echo $message; ?> | |
<?php | |
$output = '<form method="POST" enctype="multipart/form-data" class="rad-dropbox-uploader">'; | |
$output .= '<input type="hidden" name="dest" value="$dir" />'; |
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
I have a standalone git repo (which is on github) which contains my 'framework'. That framework is a | |
load of php/css/js/less files, in several subdirectories. I use that framework in all of my projects. | |
I have another standalone git repo which contains all of my projects. | |
At the moment, if I update the framework, I then have to copy and paste it into all of my projects, | |
overwriting the existing stuff in each project folder. | |
I know! The humanity. Think of the children. But we live in the 21st Century etc. |
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
data:text/html;charset=utf-8, <title>TextEditor</title> <link rel="shortcut icon" href="http://g.etfv.co/https://docs.google.com"/> <style> html{height: 100%;} body{background: -webkit-linear-gradient(#f0f0f0, #fff); padding: 3%; height: 94%;} .paper { font: normal 12px/1.5 "Lucida Grande", arial, sans-serif; width: 50%; height: 80%; margin: 0 auto; padding: 6px 5px 4px 42px; position: relative; color: #444; line-height: 20px; border: 1px solid #d2d2d2; background: #fff; background: -webkit-gradient(linear, 0 0, 0 100%, from(#d9eaf3), color-stop(4%, #fff)) 0 4px; background: -webkit-linear-gradient(top, #d9eaf3 0%, #fff 8%) 0 4px; background: -moz-linear-gradient(top, #d9eaf3 0%, #fff 8%) 0 4px; background: -ms-linear-gradient(top, #d9eaf3 0%, #fff 8%) 0 4px; background: -o-linear-gradient(top, #d9eaf3 0%, #fff 8%) 0 4px; background: linear-gradient(top, #d9eaf3 0%, #fff 8%) 0 4px; -webkit-background-size: 100% 20px; -moz-background-size: 100% 20px; -ms-background-size: 100% 20px; -o-background-size: 100% 20p |
OlderNewer