solved Little Help With An Image

Dazed
Dazed
@dazed
8 years ago
1,022 posts
I want to add an image next to the social media icons on the index_top.tpl in audio pro. In the blog I have a custom field for blog_on_air as a bool but for some reason, I can't get the image to display using the below. Obviously I am missing something! Any ideas?

Thanks!

               <div class="slide_info">
                    <div class="wrap">
                        <ul class="social clearfix">
						{if $item.blog_on_air == "on"}
<li><a href="{$jamroom_url}/radio"><img src="{$jamroom_url}/skins/MixAP/img/onAir.png" width="50" height="50"></a></li>
                            {/if}
							
                            {if strlen($_conf.MixAP_facebook_url) > 0 && $_conf.MixAP_facebook_url != "0"}
                                <li><a href="{$_conf.MixAP_facebook_url}" class="social-facebook" target="_blank"></a></li>
                            {/if}

updated by @dazed: 03/24/17 01:34:16PM
douglas
@douglas
8 years ago
2,791 posts
I would make sure that blog_on_air has a value of "on", what type of field is it?

I would also use the jrCore_image function to show images from your skin.

Change this:

<img src="{$jamroom_url}/skins/MixAP/img/onAir.png" width="50" height="50">

to this:

{jrCore_image image="onAir.png" width="50" height="50"}

Hope this helps!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Dazed
Dazed
@dazed
8 years ago
1,022 posts
Thanks Douglas. I pulled my old template apart and got it working.