File "design-34.php"

Full path: /var/www/html/cemeau/wp-content/plugins/wp-news-and-widget-pro/templates/grid/design-34.php
File size: 2.05 KB
MIME-type: text/x-php
Charset: utf-8

Download   Open   Edit   Advanced Editor   Back

<?php if($gridcol == '2') {

	$newsprogrid = "6";

} else if($gridcol == '3') {

	$newsprogrid = "4";

}  else if($gridcol == '4') {

	$newsprogrid = "3";

}  else if($gridcol == '5') {

	$newsprogrid = "c5";	

} else if ($gridcol == '1') {

	$newsprogrid = "12";

} else {

	$newsprogrid = "12";

}

?>



<div class="wpnaw-news-grid wpnews-medium-<?php echo $newsprogrid; ?> wpnews-columns <?php echo $css_class; ?>">

	<div class="wpnaw-news-grid-content">

		<?php if( !empty($post_featured_image) ) { ?>

		<div class="wpnaw-news-image-bg" style="<?php echo $height_css; ?>">

			<a href="<?php echo $post_link; ?>" target="<?php echo $link_target; ?>">

				<img src="<?php echo $post_featured_image; ?>" alt="<?php _e('Post Image', 'sp-news-and-widget'); ?>" />

			</a>			

		</div>

		<?php } ?>

		<div class="wpnaw-news-inner-content">

			<?php if($showCategory == "true" && $cate_name !='') { ?>

			<div class="wpnaw-news-categories">

				<?php echo $cate_name; ?>

			</div>

			<?php } ?>			

			<h2 class="wpnaw-news-title">

			<?php if($gridcol == '3') {

						$excerpttitle = get_the_title(); ?>			 	

			 	<a href="<?php echo $post_link; ?>" target="<?php echo $link_target; ?>"><?php echo pro_title_limit_newswords($excerpttitle,8); ?>..</a>

			 <?php } else { ?>

				<a href="<?php echo $post_link; ?>" target="<?php echo $link_target; ?>"><?php the_title(); ?></a>

			 <?php } ?>

			</h2>			

			<?php if($showDate == "true") { ?>

			<div class="wpnaw-news-date">		

				<?php echo get_the_date(); ?>

			</div>

			<?php } 

			if($showContent == "true") {  ?>	

			<div class="wpnaw-news-content">					

				<div class="wpnaw-news-short-content"><?php echo wpnw_get_post_excerpt( $post->ID, get_the_content(), $words_limit, $content_tail ); ?></div>					

				<?php if($showreadmore == 'true') { ?>

				<a href="<?php echo $post_link; ?>" target="<?php echo $link_target; ?>" class="readmorebtn"><?php echo esc_html($read_more_text); ?></a>

				<?php } ?>

			</div>

			<?php } ?>			

		</div>		

	</div>

</div>