weblog/objectFunctions.js -> modifytime is set to current Date at creation time story/objectFunctions.js -> modifytime is set to current Date at creation time comment/objectFunctions.js -> modifytime is set to current Date at creation time; isonline is set to 1 at creation time; added function isOnline() weblog/type.properties -> two additional subnode-containers: allstories, allcomments weblog/macros.js -> implemented history_macro which renders List of recently modified Objects story/historyview.skin -> will be rendered by the weblog-history macro comment/historyview.skin -> will be rendered by the weblog-history macro weblog/main.skin -> included history.skin story/main.skin -> included history.skin weblog/style.skin -> included "history", "historyStory" and"historyComment" classes weblog/history.skin -> newly created story/macors.js -> title_macro can be rendered as a link; comments_macro renders an invisible anchor-tag before each comment comment/macors.js -> title_macro can be rendered as a link; replies_macro renders an invisible anchor-tag before each comment eliminated renderPrefix() and renderSuffix() documentation.htm -> updated
64 lines
1.2 KiB
JavaScript
64 lines
1.2 KiB
JavaScript
/**
|
|
* macro rendering username
|
|
*/
|
|
|
|
function name_macro(param) {
|
|
res.write(param.prefix)
|
|
res.write(this.name);
|
|
res.write(param.suffix);
|
|
}
|
|
|
|
/**
|
|
* macro rendering password
|
|
*/
|
|
|
|
function password_macro(param) {
|
|
res.write(param.prefix)
|
|
if (param.as == "editor")
|
|
this.renderInputPassword(this.createInputParam("password",param));
|
|
else
|
|
res.write(this.password);
|
|
res.write(param.suffix);
|
|
}
|
|
|
|
|
|
/**
|
|
* macro rendering URL
|
|
*/
|
|
|
|
function url_macro(param) {
|
|
res.write(param.prefix)
|
|
if (param.as == "editor")
|
|
this.renderInputText(this.createInputParam("url",param));
|
|
else
|
|
res.write(this.url);
|
|
res.write(param.suffix);
|
|
}
|
|
|
|
|
|
/**
|
|
* macro rendering email
|
|
*/
|
|
|
|
function email_macro(param) {
|
|
res.write(param.prefix)
|
|
if (param.as == "editor")
|
|
this.renderInputText(this.createInputParam("email",param));
|
|
else
|
|
res.write(this.email);
|
|
res.write(param.suffix);
|
|
}
|
|
|
|
/**
|
|
* macro rendering description
|
|
*/
|
|
|
|
function description_macro(param) {
|
|
res.write(param.prefix)
|
|
if (param.as == "editor")
|
|
this.renderInputTextarea(this.createInputParam("description",param));
|
|
else
|
|
res.write(this.description);
|
|
res.write(param.suffix);
|
|
}
|
|
|