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
/* Animate max-height instead! */ | |
div { | |
max-height: 1em; | |
transition: 1s; | |
} | |
div:hover { | |
max-height: 1000em; | |
} |
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_header(); ?> | |
<div class="leftside"> | |
<?php while ( have_posts() ) : the_post(); ?> | |
<h3 class="title"><?php the_title(); ?></h3> | |
<h4 class="date"> ... </h4> | |
<div class="description"> | |
<?php the_content(); ?> |
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> | |
<head> | |
<title><?php bloginfo('name'); ?><?php wp_title('|'); ?></title> | |
<link rel="icon" href="<?php bloginfo('template_directory'); ?>/favicon.ico" type="image/x-icon"> | |
<link rel="stylesheet" media="all" href="<?php bloginfo('stylesheet_url'); ?>" /> | |
<link href='http://fonts.googleapis.com/css?family=Amatic+SC:400,700' rel='stylesheet' type='text/css'> | |
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'> | |
<?php if(is_single()) { /* Only load lightbox if on a single post */ ?> |
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 | |
$images = get_children('post_parent='.$post->ID.'&post_type=attachment&post_mime_type=image&numberposts=1&order=ASC'); | |
if(!empty($images)){ | |
echo wp_get_attachment_image(reset($images)->ID, array(75,75)); | |
} | |
?> |
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
// use in .hbs template: {{localeFormattedDate dateToConvert}} | |
Handlebars.registerHelper("localeFormattedDate", function( context, block ) { | |
if ( window.moment ) { | |
return moment( Date(context) ).format( config.locale.dateFormat ); | |
}else{ | |
return context; | |
} | |
}); |