Sourcecode in Global/macros.js:
1: function story_macro(param) {
2: if (!param.id)
3: return;
4: var storyPath = param.id.split("/");
5: if (storyPath.length == 2) {
6: var site = root.get(storyPath[0]);
7: if (!site || !site.online)
8: return;
9: } else if (res.handlers.site)
10: var site = res.handlers.site;
11: else
12: return;
13: var story = site.allstories.get(storyPath[1] ? storyPath[1] : param.id);
14: if (!story)
15: return getMessage("error", "storyNoExist", param.id);
16: story.renderSkin(param.skin ? param.skin : "embed");
17: return;
18: }
|