Modified:Displaying photos count only when photos are enabled

This commit is contained in:
Awais-cb 2018-06-25 12:01:02 +05:00
parent f9b9f72c11
commit 8b884b4139

View file

@ -189,41 +189,43 @@
<br> <br>
<span class="line-height-1 smaller-90 new1"> {lang code='Videos'} </span> <span class="line-height-1 smaller-90 new1"> {lang code='Videos'} </span>
</button> </button>
{if $Cbucket->configs['photosSection']==yes}
<span class="btn btn-primary new1" style="background-color: #000000;color: #ffffff"> <span class="btn btn-primary new1" style="background-color: #000000;color: #ffffff">
<span class="line-height-1 bigger-170 blue">{$user.total_photos}</span> <span class="line-height-1 bigger-170 blue">{$user.total_photos}</span>
<br> <br>
<span class="line-height-1 smaller-90 new1"> {lang code="photos"} </span> <span class="line-height-1 smaller-90 new1"> {lang code="photos"} </span>
</span> </span>
<span class="btn btn-primary new1" style="background-color: #000000;color: #ffffff"> {/if}
<span class="line-height-1 bigger-170 blue">{$user.num_visits|number_format}</span> <span class="btn btn-primary new1" style="background-color: #000000;color: #ffffff">
<br> <span class="line-height-1 bigger-170 blue">{$user.num_visits|number_format}</span>
<span class="line-height-1 smaller-90 new1"> {lang code='total_logins'} </span> <br>
</span> <span class="line-height-1 smaller-90 new1"> {lang code='total_logins'} </span>
<span class="btn btn-primary new1" style="background-color: #000000;color: #ffffff"> </span>
<span class="line-height-1 bigger-170 blue">{$user.total_watched|number_format}</span> <span class="btn btn-primary new1" style="background-color: #000000;color: #ffffff">
<br> <span class="line-height-1 bigger-170 blue">{$user.total_watched|number_format}</span>
<span class="line-height-1 smaller-90 new1"> {lang code='Watched'} </span> <br>
</span> <span class="line-height-1 smaller-90 new1"> {lang code='Watched'} </span>
<span class="btn btn-primary new1" style="background-color: #000000;color: #ffffff"> </span>
<span class="line-height-1 bigger-170 blue">{$user.total_comments|number_format}</span> <span class="btn btn-primary new1" style="background-color: #000000;color: #ffffff">
<br> <span class="line-height-1 bigger-170 blue">{$user.total_comments|number_format}</span>
<span class="line-height-1 smaller-90 new1"> {lang code='comments'} </span> <br>
</span> <span class="line-height-1 smaller-90 new1"> {lang code='comments'} </span>
<span class="btn btn-primary new1" style="background-color: #000000;color: #ffffff"> </span>
<span class="line-height-1 bigger-170 blue">{$user.total_collections|number_format}</span> <span class="btn btn-primary new1" style="background-color: #000000;color: #ffffff">
<br> <span class="line-height-1 bigger-170 blue">{$user.total_collections|number_format}</span>
<span class="line-height-1 smaller-90 new1"> {lang code='collections'} </span> <br>
</span> <span class="line-height-1 smaller-90 new1"> {lang code='collections'} </span>
</span>
<span class="btn btn-primary new1" style="background-color: #000000; color: #ffffff"> <span class="btn btn-primary new1" style="background-color: #000000; color: #ffffff">
<span class="line-height-1 bigger-170 blue">{$user.profile_hits}</span> <span class="line-height-1 bigger-170 blue">{$user.profile_hits}</span>
<br> <br>
<span class="line-height-1 smaller-90 new1"> {lang code='views'} </span> <span class="line-height-1 smaller-90 new1"> {lang code='views'} </span>
</span> </span>
<span class="btn btn-primary new1" style="background-color: #000000;color: #ffffff"> <span class="btn btn-primary new1" style="background-color: #000000;color: #ffffff">
<span class="line-height-1 bigger-170 blue">{$user.subscribers}</span> <span class="line-height-1 bigger-170 blue">{$user.subscribers}</span>
<br> <br>
<span class="line-height-1 smaller-90 new1"> {lang code='subscribers'} </span> <span class="line-height-1 smaller-90 new1"> {lang code='subscribers'} </span>
</span> </span>
{/if} {/if}
</div> </div>
</div> </div>