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.41 2004/05/27 16:19:36 _cvs_stephen Exp $"; + constant cvs_version = "$Id: obox.pike,v 1.42 2004/05/27 18:28:44 _cvs_stephen Exp $";   constant thread_safe=1;      #include <module.h>   inherit "module";      constant module_type = MODULE_TAG;   constant module_name = "Tags: Outlined box";   constant module_doc =    ("This module provides the <tt>&lt;obox&gt;</tt> tag that "    "draws outlined boxes.");      constant unit_gif = "/%01/unit";      static string img_placeholder (mapping args)   {    int width=((int)args->outlinewidth)||1;    -  return sprintf("<img src=\"%s\" alt=\"\" " +  return sprintf("<imgs 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;