/** * macro rendering a skin * @param name name of skin */ function skin_macro(par) { if ( par && par.name ) { this.renderSkin(par.name); } } /** * macro-wrapper for href-function * @param action name of action to call on this prototype, default main */ function href_macro(param) { return this.href ((param && param.action) ? param.action : "main"); } function comment_macro (param) { return renderComment (this, param); } function content_macro (param) { return this.getContent (); } function tags_macro (param) { return renderTags (this, param); } function location_macro (param) { return renderLocation (this, param); } function link_macro (param) { return renderLink (this, param); } //// END OF COPIED FUNCTIONS function headline_macro (param) { var p = this.getParentElement (); var handler = (p!=null) ? p.getName () : ""; if (this.getType () == this.ACTION) { res.write ("/" + this.getName ()); } else if (this.getType () == this.FUNCTION) { if (handler!="" && handler!="global") res.write (handler + "."); res.write (this.getName () + " ("); var arr = this.listParameters (); for (var i=0; i-1) name = name.substring (0, name.length-6); res.write (name); res.write (" %>"); } else if (this.getType () == this.SKIN) { if (handler!="" && handler!="global") res.write (handler + "/"); res.write (this.getName ()); res.write (".skin"); } } function skinparameters_macro (param) { if (this.getType () == this.SKIN) { this.parameters_macro (param); } } function parameters_macro (param) { var separator = (param.separator) ? param.separator : ", "; var arr = this.listParameters (); for (var i=0; i"); var str4 = ""; for ( var i=0; i ' if (i<99) str4+=' '; if (i<9) str4+=' '; str4 += arr[i] + "
"; } return ( str4 ); }