Jump to content
Tony B.

Getting "claimed or unclaimed" logo info near title in listing detail

Recommended Posts

Tony B.

Hi,

 

For getting Claimed or Unclaimed logo near listing detail title depending if listing detail has been claimed or not:

 

1. Go to /templates/jreviews_overrides/views/themes/mytheme/listings/detail_header.thtml

 

2. Edit detail_header.thtml

 

3. Locate these lines:

<?php /* LISTING INFO ICONS */ ?>

<?php $Jreviews->listingInfoIcons($listing);?>

4. Below <?php $Jreviews->listingInfoIcons($listing);?> add these new lines:

<?php /* CLAIM INFO ICON */ ?>
				
<?php if($listing['Claim']['approved'] == 0):?>
				
     <div class="jrIconClaim" id="<?php echo $listing['Claim']['approved']?>"</div>
		<span><?php __t("Unclaimed");?></span>
     

<?php endif;?>
				
<?php if($listing['Claim']['approved'] == 1):?>
				
     <div class="jrIconClaim" id="<?php echo $listing['Claim']['approved']?>"</div>
		<span><?php __t("Claimed");?></span>
     
        
<?php endif;?>
				    
				 

PS: If you want your own text instead "Claimed" or "Unclaimed" you can change these words by yours. As you know, also you can place these new lines where you want in your file.

 

Enjoy!

post-26686-0-96599400-1505718383_thumb.png

post-26686-0-43654700-1505718392_thumb.png

Edited by tony.boutemeur-1439975038

Share this post


Link to post
Alejandro

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post
Tony B.

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post
BarFactory

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post
Alejandro

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Please refer to our Privacy Policy.