Loading...
 
Development

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! cool


Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting