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
<div class="sixcol first"> | |
<h2>This Month</h2> | |
<?php | |
//This gets the current month starting at day 1, and the next month starting at day 1 | |
$now = mktime(0, 0, 0, date("m"), 1, date('Y')); | |
$then = mktime(0, 0, 0, (date("m") % 12 + 1), 1, date('Y')); | |
query_posts( |
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 ( !file_exists( $dest_path ) ) { | |
$myurl = $file_path.'[0]'; | |
$image = new Imagick($myurl); | |
$image->setResolution( 300, 300 ); | |
$image->setImageFormat( "png" ); | |
$image->writeImage($dest_path); | |
}; | |
?> |
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
// THIS IS A RISK. CONVERT PDF's TO JPG FOR THUMBNAILS. | |
// Seriously hope it works | |
function load_pmg_single_doc() { | |
register_widget('PMG_Single_Doc'); | |
} | |
add_action('widgets_init', 'load_pmg_single_doc'); | |
class PMG_Single_Doc extends WP_Widget { |
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
<section class="tab-navigation"> | |
<ul class="tabs"> | |
<?php // This is the jquery loop part. it's clever, so look carefully at what happens | |
wp_reset_query(); | |
$posttype = 'post'; //<------- Change your post type here | |
// Query whatever you need, for this, i'll be using a custom post type. | |
$displayposts = new WP_Query(); | |
$displayposts->query('post_type='.$posttype.'&order=asc'); | |
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
var jbtle = jQuery(".jobtitle a").text(); | |
jQuery(document).ready(function($){ | |
$(".jobtitle a").each(function(){ | |
$(this).click(function (){ | |
$("#thejobtitle").html(jbtle); | |
}); | |
}); | |
}); |
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 ($categories) { ?> | |
<div class="category-list"> | |
<?php if (count($categories) <= 4) { ?> | |
<ul class="categoryRow twelvecol clearfix first"> | |
<?php foreach ($categories as $category) { ?> | |
<li class="threecol clearfix first img"> | |
<?php if ($category['thumb']) { ?> | |
<a href="<?php echo $category['href']; ?>"><img src="<?php echo $category['thumb']; ?>" alt="<?php echo $category['name']; ?>" /></a> | |
<?php } ?> |
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 | |
$classes = array(' first', '' , '', ' last'); | |
if ($categories) { ?> | |
<div class="category-list"> | |
<?php if (count($categories) <= 4) { ?> | |
<ul class="categoryRow twelvecol clearfix first"> | |
<?php foreach ($categories as $category) { ?> | |
<li class="threecol clearfix first img"> | |
<?php if ($category['thumb']) { ?> |
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
.notice{ | |
$colours: pink $pink, orange $orange, teal $teal; | |
@each $colour in $colours { | |
&.#{nth($colour, 1)} { | |
background: nth($colour, 2); | |
h3{ | |
color: $white; |
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
g remote set-url origin git@bitbucket:/#new-url#/repo.git |
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 //This gets the current month starting at day 1, and the next month starting at day 1 | |
$now = mktime(0, 0, 0, date("m"), 1, date('Y')); | |
$then = mktime(0, 0, 0, (date("m") % 12 + 1), 1, date('Y')); | |
query_posts( | |
array( | |
'post_type' => 'classes', // Custom Post Type | |
'order' => 'asc', // Order with earliest first | |
'orderby' => 'wpcf-date-and-time', // Order by the custom field | |
'posts_per_page' => -1, // Show all |
OlderNewer