I have a linked image that I need to specify height and width html attributes for that is generated by php string. I’ve looked into using getimagesize but its not looking like what I need. I am currently using social engine.
This is the string I have that calls the image link.
<?php echo $this->htmlLink($item->getHref(), $this->itemPhoto($item, 'null'), array('class' => '')) ?>
which outputs html somthing like <a href="#"><img src="#" class="null"/></a>
I need to modify the php to create an image that is specified to be 110px x 110px
ie <a href="#"><img src="#" class="null" width="110" height="110"/></a>
Can anyone give me an example of how I could write my string?
You have to use this:
That is, add a fourth parameter array to
itemPhotofunction.Socialengine is an extension of Zend framework. You should try to check out the definition of
itemPhoto,htmlLinketc. functions in order to customize them. For exampleitemPhotocan be found here- \application\modules\Core\View\Helper\ItemPhoto.php