Please Log in to join the conversation.
$return = $aTag
// '<img src="' . $imgUrl . '" alt="' . htmlspecialchars( $name ) . '" title="' . htmlspecialchars( $name ) . '" class="' . $class . '" />'
. (( $reason == 'profile')?
'<span class="' . $class . '"><a class="jcepopup" href="'. $imgUrl .'" style="display:block;width:'.$this->_getImageFieldParam( $field, 'thumbWidth').'px;height:'.$this->_getImageFieldParam( $field, 'thumbWidth').'px;background:url('. $imgUrl .') no-repeat center;background-size: cover;"></a></span>'
:
'<span style="display:block;width:'.$this->_getImageFieldParam( $field, 'thumbWidth').'px;height:'.$this->_getImageFieldParam( $field, 'thumbWidth').'px;background:url('. $imgUrl .') no-repeat center;background-size: cover;." class="' . $class . '"></span>')
. $naTag;
return $return;
Please Log in to join the conversation.
Please Log in to join the conversation.
danbo1972 wrote: I wondered if that's what you were shooting for after I sent my last message. Sorry I wasn't grasping that initially. What would be nice is a plugin that allows you to set the sizes in the back-end, and allow the user to select where on a photo they want to crop prior to the upload. You are correct in your assumption that this is going to be a css issue unless you get another plugin. Something like this may help you.
demo.joomlaxtc.com/extensions/index.php?option=com_content&view=article&id=244&Itemid=280
Please Log in to join the conversation.