Jump to content

Blog thumbnail


tothroby

Recommended Posts

Hey Presta fans!

 

I am having a small issue in here with my blog module and I decided to ask for some help!

 

I am using the blog module from Xpert Idea but lately, there is no news about them so I started to do some small modifications by myself. 

 

My problem at the moment is that the blog thumbnails are not clickable. If you want to read an article u must click on the title.

I would love to make the thumbnails clickable and I would appreciate every help from you guys!

 

Here is a link to my blog: BLOG

 

Looking forward to hear from you!  :D

 

Great day to all of you!

Link to comment
Share on other sites

Hey ndiaga,
 
Thx for the answer!
But it is possible to do this without adding the link every time?

 

Here is how to code looks like:

I believe this is the file that I have to modify

{* <pre>{$xipblogpost|print_r}</pre> *}
{if isset($xipblogpost) && !empty($xipblogpost)}
<section class="kr_blog_post_area">
	<div class="kr_blog_post_inner {if $xprt.blog_style == 'default'}blog_style_default{elseif $xprt.blog_style == 'column'}blog_style_column row{/if}">
		{foreach from=$xipblogpost item=xpblgpst}
			<article id="blog_post" class="blog_post blog_post_{$xpblgpst.post_format} {if $xprt.blog_style == 'column'}col-sm-{$xprt.blog_no_of_col}{/if} clearfix">
				<div class="blog_post_content">
					<div class="blog_post_content_top">
						<div class="post_thumbnail">

							{if $xpblgpst.post_format == 'video'}
								{assign var="postvideos" value=','|explode:$xpblgpst.video}
								{include file="./post-video.tpl" videos=$postvideos width='870' height="450" class="{if $postvideos|@count > 1 }carousel{/if}"}
							{elseif $xpblgpst.post_format == 'audio'}
								{assign var="postaudio" value=','|explode:$xpblgpst.audio}
								{include file="./post-audio.tpl" audios=$postaudio width='870' height="450" class="{if $postaudio|@count > 1 }carousel{/if}"}
							{elseif $xpblgpst.post_format == 'gallery'}
								{include file="./post-gallery.tpl" gallery=$xpblgpst.gallery_lists imagesize="medium" class="{if $xpblgpst.gallery_lists|@count > 1 }carousel{/if}"}
							{else}
								<img class="img-responsive" src="{$xpblgpst.post_img_large}" alt="{$xpblgpst.post_title}">

								<div class="blog_mask" href="https://shop.ambiflux.com/blog/post/13_tu-stii-ce-inseamna-iluminatul-corect.html?page_type=post">
									<div class="blog_mask_content">


										<a class="thumbnail_lightbox" href="{$xpblgpst.post_img_large}">
											<i class="icon_plus"></i>
										</a>

										{* <a class="post_link" href="{smartblog::GetSmartBlogLink('smartblog_post',$options)}">
											<i class="icon-link"></i>
										</a> *}
										
									</div>
								</div>
							{/if}
							
							
						</div>

					</div>
					<div class="post_content">
						<h3 class="post_title"><a href="{$xpblgpst.link}">{$xpblgpst.post_title}</a></h3>
						
						<div class="post_meta clearfix">
							

							<p class="meta_date">
								{$xpblgpst.post_date|date_format:"%d %b  %Y"}
							</p>
							
							<p class="meta_category">
								{* <i class="icon-tag"></i> *}
									<a href="{$xpblgpst.category_default_arr.link}">{$xpblgpst.category_default_arr.name}</a>
							</p>

							{* <div class="meta_comment">
								<i class="icon-eye"></i>
								<span>{l s='Views' mod='xipblog'} ({$xpblgpst.comment_count})</span>
							</div> *}
						</div>

						<div class="post_description">
							{if isset($xpblgpst.post_excerpt) && !empty($xpblgpst.post_excerpt)}
								<p>{$xpblgpst.post_excerpt|truncate:500:'...'|escape:'html':'UTF-8'}</p>
							{else}
								<p>{$xpblgpst.post_content|truncate:400:'...'|escape:'html':'UTF-8'}</p>
							{/if}
							
						</div>
						
						<div class="read_more">
							<a class="more" href="{$xpblgpst.link}">{l s='Citeste mai mult' mod='xipblog'} <i class="arrow_right"></i></a>
						</div>

					</div>
				</div>
			</article>
		{/foreach}
	</div>
</section>



 

Link to comment
Share on other sites

  • 3 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...