{"_id":"56d8888bb159f10b00304656","category":{"_id":"56d88885b159f10b00304611","__v":1,"version":"56d88884b159f10b00304609","pages":["56d8888bb159f10b00304650","56d8888bb159f10b00304651","56d8888bb159f10b00304652","56d8888bb159f10b00304653","56d8888bb159f10b00304654","56d8888bb159f10b00304655","56d8888bb159f10b00304656","56d8888bb159f10b00304657","56d8888bb159f10b00304658","56d8888bb159f10b00304659"],"project":"549a321bf876ae0b00f33623","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-05-19T22:25:35.426Z","from_sync":false,"order":7,"slug":"templates","title":"Templates"},"parentDoc":null,"user":"549a320d5b50c21400fae689","version":{"_id":"56d88884b159f10b00304609","__v":3,"project":"549a321bf876ae0b00f33623","createdAt":"2016-03-03T18:55:00.567Z","releaseDate":"2016-03-03T18:55:00.567Z","categories":["56d88885b159f10b0030460a","56d88885b159f10b0030460b","56d88885b159f10b0030460c","56d88885b159f10b0030460d","56d88885b159f10b0030460e","56d88885b159f10b0030460f","56d88885b159f10b00304610","56d88885b159f10b00304611","56d88885b159f10b00304612","56d88885b159f10b00304613","56d88885b159f10b00304614","56d89250b159f10b003046d4","56da13977222d50b0070167c"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"2.2.1","version":"2.2.1"},"__v":0,"project":"549a321bf876ae0b00f33623","updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-05-20T00:17:40.427Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":6,"body":"[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"difficulty.php\"\n}\n[/block]\nDisplays course difficulty when in the loop.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"length.php\"\n}\n[/block]\nDisplays the course length when in the loop.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"loop-start.php\"\n}\n[/block]\nCalled before the loop begins. Sets up unordered list.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"loop-end.php\"\n}\n[/block]\nCalled when the loop ends. Closes unordered list.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"no-courses-found.php\"\n}\n[/block]\nTemplate for displaying \"No Courses Found\" if no courses exist in the loop.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"price.php\"\n}\n[/block]\nTemplate for displaying single and recurring payment options in the loop.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"view-link.php\"\n}\n[/block]\nlink to main post page when in the loop. Displays as \"View this course\" or \"Continue\" based on user enrollment.","excerpt":"lifterlms/templates/loop/","slug":"loop-templates","type":"basic","title":"Loop Templates"}

Loop Templates

lifterlms/templates/loop/

[block:api-header] { "type": "basic", "title": "difficulty.php" } [/block] Displays course difficulty when in the loop. [block:api-header] { "type": "basic", "title": "length.php" } [/block] Displays the course length when in the loop. [block:api-header] { "type": "basic", "title": "loop-start.php" } [/block] Called before the loop begins. Sets up unordered list. [block:api-header] { "type": "basic", "title": "loop-end.php" } [/block] Called when the loop ends. Closes unordered list. [block:api-header] { "type": "basic", "title": "no-courses-found.php" } [/block] Template for displaying "No Courses Found" if no courses exist in the loop. [block:api-header] { "type": "basic", "title": "price.php" } [/block] Template for displaying single and recurring payment options in the loop. [block:api-header] { "type": "basic", "title": "view-link.php" } [/block] link to main post page when in the loop. Displays as "View this course" or "Continue" based on user enrollment.