forked from byrnereese/jquery-mtgreet
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjavascript_mt.mtml
41 lines (41 loc) · 1.46 KB
/
javascript_mt.mtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
// This file defines blog variables and phrases which are used by javascript functions.
//
var mt;
mt = {
cookie: {
name: "<$mt:UserSessionCookieName$>",
domain: "<$mt:UserSessionCookieDomain$>",
path: "<$mt:UserSessionCookiePath$>",
timeout: <$mt:UserSessionCookieTimeout$>
},
links: {
signIn: '<$mt:SignInLink$>',
signOut: '<$mt:SignOutLink$>'
},
blog: {
id: <$mt:BlogID _default="0"$>,
url: '<$mt:BlogURL encode_url="1"$>',
staticWebPath: '<$mt:StaticWebPath$>',
adminScript: '<$mt:AdminScript$>',
signInLink: '<$mt:SignInLink$>',
signOutLink: '<$mt:SignOutLink$>',
comments: {
script: '<$mt:CGIPath$><$mt:CommentScript$>',
armor: '<$mt:BlogSitePath encode_sha1="1"$>',
accepted: <mt:IfCommentsAccepted>1<mt:Else>0</mt:IfCommentsAccepted>,
captchaFields: '<$mt:CaptchaFields$>'
},
community: {
script: '<$mt:CGIPath$><$mt:CommunityScript$>',
ifAnonymousRecommendAllowed: <mt:IfAnonymousRecommendAllowed>1<mt:Else>0</mt:IfAnonymousRecommendAllowed>
},
pings: {
accepted: <mt:IfPingsAccepted>1<mt:Else>0</mt:IfPingsAccepted>
},
registration: {
required: <mt:IfRegistrationRequired>1<mt:Else>0</mt:IfRegistrationRequired>,
allowed: <mt:IfRegistrationAllowed>1<mt:Else>0</mt:IfRegistrationAllowed>
}
}
};