Roxen.git
/
server
/
modules
/
tags
/
obox.pike
version
»
Context lines:
10
20
40
80
file
none
3
Roxen.git/server/modules/tags/obox.pike:1:
// The outlined box module, Copyright © 1996 - 2000, Roxen IS. // // Fredrik Noring et al // // Several modifications by Francesco Chemolli.
-
constant cvs_version = "$Id: obox.pike,v 1.
22
2000/
02
/
24
05:
20:11
nilsson Exp $";
+
constant cvs_version = "$Id: obox.pike,v 1.
23
2000/
03
/
13
21:
05:
57
nilsson Exp $";
constant thread_safe=1; #include <module.h> inherit "module"; inherit "roxenlib"; TAGDOCUMENTATION #ifdef manual constant tagdoc=(["obox":([ "standard":#"<desc cont>Outlined box</desc>
Roxen.git/server/modules/tags/obox.pike:141:
args->title, args->titlecolor ? "</font>" : "", args->bgcolor ? " bgcolor=\""+args->bgcolor+"\"" : "", args->outlinecolor, empty, args->outlinecolor, empty, args->bgcolor ? " bgcolor=\""+args->bgcolor+"\"" : "", args->outlinecolor, empty,
-
(
args->left ? " width="+args->
left
: ""
)
,
+
args->left ? " width=
\
"
"
+args->
left+"\""
: "",
(args->fixedleft ? String.strmult (" ", (int) args->fixedleft) : " "),
-
(
args->right ? " width="+args->
right
: ""
)
,
+
args->right ? " width=
\
"
"
+args->
right+"\""
: "",
(args->fixedright ? String.strmult (" ", (int) args->fixedright) : " "), args->outlinecolor, empty); case "caption": return sprintf("<tr%s><td colspan=\"2\"><font size=\"-3\"> </font></td>\n" "<td rowspan=\"3\" nowrap=\"nowrap\"> <b>" /* bgcolor */ "%s%s%s" /* titlecolor, title, titlecolor */ "</b> </td>\n" "<td colspan=\"2\"><font size=\"-3\"> </font></td></tr>\n"
Roxen.git/server/modules/tags/obox.pike:177:
, args->outlinecolor ? " bgcolor=\""+args->outlinecolor+"\"" : "", args->titlecolor ? "<font color=\""+args->titlecolor+"\">" : "", args->title, args->titlecolor ? "</font>" : "", args->outlinecolor, empty, empty, args->outlinecolor, empty,
-
(
args->left ? " width="+args->
left
: ""
)
,
+
args->left ? " width=
\
"
"
+args->
left+"\""
: "",
(args->fixedleft ? String.strmult (" ", (int) args->fixedleft) : " "),
-
(
args->right ? " width="+args->
right
: ""
)
,
+
args->right ? " width=
\
"
"
+args->
right+"\""
: "",
(args->fixedright ? String.strmult (" ", (int) args->fixedright) : " "), args->outlinecolor, empty); } }
-
string
container
_obox(string name, mapping args,
-
string contents
, object request_id
)
+
string
simpletag
_obox(string name, mapping args, string contents)
{ string s; // Set the defaults... args->outlinecolor = args->outlinecolor || "#000000"; args->style = args->style || "groupbox"; if (!args->title) { contents=parse_html(contents,([]),(["title":handle_title,]),args); }
Roxen.git/server/modules/tags/obox.pike:241:
constant module_name = ([ "standard":"Outlined box", "svenska":"Ramlåda", ]); constant module_doc = ([ "standard": "This is a container tag making outlined boxes.", "svenska":
-
"<tt><obox
help
></obox></tt> är en tag som ramar "
-
"in det som står i den.
<obox title=exempel>innehåll</obox>
",
+
"<tt><obox></obox></tt> är en tag som ramar "
+
"in det som står i den.",
]);