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

version» Context lines:

Roxen.git/server/modules/graphics/graphic_text.pike:1:   // This is a roxen module. Copyright © 1996 - 2001, Roxen IS.   //    - constant cvs_version="$Id: graphic_text.pike,v 1.284 2001/11/15 09:50:57 grubba Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.285 2001/11/27 18:21:18 mast Exp $";      #include <module.h>   inherit "module";         // ------------------- Module registration ---------------------      constant module_type = MODULE_TAG;   constant module_name = "Graphics: Graphic text";   constant module_doc =
Roxen.git/server/modules/graphics/graphic_text.pike:952:   // ----------------- gtext tags and containers -------------------      class TagGTextURL {    inherit RXML.Tag;    constant name = "gtext-url";    constant flags = RXML.FLAG_DONT_REPORT_ERRORS;       class Frame {    inherit RXML.Frame;    array do_return(RequestID id) { -  content=fix_text(content,args,id); +  content=fix_text(content||"",args,id);    mapping p=mk_gtext_arg(args,id);    if(args->href && !p->fgcolor) p->fgcolor=id->misc->gtext_link||"#0000ff";    string ext="";    if(query("ext")) ext="."+(p->format || "gif");    if(!args->short)    return ({ query_absolute_internal_location(id) +    image_cache->store( ({p,content}), id )+ext });    return ({ "+"+image_cache->store( ({p,content}), id )+ext });    }    }