Zen Follower
- Join Date:
- Aug 2006
- Location:
- Kihikihi, New Zealand
- Posts:
- 220
- Plugin Contributions:
- 2
Difficulty displaying image in new sidebox module
Hi all,
I am trying to build a template sidebox that can be used to add several social style websites and personal blogs, that can be styled to suit different image sizes and layouts inside the sidebox.
I need to display an image that links to the site:
<a href="social_site_url/social_site_ID" target="_blank" title=""><img src="social_site.jpg" width="" height="" alt="" id="" /></a>
The image is located in templates/MY_TEMPLATE/images
My coding of both the :dontgetit<a href=""> and the :dontgetit<img src=""> are not correct.
Where did I go wrong?
tpl_social_sidebox.php:
<?php
$content = '';
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent" id="socialSidebox">';
$content .= ?>'<a href="<?php FACEBOOK_URL . YOUR_FACEBOOK_NAME ?>" target="_blank" title="<?php FACEBOOK_TITLE ?>"><img src="<?php ($template->get_template_dir(DIR_WS_TEMPLATE, $current_page_base,'images'), FACEBOOK_IMAGE_NAME ?>" width='<?php FACEBOOK_IMAGE_WIDTH ?>' height='<?php FACEBOOK_IMAGE_HEIGHT ?>' alt='<?php FACEBOOK_ALT ?>' id='socialImages')" /></a>';
<?php
$content .= '</div>';
?>
Any help greatly appreciated,
Goshawk