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

version» Context lines:

Roxen.git/server/modules/graphics/graphic_text.pike:1: - string cvs_version="$Id: graphic_text.pike,v 1.9 1996/12/10 02:56:50 per Exp $"; + string cvs_version="$Id: graphic_text.pike,v 1.10 1996/12/10 03:06:30 per Exp $";   #include <module.h>   inherit "module";   inherit "roxenlib";         array register_module()   {    return ({ MODULE_LOCATION | MODULE_PARSER,    "Graphics text",    "Makes a few new tags:<p>"
Roxen.git/server/modules/graphics/graphic_text.pike:561:      string extra_args(mapping in)   {    string s="";    foreach(indices(in), string i)    {    switch(i)    {    case "target":    case "onClick": -  s+=i+"='"+in[s]+"' "; +  s+=i+"='"+in[i]+"' ";    m_delete(in, i);    break;    }    }    return s;   }      string tag_graphicstext(string t, mapping arg, string contents,    object id, object foo, mapping defines)   {
Roxen.git/server/modules/graphics/graphic_text.pike:615:    m_delete(arg,"magic");    }       int input;    if(arg->submit)    {    input=1;    m_delete(arg,"submit");    }    -  string lp, url; +  string lp, url, ea; +  ea = extra_args(arg);    if(arg->href)    {    url = arg->href; -  lp = "<a href=\""+arg->href+"\" "+extra_args(arg)+">"; +  lp = "<a href=\""+arg->href+"\" "+ea+">";    if(!arg->fg) arg->fg=defines->link||"#0000ff";    m_delete(arg,"href");    }       // Modify the 'arg' mapping...    if(defines->fg && !arg->fg) arg->fg=defines->fg;    if(defines->bg && !arg->bg) arg->bg=defines->bg;    if(defines->font && !arg->font) arg->font=defines->font||QUERY(default_font);    if(!arg->font) arg->font = QUERY(default_font);   
Roxen.git/server/modules/graphics/graphic_text.pike:723:    if(arg->bevel) arg->pressed=1;    int num2 = find_or_insert(arg);    array size = write_text(num2,gt,1,0);    if(!defines->magic_java) res = magic_javascript_header(id);    defines->magic_java="yes";    return res + magic_image(url||"", size[0], size[1],    "i"+(num+""+hash(gt,0x7fffffff))+"g",    query_location()+num+"/"+quote(gt),    query_location()+num2+"/"+quote(gt),    replace(gt, "\"","'"),(magic=="magic"?0:magic), -  id,input?(arg->name||"submit"):0, -  extra_args(arg)); +  id,input?(arg->name||"submit"):0,ea);    }    if(input && id->supports->images)    return (pre+"<input type=image name=\""+arg->name+"\" border=0 alt=\""+    replace(gt,"\"","'")+"\" src="+query_location()+num+"/"+quote(gt)    +" align="+(arg->align?arg->align:defalign)+    " width="+size[0]+" height="+size[1]+">"+rest+post);    return (pre+(lp?lp:"")+    "<img border=0 alt=\""+replace(gt,"\"","'")+"\" src="+    query_location()+num+"/"+quote(gt)    +" align="+(arg->align?arg->align:defalign)+