Comue

Change order between title and caption and language

8 posts in this topic

Hi,

I just installed your extension and it works like a charm. I was wondering if it was possible to change the order of appearance between title and caption. First the title appears and then the caption. I would like to change this.

Do you know also where I can change the language for "Read more" ? I need to write it in french.

Thank you for your time

Share this post


Link to post
Share on other sites

Hi,

I tried to change the order as shown by the thread you mentioned. It actually didn't work. I placed the code like this but i keep refreshing the page and nothing changes which is weird...


<?php if( $row->thumbnail && $align_image == "center" ): ?>
<div class="bt-center">
<a target="<?php echo $openTarget; ?>"
class="bt-image-link<?php echo $modal? ' modal':''?>"
title="<?php echo $row->title;?>" href="<?php echo $modal?$row->mainImage:$row->link;?>">
<img <?php echo $imgClass ?> src="<?php echo $row->thumbnail; ?>" alt="<?php echo $row->title?>" style="width:<?php echo $thumbWidth ;?>px;" title="<?php echo $row->title?>" />
</a>
</div>
<?php endif ; ?>

<?php if( $showTitle ): ?>
<a class="bt-title" target="<?php echo $openTarget; ?>"
title="<?php echo $row->title; ?>"
href="<?php echo $row->link;?>"> <?php echo $row->title_cut; ?> </a><br />
<?php endif; ?>

<?php if( $showAuthor || $showDate ): ?>
<div class="bt-extra">
<?php if( $showAuthor ): ?>
<span class="bt-author"><?php echo JText::sprintf('BT_CREATEDBY' ,
JHtml::_('link',JRoute::_($row->authorLink),$row->author)); ?>
</span>
<?php endif; ?>
<?php if( $showDate ): ?>
<span class="bt-date"><?php echo JText::sprintf('BT_CREATEDON', $row->date); ?>
</span>
<?php endif; ?>
</div>
[/CODE]

Share this post


Link to post
Share on other sites

I see you don't change position of image and title, the title is still below the image.

You must change like that


<?php if( $row->thumbnail && $align_image == "center" ): ?>
<?php if( $showTitle ): ?>
<a class="bt-title" target="<?php echo $openTarget; ?>"
title="<?php echo $row->title; ?>"
href="<?php echo $row->link;?>"> <?php echo $row->title_cut; ?> </a><br />
<?php endif; ?>

<div class="bt-center">
<a target="<?php echo $openTarget; ?>"
class="bt-image-link<?php echo $modal? ' modal':''?>"
title="<?php echo $row->title;?>" href="<?php echo $modal?$row->mainImage:$row->link;?>">
<img <?php echo $imgClass ?> src="<?php echo $row->thumbnail; ?>" alt="<?php echo $row->title?>" style="width:<?php echo $thumbWidth ;?>px;" title="<?php echo $row->title?>" />
</a>
</div>
<?php endif ; ?>



<?php if( $showAuthor || $showDate ): ?>
<div class="bt-extra">
<?php if( $showAuthor ): ?>
<span class="bt-author"><?php echo JText::sprintf('BT_CREATEDBY' ,
JHtml::_('link',JRoute::_($row->authorLink),$row->author)); ?>
</span>
<?php endif; ?>
<?php if( $showDate ): ?>
<span class="bt-date"><?php echo JText::sprintf('BT_CREATEDON', $row->date); ?>
</span>
<?php endif; ?>
</div>
[/CODE]

Share this post


Link to post
Share on other sites

Hi,

I changed like you said the code but apparently, it doesn't change much. Do you have an idea ? Thank you very much for your time.


<?php if( $row->thumbnail && $align_image == "center" ): ?>
<?php if( $showTitle ): ?>
<a class="bt-title" target="<?php echo $openTarget; ?>"
title="<?php echo $row->title; ?>"
href="<?php echo $row->link;?>"> <?php echo $row->title_cut; ?> </a><br />
<?php endif; ?>
<div class="bt-center">
<a target="<?php echo $openTarget; ?>"
class="bt-image-link<?php echo $modal? ' modal':''?>"
title="<?php echo $row->title;?>" href="<?php echo $modal?$row->mainImage:$row->link;?>">
<img <?php echo $imgClass ?> src="<?php echo $row->thumbnail; ?>" alt="<?php echo $row->title?>" style="width:<?php echo $thumbWidth ;?>px;" title="<?php echo $row->title?>" />
</a>
</div>
<?php endif ; ?>



<?php if( $showAuthor || $showDate ): ?>
<div class="bt-extra">
<?php if( $showAuthor ): ?>
<span class="bt-author"><?php echo JText::sprintf('BT_CREATEDBY' ,
JHtml::_('link',JRoute::_($row->authorLink),$row->author)); ?>
</span>
<?php endif; ?>
<?php if( $showDate ): ?>
<span class="bt-date"><?php echo JText::sprintf('BT_CREATEDON', $row->date); ?>
</span>
<?php endif; ?>
[/CODE]

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now