Roxen.git / server / modules / graphics / graphic_text.pike

version» Context lines:

Roxen.git/server/modules/graphics/graphic_text.pike:1: - constant cvs_version="$Id: graphic_text.pike,v 1.185 1999/07/19 22:03:59 neotron Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.186 1999/08/09 15:09:44 nilsson Exp $";   constant thread_safe=1;      #include <config.h>   #include <module.h>   #include <stat.h>   inherit "module";   inherit "roxenlib";      #ifndef VAR_MORE   #define VAR_MORE 0
Roxen.git/server/modules/graphics/graphic_text.pike:981:       foreach(gt/split-({""}), word)    {    string fn = image_cache->store( ({arg,word}),id );    mapping size = image_cache->metadata( fn, id, 1 );    mapping tag =    ([    "alt":(arg->alt||word),    "src":query_internal_location()+fn+gif,    ]); +  if(!arg->noxml) tag+=(["/":"/"]);    if( size )    {    tag->width = (string)size->xsize;    tag->height = (string)size->ysize;    }    res += ({ make_tag( "img", tag )+" " });    }    if(lp) res += ({ "</a>"+post });    return res*"";    }
Roxen.git/server/modules/graphics/graphic_text.pike:1045:    +" align="+(al || defalign)+ea+    (size?(" width="+size->xsize+" height="+size->ysize):"")+">"+    rest+post);       return (pre+(lp?lp:"")    + "<img border=0 alt=\""    + (arg->alt?arg->alt:replace(gt,"\"","'"))    + "\" src=\""    + query_internal_location()+num+gif+"\" "+ea    + " align="+(al || defalign) -  + (size?(" width="+size->xsize+" height="+size->ysize):"")+">"+ +  + (size?(" width="+size->xsize+" height="+size->ysize):"")+(arg->nomxl?"":" /")+">"+    rest+(lp?"</a>":"")+post);   }      inline string ns_color(array (int) col)   {    if(!arrayp(col)||sizeof(col)!=3)    return "#000000";    return sprintf("#%02x%02x%02x", col[0],col[1],col[2]);   }