<?php global $SlideDeckPlugin; ?>
<div class="slide-content">
	<div class="slidedeck-vertical-center-outer">
	    <div class="slidedeck-vertical-center-middle">
	        <div class="slidedeck-vertical-center-inner">
				<p class="slide-title" itemprop="name headline">
				    <?php if( $slidedeck['options']['linkTitle'] == true ): ?><a href="<?php echo $permalink; ?>" target="<?php echo $target; ?>"><?php endif; ?>
				        <?php echo $title; ?>
				    <?php if( $slidedeck['options']['linkTitle'] == true ): ?></a><?php endif; ?>
			    </p>
                
                <div class="slide-meta">
                    <?php if( !empty( $author_avatar ) ): ?>
                        <img src="<?php echo $author_avatar; ?>" alt="<?php echo $author_name; ?>" class="slide-author-avatar" />
                    <?php endif; ?>
                    <span class="slide-author">
                        <?php if( !empty( $author_url ) && $slidedeck['options']['linkAuthorName'] == true ): ?><a href="<?php echo $author_url; ?>" target="_blank"><?php endif; ?>
                            <?php echo $author_name; ?>
                        <?php if( !empty( $author_url ) && $slidedeck['options']['linkAuthorName'] == true ): ?></a><?php endif; ?>
                    </span>
                </div>
                
				<div class="slide-excerpt">
    				<p><?php 
    				if( $size == 'small' ) {
    					$exLimit = 30;
    					if ( strlen($excerpt) > $exLimit ) {
    						echo substr($excerpt, 0, $exLimit) . '&hellip;';
    					}
    				} else {
    					echo $excerpt;
    				}
    				?></p>
    				<a href="<?php echo $permalink; ?>" class="readmore accent-color" target="<?php echo $target; ?>">Read more&#8230;</a>
				</div>
			</div>
		</div>
	</div>
</div>
<div class="bar-fix left"></div><div class="bar-fix right"></div><div class="bar-fix bottom"></div>
<div class="date">
	<div class="month"><?php echo date( "M", ( is_numeric( $created_at ) ? $created_at : strtotime( $created_at ) ) ); ?></div>
	<div class="day"><?php echo date( "j", ( is_numeric( $created_at ) ? $created_at : strtotime( $created_at ) ) ); ?></div>
</div>
<meta class="hidden" itemprop="caption" content="<?php echo strip_tags( $title ); ?>" />
<?php if( !empty($image) && $SlideDeckPlugin->is_first_slide ){ ?>
    <img itemprop="thumbnailUrl image" class="sd2-slide-background" src="<?php echo $image; ?>" alt="<?php echo strip_tags( $title ); ?>" />
<?php } else if( !empty($image) ) { ?>
	<img itemprop="thumbnailUrl image" class="slide-deck-lazy sd2-slide-background" data-src="<?php echo $image; ?>" src="<?php echo SLIDEDECK2_BLANK_IMAGE; ?>" alt="<?php echo strip_tags( $title ); ?>" />
	<noscript><img class="nolazy sd2-slide-background" src="<?php echo $image; ?>" alt="<?php echo $title; ?>" /></noscript>
<?php } ?>
