Loading...
 
Skip to main content

Development


Image extension

posts: 3 ☆ Austria

Hi,
I wanted to get images aligned along with the text (not in a div, but beside it), so I added the following
to tiki. Just add an imalign=


diff -u tikiwiki-1.8.RC3/lib/tikilib.php htdocs/lib


tikiwiki-1.8.RC3/lib/tikilib.php Mon Dec 22 07:09:27 2003 +++ htdocs/lib/tikilib.php Mon Jan 12 13:34:39 2004

@@ -4018,6 +4095,7 @@
$imgdata%22width%22 = '';
$imgdata%22link%22 = '';
$imgdata%22align%22 = '';

+ $imgdata%22imalign%22 = '';

$imgdata%22desc%22 = '';

foreach ($parts as $part) {
@@ -4043,6 +4121,10 @@

if ($imgdata%22height%22)
$repl .= ' height="' . $imgdata%22height%22 . '"';

+ + if ($imgdata%22imalign%22) { + $repl .= ' align="' . $imgdata%22imalign%22 . '"'; + }


$repl .= ' />';

/Simon

posts: 2881 ☆ ☆ ☆ ☆ ☆ United Kingdom

Hi Simon,

Which images does this align with which text?

Thanks!!

Damian


posts: 3 ☆ Austria
well, look at the html-semantics of the attribute align in the img tag. Use it to place images along the left or right of a text (as high as the image is).

posts: 2881 ☆ ☆ ☆ ☆ ☆ United Kingdom

COOL! 😎