Skip to content
// 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;
}
});
<?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));
}
?>
<div class="rightside">
<a href="index.html"><img src="images/bfglogo.png" class="bfglogo"></a>
<p class="name">
Josh A. Weston
</p>
<p class="subhead">
Strategy | Art direction | Design
</p>
<p class="date">
<!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 */ ?>
<?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(); ?>
/* Animate max-height instead! */
div {
max-height: 1em;
transition: 1s;
}
div:hover {
max-height: 1000em;
}​
Something went wrong with that request. Please try again.