Changeset 924
- Timestamp:
- 07/31/08 01:18:09 (4 months ago)
- Files:
-
- trunk/Vanilla/config.yaml (modified) (3 diffs)
- trunk/Vanilla/readme_javascript.txt (moved) (moved from trunk/Vanilla/templates/vanilla+authentication/readme_javascript.txt) (5 diffs)
- trunk/Vanilla/templates/vanilla+search+tags (added)
- trunk/Vanilla/templates/vanilla+search+tags/entry.mtml (added)
- trunk/Vanilla/templates/vanilla+search+tags/home.mtml (added)
- trunk/Vanilla/templates/vanilla+search+tags/javascript.mtml (added)
- trunk/Vanilla/templates/vanilla+search+tags/page.mtml (added)
- trunk/Vanilla/templates/vanilla+search+tags/search_results.mtml (added)
- trunk/Vanilla/templates/vanilla+search+tags/wrapper.mtml (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Vanilla/config.yaml
r919 r924 224 224 entry_response: 225 225 label: Entry Response 226 vanilla_search_tags: 227 label: Vanilla + Search & Tags 228 base_path: templates/vanilla+search+tags 229 order: 508 230 notes: 231 - Tag Cloud and Search Form on Homepage 232 - Entry Detail 233 - Page Detail 234 - Search Results Template 235 templates: 236 index: 237 home: 238 label: Homepage 239 outfile: index.html 240 rebuild_me: 1 241 javascript: 242 label: Javascript 243 outfile: mt.js 244 rebuild_me: 1 245 individual: 246 entry: 247 label: Entry 248 mappings: 249 entry_archive: 250 archive_type: Individual 251 page: 252 page: 253 label: Page 254 mappings: 255 page_archive: 256 archive_type: Page 257 module: 258 wrapper: 259 label: Wrapper 260 system: 261 search_results: 262 label: Search Results 226 263 227 # - Organization 228 # * Tags 229 # - Profiles + Userpics 264 # - Profiles + Userpics + Friending 230 265 # * Userpics 231 266 # * Profiles … … 235 270 # order: 100 236 271 # templates: 237 # - Profiles + Friending272 # - Profiles 238 273 # * Friending 239 274 # vanilla: … … 251 286 # order: 100 252 287 # templates: 253 # - Search254 288 # - Custom Fields 289 # - Assets 290 # - recent assets 291 # - sizing 292 293 # - Widget & Widget Sets 294 # - Logic 295 # - if/else 296 # - unless 297 # - var w/ op attributes 255 298 # - YUI Template trunk/Vanilla/readme_javascript.txt
r922 r924 6 6 </mt:Ignore> 7 7 <$mt:var name="show_userpic" value="1"$> 8 9 /* MOVABLE TYPE CORE JAVASCRIPT *****************************************************************/ 10 11 /* Legacy Function Mappings *****************************************************************/ 12 /* The following functions are here to support legacy MT templates. If you have refreshed your JavaScript template but still use olderMT comment templates, you may need to uncomment this block in orderfor those templates to work properly. Simply remove the wrapping'mt:Ignore' tag to do so. */ 13 function hideDocumentElement(id) { return mtHide(id) } 14 function showDocumentElement(id) { return mtShow(id) } 15 function individualArchivesOnLoad() { return mtEntryOnLoad() } 16 function writeCommenterGreeting() { return mtShowGreeting() } 17 function rememberMe(f) { return mtRememberMe(f) } 18 function forgetMe(f) { return mtForgetMe(f) } 19 function getXmlHttp() { return mtGetXmlHttp() } 8 20 9 21 /* Blog Variables *****************************************************************/ … … 21 33 function mtGetXmlHttp() // Returns a XMLHttpRequest object (for Ajax operations). 22 34 23 /* Cookie*****************************************************************/35 /* Authentication Functions *****************************************************************/ 24 36 var mtCookieName = "<$mt:UserSessionCookieName$>"; // The cookie name to use for storing the blog-side comment session cookie. 25 37 var mtCookieDomain = "<$mt:UserSessionCookieDomain$>"; … … 31 43 function mtBakeUserCookie(u) // Serializes a user object into a string, suitable for storing as a cookie. 32 44 function mtUnbakeUserCookie(s) // Unserializes a user cookie and returns a user object with the restored state. 33 34 /* Login Functions *****************************************************************/ 35 #_login/#_logout // If request contains a '#_login' or '#_logout' hash, use this to also delete the blog-side user cookie, since we're coming back from a login, logout or edit function mtSaveUser(f) // Persists a copy of the current user cookie into the browser cookie stash. 45 #_login/#_logout // If request contains a '#_login' or '#_logout' hash, use this to also delete the blog-side user cookie, since we're coming back from a login, logout or edit 46 function mtSaveUser(f) // Persists a copy of the current user cookie into the browser cookie stash. 36 47 function mtClearUser() // Clears the blog-side user cookie. 37 48 profile operation. … … 48 59 function mtEntryOnLoad() // Called when an entry archive page is loaded. This routine controls which elements of the comment form are shown or hidden, depending on commenter type and blog configuration. 49 60 function mtEntryOnUnload() // ** 61 mtAttachEvent('usersignin', mtUserOnLoad); // ** 62 50 63 function mtShowGreeting() // Handles the display of the greeting message, depending on what kind of user is logged in and blog comment policy. 51 function mtUserOnLoad() // Function to hide/show/prepopulate fields based upon type of user that has authenticated52 64 function mtRememberMeOnClick(b) // Called when the 'Remember me' checkbox is changed. If the checkbox is cleared, the cached user cookie is immediately cleared. 53 65 function mtReplyCommentOnClick(parent_id, author) // Handles the action of the 'Reply' links. 54 66 function mtSetCommentParentID() // Sets the parent comment ID when replying to a comment. 67 55 68 function mtCommentOnSubmit(f) // Called when comment form is sent. Required parameter: Form DOM object of comment form. If form has a 'bakecookie' member, it will be used to signal storing the anonymous commenter information to a cookie. If form has a 'armor' member, it will be used to store a token that is checked by the comment script. 56 69 function mtCommentSessionVerify(app_user) // ** 70 function mtUserOnLoad() // **Function to hide/show/prepopulate fields based upon type of user that has authenticated 71 57 72 function mtCommentFormOnFocus() // Called when an input field on the comment form receives focus. 58 73 function mtShowCaptcha() // Displays a captcha field for anonymous commenters. 74 75 <mt:Ignore> 76 /* user object 77 -- saved in user cookie -- 78 u.name (display name) 79 u.url (link to home page) 80 u.email (for anonymous only) 81 u.userpic (url for commenter/author) 82 u.profile (link to profile) 83 u.is_trusted (boolean) 84 u.is_author (user has posting rights) 85 u.is_banned (banned status; neither post/comment perms) 86 u.can_post (has permission to post) 87 u.can_comment (has permission to comment) 88 89 -- status fields -- 90 u.is_authenticated (boolean) 91 u.is_anonymous (user is anonymous) 92 */ 93 </mt:Ignore> 59 94 60 95 /* Initialize *****************************************************************/ … … 66 101 /* Date Formatting *****************************************************************/ 67 102 function mtRelativeDate(ts, fds) // Displays a relative date. 'ts' is a Date object, 'fds' is a string of the date which will be displayed if the given date is older than 1 week. 103 // ** extra closing "}" after this function 68 104 69 /* END Movable Type Javascript *****************************************************************/ 105 /* END Movable Type Core Javascript *****************************************************************/ 106 107 108 109 /* MOVABLE TYPE COMMUNITY SOLUTION FUNCTIONS *****************************************************************/ 110 111 function conditional_block(cond, id) // ** 112 113 function mtScore(entry_id) // Functions for scoring entries. Scoring requires blog context, it is thus conditioned. 114 function mtUpdateScores() // ** 115 function mtScore_cb(s_hash) // ** 116 117 function insert_score(s_hash, id, div_id, span, span_else) // Legacy functions for favoriting entries 118 var favorite_cb_callbacks = []; 119 function favorite_cb(s_hash) // ** 120 function anchor(id, eid, cl, score) // ** 121 function attachEvent(element, eventName, func) // ** 122 function favorite(evt, entry_id, score_span) // ** 123 124 function script_follow(id) // Functions to follow/leave feature 125 function script_leave(id) // ** 126 function follow(user_info) // ** 127 function leave(user_info) // ** 128 129 // Utility functions 130 req = null; // ** Not used anywhere? 131 function getCommenterName() // ** 132 function trimString (str) // ** 133 DOM // ** review 134 function switchTabs( id, el ) // ** 135 function defaultInputFocus( event ) // ** 136 function defaultInputBlur( event ) // ** 137 function setupInputDefault() // ** 138 function mtSetUser(u) // Assigns a user object as the actively logged in user; also saves the user information in a browser cookie.
