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:
HTML Code:
<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
<a href=""> and the
<img src=""> are not correct.
Where did I go wrong?
tpl_social_sidebox.php:
Code:
<?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
Bookmarks