So, I did some core modifications to be able to choose between all left- and right alignment with my choice of spacing to floating text.
First make sure there's no reference to padding in your Template Stylesheet! ( img { or .mosimage { )
Then locate line 179 in /yourwebsitepathway/mambots/content/mosimage.php and change
From
Code: Select all
$image .=' hspace="6" alt="'. $attrib[2] .'" title="'. $attrib[2] .'" border="'. $border .'" />';
Code: Select all
$image .=' hspace="0" alt="'. $attrib[2] .'" title="'. $attrib[2] .'" border="'. $border .'" />';
And then splitting the IF case on line 169 (still in /yourwebsitepathway/mambots/content/mosimage.php)
From
Code: Select all
// assemble the <image> tag
$image = '<img src="'. $mosConfig_live_site .'/images/stories/'. $attrib[0] .'"'. $size;
// no aligment variable - if caption detected
if ( !$attrib[4] ) {
if ($attrib[1] == 'left' OR $attrib[1] == 'right') {
$image .= ' style="float: '. $attrib[1] .';"';
} else {
$image .= $attrib[1] ? ' align="middle"' : '';
}
}
Code: Select all
// assemble the <image> tag
$image = '<img src="'. $mosConfig_live_site .'/images/stories/'. $attrib[0] .'"'. $size;
// no aligment variable - if caption detected
if ( !$attrib[4] ) {
if ($attrib[1] == 'left') {
$image .= ' style="float: '. $attrib[1] .'; margin-left: 0px; margin-right: 7px;"';
} else if ($attrib[1] == 'right') {
$image .= ' style="float: '. $attrib[1] .'; margin-left: 7px; margin-right: 0px;"';
} else {
$image .= $attrib[1] ? ' align="middle"' : '';
}
}