Roxen.git / server / modules / tags / obox.pike

version» Context lines:

Roxen.git/server/modules/tags/obox.pike:1:   // The outlined box module, Copyright © 1996 - 2001, Roxen IS.   //   // Fredrik Noring et al   //   // Several modifications by Francesco Chemolli.       - constant cvs_version = "$Id: obox.pike,v 1.37 2001/09/21 15:58:16 jhs Exp $"; + constant cvs_version = "$Id: obox.pike,v 1.38 2002/05/22 09:51:51 anders Exp $";   constant thread_safe=1;      #include <module.h>   // #include <roxen.h>   inherit "module";      // begin locale stuff   //<locale-token project="mod_obox">LOCALE</locale-token>   //<locale-token project="mod_obox">SLOCALE</locale-token>   #define SLOCALE(X,Y) _STR_LOCALE("mod_obox",X,Y)
Roxen.git/server/modules/tags/obox.pike:26:   LocaleString module_doc =    LOCALE(2,"This module provides the <tt>&lt;obox&gt;</tt> tag that "    "draws outlined boxes.");      constant unit_gif = "/internal-roxen-unit";      static string img_placeholder (mapping args)   {    int width=((int)args->outlinewidth)||1;    -  return sprintf("<img src=\"%s\" alt=\"\" width=\"%d\" height=\"%d\"%s>", +  return sprintf("<img src=\"%s\" alt=\"\" " +  // border:1 is here to work around a buggy rendering in NS4. +  "style=\"display:block; border:1;\" " +  "width=\"%d\" height=\"%d\"%s>",    unit_gif, width, width, (args->noxml?"":" /"));   }      static string handle_title(string name, mapping junk_args,    string contents, mapping args)   {    args->title=contents;    return "";   }