From 46813127d684664a6474076ba550914a5ede23b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chris=20G=C3=A5rdenberg?= Date: Tue, 5 Nov 2024 08:08:42 +0000 Subject: [PATCH] Deploy website - based on 538abf140b41ae705e62a1ea28a763af2aa23379 --- 404.html | 4 ++-- assets/js/{7afc9797.9056d841.js => 7afc9797.484ee071.js} | 2 +- assets/js/{7e50f87c.1ae25c63.js => 7e50f87c.0931d166.js} | 2 +- assets/js/{9d9f8394.4b8b2889.js => 9d9f8394.b2b81596.js} | 2 +- assets/js/{bcf2d73d.46e5492e.js => bcf2d73d.c55e5759.js} | 2 +- assets/js/{beb8c2f8.758d87a6.js => beb8c2f8.6f89d40e.js} | 2 +- assets/js/{d589d3a7.1a1fa1b0.js => d589d3a7.511a44ea.js} | 2 +- .../{runtime~main.589145a7.js => runtime~main.21beb1de.js} | 2 +- blog/2022/02/21/upgrade-to-my-profile/index.html | 4 ++-- blog/archive/index.html | 4 ++-- blog/index.html | 4 ++-- blog/tags/breaking-change/index.html | 4 ++-- blog/tags/index.html | 4 ++-- blog/tags/my-profile/index.html | 4 ++-- docs/cookies/index.html | 6 +++--- docs/index.html | 6 +++--- docs/shortcodes/index.html | 6 +++--- docs/troubleshooting/index.html | 6 +++--- docs/wordpress-actions/index.html | 6 +++--- docs/your-first-custom-template/index.html | 6 +++--- help/index.html | 4 ++-- index.html | 4 ++-- users/index.html | 4 ++-- 23 files changed, 45 insertions(+), 45 deletions(-) rename assets/js/{7afc9797.9056d841.js => 7afc9797.484ee071.js} (96%) rename assets/js/{7e50f87c.1ae25c63.js => 7e50f87c.0931d166.js} (99%) rename assets/js/{9d9f8394.4b8b2889.js => 9d9f8394.b2b81596.js} (99%) rename assets/js/{bcf2d73d.46e5492e.js => bcf2d73d.c55e5759.js} (98%) rename assets/js/{beb8c2f8.758d87a6.js => beb8c2f8.6f89d40e.js} (99%) rename assets/js/{d589d3a7.1a1fa1b0.js => d589d3a7.511a44ea.js} (99%) rename assets/js/{runtime~main.589145a7.js => runtime~main.21beb1de.js} (91%) diff --git a/404.html b/404.html index 9b3a0a3a..a1dd598d 100644 --- a/404.html +++ b/404.html @@ -10,13 +10,13 @@ - +
Skip to main content

Page Not Found

We could not find what you were looking for.

Please contact the owner of the site that linked you to the original URL and let them know their link is broken.

- + \ No newline at end of file diff --git a/assets/js/7afc9797.9056d841.js b/assets/js/7afc9797.484ee071.js similarity index 96% rename from assets/js/7afc9797.9056d841.js rename to assets/js/7afc9797.484ee071.js index 44c1df2d..594822fd 100644 --- a/assets/js/7afc9797.9056d841.js +++ b/assets/js/7afc9797.484ee071.js @@ -1 +1 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[68],{3905:(e,t,o)=>{o.d(t,{Zo:()=>u,kt:()=>f});var r=o(7294);function n(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function i(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function a(e){for(var t=1;t=0||(n[o]=e[o]);return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}var s=r.createContext({}),l=function(e){var t=r.useContext(s),o=t;return e&&(o="function"==typeof e?e(t):a(a({},t),e)),o},u=function(e){var t=l(e.components);return r.createElement(s.Provider,{value:t},e.children)},d="mdxType",p={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var o=e.components,n=e.mdxType,i=e.originalType,s=e.parentName,u=c(e,["components","mdxType","originalType","parentName"]),d=l(o),m=n,f=d["".concat(s,".").concat(m)]||d[m]||p[m]||i;return o?r.createElement(f,a(a({ref:t},u),{},{components:o})):r.createElement(f,a({ref:t},u))}));function f(e,t){var o=arguments,n=t&&t.mdxType;if("string"==typeof e||n){var i=o.length,a=new Array(i);a[0]=m;var c={};for(var s in t)hasOwnProperty.call(t,s)&&(c[s]=t[s]);c.originalType=e,c[d]="string"==typeof e?e:n,a[1]=c;for(var l=2;l{o.r(t),o.d(t,{assets:()=>u,contentTitle:()=>s,default:()=>f,frontMatter:()=>c,metadata:()=>l,toc:()=>d});var r=o(3117),n=o(102),i=(o(7294),o(3905)),a=["components"],c={id:"cookies",title:"Cookies",sidebar_label:"Cookies",slug:"cookies"},s=void 0,l={unversionedId:"cookies",id:"cookies",title:"Cookies",description:"This page will tell you about what cookies are used through the plugin.",source:"@site/docs/cookies.md",sourceDirName:".",slug:"/cookies",permalink:"/docs/cookies",draft:!1,editUrl:"https://github.com/MultinetInteractive/EduAdmin-WordPress/edit/master/new_website/docs/cookies.md",tags:[],version:"current",lastUpdatedBy:"NoLifeKing",lastUpdatedAt:1730731369,formattedLastUpdatedAt:"Nov 4, 2024",frontMatter:{id:"cookies",title:"Cookies",sidebar_label:"Cookies",slug:"cookies"},sidebar:"docs",previous:{title:"How to troubleshoot",permalink:"/docs/troubleshooting"}},u={},d=[{value:"eduadmin-cookie, eduadmin-cookie-legacy (Required)",id:"eduadmin-cookie-eduadmin-cookie-legacy-required",level:2}],p={toc:d},m="wrapper";function f(e){var t=e.components,o=(0,n.Z)(e,a);return(0,i.kt)(m,(0,r.Z)({},p,o,{components:t,mdxType:"MDXLayout"}),(0,i.kt)("p",null,"This page will tell you about what cookies are used through the plugin."),(0,i.kt)("h2",{id:"eduadmin-cookie-eduadmin-cookie-legacy-required"},(0,i.kt)("inlineCode",{parentName:"h2"},"eduadmin-cookie"),", ",(0,i.kt)("inlineCode",{parentName:"h2"},"eduadmin-cookie-legacy")," ",(0,i.kt)("strong",{parentName:"h2"},"(Required)")),(0,i.kt)("p",null,"Both of these cookies are used to store the user's session in the plugin, and is required for the plugin to work."),(0,i.kt)("p",null,"We also store transaction data, to keep track if the user have started a booking, so that we can show them the relevant information."),(0,i.kt)("p",null,"The ",(0,i.kt)("inlineCode",{parentName:"p"},"-legacy")," cookie gets added for older clients that don't support the ",(0,i.kt)("inlineCode",{parentName:"p"},"eduadmin-cookie")," cookie."))}f.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[68],{3905:(e,t,o)=>{o.d(t,{Zo:()=>u,kt:()=>f});var r=o(7294);function n(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function i(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function a(e){for(var t=1;t=0||(n[o]=e[o]);return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}var s=r.createContext({}),l=function(e){var t=r.useContext(s),o=t;return e&&(o="function"==typeof e?e(t):a(a({},t),e)),o},u=function(e){var t=l(e.components);return r.createElement(s.Provider,{value:t},e.children)},d="mdxType",p={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var o=e.components,n=e.mdxType,i=e.originalType,s=e.parentName,u=c(e,["components","mdxType","originalType","parentName"]),d=l(o),m=n,f=d["".concat(s,".").concat(m)]||d[m]||p[m]||i;return o?r.createElement(f,a(a({ref:t},u),{},{components:o})):r.createElement(f,a({ref:t},u))}));function f(e,t){var o=arguments,n=t&&t.mdxType;if("string"==typeof e||n){var i=o.length,a=new Array(i);a[0]=m;var c={};for(var s in t)hasOwnProperty.call(t,s)&&(c[s]=t[s]);c.originalType=e,c[d]="string"==typeof e?e:n,a[1]=c;for(var l=2;l{o.r(t),o.d(t,{assets:()=>u,contentTitle:()=>s,default:()=>f,frontMatter:()=>c,metadata:()=>l,toc:()=>d});var r=o(3117),n=o(102),i=(o(7294),o(3905)),a=["components"],c={id:"cookies",title:"Cookies",sidebar_label:"Cookies",slug:"cookies"},s=void 0,l={unversionedId:"cookies",id:"cookies",title:"Cookies",description:"This page will tell you about what cookies are used through the plugin.",source:"@site/docs/cookies.md",sourceDirName:".",slug:"/cookies",permalink:"/docs/cookies",draft:!1,editUrl:"https://github.com/MultinetInteractive/EduAdmin-WordPress/edit/master/new_website/docs/cookies.md",tags:[],version:"current",lastUpdatedBy:"NoLifeKing",lastUpdatedAt:1730794042,formattedLastUpdatedAt:"Nov 5, 2024",frontMatter:{id:"cookies",title:"Cookies",sidebar_label:"Cookies",slug:"cookies"},sidebar:"docs",previous:{title:"How to troubleshoot",permalink:"/docs/troubleshooting"}},u={},d=[{value:"eduadmin-cookie, eduadmin-cookie-legacy (Required)",id:"eduadmin-cookie-eduadmin-cookie-legacy-required",level:2}],p={toc:d},m="wrapper";function f(e){var t=e.components,o=(0,n.Z)(e,a);return(0,i.kt)(m,(0,r.Z)({},p,o,{components:t,mdxType:"MDXLayout"}),(0,i.kt)("p",null,"This page will tell you about what cookies are used through the plugin."),(0,i.kt)("h2",{id:"eduadmin-cookie-eduadmin-cookie-legacy-required"},(0,i.kt)("inlineCode",{parentName:"h2"},"eduadmin-cookie"),", ",(0,i.kt)("inlineCode",{parentName:"h2"},"eduadmin-cookie-legacy")," ",(0,i.kt)("strong",{parentName:"h2"},"(Required)")),(0,i.kt)("p",null,"Both of these cookies are used to store the user's session in the plugin, and is required for the plugin to work."),(0,i.kt)("p",null,"We also store transaction data, to keep track if the user have started a booking, so that we can show them the relevant information."),(0,i.kt)("p",null,"The ",(0,i.kt)("inlineCode",{parentName:"p"},"-legacy")," cookie gets added for older clients that don't support the ",(0,i.kt)("inlineCode",{parentName:"p"},"eduadmin-cookie")," cookie."))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/7e50f87c.1ae25c63.js b/assets/js/7e50f87c.0931d166.js similarity index 99% rename from assets/js/7e50f87c.1ae25c63.js rename to assets/js/7e50f87c.0931d166.js index 5979d793..22e6ce0b 100644 --- a/assets/js/7e50f87c.1ae25c63.js +++ b/assets/js/7e50f87c.0931d166.js @@ -1 +1 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[672],{3905:(e,t,a)=>{a.d(t,{Zo:()=>s,kt:()=>k});var n=a(7294);function i(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function r(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function o(e){for(var t=1;t=0||(i[a]=e[a]);return i}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(i[a]=e[a])}return i}var l=n.createContext({}),m=function(e){var t=n.useContext(l),a=t;return e&&(a="function"==typeof e?e(t):o(o({},t),e)),a},s=function(e){var t=m(e.components);return n.createElement(l.Provider,{value:t},e.children)},p="mdxType",u={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},h=n.forwardRef((function(e,t){var a=e.components,i=e.mdxType,r=e.originalType,l=e.parentName,s=d(e,["components","mdxType","originalType","parentName"]),p=m(a),h=i,k=p["".concat(l,".").concat(h)]||p[h]||u[h]||r;return a?n.createElement(k,o(o({ref:t},s),{},{components:a})):n.createElement(k,o({ref:t},s))}));function k(e,t){var a=arguments,i=t&&t.mdxType;if("string"==typeof e||i){var r=a.length,o=new Array(r);o[0]=h;var d={};for(var l in t)hasOwnProperty.call(t,l)&&(d[l]=t[l]);d.originalType=e,d[p]="string"==typeof e?e:i,o[1]=d;for(var m=2;m{a.r(t),a.d(t,{assets:()=>s,contentTitle:()=>l,default:()=>k,frontMatter:()=>d,metadata:()=>m,toc:()=>p});var n=a(3117),i=a(102),r=(a(7294),a(3905)),o=["components"],d={id:"wordpress-actions",title:"WordPress Actions",sidebar_label:"WordPress Actions"},l=void 0,m={unversionedId:"wordpress-actions",id:"wordpress-actions",title:"WordPress Actions",description:"Here we have a list of all the actions that are available in the plugin.",source:"@site/docs/wordpress-actions.md",sourceDirName:".",slug:"/wordpress-actions",permalink:"/docs/wordpress-actions",draft:!1,editUrl:"https://github.com/MultinetInteractive/EduAdmin-WordPress/edit/master/new_website/docs/wordpress-actions.md",tags:[],version:"current",lastUpdatedBy:"NoLifeKing",lastUpdatedAt:1730731369,formattedLastUpdatedAt:"Nov 4, 2024",frontMatter:{id:"wordpress-actions",title:"WordPress Actions",sidebar_label:"WordPress Actions"},sidebar:"docs",previous:{title:"Your first custom template",permalink:"/docs/your-first-custom-template"},next:{title:"How to troubleshoot",permalink:"/docs/troubleshooting"}},s={},p=[{value:"Actions",id:"actions",level:2},{value:"eduadmin-booking-completed",id:"eduadmin-booking-completed",level:3},{value:"eduadmin-bookingcompleted",id:"eduadmin-bookingcompleted",level:3},{value:"eduadmin-bookingerror",id:"eduadmin-bookingerror",level:3},{value:"eduadmin-bookingform-loaded",id:"eduadmin-bookingform-loaded",level:3},{value:"eduadmin-bookingform-view",id:"eduadmin-bookingform-view",level:3},{value:"eduadmin-checkpaymentplugins",id:"eduadmin-checkpaymentplugins",level:3},{value:"eduadmin-detail-view",id:"eduadmin-detail-view",level:3},{value:"eduadmin-list-course-view",id:"eduadmin-list-course-view",level:3},{value:"eduadmin-list-event-view",id:"eduadmin-list-event-view",level:3},{value:"eduadmin-list-programme-view",id:"eduadmin-list-programme-view",level:3},{value:"eduadmin-plugin-save_<plugin-id>",id:"eduadmin-plugin-save_plugin-id",level:3},{value:"eduadmin-processbooking",id:"eduadmin-processbooking",level:3},{value:"eduadmin-programme-bookingform-view",id:"eduadmin-programme-bookingform-view",level:3},{value:"eduadmin-programme-detail-view",id:"eduadmin-programme-detail-view",level:3},{value:"edu_integrations_init",id:"edu_integrations_init",level:3},{value:"eduadmin_loaded",id:"eduadmin_loaded",level:3},{value:"eduadmin_showtimers",id:"eduadmin_showtimers",level:3}],u={toc:p},h="wrapper";function k(e){var t=e.components,a=(0,i.Z)(e,o);return(0,r.kt)(h,(0,n.Z)({},u,a,{components:t,mdxType:"MDXLayout"}),(0,r.kt)("p",null,"Here we have a list of all the actions that are available in the plugin."),(0,r.kt)("admonition",{type:"caution"},(0,r.kt)("p",{parentName:"admonition"},"Please use with care! This can break the functionality of the plugin.")),(0,r.kt)("h2",{id:"actions"},"Actions"),(0,r.kt)("p",null,"Some of the actions will have parameters that are passed to them, they will be explained in the section about the\naction."),(0,r.kt)("h3",{id:"eduadmin-booking-completed"},(0,r.kt)("inlineCode",{parentName:"h3"},"eduadmin-booking-completed")),(0,r.kt)("p",null,'This event fires when the booking is completed, and the "Thank you"-page is shown (requires the ',(0,r.kt)("inlineCode",{parentName:"p"},"edu-thankyou")," query\nparameter to be present)"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"left"},"Parameter name"),(0,r.kt)("th",{parentName:"tr",align:"left"},"Description"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"left"},(0,r.kt)("inlineCode",{parentName:"td"},"$booking_info")),(0,r.kt)("td",{parentName:"tr",align:"left"},"Contains either a ",(0,r.kt)("a",{parentName:"td",href:"https://api.eduadmin.se/?page=read#operation/GetSingleBooking"},"Booking")," or a ",(0,r.kt)("a",{parentName:"td",href:"https://api.eduadmin.se/?page=read#operation/GetSingleProgrammeBooking"},"ProgrammeBooking"))))),(0,r.kt)("p",null,"This event can be used when you want to trigger some custom code after a booking has been completed, like if you want to\ntrigger a webhook or something similar."),(0,r.kt)("h3",{id:"eduadmin-bookingcompleted"},(0,r.kt)("inlineCode",{parentName:"h3"},"eduadmin-bookingcompleted")),(0,r.kt)("p",null,"An old legacy event that is still available for backwards compatibility, used by some integrations/plugins to handle\npayment updates/information."),(0,r.kt)("h3",{id:"eduadmin-bookingerror"},(0,r.kt)("inlineCode",{parentName:"h3"},"eduadmin-bookingerror")),(0,r.kt)("p",null,"This event fires when there is an error with the booking."),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"left"},"Parameter name"),(0,r.kt)("th",{parentName:"tr",align:"left"},"Description"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"left"},(0,r.kt)("inlineCode",{parentName:"td"},"$error_list")),(0,r.kt)("td",{parentName:"tr",align:"left"},"Contains the error message(s) that was returned from the API.")))),(0,r.kt)("h3",{id:"eduadmin-bookingform-loaded"},(0,r.kt)("inlineCode",{parentName:"h3"},"eduadmin-bookingform-loaded")),(0,r.kt)("p",null,"This event fires when the booking form is loaded, and the booking form is about to be rendered."),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"left"},"Parameter name"),(0,r.kt)("th",{parentName:"tr",align:"left"},"Description"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"left"},(0,r.kt)("inlineCode",{parentName:"td"},"$login_user")),(0,r.kt)("td",{parentName:"tr",align:"left"},"Contains information about the user that is logged in (or pseudo user if there is none).")))),(0,r.kt)("h3",{id:"eduadmin-bookingform-view"},(0,r.kt)("inlineCode",{parentName:"h3"},"eduadmin-bookingform-view")),(0,r.kt)("p",null,"This event fires when the booking form has been loaded, and we know what course is shown."),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"left"},"Parameter name"),(0,r.kt)("th",{parentName:"tr",align:"left"},"Description"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"left"},(0,r.kt)("inlineCode",{parentName:"td"},"$selected_course")),(0,r.kt)("td",{parentName:"tr",align:"left"},"Contains the ",(0,r.kt)("a",{parentName:"td",href:"https://api.eduadmin.se/?page=read#operation/GetSingleCourseTemplate"},"CourseTemplate")," that is shown in the booking form.")))),(0,r.kt)("h3",{id:"eduadmin-checkpaymentplugins"},(0,r.kt)("inlineCode",{parentName:"h3"},"eduadmin-checkpaymentplugins")),(0,r.kt)("p",null,"This event fires when the booking is about to be made, and the plugin is checking if there are any payment plugins that\nwants to inject themselves into the booking flow."),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"left"},"Parameter name"),(0,r.kt)("th",{parentName:"tr",align:"left"},"Description"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"left"},(0,r.kt)("inlineCode",{parentName:"td"},"$ebi")),(0,r.kt)("td",{parentName:"tr",align:"left"},"Contains the ",(0,r.kt)("a",{parentName:"td",href:"https://github.com/MultinetInteractive/EduAdmin-WordPress/blob/production/class/class-eduadmin-bookinginfo.php"},"EduAdmin_BookingInfo")," that has been created.")))),(0,r.kt)("p",null,"Example of how this is used in the plugin for Svea WebPay can be found here:"),(0,r.kt)("p",null,(0,r.kt)("a",{parentName:"p",href:"https://github.com/MultinetInteractive/EduAdmin-WordPress-SveaWebPay/blob/master/class/class-edu-sveawebpay.php#L27"},"https://github.com/MultinetInteractive/EduAdmin-WordPress-SveaWebPay/blob/master/class/class-edu-sveawebpay.php#L27")),(0,r.kt)("h3",{id:"eduadmin-detail-view"},(0,r.kt)("inlineCode",{parentName:"h3"},"eduadmin-detail-view")),(0,r.kt)("p",null,"This event fires when the detail view is loaded, and the detail view is about to be rendered."),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"left"},"Parameter name"),(0,r.kt)("th",{parentName:"tr",align:"left"},"Description"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"left"},(0,r.kt)("inlineCode",{parentName:"td"},"$selected_course")),(0,r.kt)("td",{parentName:"tr",align:"left"},"Contains the ",(0,r.kt)("a",{parentName:"td",href:"https://api.eduadmin.se/?page=read#operation/GetSingleCourseTemplate"},"CourseTemplate")," that is shown.")))),(0,r.kt)("h3",{id:"eduadmin-list-course-view"},(0,r.kt)("inlineCode",{parentName:"h3"},"eduadmin-list-course-view")),(0,r.kt)("p",null,"This event fires when the course list view is loaded, and the list view has been rendered."),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"left"},"Parameter name"),(0,r.kt)("th",{parentName:"tr",align:"left"},"Description"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"left"},(0,r.kt)("inlineCode",{parentName:"td"},"$courses")),(0,r.kt)("td",{parentName:"tr",align:"left"},"Contains an array of the ",(0,r.kt)("a",{parentName:"td",href:"https://api.eduadmin.se/?page=read#operation/GetSingleCourseTemplate"},"CourseTemplates")," that is shown in the list.")))),(0,r.kt)("h3",{id:"eduadmin-list-event-view"},(0,r.kt)("inlineCode",{parentName:"h3"},"eduadmin-list-event-view")),(0,r.kt)("p",null,"This event fires when the event list view is loaded, and the list view has been rendered."),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"left"},"Parameter name"),(0,r.kt)("th",{parentName:"tr",align:"left"},"Description"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"left"},(0,r.kt)("inlineCode",{parentName:"td"},"$events")),(0,r.kt)("td",{parentName:"tr",align:"left"},"Contains an array of the ",(0,r.kt)("a",{parentName:"td",href:"https://api.eduadmin.se/?page=read#operation/GetSingleEvent"},"Events")," that is shown in the list.")))),(0,r.kt)("h3",{id:"eduadmin-list-programme-view"},(0,r.kt)("inlineCode",{parentName:"h3"},"eduadmin-list-programme-view")),(0,r.kt)("p",null,"This event fires when the event list view is loaded, and the list view has been rendered."),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"left"},"Parameter name"),(0,r.kt)("th",{parentName:"tr",align:"left"},"Description"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"left"},(0,r.kt)("inlineCode",{parentName:"td"},"$programmes")),(0,r.kt)("td",{parentName:"tr",align:"left"},"Contains an array of the ",(0,r.kt)("a",{parentName:"td",href:"https://api.eduadmin.se/?page=read#operation/GetSingleProgramme"},"Programmes")," that is shown in the list.")))),(0,r.kt)("h3",{id:"eduadmin-plugin-save_plugin-id"},(0,r.kt)("inlineCode",{parentName:"h3"},"eduadmin-plugin-save_")),(0,r.kt)("p",null,"This is an internal action, only used to save the options for a plugin."),(0,r.kt)("p",null,(0,r.kt)("a",{parentName:"p",href:"https://github.com/MultinetInteractive/EduAdmin-WordPress/blob/production/includes/plugin/class-edu-integration.php#L152-L173"},"https://github.com/MultinetInteractive/EduAdmin-WordPress/blob/production/includes/plugin/class-edu-integration.php#L152-L173")),(0,r.kt)("h3",{id:"eduadmin-processbooking"},(0,r.kt)("inlineCode",{parentName:"h3"},"eduadmin-processbooking")),(0,r.kt)("p",null,"This event fires when the booking is made, and potential plugins can take part of the booking information for custom\nhandling."),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"left"},"Parameter name"),(0,r.kt)("th",{parentName:"tr",align:"left"},"Description"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"left"},(0,r.kt)("inlineCode",{parentName:"td"},"$ebi")),(0,r.kt)("td",{parentName:"tr",align:"left"},"Contains the ",(0,r.kt)("a",{parentName:"td",href:"https://github.com/MultinetInteractive/EduAdmin-WordPress/blob/production/class/class-eduadmin-bookinginfo.php"},"EduAdmin_BookingInfo")," that has been created.")))),(0,r.kt)("h3",{id:"eduadmin-programme-bookingform-view"},(0,r.kt)("inlineCode",{parentName:"h3"},"eduadmin-programme-bookingform-view")),(0,r.kt)("p",null,"This event fires when the programme booking form has been loaded, and we know what programme is shown."),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"left"},"Parameter name"),(0,r.kt)("th",{parentName:"tr",align:"left"},"Description"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"left"},(0,r.kt)("inlineCode",{parentName:"td"},"$programme")),(0,r.kt)("td",{parentName:"tr",align:"left"},"Contains the ",(0,r.kt)("a",{parentName:"td",href:"https://api.eduadmin.se/?page=read#operation/GetSingleProgramme"},"Programme")," that is shown in the booking form.")))),(0,r.kt)("h3",{id:"eduadmin-programme-detail-view"},(0,r.kt)("inlineCode",{parentName:"h3"},"eduadmin-programme-detail-view")),(0,r.kt)("p",null,"This event fires when the programme detail view is loaded, and the detail view is about to be rendered."),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"left"},"Parameter name"),(0,r.kt)("th",{parentName:"tr",align:"left"},"Description"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"left"},(0,r.kt)("inlineCode",{parentName:"td"},"$programme")),(0,r.kt)("td",{parentName:"tr",align:"left"},"Contains the ",(0,r.kt)("a",{parentName:"td",href:"https://api.eduadmin.se/?page=read#operation/GetSingleProgramme"},"Programme")," that is shown in the detail view.")))),(0,r.kt)("h3",{id:"edu_integrations_init"},(0,r.kt)("inlineCode",{parentName:"h3"},"edu_integrations_init")),(0,r.kt)("p",null,"This event fires when the plugin is loaded, and the integrations are about to be loaded."),(0,r.kt)("h3",{id:"eduadmin_loaded"},(0,r.kt)("inlineCode",{parentName:"h3"},"eduadmin_loaded")),(0,r.kt)("p",null,"This event fires when the plugin is loaded, and the plugin is done initializing."),(0,r.kt)("h3",{id:"eduadmin_showtimers"},(0,r.kt)("inlineCode",{parentName:"h3"},"eduadmin_showtimers")),(0,r.kt)("p",null,"This event fires when the plugin is loaded, and the plugin is about to show the timers."),(0,r.kt)("p",null,"Can be used, if you want to extend the timer functionality, and add your own timers."))}k.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[672],{3905:(e,t,a)=>{a.d(t,{Zo:()=>s,kt:()=>k});var n=a(7294);function i(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function r(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function o(e){for(var t=1;t=0||(i[a]=e[a]);return i}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(i[a]=e[a])}return i}var l=n.createContext({}),m=function(e){var t=n.useContext(l),a=t;return e&&(a="function"==typeof e?e(t):o(o({},t),e)),a},s=function(e){var t=m(e.components);return n.createElement(l.Provider,{value:t},e.children)},p="mdxType",u={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},h=n.forwardRef((function(e,t){var a=e.components,i=e.mdxType,r=e.originalType,l=e.parentName,s=d(e,["components","mdxType","originalType","parentName"]),p=m(a),h=i,k=p["".concat(l,".").concat(h)]||p[h]||u[h]||r;return a?n.createElement(k,o(o({ref:t},s),{},{components:a})):n.createElement(k,o({ref:t},s))}));function k(e,t){var a=arguments,i=t&&t.mdxType;if("string"==typeof e||i){var r=a.length,o=new Array(r);o[0]=h;var d={};for(var l in t)hasOwnProperty.call(t,l)&&(d[l]=t[l]);d.originalType=e,d[p]="string"==typeof e?e:i,o[1]=d;for(var m=2;m{a.r(t),a.d(t,{assets:()=>s,contentTitle:()=>l,default:()=>k,frontMatter:()=>d,metadata:()=>m,toc:()=>p});var n=a(3117),i=a(102),r=(a(7294),a(3905)),o=["components"],d={id:"wordpress-actions",title:"WordPress Actions",sidebar_label:"WordPress Actions"},l=void 0,m={unversionedId:"wordpress-actions",id:"wordpress-actions",title:"WordPress Actions",description:"Here we have a list of all the actions that are available in the plugin.",source:"@site/docs/wordpress-actions.md",sourceDirName:".",slug:"/wordpress-actions",permalink:"/docs/wordpress-actions",draft:!1,editUrl:"https://github.com/MultinetInteractive/EduAdmin-WordPress/edit/master/new_website/docs/wordpress-actions.md",tags:[],version:"current",lastUpdatedBy:"NoLifeKing",lastUpdatedAt:1730794042,formattedLastUpdatedAt:"Nov 5, 2024",frontMatter:{id:"wordpress-actions",title:"WordPress Actions",sidebar_label:"WordPress Actions"},sidebar:"docs",previous:{title:"Your first custom template",permalink:"/docs/your-first-custom-template"},next:{title:"How to troubleshoot",permalink:"/docs/troubleshooting"}},s={},p=[{value:"Actions",id:"actions",level:2},{value:"eduadmin-booking-completed",id:"eduadmin-booking-completed",level:3},{value:"eduadmin-bookingcompleted",id:"eduadmin-bookingcompleted",level:3},{value:"eduadmin-bookingerror",id:"eduadmin-bookingerror",level:3},{value:"eduadmin-bookingform-loaded",id:"eduadmin-bookingform-loaded",level:3},{value:"eduadmin-bookingform-view",id:"eduadmin-bookingform-view",level:3},{value:"eduadmin-checkpaymentplugins",id:"eduadmin-checkpaymentplugins",level:3},{value:"eduadmin-detail-view",id:"eduadmin-detail-view",level:3},{value:"eduadmin-list-course-view",id:"eduadmin-list-course-view",level:3},{value:"eduadmin-list-event-view",id:"eduadmin-list-event-view",level:3},{value:"eduadmin-list-programme-view",id:"eduadmin-list-programme-view",level:3},{value:"eduadmin-plugin-save_<plugin-id>",id:"eduadmin-plugin-save_plugin-id",level:3},{value:"eduadmin-processbooking",id:"eduadmin-processbooking",level:3},{value:"eduadmin-programme-bookingform-view",id:"eduadmin-programme-bookingform-view",level:3},{value:"eduadmin-programme-detail-view",id:"eduadmin-programme-detail-view",level:3},{value:"edu_integrations_init",id:"edu_integrations_init",level:3},{value:"eduadmin_loaded",id:"eduadmin_loaded",level:3},{value:"eduadmin_showtimers",id:"eduadmin_showtimers",level:3}],u={toc:p},h="wrapper";function k(e){var t=e.components,a=(0,i.Z)(e,o);return(0,r.kt)(h,(0,n.Z)({},u,a,{components:t,mdxType:"MDXLayout"}),(0,r.kt)("p",null,"Here we have a list of all the actions that are available in the plugin."),(0,r.kt)("admonition",{type:"caution"},(0,r.kt)("p",{parentName:"admonition"},"Please use with care! This can break the functionality of the plugin.")),(0,r.kt)("h2",{id:"actions"},"Actions"),(0,r.kt)("p",null,"Some of the actions will have parameters that are passed to them, they will be explained in the section about the\naction."),(0,r.kt)("h3",{id:"eduadmin-booking-completed"},(0,r.kt)("inlineCode",{parentName:"h3"},"eduadmin-booking-completed")),(0,r.kt)("p",null,'This event fires when the booking is completed, and the "Thank you"-page is shown (requires the ',(0,r.kt)("inlineCode",{parentName:"p"},"edu-thankyou")," query\nparameter to be present)"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"left"},"Parameter name"),(0,r.kt)("th",{parentName:"tr",align:"left"},"Description"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"left"},(0,r.kt)("inlineCode",{parentName:"td"},"$booking_info")),(0,r.kt)("td",{parentName:"tr",align:"left"},"Contains either a ",(0,r.kt)("a",{parentName:"td",href:"https://api.eduadmin.se/?page=read#operation/GetSingleBooking"},"Booking")," or a ",(0,r.kt)("a",{parentName:"td",href:"https://api.eduadmin.se/?page=read#operation/GetSingleProgrammeBooking"},"ProgrammeBooking"))))),(0,r.kt)("p",null,"This event can be used when you want to trigger some custom code after a booking has been completed, like if you want to\ntrigger a webhook or something similar."),(0,r.kt)("h3",{id:"eduadmin-bookingcompleted"},(0,r.kt)("inlineCode",{parentName:"h3"},"eduadmin-bookingcompleted")),(0,r.kt)("p",null,"An old legacy event that is still available for backwards compatibility, used by some integrations/plugins to handle\npayment updates/information."),(0,r.kt)("h3",{id:"eduadmin-bookingerror"},(0,r.kt)("inlineCode",{parentName:"h3"},"eduadmin-bookingerror")),(0,r.kt)("p",null,"This event fires when there is an error with the booking."),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"left"},"Parameter name"),(0,r.kt)("th",{parentName:"tr",align:"left"},"Description"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"left"},(0,r.kt)("inlineCode",{parentName:"td"},"$error_list")),(0,r.kt)("td",{parentName:"tr",align:"left"},"Contains the error message(s) that was returned from the API.")))),(0,r.kt)("h3",{id:"eduadmin-bookingform-loaded"},(0,r.kt)("inlineCode",{parentName:"h3"},"eduadmin-bookingform-loaded")),(0,r.kt)("p",null,"This event fires when the booking form is loaded, and the booking form is about to be rendered."),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"left"},"Parameter name"),(0,r.kt)("th",{parentName:"tr",align:"left"},"Description"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"left"},(0,r.kt)("inlineCode",{parentName:"td"},"$login_user")),(0,r.kt)("td",{parentName:"tr",align:"left"},"Contains information about the user that is logged in (or pseudo user if there is none).")))),(0,r.kt)("h3",{id:"eduadmin-bookingform-view"},(0,r.kt)("inlineCode",{parentName:"h3"},"eduadmin-bookingform-view")),(0,r.kt)("p",null,"This event fires when the booking form has been loaded, and we know what course is shown."),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"left"},"Parameter name"),(0,r.kt)("th",{parentName:"tr",align:"left"},"Description"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"left"},(0,r.kt)("inlineCode",{parentName:"td"},"$selected_course")),(0,r.kt)("td",{parentName:"tr",align:"left"},"Contains the ",(0,r.kt)("a",{parentName:"td",href:"https://api.eduadmin.se/?page=read#operation/GetSingleCourseTemplate"},"CourseTemplate")," that is shown in the booking form.")))),(0,r.kt)("h3",{id:"eduadmin-checkpaymentplugins"},(0,r.kt)("inlineCode",{parentName:"h3"},"eduadmin-checkpaymentplugins")),(0,r.kt)("p",null,"This event fires when the booking is about to be made, and the plugin is checking if there are any payment plugins that\nwants to inject themselves into the booking flow."),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"left"},"Parameter name"),(0,r.kt)("th",{parentName:"tr",align:"left"},"Description"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"left"},(0,r.kt)("inlineCode",{parentName:"td"},"$ebi")),(0,r.kt)("td",{parentName:"tr",align:"left"},"Contains the ",(0,r.kt)("a",{parentName:"td",href:"https://github.com/MultinetInteractive/EduAdmin-WordPress/blob/production/class/class-eduadmin-bookinginfo.php"},"EduAdmin_BookingInfo")," that has been created.")))),(0,r.kt)("p",null,"Example of how this is used in the plugin for Svea WebPay can be found here:"),(0,r.kt)("p",null,(0,r.kt)("a",{parentName:"p",href:"https://github.com/MultinetInteractive/EduAdmin-WordPress-SveaWebPay/blob/master/class/class-edu-sveawebpay.php#L27"},"https://github.com/MultinetInteractive/EduAdmin-WordPress-SveaWebPay/blob/master/class/class-edu-sveawebpay.php#L27")),(0,r.kt)("h3",{id:"eduadmin-detail-view"},(0,r.kt)("inlineCode",{parentName:"h3"},"eduadmin-detail-view")),(0,r.kt)("p",null,"This event fires when the detail view is loaded, and the detail view is about to be rendered."),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"left"},"Parameter name"),(0,r.kt)("th",{parentName:"tr",align:"left"},"Description"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"left"},(0,r.kt)("inlineCode",{parentName:"td"},"$selected_course")),(0,r.kt)("td",{parentName:"tr",align:"left"},"Contains the ",(0,r.kt)("a",{parentName:"td",href:"https://api.eduadmin.se/?page=read#operation/GetSingleCourseTemplate"},"CourseTemplate")," that is shown.")))),(0,r.kt)("h3",{id:"eduadmin-list-course-view"},(0,r.kt)("inlineCode",{parentName:"h3"},"eduadmin-list-course-view")),(0,r.kt)("p",null,"This event fires when the course list view is loaded, and the list view has been rendered."),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"left"},"Parameter name"),(0,r.kt)("th",{parentName:"tr",align:"left"},"Description"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"left"},(0,r.kt)("inlineCode",{parentName:"td"},"$courses")),(0,r.kt)("td",{parentName:"tr",align:"left"},"Contains an array of the ",(0,r.kt)("a",{parentName:"td",href:"https://api.eduadmin.se/?page=read#operation/GetSingleCourseTemplate"},"CourseTemplates")," that is shown in the list.")))),(0,r.kt)("h3",{id:"eduadmin-list-event-view"},(0,r.kt)("inlineCode",{parentName:"h3"},"eduadmin-list-event-view")),(0,r.kt)("p",null,"This event fires when the event list view is loaded, and the list view has been rendered."),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"left"},"Parameter name"),(0,r.kt)("th",{parentName:"tr",align:"left"},"Description"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"left"},(0,r.kt)("inlineCode",{parentName:"td"},"$events")),(0,r.kt)("td",{parentName:"tr",align:"left"},"Contains an array of the ",(0,r.kt)("a",{parentName:"td",href:"https://api.eduadmin.se/?page=read#operation/GetSingleEvent"},"Events")," that is shown in the list.")))),(0,r.kt)("h3",{id:"eduadmin-list-programme-view"},(0,r.kt)("inlineCode",{parentName:"h3"},"eduadmin-list-programme-view")),(0,r.kt)("p",null,"This event fires when the event list view is loaded, and the list view has been rendered."),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"left"},"Parameter name"),(0,r.kt)("th",{parentName:"tr",align:"left"},"Description"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"left"},(0,r.kt)("inlineCode",{parentName:"td"},"$programmes")),(0,r.kt)("td",{parentName:"tr",align:"left"},"Contains an array of the ",(0,r.kt)("a",{parentName:"td",href:"https://api.eduadmin.se/?page=read#operation/GetSingleProgramme"},"Programmes")," that is shown in the list.")))),(0,r.kt)("h3",{id:"eduadmin-plugin-save_plugin-id"},(0,r.kt)("inlineCode",{parentName:"h3"},"eduadmin-plugin-save_")),(0,r.kt)("p",null,"This is an internal action, only used to save the options for a plugin."),(0,r.kt)("p",null,(0,r.kt)("a",{parentName:"p",href:"https://github.com/MultinetInteractive/EduAdmin-WordPress/blob/production/includes/plugin/class-edu-integration.php#L152-L173"},"https://github.com/MultinetInteractive/EduAdmin-WordPress/blob/production/includes/plugin/class-edu-integration.php#L152-L173")),(0,r.kt)("h3",{id:"eduadmin-processbooking"},(0,r.kt)("inlineCode",{parentName:"h3"},"eduadmin-processbooking")),(0,r.kt)("p",null,"This event fires when the booking is made, and potential plugins can take part of the booking information for custom\nhandling."),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"left"},"Parameter name"),(0,r.kt)("th",{parentName:"tr",align:"left"},"Description"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"left"},(0,r.kt)("inlineCode",{parentName:"td"},"$ebi")),(0,r.kt)("td",{parentName:"tr",align:"left"},"Contains the ",(0,r.kt)("a",{parentName:"td",href:"https://github.com/MultinetInteractive/EduAdmin-WordPress/blob/production/class/class-eduadmin-bookinginfo.php"},"EduAdmin_BookingInfo")," that has been created.")))),(0,r.kt)("h3",{id:"eduadmin-programme-bookingform-view"},(0,r.kt)("inlineCode",{parentName:"h3"},"eduadmin-programme-bookingform-view")),(0,r.kt)("p",null,"This event fires when the programme booking form has been loaded, and we know what programme is shown."),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"left"},"Parameter name"),(0,r.kt)("th",{parentName:"tr",align:"left"},"Description"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"left"},(0,r.kt)("inlineCode",{parentName:"td"},"$programme")),(0,r.kt)("td",{parentName:"tr",align:"left"},"Contains the ",(0,r.kt)("a",{parentName:"td",href:"https://api.eduadmin.se/?page=read#operation/GetSingleProgramme"},"Programme")," that is shown in the booking form.")))),(0,r.kt)("h3",{id:"eduadmin-programme-detail-view"},(0,r.kt)("inlineCode",{parentName:"h3"},"eduadmin-programme-detail-view")),(0,r.kt)("p",null,"This event fires when the programme detail view is loaded, and the detail view is about to be rendered."),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"left"},"Parameter name"),(0,r.kt)("th",{parentName:"tr",align:"left"},"Description"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"left"},(0,r.kt)("inlineCode",{parentName:"td"},"$programme")),(0,r.kt)("td",{parentName:"tr",align:"left"},"Contains the ",(0,r.kt)("a",{parentName:"td",href:"https://api.eduadmin.se/?page=read#operation/GetSingleProgramme"},"Programme")," that is shown in the detail view.")))),(0,r.kt)("h3",{id:"edu_integrations_init"},(0,r.kt)("inlineCode",{parentName:"h3"},"edu_integrations_init")),(0,r.kt)("p",null,"This event fires when the plugin is loaded, and the integrations are about to be loaded."),(0,r.kt)("h3",{id:"eduadmin_loaded"},(0,r.kt)("inlineCode",{parentName:"h3"},"eduadmin_loaded")),(0,r.kt)("p",null,"This event fires when the plugin is loaded, and the plugin is done initializing."),(0,r.kt)("h3",{id:"eduadmin_showtimers"},(0,r.kt)("inlineCode",{parentName:"h3"},"eduadmin_showtimers")),(0,r.kt)("p",null,"This event fires when the plugin is loaded, and the plugin is about to show the timers."),(0,r.kt)("p",null,"Can be used, if you want to extend the timer functionality, and add your own timers."))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/9d9f8394.4b8b2889.js b/assets/js/9d9f8394.b2b81596.js similarity index 99% rename from assets/js/9d9f8394.4b8b2889.js rename to assets/js/9d9f8394.b2b81596.js index a160d20f..f543417f 100644 --- a/assets/js/9d9f8394.4b8b2889.js +++ b/assets/js/9d9f8394.b2b81596.js @@ -1 +1 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[360],{3905:(e,t,n)=>{n.d(t,{Zo:()=>p,kt:()=>m});var o=n(7294);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function a(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var u=o.createContext({}),l=function(e){var t=o.useContext(u),n=t;return e&&(n="function"==typeof e?e(t):a(a({},t),e)),n},p=function(e){var t=l(e.components);return o.createElement(u.Provider,{value:t},e.children)},h="mdxType",c={inlineCode:"code",wrapper:function(e){var t=e.children;return o.createElement(o.Fragment,{},t)}},d=o.forwardRef((function(e,t){var n=e.components,r=e.mdxType,i=e.originalType,u=e.parentName,p=s(e,["components","mdxType","originalType","parentName"]),h=l(n),d=r,m=h["".concat(u,".").concat(d)]||h[d]||c[d]||i;return n?o.createElement(m,a(a({ref:t},p),{},{components:n})):o.createElement(m,a({ref:t},p))}));function m(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var i=n.length,a=new Array(i);a[0]=d;var s={};for(var u in t)hasOwnProperty.call(t,u)&&(s[u]=t[u]);s.originalType=e,s[h]="string"==typeof e?e:r,a[1]=s;for(var l=2;l{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>u,default:()=>m,frontMatter:()=>s,metadata:()=>l,toc:()=>h});var o=n(3117),r=n(102),i=(n(7294),n(3905)),a=["components"],s={id:"troubleshooting",title:"Troubleshooting",sidebar_label:"How to troubleshoot"},u=void 0,l={unversionedId:"troubleshooting",id:"troubleshooting",title:"Troubleshooting",description:"Common issues",source:"@site/docs/troubleshooting.md",sourceDirName:".",slug:"/troubleshooting",permalink:"/docs/troubleshooting",draft:!1,editUrl:"https://github.com/MultinetInteractive/EduAdmin-WordPress/edit/master/new_website/docs/troubleshooting.md",tags:[],version:"current",lastUpdatedBy:"NoLifeKing",lastUpdatedAt:1730731369,formattedLastUpdatedAt:"Nov 4, 2024",frontMatter:{id:"troubleshooting",title:"Troubleshooting",sidebar_label:"How to troubleshoot"},sidebar:"docs",previous:{title:"WordPress Actions",permalink:"/docs/wordpress-actions"},next:{title:"Cookies",permalink:"/docs/cookies"}},p={},h=[{value:"Common issues",id:"common-issues",level:2},{value:"The website is showing old data",id:"the-website-is-showing-old-data",level:3},{value:"Nothing happens when I click anything",id:"nothing-happens-when-i-click-anything",level:3},{value:"It's not showing in the correct language",id:"its-not-showing-in-the-correct-language",level:3},{value:"Whenever I try to complete a booking, an unexpected error occurs",id:"whenever-i-try-to-complete-a-booking-an-unexpected-error-occurs",level:3},{value:"The dates shown on my website are wrong",id:"the-dates-shown-on-my-website-are-wrong",level:3}],c={toc:h},d="wrapper";function m(e){var t=e.components,n=(0,r.Z)(e,a);return(0,i.kt)(d,(0,o.Z)({},c,n,{components:t,mdxType:"MDXLayout"}),(0,i.kt)("h2",{id:"common-issues"},"Common issues"),(0,i.kt)("p",null,"These issues have been reported most of all,\nand is likely a configuration problem,\nor compatibility problem with other WordPress plugins."),(0,i.kt)("admonition",{title:"Missing features are not bugs",type:"info"},(0,i.kt)("p",{parentName:"admonition"},"If a feature is missing, it's probably because no one have asked for it, so it's not a bug.\nIf you want to request a feature, you can do so by creating an\n",(0,i.kt)("a",{parentName:"p",href:"https://github.com/MultinetInteractive/EduAdmin-WordPress/issues/new/choose"},"issue"),"\nor contacting our ",(0,i.kt)("a",{parentName:"p",href:"https://support.eduadmin.se/en/support/tickets/new"},"support"))),(0,i.kt)("h3",{id:"the-website-is-showing-old-data"},"The website is showing old data"),(0,i.kt)("p",null,"If the data on the web page isn't updating after you have updated the information in ",(0,i.kt)("a",{parentName:"p",href:"https://www.eduadmin.se"},(0,i.kt)("strong",{parentName:"a"},"EduAdmin")),",\nyou might want to clear any eventual cache plugins, and the internal cache in our plugin."),(0,i.kt)("p",null,"We cache some data for a period, to make the website as fast as possible."),(0,i.kt)("p",null,"If you need to check if it's our plugin that is caching something, you can add ",(0,i.kt)("inlineCode",{parentName:"p"},"?edu-showtransients=1")," to the url,\nand it will output some comments in the source code, that will tell you everything that we cache."),(0,i.kt)("p",null,"The output will look something like this"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-html",metastring:'title="Example output from plugin when showing transients"',title:'"Example',output:!0,from:!0,plugin:!0,when:!0,showing:!0,'transients"':!0},"\n\x3c!-- EduAdmin Booking () Transients \n eduadmin-locations___: Expires in: 24 hours \n eduadmin-categories___: Expires in: 24 hours \n eduadmin-levels___: Expires in: 24 hours \n eduadmin-listcourses-courses___: Expires in: 5 minutes \n eduadmin-organization___: Expires in: 24 hours \n eduadmin-newapi-token__: Expires in: 7 days \n eduadmin-subjects___: Expires in: 1 day \n eduadmin-regions___: Expires in: 1 day \n /EduAdmin Booking Transients --\x3e\n\n")),(0,i.kt)("h3",{id:"nothing-happens-when-i-click-anything"},"Nothing happens when I click anything"),(0,i.kt)("p",null,"Make sure you are not using any plugins that combine/rearrange stylesheets or javascripts,\nor put our scripts in a whitelist, so they are not combined. Many of these plugins are not\nchecking in what order they should be loaded and might put the scripts in the wrong order."),(0,i.kt)("h3",{id:"its-not-showing-in-the-correct-language"},"It's not showing in the correct language"),(0,i.kt)("p",null,"By default, WordPress will download language files for plugins,\nbut we have noticed in some instances that it either fails to do so,\nor another translation plugin is prohibiting the translation to work properly."),(0,i.kt)("p",null,'You can always check the "Settings ',">",' General" and see what "Site Language" is set to.'),(0,i.kt)("h3",{id:"whenever-i-try-to-complete-a-booking-an-unexpected-error-occurs"},"Whenever I try to complete a booking, an unexpected error occurs"),(0,i.kt)("p",null,"Most of the time, when the plugin connects to ",(0,i.kt)("a",{parentName:"p",href:"https://www.eduadmin.se"},(0,i.kt)("strong",{parentName:"a"},"EduAdmin"))," to complete the booking,\nwe get back either a success, or an array of errors."),(0,i.kt)("p",null,"The unexpected error means something went wrong, that we do not have a classification for,\nso please ",(0,i.kt)("strong",{parentName:"p"},"contact us")," at our support portal whenever this occurs."),(0,i.kt)("admonition",{title:"Want support? Find us here!",type:"tip"},(0,i.kt)("p",{parentName:"admonition"},"You can find the support portal at ",(0,i.kt)("a",{parentName:"p",href:"https://support.eduadmin.se/en/support/tickets/new"},(0,i.kt)("strong",{parentName:"a"},"https://support.eduadmin.se/en/support/tickets/new")),".")),(0,i.kt)("h3",{id:"the-dates-shown-on-my-website-are-wrong"},"The dates shown on my website are wrong"),(0,i.kt)("p",null,"Make sure you have set the correct timezone in your WordPress instance,\nwe try to convert the dates from the EduAdmin API, to fit your WordPress settings."),(0,i.kt)("p",null,"And if you want to check how we handle the dates, you can append ",(0,i.kt)("inlineCode",{parentName:"p"},"?edu-debugdates=1")," to the URL,\nand then you will see (in the source), something like this:"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-html",metastring:'title="Example output from plugin when debugging dates"',title:'"Example',output:!0,from:!0,plugin:!0,when:!0,debugging:!0,'dates"':!0},"\n\x3c!-- Array\n(\n [0] => Y-m-d // The format of the date\n [1] => 2020-09-01T17:00:00+02:00 // The original input to the method\n [2] => 2020-09-01T17:00:00+02:00 // If we don't send any input, we calculate a new input to be used\n [3] => 2020-09-01 // This is what will be outputted into the website\n [4] => +02:00 // This is the calculated timezone offset\n [5] => 7200 // This is the timezone offset, in seconds\n [6] => include // This is an approximation of where the code is used\n)\n--\x3e\n\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[360],{3905:(e,t,n)=>{n.d(t,{Zo:()=>p,kt:()=>m});var o=n(7294);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function a(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var u=o.createContext({}),l=function(e){var t=o.useContext(u),n=t;return e&&(n="function"==typeof e?e(t):a(a({},t),e)),n},p=function(e){var t=l(e.components);return o.createElement(u.Provider,{value:t},e.children)},h="mdxType",c={inlineCode:"code",wrapper:function(e){var t=e.children;return o.createElement(o.Fragment,{},t)}},d=o.forwardRef((function(e,t){var n=e.components,r=e.mdxType,i=e.originalType,u=e.parentName,p=s(e,["components","mdxType","originalType","parentName"]),h=l(n),d=r,m=h["".concat(u,".").concat(d)]||h[d]||c[d]||i;return n?o.createElement(m,a(a({ref:t},p),{},{components:n})):o.createElement(m,a({ref:t},p))}));function m(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var i=n.length,a=new Array(i);a[0]=d;var s={};for(var u in t)hasOwnProperty.call(t,u)&&(s[u]=t[u]);s.originalType=e,s[h]="string"==typeof e?e:r,a[1]=s;for(var l=2;l{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>u,default:()=>m,frontMatter:()=>s,metadata:()=>l,toc:()=>h});var o=n(3117),r=n(102),i=(n(7294),n(3905)),a=["components"],s={id:"troubleshooting",title:"Troubleshooting",sidebar_label:"How to troubleshoot"},u=void 0,l={unversionedId:"troubleshooting",id:"troubleshooting",title:"Troubleshooting",description:"Common issues",source:"@site/docs/troubleshooting.md",sourceDirName:".",slug:"/troubleshooting",permalink:"/docs/troubleshooting",draft:!1,editUrl:"https://github.com/MultinetInteractive/EduAdmin-WordPress/edit/master/new_website/docs/troubleshooting.md",tags:[],version:"current",lastUpdatedBy:"NoLifeKing",lastUpdatedAt:1730794042,formattedLastUpdatedAt:"Nov 5, 2024",frontMatter:{id:"troubleshooting",title:"Troubleshooting",sidebar_label:"How to troubleshoot"},sidebar:"docs",previous:{title:"WordPress Actions",permalink:"/docs/wordpress-actions"},next:{title:"Cookies",permalink:"/docs/cookies"}},p={},h=[{value:"Common issues",id:"common-issues",level:2},{value:"The website is showing old data",id:"the-website-is-showing-old-data",level:3},{value:"Nothing happens when I click anything",id:"nothing-happens-when-i-click-anything",level:3},{value:"It's not showing in the correct language",id:"its-not-showing-in-the-correct-language",level:3},{value:"Whenever I try to complete a booking, an unexpected error occurs",id:"whenever-i-try-to-complete-a-booking-an-unexpected-error-occurs",level:3},{value:"The dates shown on my website are wrong",id:"the-dates-shown-on-my-website-are-wrong",level:3}],c={toc:h},d="wrapper";function m(e){var t=e.components,n=(0,r.Z)(e,a);return(0,i.kt)(d,(0,o.Z)({},c,n,{components:t,mdxType:"MDXLayout"}),(0,i.kt)("h2",{id:"common-issues"},"Common issues"),(0,i.kt)("p",null,"These issues have been reported most of all,\nand is likely a configuration problem,\nor compatibility problem with other WordPress plugins."),(0,i.kt)("admonition",{title:"Missing features are not bugs",type:"info"},(0,i.kt)("p",{parentName:"admonition"},"If a feature is missing, it's probably because no one have asked for it, so it's not a bug.\nIf you want to request a feature, you can do so by creating an\n",(0,i.kt)("a",{parentName:"p",href:"https://github.com/MultinetInteractive/EduAdmin-WordPress/issues/new/choose"},"issue"),"\nor contacting our ",(0,i.kt)("a",{parentName:"p",href:"https://support.eduadmin.se/en/support/tickets/new"},"support"))),(0,i.kt)("h3",{id:"the-website-is-showing-old-data"},"The website is showing old data"),(0,i.kt)("p",null,"If the data on the web page isn't updating after you have updated the information in ",(0,i.kt)("a",{parentName:"p",href:"https://www.eduadmin.se"},(0,i.kt)("strong",{parentName:"a"},"EduAdmin")),",\nyou might want to clear any eventual cache plugins, and the internal cache in our plugin."),(0,i.kt)("p",null,"We cache some data for a period, to make the website as fast as possible."),(0,i.kt)("p",null,"If you need to check if it's our plugin that is caching something, you can add ",(0,i.kt)("inlineCode",{parentName:"p"},"?edu-showtransients=1")," to the url,\nand it will output some comments in the source code, that will tell you everything that we cache."),(0,i.kt)("p",null,"The output will look something like this"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-html",metastring:'title="Example output from plugin when showing transients"',title:'"Example',output:!0,from:!0,plugin:!0,when:!0,showing:!0,'transients"':!0},"\n\x3c!-- EduAdmin Booking () Transients \n eduadmin-locations___: Expires in: 24 hours \n eduadmin-categories___: Expires in: 24 hours \n eduadmin-levels___: Expires in: 24 hours \n eduadmin-listcourses-courses___: Expires in: 5 minutes \n eduadmin-organization___: Expires in: 24 hours \n eduadmin-newapi-token__: Expires in: 7 days \n eduadmin-subjects___: Expires in: 1 day \n eduadmin-regions___: Expires in: 1 day \n /EduAdmin Booking Transients --\x3e\n\n")),(0,i.kt)("h3",{id:"nothing-happens-when-i-click-anything"},"Nothing happens when I click anything"),(0,i.kt)("p",null,"Make sure you are not using any plugins that combine/rearrange stylesheets or javascripts,\nor put our scripts in a whitelist, so they are not combined. Many of these plugins are not\nchecking in what order they should be loaded and might put the scripts in the wrong order."),(0,i.kt)("h3",{id:"its-not-showing-in-the-correct-language"},"It's not showing in the correct language"),(0,i.kt)("p",null,"By default, WordPress will download language files for plugins,\nbut we have noticed in some instances that it either fails to do so,\nor another translation plugin is prohibiting the translation to work properly."),(0,i.kt)("p",null,'You can always check the "Settings ',">",' General" and see what "Site Language" is set to.'),(0,i.kt)("h3",{id:"whenever-i-try-to-complete-a-booking-an-unexpected-error-occurs"},"Whenever I try to complete a booking, an unexpected error occurs"),(0,i.kt)("p",null,"Most of the time, when the plugin connects to ",(0,i.kt)("a",{parentName:"p",href:"https://www.eduadmin.se"},(0,i.kt)("strong",{parentName:"a"},"EduAdmin"))," to complete the booking,\nwe get back either a success, or an array of errors."),(0,i.kt)("p",null,"The unexpected error means something went wrong, that we do not have a classification for,\nso please ",(0,i.kt)("strong",{parentName:"p"},"contact us")," at our support portal whenever this occurs."),(0,i.kt)("admonition",{title:"Want support? Find us here!",type:"tip"},(0,i.kt)("p",{parentName:"admonition"},"You can find the support portal at ",(0,i.kt)("a",{parentName:"p",href:"https://support.eduadmin.se/en/support/tickets/new"},(0,i.kt)("strong",{parentName:"a"},"https://support.eduadmin.se/en/support/tickets/new")),".")),(0,i.kt)("h3",{id:"the-dates-shown-on-my-website-are-wrong"},"The dates shown on my website are wrong"),(0,i.kt)("p",null,"Make sure you have set the correct timezone in your WordPress instance,\nwe try to convert the dates from the EduAdmin API, to fit your WordPress settings."),(0,i.kt)("p",null,"And if you want to check how we handle the dates, you can append ",(0,i.kt)("inlineCode",{parentName:"p"},"?edu-debugdates=1")," to the URL,\nand then you will see (in the source), something like this:"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-html",metastring:'title="Example output from plugin when debugging dates"',title:'"Example',output:!0,from:!0,plugin:!0,when:!0,debugging:!0,'dates"':!0},"\n\x3c!-- Array\n(\n [0] => Y-m-d // The format of the date\n [1] => 2020-09-01T17:00:00+02:00 // The original input to the method\n [2] => 2020-09-01T17:00:00+02:00 // If we don't send any input, we calculate a new input to be used\n [3] => 2020-09-01 // This is what will be outputted into the website\n [4] => +02:00 // This is the calculated timezone offset\n [5] => 7200 // This is the timezone offset, in seconds\n [6] => include // This is an approximation of where the code is used\n)\n--\x3e\n\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/bcf2d73d.46e5492e.js b/assets/js/bcf2d73d.c55e5759.js similarity index 98% rename from assets/js/bcf2d73d.46e5492e.js rename to assets/js/bcf2d73d.c55e5759.js index c3140450..a8ba455c 100644 --- a/assets/js/bcf2d73d.46e5492e.js +++ b/assets/js/bcf2d73d.c55e5759.js @@ -1 +1 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[162],{3905:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>f});var i=n(7294);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function o(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var s=i.createContext({}),d=function(e){var t=i.useContext(s),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},u=function(e){var t=d(e.components);return i.createElement(s.Provider,{value:t},e.children)},c="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return i.createElement(i.Fragment,{},t)}},p=i.forwardRef((function(e,t){var n=e.components,a=e.mdxType,r=e.originalType,s=e.parentName,u=l(e,["components","mdxType","originalType","parentName"]),c=d(n),p=a,f=c["".concat(s,".").concat(p)]||c[p]||m[p]||r;return n?i.createElement(f,o(o({ref:t},u),{},{components:n})):i.createElement(f,o({ref:t},u))}));function f(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var r=n.length,o=new Array(r);o[0]=p;var l={};for(var s in t)hasOwnProperty.call(t,s)&&(l[s]=t[s]);l.originalType=e,l[c]="string"==typeof e?e:a,o[1]=l;for(var d=2;d{n.r(t),n.d(t,{assets:()=>u,contentTitle:()=>s,default:()=>f,frontMatter:()=>l,metadata:()=>d,toc:()=>c});var i=n(3117),a=n(102),r=(n(7294),n(3905)),o=["components"],l={id:"your-first-custom-template",title:"Your first custom template",sidebar_label:"Your first custom template"},s=void 0,d={unversionedId:"your-first-custom-template",id:"your-first-custom-template",title:"Your first custom template",description:"This guide will show how you can build the template_A-template, but as a custom template.",source:"@site/docs/custom-template.md",sourceDirName:".",slug:"/your-first-custom-template",permalink:"/docs/your-first-custom-template",draft:!1,editUrl:"https://github.com/MultinetInteractive/EduAdmin-WordPress/edit/master/new_website/docs/custom-template.md",tags:[],version:"current",lastUpdatedBy:"NoLifeKing",lastUpdatedAt:1730731369,formattedLastUpdatedAt:"Nov 4, 2024",frontMatter:{id:"your-first-custom-template",title:"Your first custom template",sidebar_label:"Your first custom template"},sidebar:"docs",previous:{title:"Shortcodes",permalink:"/docs/shortcodes"},next:{title:"WordPress Actions",permalink:"/docs/wordpress-actions"}},u={},c=[],m={toc:c},p="wrapper";function f(e){var t=e.components,n=(0,a.Z)(e,o);return(0,r.kt)(p,(0,i.Z)({},m,n,{components:t,mdxType:"MDXLayout"}),(0,r.kt)("p",null,"This guide will show how you can build the ",(0,r.kt)("inlineCode",{parentName:"p"},"template_A"),"-template, but as a custom template."),(0,r.kt)("hr",null),(0,r.kt)("p",null,"This is how the default detail view is implemented"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-php"},"\n[eduadmin-detailview]\n\n")),(0,r.kt)("p",null,"That's basically all you need for the detail view to start working,\nand then you can change some settings and add some attributes to modify the default appearance."),(0,r.kt)("p",null,"Now, the first modification we will do to make it possible to use custom templates,\nwill be adding the attribute ",(0,r.kt)("inlineCode",{parentName:"p"},"customtemplate"),". Doing this will disable the regular templates."),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-php"},"\n[eduadmin-detailview customtemplate]\n\n")),(0,r.kt)("p",null,"So, if you reload the detail view of a course template now, it should not show anything at all.\nDon't worry, it is to be expected, since we told the plugin that we are going to use a custom template,\nand didn't add anything else to the page."),(0,r.kt)("p",null,"So, let's go recreate the ",(0,r.kt)("inlineCode",{parentName:"p"},"template_A"),"-template, so we get to know the custom templating."),(0,r.kt)("p",null,"All the code below should go into a single code block.\nWe won't be using the image, because we can only get the image URL,\nnot see if it actually contains anything, and we don't want to render broken images."),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-html"},'\n[eduadmin-detailview customtemplate]\n\n
\n \n \xab Go back\n \n
\n

\n [eduadmin-detailinfo coursepublicname]\n \n [eduadmin-detailinfo courselevel]\n \n

\n
\n
\n
\n

Course description

\n
[eduadmin-detailinfo coursedescription]
\n\n

Course goal

\n
[eduadmin-detailinfo coursegoal]
\n \n

Target group

\n
[eduadmin-detailinfo coursetarget]
\n \n

Prerequisites

\n
[eduadmin-detailinfo courseprerequisites]
\n \n

After the course

\n
[eduadmin-detailinfo courseafter]
\n \n

Quotes

\n
[eduadmin-detailinfo coursequote]
\n \n
\n
\n

Time

\n [eduadmin-detailinfo coursedays], \n [eduadmin-detailinfo coursestarttime] - [eduadmin-detailinfo courseendtime]\n\n

Price

\n [eduadmin-detailinfo courseprice]\n
\n
\n\n[eduadmin-detailinfo courseeventlist]\n\n\n\n')))}f.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[162],{3905:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>f});var i=n(7294);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function o(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var s=i.createContext({}),d=function(e){var t=i.useContext(s),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},u=function(e){var t=d(e.components);return i.createElement(s.Provider,{value:t},e.children)},c="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return i.createElement(i.Fragment,{},t)}},p=i.forwardRef((function(e,t){var n=e.components,a=e.mdxType,r=e.originalType,s=e.parentName,u=l(e,["components","mdxType","originalType","parentName"]),c=d(n),p=a,f=c["".concat(s,".").concat(p)]||c[p]||m[p]||r;return n?i.createElement(f,o(o({ref:t},u),{},{components:n})):i.createElement(f,o({ref:t},u))}));function f(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var r=n.length,o=new Array(r);o[0]=p;var l={};for(var s in t)hasOwnProperty.call(t,s)&&(l[s]=t[s]);l.originalType=e,l[c]="string"==typeof e?e:a,o[1]=l;for(var d=2;d{n.r(t),n.d(t,{assets:()=>u,contentTitle:()=>s,default:()=>f,frontMatter:()=>l,metadata:()=>d,toc:()=>c});var i=n(3117),a=n(102),r=(n(7294),n(3905)),o=["components"],l={id:"your-first-custom-template",title:"Your first custom template",sidebar_label:"Your first custom template"},s=void 0,d={unversionedId:"your-first-custom-template",id:"your-first-custom-template",title:"Your first custom template",description:"This guide will show how you can build the template_A-template, but as a custom template.",source:"@site/docs/custom-template.md",sourceDirName:".",slug:"/your-first-custom-template",permalink:"/docs/your-first-custom-template",draft:!1,editUrl:"https://github.com/MultinetInteractive/EduAdmin-WordPress/edit/master/new_website/docs/custom-template.md",tags:[],version:"current",lastUpdatedBy:"NoLifeKing",lastUpdatedAt:1730794042,formattedLastUpdatedAt:"Nov 5, 2024",frontMatter:{id:"your-first-custom-template",title:"Your first custom template",sidebar_label:"Your first custom template"},sidebar:"docs",previous:{title:"Shortcodes",permalink:"/docs/shortcodes"},next:{title:"WordPress Actions",permalink:"/docs/wordpress-actions"}},u={},c=[],m={toc:c},p="wrapper";function f(e){var t=e.components,n=(0,a.Z)(e,o);return(0,r.kt)(p,(0,i.Z)({},m,n,{components:t,mdxType:"MDXLayout"}),(0,r.kt)("p",null,"This guide will show how you can build the ",(0,r.kt)("inlineCode",{parentName:"p"},"template_A"),"-template, but as a custom template."),(0,r.kt)("hr",null),(0,r.kt)("p",null,"This is how the default detail view is implemented"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-php"},"\n[eduadmin-detailview]\n\n")),(0,r.kt)("p",null,"That's basically all you need for the detail view to start working,\nand then you can change some settings and add some attributes to modify the default appearance."),(0,r.kt)("p",null,"Now, the first modification we will do to make it possible to use custom templates,\nwill be adding the attribute ",(0,r.kt)("inlineCode",{parentName:"p"},"customtemplate"),". Doing this will disable the regular templates."),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-php"},"\n[eduadmin-detailview customtemplate]\n\n")),(0,r.kt)("p",null,"So, if you reload the detail view of a course template now, it should not show anything at all.\nDon't worry, it is to be expected, since we told the plugin that we are going to use a custom template,\nand didn't add anything else to the page."),(0,r.kt)("p",null,"So, let's go recreate the ",(0,r.kt)("inlineCode",{parentName:"p"},"template_A"),"-template, so we get to know the custom templating."),(0,r.kt)("p",null,"All the code below should go into a single code block.\nWe won't be using the image, because we can only get the image URL,\nnot see if it actually contains anything, and we don't want to render broken images."),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-html"},'\n[eduadmin-detailview customtemplate]\n\n
\n \n \xab Go back\n \n
\n

\n [eduadmin-detailinfo coursepublicname]\n \n [eduadmin-detailinfo courselevel]\n \n

\n
\n
\n
\n

Course description

\n
[eduadmin-detailinfo coursedescription]
\n\n

Course goal

\n
[eduadmin-detailinfo coursegoal]
\n \n

Target group

\n
[eduadmin-detailinfo coursetarget]
\n \n

Prerequisites

\n
[eduadmin-detailinfo courseprerequisites]
\n \n

After the course

\n
[eduadmin-detailinfo courseafter]
\n \n

Quotes

\n
[eduadmin-detailinfo coursequote]
\n \n
\n
\n

Time

\n [eduadmin-detailinfo coursedays], \n [eduadmin-detailinfo coursestarttime] - [eduadmin-detailinfo courseendtime]\n\n

Price

\n [eduadmin-detailinfo courseprice]\n
\n
\n\n[eduadmin-detailinfo courseeventlist]\n\n\n\n')))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/beb8c2f8.758d87a6.js b/assets/js/beb8c2f8.6f89d40e.js similarity index 99% rename from assets/js/beb8c2f8.758d87a6.js rename to assets/js/beb8c2f8.6f89d40e.js index 33838b25..03d36d56 100644 --- a/assets/js/beb8c2f8.758d87a6.js +++ b/assets/js/beb8c2f8.6f89d40e.js @@ -1 +1 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[647],{3905:(t,e,a)=>{a.d(e,{Zo:()=>m,kt:()=>s});var n=a(7294);function r(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function l(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function i(t){for(var e=1;e=0||(r[a]=t[a]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,a)&&(r[a]=t[a])}return r}var p=n.createContext({}),d=function(t){var e=n.useContext(p),a=e;return t&&(a="function"==typeof t?t(e):i(i({},e),t)),a},m=function(t){var e=d(t.components);return n.createElement(p.Provider,{value:e},t.children)},k="mdxType",u={inlineCode:"code",wrapper:function(t){var e=t.children;return n.createElement(n.Fragment,{},e)}},c=n.forwardRef((function(t,e){var a=t.components,r=t.mdxType,l=t.originalType,p=t.parentName,m=o(t,["components","mdxType","originalType","parentName"]),k=d(a),c=r,s=k["".concat(p,".").concat(c)]||k[c]||u[c]||l;return a?n.createElement(s,i(i({ref:e},m),{},{components:a})):n.createElement(s,i({ref:e},m))}));function s(t,e){var a=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=a.length,i=new Array(l);i[0]=c;var o={};for(var p in e)hasOwnProperty.call(e,p)&&(o[p]=e[p]);o.originalType=t,o[k]="string"==typeof t?t:r,i[1]=o;for(var d=2;d{a.r(e),a.d(e,{assets:()=>m,contentTitle:()=>p,default:()=>s,frontMatter:()=>o,metadata:()=>d,toc:()=>k});var n=a(3117),r=a(102),l=(a(7294),a(3905)),i=["components"],o={id:"shortcodes",title:"Shortcodes",sidebar_label:"Shortcodes"},p=void 0,d={unversionedId:"shortcodes",id:"shortcodes",title:"Shortcodes",description:"Here we have a complete reference guide to all shortcodes available in the plugin, with all attributes.",source:"@site/docs/shortcodes.md",sourceDirName:".",slug:"/shortcodes",permalink:"/docs/shortcodes",draft:!1,editUrl:"https://github.com/MultinetInteractive/EduAdmin-WordPress/edit/master/new_website/docs/shortcodes.md",tags:[],version:"current",lastUpdatedBy:"NoLifeKing",lastUpdatedAt:1730731369,formattedLastUpdatedAt:"Nov 4, 2024",frontMatter:{id:"shortcodes",title:"Shortcodes",sidebar_label:"Shortcodes"},sidebar:"docs",previous:{title:"First time setup",permalink:"/docs/"},next:{title:"Your first custom template",permalink:"/docs/your-first-custom-template"}},m={},k=[{value:"Shortcode reference",id:"shortcode-reference",level:2},{value:"[eduadmin-bookingview]",id:"eduadmin-bookingview",level:3},{value:"[eduadmin-coursepublicpricename]",id:"eduadmin-coursepublicpricename",level:3},{value:"[eduadmin-detailinfo]",id:"eduadmin-detailinfo",level:3},{value:"[eduadmin-detailview]",id:"eduadmin-detailview",level:3},{value:"[eduadmin-eventinterest]",id:"eduadmin-eventinterest",level:3},{value:"[eduadmin-listview]",id:"eduadmin-listview",level:3},{value:"[eduadmin-loginview]",id:"eduadmin-loginview",level:3},{value:"[eduadmin-loginwidget]",id:"eduadmin-loginwidget",level:3},{value:"[eduadmin-objectinterest]",id:"eduadmin-objectinterest",level:3},{value:"[eduadmin-programme-book]",id:"eduadmin-programme-book",level:3},{value:"[eduadmin-programme-detail]",id:"eduadmin-programme-detail",level:3},{value:"[eduadmin-programme-list]",id:"eduadmin-programme-list",level:3},{value:"[eduadmin-programmeinfo]",id:"eduadmin-programmeinfo",level:3}],u={toc:k},c="wrapper";function s(t){var e=t.components,a=(0,r.Z)(t,i);return(0,l.kt)(c,(0,n.Z)({},u,a,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("p",null,"Here we have a complete reference guide to all shortcodes available in the plugin, with all attributes."),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"shortcode-reference"},"Shortcode reference"),(0,l.kt)("p",null,"Almost all the shortcodes below can be used without attributes, please view the specific instructions for each\nshortcode."),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"eduadmin-bookingview"},(0,l.kt)("inlineCode",{parentName:"h3"},"[eduadmin-bookingview]")),(0,l.kt)("p",null,"The booking view shortcode renders the actual form, that end users use when they want to complete their booking."),(0,l.kt)("admonition",{type:"caution"},(0,l.kt)("p",{parentName:"admonition"},"The plugin will not work without it. (Unless if you only work with interest registration.)")),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:"left"},"Attribute"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Value type"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Default value"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"template"),(0,l.kt)("td",{parentName:"tr",align:"center"},"string (",(0,l.kt)("inlineCode",{parentName:"td"},"template_A"),")"),(0,l.kt)("td",{parentName:"tr",align:"center"},"template_A")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"courseid"),(0,l.kt)("td",{parentName:"tr",align:"center"},"integer"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"hideinvoiceemailfield"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"showinvoiceinformation"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))))),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"template"),"-attribute will allow you to create custom booking pages, that uses different templates. Currently we only\nhave ",(0,l.kt)("inlineCode",{parentName:"p"},"template_A")," available for use."),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"courseid"),"-attribute will allow you to create a booking page, for a specific course template."),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"hideinvoiceemailfield"),"-attribute, if set to ",(0,l.kt)("inlineCode",{parentName:"p"},"true"),", will hide the email field for invoices"),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"showinvoiceinformation"),"-attribute, if set to ",(0,l.kt)("inlineCode",{parentName:"p"},"true"),", will force open the invoice section when the booking form is\nloaded."),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"eduadmin-coursepublicpricename"},(0,l.kt)("inlineCode",{parentName:"h3"},"[eduadmin-coursepublicpricename]")),(0,l.kt)("p",null,"Used to output all available price names for a specific course template."),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:"left"},"Attribute"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Value type"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Default value"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"courseid"),(0,l.kt)("td",{parentName:"tr",align:"center"},"integer"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"orderby"),(0,l.kt)("td",{parentName:"tr",align:"center"},"string"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"order"),(0,l.kt)("td",{parentName:"tr",align:"center"},"string (",(0,l.kt)("inlineCode",{parentName:"td"},"ASC"),", ",(0,l.kt)("inlineCode",{parentName:"td"},"DESC"),")"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"numberofprices"),(0,l.kt)("td",{parentName:"tr",align:"center"},"integer"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))))),(0,l.kt)("p",null,"With the ",(0,l.kt)("inlineCode",{parentName:"p"},"courseid"),"-attribute, you can output the price names for a specific course template."),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"orderby"),"-attribute gives you the possibility to change the sort order of the outputted price names, and the ",(0,l.kt)("inlineCode",{parentName:"p"},"order"),"\n-attribute decides in which way it should sort."),(0,l.kt)("p",null,"They work like other ",(0,l.kt)("inlineCode",{parentName:"p"},"orderby")," and ",(0,l.kt)("inlineCode",{parentName:"p"},"order")," attributes, so they are whitespace-separated. The available fields for\nsorting is available in the\n",(0,l.kt)("a",{parentName:"p",href:"https://api.eduadmin.se/?page=read#operation/GetSingleCourseTemplate"},(0,l.kt)("strong",{parentName:"a"},"API Documentation")),"\nunder the ",(0,l.kt)("em",{parentName:"p"},"Read only OData version 4.0")," section, and then ",(0,l.kt)("em",{parentName:"p"},"CourseTemplates"),", and then expand the ",(0,l.kt)("em",{parentName:"p"},"PriceNames"),"-property\nto the right."),(0,l.kt)("p",null,"Currently (as of writing this document) these fields are available"),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-json"},'\n{\n "PriceNameId": 0,\n "PriceNameDescription": "string",\n "PublicPriceName": true,\n "GroupPrice": true,\n "Price": 0,\n "PriceNameCode": "string"\n}\n\n')),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"numberofprices")," will limit the amount of visible price names (if there are more than specified), to the number you\nenter into this attribute."),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"eduadmin-detailinfo"},(0,l.kt)("inlineCode",{parentName:"h3"},"[eduadmin-detailinfo]")),(0,l.kt)("p",null,"This shortcode is used when you want to create your own custom template ",(0,l.kt)("a",{parentName:"p",href:"#eduadmin-detailview"},(0,l.kt)("strong",{parentName:"a"},"detail view")),"."),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:"left"},"Attribute"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Value type"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Default value"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"courseid"),(0,l.kt)("td",{parentName:"tr",align:"center"},"integer"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"coursename"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"coursepublicname"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"courselevel"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"courseimage"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"courseimagetext"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"coursedays"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"coursestarttime"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"courseendtime"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"courseprice"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean, string (",(0,l.kt)("inlineCode",{parentName:"td"},"both"),", ",(0,l.kt)("inlineCode",{parentName:"td"},"inclVat"),", ",(0,l.kt)("inlineCode",{parentName:"td"},"exclVat"),")"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"eventprice"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean, string (",(0,l.kt)("inlineCode",{parentName:"td"},"both"),", ",(0,l.kt)("inlineCode",{parentName:"td"},"inclVat"),", ",(0,l.kt)("inlineCode",{parentName:"td"},"exclVat"),")"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"coursedescriptionshort"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"coursedescription"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"coursegoal"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"coursetarget"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"courseprerequisites"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"courseafter"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"coursequote"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"courseeventlist"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"showmore"),(0,l.kt)("td",{parentName:"tr",align:"center"},"integer"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"courseattributeid"),(0,l.kt)("td",{parentName:"tr",align:"center"},"integer"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"courseattributehasvalue"),(0,l.kt)("td",{parentName:"tr",align:"center"},"integer"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"courseeventlistfiltercity"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"pagetitlejs"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"bookurl"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"courseinquiryurl"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"order"),(0,l.kt)("td",{parentName:"tr",align:"center"},"string (",(0,l.kt)("inlineCode",{parentName:"td"},"ASC"),", ",(0,l.kt)("inlineCode",{parentName:"td"},"DESC"),")"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"orderby"),(0,l.kt)("td",{parentName:"tr",align:"center"},"string"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"ondemand"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"false")))),(0,l.kt)("p",null,"We will go into each attribute on the ",(0,l.kt)("a",{parentName:"p",href:"/docs/your-first-custom-template"},(0,l.kt)("em",{parentName:"a"},"custom template"))," page."),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"eduadmin-detailview"},(0,l.kt)("inlineCode",{parentName:"h3"},"[eduadmin-detailview]")),(0,l.kt)("p",null,"This will output the default detail view, you can select from two templates (",(0,l.kt)("inlineCode",{parentName:"p"},"template_A")," and ",(0,l.kt)("inlineCode",{parentName:"p"},"template_B"),")."),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:"left"},"Attribute"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Value type"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Default value"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"template"),(0,l.kt)("td",{parentName:"tr",align:"center"},"string (",(0,l.kt)("inlineCode",{parentName:"td"},"template_A"),", ",(0,l.kt)("inlineCode",{parentName:"td"},"template_B"),")"),(0,l.kt)("td",{parentName:"tr",align:"center"},"template_A")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"courseid"),(0,l.kt)("td",{parentName:"tr",align:"center"},"integer"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"customtemplate"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"showmore"),(0,l.kt)("td",{parentName:"tr",align:"center"},"integer"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"hide"),(0,l.kt)("td",{parentName:"tr",align:"center"},"string"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))))),(0,l.kt)("p",null,"By setting the ",(0,l.kt)("inlineCode",{parentName:"p"},"template"),"-attribute, you can override the setting in the backend."),(0,l.kt)("p",null,"With the ",(0,l.kt)("inlineCode",{parentName:"p"},"courseid"),"-attribute, you can create a detail view for a specific course."),(0,l.kt)("p",null,"If you add the ",(0,l.kt)("inlineCode",{parentName:"p"},"customtemplate"),"-attribute, you can create your own ",(0,l.kt)("a",{parentName:"p",href:"/docs/your-first-custom-template"},(0,l.kt)("em",{parentName:"a"},"custom template")),"."),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"showmore"),"-attribute will limit the number of visible events in the event lists for the detail view, before it\nstarts showing a ",(0,l.kt)("em",{parentName:"p"},"Show more"),"-link to show all events."),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"hide"),"-attribute lets you hide certain elements from the default template, if you wanted to."),(0,l.kt)("p",null,"Available sections for hiding are"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"description"),(0,l.kt)("li",{parentName:"ul"},"goal"),(0,l.kt)("li",{parentName:"ul"},"target"),(0,l.kt)("li",{parentName:"ul"},"prerequisites"),(0,l.kt)("li",{parentName:"ul"},"after"),(0,l.kt)("li",{parentName:"ul"},"quote"),(0,l.kt)("li",{parentName:"ul"},"time"),(0,l.kt)("li",{parentName:"ul"},"price")),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"eduadmin-eventinterest"},(0,l.kt)("inlineCode",{parentName:"h3"},"[eduadmin-eventinterest]")),(0,l.kt)("p",null,"This shortcode will output a interest registration form, for a course template, and a specific event."),(0,l.kt)("p",null,"Currently this shortcode doesn't have any attributes to customize it."),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"eduadmin-listview"},(0,l.kt)("inlineCode",{parentName:"h3"},"[eduadmin-listview]")),(0,l.kt)("p",null,"One of the main shortcodes, as it shows the end users a list of your courses/events."),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:"left"},"Attribute"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Value type"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Default value"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"template"),(0,l.kt)("td",{parentName:"tr",align:"center"},"string (",(0,l.kt)("inlineCode",{parentName:"td"},"template_A"),", ",(0,l.kt)("inlineCode",{parentName:"td"},"template_B"),")"),(0,l.kt)("td",{parentName:"tr",align:"center"},"template_A")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"category"),(0,l.kt)("td",{parentName:"tr",align:"center"},"string"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"categorydeep"),(0,l.kt)("td",{parentName:"tr",align:"center"},"string"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"subject"),(0,l.kt)("td",{parentName:"tr",align:"center"},"string"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"subjectid"),(0,l.kt)("td",{parentName:"tr",align:"center"},"integer"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"hidesearch"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"false")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"onlyevents"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"false")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"onlyempty"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"false")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"numberofevents"),(0,l.kt)("td",{parentName:"tr",align:"center"},"numeric"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"mode"),(0,l.kt)("td",{parentName:"tr",align:"center"},"string"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"orderby"),(0,l.kt)("td",{parentName:"tr",align:"center"},"string"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"order"),(0,l.kt)("td",{parentName:"tr",align:"center"},"string (",(0,l.kt)("inlineCode",{parentName:"td"},"ASC"),", ",(0,l.kt)("inlineCode",{parentName:"td"},"DESC"),")"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"showsearch"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"showcity"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"true")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"showbookbtn"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"true")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"showreadmorebtn"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"true")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"city"),(0,l.kt)("td",{parentName:"tr",align:"center"},"integer"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"courselevel"),(0,l.kt)("td",{parentName:"tr",align:"center"},"integer"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"searchCourse"),(0,l.kt)("td",{parentName:"tr",align:"center"},"string"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"filtercity"),(0,l.kt)("td",{parentName:"tr",align:"center"},"string"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"hideimages"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"showimages"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"ondemand"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"false")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"allcourses"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"false")))),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"template"),"-attribute lets you override the default setting for what template the list should use."),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"category"),"-attribute lets you enter a string to match for categories in ",(0,l.kt)("a",{parentName:"p",href:"https://www.eduadmin.se"},(0,l.kt)("strong",{parentName:"a"},"EduAdmin")),", so\nthat the list filters the results based on the matches."),(0,l.kt)("p",null,"If you want to show all sub-categories, you can use the ",(0,l.kt)("inlineCode",{parentName:"p"},"categorydeep"),"-attribute instead."),(0,l.kt)("admonition",{type:"note"},(0,l.kt)("p",{parentName:"admonition"},"Only one of the category-attributes can be used at a time, and ",(0,l.kt)("inlineCode",{parentName:"p"},"categorydeep")," will always be used if both are supplied.")),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"subject"),"-attribute lets you enter a string to match subjects in ",(0,l.kt)("a",{parentName:"p",href:"https://www.eduadmin.se"},(0,l.kt)("strong",{parentName:"a"},"EduAdmin")),", so that\nthe list filters the results based on the matches."),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"subjectid"),"-attribute lets you filter the list on a specific subject, based on its ID."),(0,l.kt)("p",null,"If you use the ",(0,l.kt)("inlineCode",{parentName:"p"},"hidesearch"),"-attribute, you can hide the default search bar."),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"onlyevents"),"-attribute will filter the list, to only contain course templates that have coming events."),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"onlyempty"),"-attribute will only show course templates without coming events."),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"numberofevents"),"-attribute will limit the number of visible events, by default we show all available from the\nresults from the API."),(0,l.kt)("p",null,"You can set the ",(0,l.kt)("inlineCode",{parentName:"p"},"mode"),"-attribute to either ",(0,l.kt)("inlineCode",{parentName:"p"},"event")," or ",(0,l.kt)("inlineCode",{parentName:"p"},"course"),", to make the list show events or course templates."),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"orderby"),"-attribute gives you the possibility to change what field the list should be ordered by. The available\nfields can be found at ",(0,l.kt)("a",{parentName:"p",href:"https://api.eduadmin.se/?page=read#operation/GetEvents"},"https://api.eduadmin.se/?page=read#operation/GetEvents"),"\nor ",(0,l.kt)("a",{parentName:"p",href:"https://api.eduadmin.se/?page=read#operation/GetCourseTemplates"},"https://api.eduadmin.se/?page=read#operation/GetCourseTemplates")," depending on what ",(0,l.kt)("inlineCode",{parentName:"p"},"mode"),"-attribute you are using,\neither ",(0,l.kt)("inlineCode",{parentName:"p"},"event")," or ",(0,l.kt)("inlineCode",{parentName:"p"},"course"),",\nand the ",(0,l.kt)("inlineCode",{parentName:"p"},"order"),"-attribute takes the values ASC or DESC."),(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"showsearch")," will force the search bar to be visible."),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"showcity"),"-attribute will show the city where the event is held (if applicable)"),(0,l.kt)("p",null,"And the ",(0,l.kt)("inlineCode",{parentName:"p"},"showbookbtn"),"-attribute will decide if you want to show the ",(0,l.kt)("em",{parentName:"p"},"Book"),"-button in the event list."),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"showreadmorebtn"),"-attribute decides if you want to show a ",(0,l.kt)("em",{parentName:"p"},"Read more"),"-button."),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"city"),"-attribute will filter the list to show events that occur in the entered city (",(0,l.kt)("inlineCode",{parentName:"p"},"LocationId"),")."),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"courselevel"),"-attribute will filter the list to show courses that fall under the entered course level."),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"searchCourse"),"-attribute controls the freetext search."),(0,l.kt)("p",null,"If you enter the ",(0,l.kt)("inlineCode",{parentName:"p"},"filtercity"),"-attribute, the list will be filtered based on the string you put in."),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"hideimages"),"-attribute will hide the images for course templates, if it was enabled by backend settings."),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"showimages"),"-attribute will show the images for course templates, if it was disabled by backend settings."),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"ondemand"),"-attribute will determine if you show either courses with planned events, or on demand courses."),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"allcourses"),"-attribute will show all courses, regardless if they are on demand or not."),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"eduadmin-loginview"},(0,l.kt)("inlineCode",{parentName:"h3"},"[eduadmin-loginview]")),(0,l.kt)("p",null,"Renders the login and the profile pages (if login is used)."),(0,l.kt)("p",null,"Does not have any attributes to customize anything at the moment."),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"eduadmin-loginwidget"},(0,l.kt)("inlineCode",{parentName:"h3"},"[eduadmin-loginwidget]")),(0,l.kt)("p",null,"This shortcode renders a ",(0,l.kt)("em",{parentName:"p"},"widget")," to handle login information."),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:"left"},"Attribute"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Value type"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Default value"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"logintext"),(0,l.kt)("td",{parentName:"tr",align:"center"},"string"),(0,l.kt)("td",{parentName:"tr",align:"center"},"Log in")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"logouttext"),(0,l.kt)("td",{parentName:"tr",align:"center"},"string"),(0,l.kt)("td",{parentName:"tr",align:"center"},"Log out")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"guesttext"),(0,l.kt)("td",{parentName:"tr",align:"center"},"string"),(0,l.kt)("td",{parentName:"tr",align:"center"},"Guest")))),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"logintext"),"-attribute will change the text on the ",(0,l.kt)("em",{parentName:"p"},"Log in")," button/link to whatever you choose"),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"logouttext"),"-attribute will change the text on the ",(0,l.kt)("em",{parentName:"p"},"Log out")," button/link to whatever you choose"),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"guesttext"),"-attribute will change the text on the ",(0,l.kt)("em",{parentName:"p"},"Guest")," label to whatever you choose"),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"eduadmin-objectinterest"},(0,l.kt)("inlineCode",{parentName:"h3"},"[eduadmin-objectinterest]")),(0,l.kt)("p",null,"This shortcode will output a interest registration form, for a course template. It can be used with and without the\nattribute for ",(0,l.kt)("inlineCode",{parentName:"p"},"courseid"),", depending on the use."),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:"left"},"Attribute"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Value type"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Default value"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"courseid"),(0,l.kt)("td",{parentName:"tr",align:"center"},"integer"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))))),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"courseid"),"-attribute will make the shortcode output a specific form, for that specific course template."),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"eduadmin-programme-book"},(0,l.kt)("inlineCode",{parentName:"h3"},"[eduadmin-programme-book]")),(0,l.kt)("p",null,"As with the other booking view, this is important if you want to be able to receive end users programme bookings. It\nwill render a predetermined form with all info needed to book a programme."),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:"left"},"Attribute"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Value type"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Default value"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"programmeid"),(0,l.kt)("td",{parentName:"tr",align:"center"},"integer"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"programmestartid"),(0,l.kt)("td",{parentName:"tr",align:"center"},"integer"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))))),(0,l.kt)("p",null,"You can also build static pages and apply the attribute ",(0,l.kt)("inlineCode",{parentName:"p"},"programmeid")," to make a programme specific form. And if you also\nspecify the ",(0,l.kt)("inlineCode",{parentName:"p"},"programmestartid"),", it can be tied to a specific programme start."),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"eduadmin-programme-detail"},(0,l.kt)("inlineCode",{parentName:"h3"},"[eduadmin-programme-detail]")),(0,l.kt)("p",null,"This is the detail view, to view a specific programme, it can be used to create a custom page with a specific programme,\nor used as the default view for all programmes."),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:"left"},"Attribute"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Value type"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Default value"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"programmeid"),(0,l.kt)("td",{parentName:"tr",align:"center"},"integer"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))))),(0,l.kt)("p",null,"And if you want to create a specific page for a programme, you can also use the ",(0,l.kt)("inlineCode",{parentName:"p"},"programmeid"),"-attribute."),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"eduadmin-programme-list"},(0,l.kt)("inlineCode",{parentName:"h3"},"[eduadmin-programme-list]")),(0,l.kt)("p",null,"As with the normal list view, this view lists the available programmes you have created in ",(0,l.kt)("a",{parentName:"p",href:"https://www.eduadmin.se"},(0,l.kt)("strong",{parentName:"a"},"EduAdmin")),"."),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:"left"},"Attribute"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Value type"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Default value"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"category"),(0,l.kt)("td",{parentName:"tr",align:"center"},"string"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))))),(0,l.kt)("p",null,"And if you want to filter this list, you can apply the ",(0,l.kt)("inlineCode",{parentName:"p"},"category"),"-attribute."),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"eduadmin-programmeinfo"},(0,l.kt)("inlineCode",{parentName:"h3"},"[eduadmin-programmeinfo]")),(0,l.kt)("p",null,"This shortcode is used when you want to create your own custom template ",(0,l.kt)("a",{parentName:"p",href:"#eduadmin-programme-detail"},(0,l.kt)("strong",{parentName:"a"},"programme view")),"."),(0,l.kt)("admonition",{type:"note"},(0,l.kt)("p",{parentName:"admonition"},"We will add more attributes to this shortcode in the future.")),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:"left"},"Attribute"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Value type"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Default value"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"programmeid"),(0,l.kt)("td",{parentName:"tr",align:"center"},"integer"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"programmename"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"programmepublicname"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"programmeimage"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"programmeimagetext"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"programmedescriptionshort"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"programmedescription"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"programmegoal"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"programmetarget"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"programmeprerequisites"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"courseafter"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"programmequote"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")))))}s.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[647],{3905:(t,e,a)=>{a.d(e,{Zo:()=>m,kt:()=>s});var n=a(7294);function r(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function l(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function i(t){for(var e=1;e=0||(r[a]=t[a]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,a)&&(r[a]=t[a])}return r}var p=n.createContext({}),d=function(t){var e=n.useContext(p),a=e;return t&&(a="function"==typeof t?t(e):i(i({},e),t)),a},m=function(t){var e=d(t.components);return n.createElement(p.Provider,{value:e},t.children)},k="mdxType",u={inlineCode:"code",wrapper:function(t){var e=t.children;return n.createElement(n.Fragment,{},e)}},c=n.forwardRef((function(t,e){var a=t.components,r=t.mdxType,l=t.originalType,p=t.parentName,m=o(t,["components","mdxType","originalType","parentName"]),k=d(a),c=r,s=k["".concat(p,".").concat(c)]||k[c]||u[c]||l;return a?n.createElement(s,i(i({ref:e},m),{},{components:a})):n.createElement(s,i({ref:e},m))}));function s(t,e){var a=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=a.length,i=new Array(l);i[0]=c;var o={};for(var p in e)hasOwnProperty.call(e,p)&&(o[p]=e[p]);o.originalType=t,o[k]="string"==typeof t?t:r,i[1]=o;for(var d=2;d{a.r(e),a.d(e,{assets:()=>m,contentTitle:()=>p,default:()=>s,frontMatter:()=>o,metadata:()=>d,toc:()=>k});var n=a(3117),r=a(102),l=(a(7294),a(3905)),i=["components"],o={id:"shortcodes",title:"Shortcodes",sidebar_label:"Shortcodes"},p=void 0,d={unversionedId:"shortcodes",id:"shortcodes",title:"Shortcodes",description:"Here we have a complete reference guide to all shortcodes available in the plugin, with all attributes.",source:"@site/docs/shortcodes.md",sourceDirName:".",slug:"/shortcodes",permalink:"/docs/shortcodes",draft:!1,editUrl:"https://github.com/MultinetInteractive/EduAdmin-WordPress/edit/master/new_website/docs/shortcodes.md",tags:[],version:"current",lastUpdatedBy:"NoLifeKing",lastUpdatedAt:1730794042,formattedLastUpdatedAt:"Nov 5, 2024",frontMatter:{id:"shortcodes",title:"Shortcodes",sidebar_label:"Shortcodes"},sidebar:"docs",previous:{title:"First time setup",permalink:"/docs/"},next:{title:"Your first custom template",permalink:"/docs/your-first-custom-template"}},m={},k=[{value:"Shortcode reference",id:"shortcode-reference",level:2},{value:"[eduadmin-bookingview]",id:"eduadmin-bookingview",level:3},{value:"[eduadmin-coursepublicpricename]",id:"eduadmin-coursepublicpricename",level:3},{value:"[eduadmin-detailinfo]",id:"eduadmin-detailinfo",level:3},{value:"[eduadmin-detailview]",id:"eduadmin-detailview",level:3},{value:"[eduadmin-eventinterest]",id:"eduadmin-eventinterest",level:3},{value:"[eduadmin-listview]",id:"eduadmin-listview",level:3},{value:"[eduadmin-loginview]",id:"eduadmin-loginview",level:3},{value:"[eduadmin-loginwidget]",id:"eduadmin-loginwidget",level:3},{value:"[eduadmin-objectinterest]",id:"eduadmin-objectinterest",level:3},{value:"[eduadmin-programme-book]",id:"eduadmin-programme-book",level:3},{value:"[eduadmin-programme-detail]",id:"eduadmin-programme-detail",level:3},{value:"[eduadmin-programme-list]",id:"eduadmin-programme-list",level:3},{value:"[eduadmin-programmeinfo]",id:"eduadmin-programmeinfo",level:3}],u={toc:k},c="wrapper";function s(t){var e=t.components,a=(0,r.Z)(t,i);return(0,l.kt)(c,(0,n.Z)({},u,a,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("p",null,"Here we have a complete reference guide to all shortcodes available in the plugin, with all attributes."),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"shortcode-reference"},"Shortcode reference"),(0,l.kt)("p",null,"Almost all the shortcodes below can be used without attributes, please view the specific instructions for each\nshortcode."),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"eduadmin-bookingview"},(0,l.kt)("inlineCode",{parentName:"h3"},"[eduadmin-bookingview]")),(0,l.kt)("p",null,"The booking view shortcode renders the actual form, that end users use when they want to complete their booking."),(0,l.kt)("admonition",{type:"caution"},(0,l.kt)("p",{parentName:"admonition"},"The plugin will not work without it. (Unless if you only work with interest registration.)")),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:"left"},"Attribute"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Value type"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Default value"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"template"),(0,l.kt)("td",{parentName:"tr",align:"center"},"string (",(0,l.kt)("inlineCode",{parentName:"td"},"template_A"),")"),(0,l.kt)("td",{parentName:"tr",align:"center"},"template_A")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"courseid"),(0,l.kt)("td",{parentName:"tr",align:"center"},"integer"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"hideinvoiceemailfield"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"showinvoiceinformation"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))))),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"template"),"-attribute will allow you to create custom booking pages, that uses different templates. Currently we only\nhave ",(0,l.kt)("inlineCode",{parentName:"p"},"template_A")," available for use."),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"courseid"),"-attribute will allow you to create a booking page, for a specific course template."),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"hideinvoiceemailfield"),"-attribute, if set to ",(0,l.kt)("inlineCode",{parentName:"p"},"true"),", will hide the email field for invoices"),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"showinvoiceinformation"),"-attribute, if set to ",(0,l.kt)("inlineCode",{parentName:"p"},"true"),", will force open the invoice section when the booking form is\nloaded."),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"eduadmin-coursepublicpricename"},(0,l.kt)("inlineCode",{parentName:"h3"},"[eduadmin-coursepublicpricename]")),(0,l.kt)("p",null,"Used to output all available price names for a specific course template."),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:"left"},"Attribute"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Value type"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Default value"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"courseid"),(0,l.kt)("td",{parentName:"tr",align:"center"},"integer"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"orderby"),(0,l.kt)("td",{parentName:"tr",align:"center"},"string"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"order"),(0,l.kt)("td",{parentName:"tr",align:"center"},"string (",(0,l.kt)("inlineCode",{parentName:"td"},"ASC"),", ",(0,l.kt)("inlineCode",{parentName:"td"},"DESC"),")"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"numberofprices"),(0,l.kt)("td",{parentName:"tr",align:"center"},"integer"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))))),(0,l.kt)("p",null,"With the ",(0,l.kt)("inlineCode",{parentName:"p"},"courseid"),"-attribute, you can output the price names for a specific course template."),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"orderby"),"-attribute gives you the possibility to change the sort order of the outputted price names, and the ",(0,l.kt)("inlineCode",{parentName:"p"},"order"),"\n-attribute decides in which way it should sort."),(0,l.kt)("p",null,"They work like other ",(0,l.kt)("inlineCode",{parentName:"p"},"orderby")," and ",(0,l.kt)("inlineCode",{parentName:"p"},"order")," attributes, so they are whitespace-separated. The available fields for\nsorting is available in the\n",(0,l.kt)("a",{parentName:"p",href:"https://api.eduadmin.se/?page=read#operation/GetSingleCourseTemplate"},(0,l.kt)("strong",{parentName:"a"},"API Documentation")),"\nunder the ",(0,l.kt)("em",{parentName:"p"},"Read only OData version 4.0")," section, and then ",(0,l.kt)("em",{parentName:"p"},"CourseTemplates"),", and then expand the ",(0,l.kt)("em",{parentName:"p"},"PriceNames"),"-property\nto the right."),(0,l.kt)("p",null,"Currently (as of writing this document) these fields are available"),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-json"},'\n{\n "PriceNameId": 0,\n "PriceNameDescription": "string",\n "PublicPriceName": true,\n "GroupPrice": true,\n "Price": 0,\n "PriceNameCode": "string"\n}\n\n')),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"numberofprices")," will limit the amount of visible price names (if there are more than specified), to the number you\nenter into this attribute."),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"eduadmin-detailinfo"},(0,l.kt)("inlineCode",{parentName:"h3"},"[eduadmin-detailinfo]")),(0,l.kt)("p",null,"This shortcode is used when you want to create your own custom template ",(0,l.kt)("a",{parentName:"p",href:"#eduadmin-detailview"},(0,l.kt)("strong",{parentName:"a"},"detail view")),"."),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:"left"},"Attribute"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Value type"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Default value"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"courseid"),(0,l.kt)("td",{parentName:"tr",align:"center"},"integer"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"coursename"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"coursepublicname"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"courselevel"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"courseimage"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"courseimagetext"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"coursedays"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"coursestarttime"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"courseendtime"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"courseprice"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean, string (",(0,l.kt)("inlineCode",{parentName:"td"},"both"),", ",(0,l.kt)("inlineCode",{parentName:"td"},"inclVat"),", ",(0,l.kt)("inlineCode",{parentName:"td"},"exclVat"),")"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"eventprice"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean, string (",(0,l.kt)("inlineCode",{parentName:"td"},"both"),", ",(0,l.kt)("inlineCode",{parentName:"td"},"inclVat"),", ",(0,l.kt)("inlineCode",{parentName:"td"},"exclVat"),")"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"coursedescriptionshort"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"coursedescription"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"coursegoal"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"coursetarget"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"courseprerequisites"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"courseafter"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"coursequote"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"courseeventlist"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"showmore"),(0,l.kt)("td",{parentName:"tr",align:"center"},"integer"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"courseattributeid"),(0,l.kt)("td",{parentName:"tr",align:"center"},"integer"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"courseattributehasvalue"),(0,l.kt)("td",{parentName:"tr",align:"center"},"integer"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"courseeventlistfiltercity"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"pagetitlejs"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"bookurl"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"courseinquiryurl"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"order"),(0,l.kt)("td",{parentName:"tr",align:"center"},"string (",(0,l.kt)("inlineCode",{parentName:"td"},"ASC"),", ",(0,l.kt)("inlineCode",{parentName:"td"},"DESC"),")"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"orderby"),(0,l.kt)("td",{parentName:"tr",align:"center"},"string"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"ondemand"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"false")))),(0,l.kt)("p",null,"We will go into each attribute on the ",(0,l.kt)("a",{parentName:"p",href:"/docs/your-first-custom-template"},(0,l.kt)("em",{parentName:"a"},"custom template"))," page."),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"eduadmin-detailview"},(0,l.kt)("inlineCode",{parentName:"h3"},"[eduadmin-detailview]")),(0,l.kt)("p",null,"This will output the default detail view, you can select from two templates (",(0,l.kt)("inlineCode",{parentName:"p"},"template_A")," and ",(0,l.kt)("inlineCode",{parentName:"p"},"template_B"),")."),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:"left"},"Attribute"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Value type"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Default value"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"template"),(0,l.kt)("td",{parentName:"tr",align:"center"},"string (",(0,l.kt)("inlineCode",{parentName:"td"},"template_A"),", ",(0,l.kt)("inlineCode",{parentName:"td"},"template_B"),")"),(0,l.kt)("td",{parentName:"tr",align:"center"},"template_A")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"courseid"),(0,l.kt)("td",{parentName:"tr",align:"center"},"integer"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"customtemplate"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"showmore"),(0,l.kt)("td",{parentName:"tr",align:"center"},"integer"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"hide"),(0,l.kt)("td",{parentName:"tr",align:"center"},"string"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))))),(0,l.kt)("p",null,"By setting the ",(0,l.kt)("inlineCode",{parentName:"p"},"template"),"-attribute, you can override the setting in the backend."),(0,l.kt)("p",null,"With the ",(0,l.kt)("inlineCode",{parentName:"p"},"courseid"),"-attribute, you can create a detail view for a specific course."),(0,l.kt)("p",null,"If you add the ",(0,l.kt)("inlineCode",{parentName:"p"},"customtemplate"),"-attribute, you can create your own ",(0,l.kt)("a",{parentName:"p",href:"/docs/your-first-custom-template"},(0,l.kt)("em",{parentName:"a"},"custom template")),"."),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"showmore"),"-attribute will limit the number of visible events in the event lists for the detail view, before it\nstarts showing a ",(0,l.kt)("em",{parentName:"p"},"Show more"),"-link to show all events."),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"hide"),"-attribute lets you hide certain elements from the default template, if you wanted to."),(0,l.kt)("p",null,"Available sections for hiding are"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"description"),(0,l.kt)("li",{parentName:"ul"},"goal"),(0,l.kt)("li",{parentName:"ul"},"target"),(0,l.kt)("li",{parentName:"ul"},"prerequisites"),(0,l.kt)("li",{parentName:"ul"},"after"),(0,l.kt)("li",{parentName:"ul"},"quote"),(0,l.kt)("li",{parentName:"ul"},"time"),(0,l.kt)("li",{parentName:"ul"},"price")),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"eduadmin-eventinterest"},(0,l.kt)("inlineCode",{parentName:"h3"},"[eduadmin-eventinterest]")),(0,l.kt)("p",null,"This shortcode will output a interest registration form, for a course template, and a specific event."),(0,l.kt)("p",null,"Currently this shortcode doesn't have any attributes to customize it."),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"eduadmin-listview"},(0,l.kt)("inlineCode",{parentName:"h3"},"[eduadmin-listview]")),(0,l.kt)("p",null,"One of the main shortcodes, as it shows the end users a list of your courses/events."),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:"left"},"Attribute"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Value type"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Default value"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"template"),(0,l.kt)("td",{parentName:"tr",align:"center"},"string (",(0,l.kt)("inlineCode",{parentName:"td"},"template_A"),", ",(0,l.kt)("inlineCode",{parentName:"td"},"template_B"),")"),(0,l.kt)("td",{parentName:"tr",align:"center"},"template_A")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"category"),(0,l.kt)("td",{parentName:"tr",align:"center"},"string"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"categorydeep"),(0,l.kt)("td",{parentName:"tr",align:"center"},"string"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"subject"),(0,l.kt)("td",{parentName:"tr",align:"center"},"string"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"subjectid"),(0,l.kt)("td",{parentName:"tr",align:"center"},"integer"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"hidesearch"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"false")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"onlyevents"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"false")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"onlyempty"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"false")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"numberofevents"),(0,l.kt)("td",{parentName:"tr",align:"center"},"numeric"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"mode"),(0,l.kt)("td",{parentName:"tr",align:"center"},"string"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"orderby"),(0,l.kt)("td",{parentName:"tr",align:"center"},"string"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"order"),(0,l.kt)("td",{parentName:"tr",align:"center"},"string (",(0,l.kt)("inlineCode",{parentName:"td"},"ASC"),", ",(0,l.kt)("inlineCode",{parentName:"td"},"DESC"),")"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"showsearch"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"showcity"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"true")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"showbookbtn"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"true")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"showreadmorebtn"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"true")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"city"),(0,l.kt)("td",{parentName:"tr",align:"center"},"integer"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"courselevel"),(0,l.kt)("td",{parentName:"tr",align:"center"},"integer"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"searchCourse"),(0,l.kt)("td",{parentName:"tr",align:"center"},"string"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"filtercity"),(0,l.kt)("td",{parentName:"tr",align:"center"},"string"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"hideimages"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"showimages"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"ondemand"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"false")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"allcourses"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"false")))),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"template"),"-attribute lets you override the default setting for what template the list should use."),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"category"),"-attribute lets you enter a string to match for categories in ",(0,l.kt)("a",{parentName:"p",href:"https://www.eduadmin.se"},(0,l.kt)("strong",{parentName:"a"},"EduAdmin")),", so\nthat the list filters the results based on the matches."),(0,l.kt)("p",null,"If you want to show all sub-categories, you can use the ",(0,l.kt)("inlineCode",{parentName:"p"},"categorydeep"),"-attribute instead."),(0,l.kt)("admonition",{type:"note"},(0,l.kt)("p",{parentName:"admonition"},"Only one of the category-attributes can be used at a time, and ",(0,l.kt)("inlineCode",{parentName:"p"},"categorydeep")," will always be used if both are supplied.")),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"subject"),"-attribute lets you enter a string to match subjects in ",(0,l.kt)("a",{parentName:"p",href:"https://www.eduadmin.se"},(0,l.kt)("strong",{parentName:"a"},"EduAdmin")),", so that\nthe list filters the results based on the matches."),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"subjectid"),"-attribute lets you filter the list on a specific subject, based on its ID."),(0,l.kt)("p",null,"If you use the ",(0,l.kt)("inlineCode",{parentName:"p"},"hidesearch"),"-attribute, you can hide the default search bar."),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"onlyevents"),"-attribute will filter the list, to only contain course templates that have coming events."),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"onlyempty"),"-attribute will only show course templates without coming events."),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"numberofevents"),"-attribute will limit the number of visible events, by default we show all available from the\nresults from the API."),(0,l.kt)("p",null,"You can set the ",(0,l.kt)("inlineCode",{parentName:"p"},"mode"),"-attribute to either ",(0,l.kt)("inlineCode",{parentName:"p"},"event")," or ",(0,l.kt)("inlineCode",{parentName:"p"},"course"),", to make the list show events or course templates."),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"orderby"),"-attribute gives you the possibility to change what field the list should be ordered by. The available\nfields can be found at ",(0,l.kt)("a",{parentName:"p",href:"https://api.eduadmin.se/?page=read#operation/GetEvents"},"https://api.eduadmin.se/?page=read#operation/GetEvents"),"\nor ",(0,l.kt)("a",{parentName:"p",href:"https://api.eduadmin.se/?page=read#operation/GetCourseTemplates"},"https://api.eduadmin.se/?page=read#operation/GetCourseTemplates")," depending on what ",(0,l.kt)("inlineCode",{parentName:"p"},"mode"),"-attribute you are using,\neither ",(0,l.kt)("inlineCode",{parentName:"p"},"event")," or ",(0,l.kt)("inlineCode",{parentName:"p"},"course"),",\nand the ",(0,l.kt)("inlineCode",{parentName:"p"},"order"),"-attribute takes the values ASC or DESC."),(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"showsearch")," will force the search bar to be visible."),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"showcity"),"-attribute will show the city where the event is held (if applicable)"),(0,l.kt)("p",null,"And the ",(0,l.kt)("inlineCode",{parentName:"p"},"showbookbtn"),"-attribute will decide if you want to show the ",(0,l.kt)("em",{parentName:"p"},"Book"),"-button in the event list."),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"showreadmorebtn"),"-attribute decides if you want to show a ",(0,l.kt)("em",{parentName:"p"},"Read more"),"-button."),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"city"),"-attribute will filter the list to show events that occur in the entered city (",(0,l.kt)("inlineCode",{parentName:"p"},"LocationId"),")."),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"courselevel"),"-attribute will filter the list to show courses that fall under the entered course level."),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"searchCourse"),"-attribute controls the freetext search."),(0,l.kt)("p",null,"If you enter the ",(0,l.kt)("inlineCode",{parentName:"p"},"filtercity"),"-attribute, the list will be filtered based on the string you put in."),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"hideimages"),"-attribute will hide the images for course templates, if it was enabled by backend settings."),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"showimages"),"-attribute will show the images for course templates, if it was disabled by backend settings."),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"ondemand"),"-attribute will determine if you show either courses with planned events, or on demand courses."),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"allcourses"),"-attribute will show all courses, regardless if they are on demand or not."),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"eduadmin-loginview"},(0,l.kt)("inlineCode",{parentName:"h3"},"[eduadmin-loginview]")),(0,l.kt)("p",null,"Renders the login and the profile pages (if login is used)."),(0,l.kt)("p",null,"Does not have any attributes to customize anything at the moment."),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"eduadmin-loginwidget"},(0,l.kt)("inlineCode",{parentName:"h3"},"[eduadmin-loginwidget]")),(0,l.kt)("p",null,"This shortcode renders a ",(0,l.kt)("em",{parentName:"p"},"widget")," to handle login information."),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:"left"},"Attribute"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Value type"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Default value"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"logintext"),(0,l.kt)("td",{parentName:"tr",align:"center"},"string"),(0,l.kt)("td",{parentName:"tr",align:"center"},"Log in")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"logouttext"),(0,l.kt)("td",{parentName:"tr",align:"center"},"string"),(0,l.kt)("td",{parentName:"tr",align:"center"},"Log out")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"guesttext"),(0,l.kt)("td",{parentName:"tr",align:"center"},"string"),(0,l.kt)("td",{parentName:"tr",align:"center"},"Guest")))),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"logintext"),"-attribute will change the text on the ",(0,l.kt)("em",{parentName:"p"},"Log in")," button/link to whatever you choose"),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"logouttext"),"-attribute will change the text on the ",(0,l.kt)("em",{parentName:"p"},"Log out")," button/link to whatever you choose"),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"guesttext"),"-attribute will change the text on the ",(0,l.kt)("em",{parentName:"p"},"Guest")," label to whatever you choose"),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"eduadmin-objectinterest"},(0,l.kt)("inlineCode",{parentName:"h3"},"[eduadmin-objectinterest]")),(0,l.kt)("p",null,"This shortcode will output a interest registration form, for a course template. It can be used with and without the\nattribute for ",(0,l.kt)("inlineCode",{parentName:"p"},"courseid"),", depending on the use."),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:"left"},"Attribute"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Value type"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Default value"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"courseid"),(0,l.kt)("td",{parentName:"tr",align:"center"},"integer"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))))),(0,l.kt)("p",null,"The ",(0,l.kt)("inlineCode",{parentName:"p"},"courseid"),"-attribute will make the shortcode output a specific form, for that specific course template."),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"eduadmin-programme-book"},(0,l.kt)("inlineCode",{parentName:"h3"},"[eduadmin-programme-book]")),(0,l.kt)("p",null,"As with the other booking view, this is important if you want to be able to receive end users programme bookings. It\nwill render a predetermined form with all info needed to book a programme."),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:"left"},"Attribute"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Value type"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Default value"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"programmeid"),(0,l.kt)("td",{parentName:"tr",align:"center"},"integer"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"programmestartid"),(0,l.kt)("td",{parentName:"tr",align:"center"},"integer"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))))),(0,l.kt)("p",null,"You can also build static pages and apply the attribute ",(0,l.kt)("inlineCode",{parentName:"p"},"programmeid")," to make a programme specific form. And if you also\nspecify the ",(0,l.kt)("inlineCode",{parentName:"p"},"programmestartid"),", it can be tied to a specific programme start."),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"eduadmin-programme-detail"},(0,l.kt)("inlineCode",{parentName:"h3"},"[eduadmin-programme-detail]")),(0,l.kt)("p",null,"This is the detail view, to view a specific programme, it can be used to create a custom page with a specific programme,\nor used as the default view for all programmes."),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:"left"},"Attribute"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Value type"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Default value"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"programmeid"),(0,l.kt)("td",{parentName:"tr",align:"center"},"integer"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))))),(0,l.kt)("p",null,"And if you want to create a specific page for a programme, you can also use the ",(0,l.kt)("inlineCode",{parentName:"p"},"programmeid"),"-attribute."),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"eduadmin-programme-list"},(0,l.kt)("inlineCode",{parentName:"h3"},"[eduadmin-programme-list]")),(0,l.kt)("p",null,"As with the normal list view, this view lists the available programmes you have created in ",(0,l.kt)("a",{parentName:"p",href:"https://www.eduadmin.se"},(0,l.kt)("strong",{parentName:"a"},"EduAdmin")),"."),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:"left"},"Attribute"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Value type"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Default value"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"category"),(0,l.kt)("td",{parentName:"tr",align:"center"},"string"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))))),(0,l.kt)("p",null,"And if you want to filter this list, you can apply the ",(0,l.kt)("inlineCode",{parentName:"p"},"category"),"-attribute."),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"eduadmin-programmeinfo"},(0,l.kt)("inlineCode",{parentName:"h3"},"[eduadmin-programmeinfo]")),(0,l.kt)("p",null,"This shortcode is used when you want to create your own custom template ",(0,l.kt)("a",{parentName:"p",href:"#eduadmin-programme-detail"},(0,l.kt)("strong",{parentName:"a"},"programme view")),"."),(0,l.kt)("admonition",{type:"note"},(0,l.kt)("p",{parentName:"admonition"},"We will add more attributes to this shortcode in the future.")),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:"left"},"Attribute"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Value type"),(0,l.kt)("th",{parentName:"tr",align:"center"},"Default value"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"programmeid"),(0,l.kt)("td",{parentName:"tr",align:"center"},"integer"),(0,l.kt)("td",{parentName:"tr",align:"center"},(0,l.kt)("em",{parentName:"td"},"null"))),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"programmename"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"programmepublicname"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"programmeimage"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"programmeimagetext"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"programmedescriptionshort"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"programmedescription"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"programmegoal"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"programmetarget"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"programmeprerequisites"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"courseafter"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:"left"},"programmequote"),(0,l.kt)("td",{parentName:"tr",align:"center"},"boolean"),(0,l.kt)("td",{parentName:"tr",align:"center"},"null")))))}s.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/d589d3a7.1a1fa1b0.js b/assets/js/d589d3a7.511a44ea.js similarity index 99% rename from assets/js/d589d3a7.1a1fa1b0.js rename to assets/js/d589d3a7.511a44ea.js index deb7b570..8ec13b23 100644 --- a/assets/js/d589d3a7.1a1fa1b0.js +++ b/assets/js/d589d3a7.511a44ea.js @@ -1 +1 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[90],{3905:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>g});var a=n(7294);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function r(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var l=a.createContext({}),d=function(e){var t=a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):r(r({},t),e)),n},u=function(e){var t=d(e.components);return a.createElement(l.Provider,{value:t},e.children)},p="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},h=a.forwardRef((function(e,t){var n=e.components,i=e.mdxType,o=e.originalType,l=e.parentName,u=s(e,["components","mdxType","originalType","parentName"]),p=d(n),h=i,g=p["".concat(l,".").concat(h)]||p[h]||m[h]||o;return n?a.createElement(g,r(r({ref:t},u),{},{components:n})):a.createElement(g,r({ref:t},u))}));function g(e,t){var n=arguments,i=t&&t.mdxType;if("string"==typeof e||i){var o=n.length,r=new Array(o);r[0]=h;var s={};for(var l in t)hasOwnProperty.call(t,l)&&(s[l]=t[l]);s.originalType=e,s[p]="string"==typeof e?e:i,r[1]=s;for(var d=2;d{n.r(t),n.d(t,{assets:()=>u,contentTitle:()=>l,default:()=>g,frontMatter:()=>s,metadata:()=>d,toc:()=>p});var a=n(3117),i=n(102),o=(n(7294),n(3905)),r=["components"],s={id:"getting-started",title:"Getting started",sidebar_label:"First time setup",slug:"/"},l=void 0,d={unversionedId:"getting-started",id:"getting-started",title:"Getting started",description:"This guide will focus on get you started with the EduAdmin WordPress Plugin, with default templates and settings so your visitors can start booking directly from your WordPress webpage.",source:"@site/docs/getting-started.md",sourceDirName:".",slug:"/",permalink:"/docs/",draft:!1,editUrl:"https://github.com/MultinetInteractive/EduAdmin-WordPress/edit/master/new_website/docs/getting-started.md",tags:[],version:"current",lastUpdatedBy:"NoLifeKing",lastUpdatedAt:1730731369,formattedLastUpdatedAt:"Nov 4, 2024",frontMatter:{id:"getting-started",title:"Getting started",sidebar_label:"First time setup",slug:"/"},sidebar:"docs",next:{title:"Shortcodes",permalink:"/docs/shortcodes"}},u={},p=[{value:"Installing the plugin",id:"installing-the-plugin",level:2},{value:"Setting the API key",id:"setting-the-api-key",level:2},{value:"Creating all the required pages",id:"creating-all-the-required-pages",level:2},{value:"[eduadmin-listview]",id:"eduadmin-listview",level:3},{value:"[eduadmin-detailview]",id:"eduadmin-detailview",level:3},{value:"[eduadmin-bookingview] (or use the EduAdmin Booking Forms)",id:"eduadmin-bookingview-or-use-the-eduadmin-booking-forms",level:3},{value:"Thank you-page",id:"thank-you-page",level:3},{value:"Wrapping it up",id:"wrapping-it-up",level:2}],m={toc:p},h="wrapper";function g(e){var t=e.components,n=(0,i.Z)(e,r);return(0,o.kt)(h,(0,a.Z)({},m,n,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("p",null,"This guide will focus on get you started with the ",(0,o.kt)("a",{parentName:"p",href:"https://wordpress.org/plugins/eduadmin-booking/"},(0,o.kt)("strong",{parentName:"a"},"EduAdmin WordPress Plugin")),", with default templates and settings so your visitors can start booking directly from your ",(0,o.kt)("a",{parentName:"p",href:"https://www.wordpress.org"},(0,o.kt)("strong",{parentName:"a"},"WordPress"))," webpage."),(0,o.kt)("admonition",{title:"EduAdmin API Key",type:"info"},(0,o.kt)("p",{parentName:"admonition"},"If you do not have an API key for ",(0,o.kt)("a",{parentName:"p",href:"https://www.eduadmin.se"},(0,o.kt)("strong",{parentName:"a"},"EduAdmin"))," yet,\nconsider contacting our support."),(0,o.kt)("p",{parentName:"admonition"},(0,o.kt)("a",{parentName:"p",href:"https://www.eduadmin.se"},(0,o.kt)("strong",{parentName:"a"},"EduAdmin"))," is not a free service,\nand the API key comes with a monthly fee.")),(0,o.kt)("p",null,"If you have your API key ready, let us go through the steps below!"),(0,o.kt)("admonition",{title:"Need more customization?",type:"tip"},(0,o.kt)("p",{parentName:"admonition"},"If you need the ability to customize things more than we have the ability to,\nwe recommend that you look into creating your own integration with our API.")),(0,o.kt)("h2",{id:"installing-the-plugin"},"Installing the plugin"),(0,o.kt)("p",null,"Make sure you are logged in to WordPress with a user, that has access to install new plugins.\nFrom the plugin view, click ",(0,o.kt)("strong",{parentName:"p"},"Add New")," and search for ",(0,o.kt)("em",{parentName:"p"},"EduAdmin"),', the one you want is "',(0,o.kt)("a",{parentName:"p",href:"https://wordpress.org/plugins/eduadmin-booking/"},(0,o.kt)("strong",{parentName:"a"},"EduAdmin Booking")),'" by ',(0,o.kt)("a",{parentName:"p",href:"https://www.multinet.com"},(0,o.kt)("strong",{parentName:"a"},"MultiNet Interactive AB")),"."),(0,o.kt)("admonition",{type:"tip"},(0,o.kt)("p",{parentName:"admonition"},"Don't forget to activate the newly installed plugin")),(0,o.kt)("h2",{id:"setting-the-api-key"},"Setting the API key"),(0,o.kt)("p",null,"When you activate the plugin, a new menu item (",(0,o.kt)("em",{parentName:"p"},"EduAdmin"),") will appear in the left menu,\nto set your API key, navigate to the ",(0,o.kt)("em",{parentName:"p"},"Api Authentication")," and enter the API key you got from ",(0,o.kt)("a",{parentName:"p",href:"https://www.multinet.com"},(0,o.kt)("strong",{parentName:"a"},"MultiNet Interactive AB")),"\n(or if you got one from the company you're building the website for.)"),(0,o.kt)("h2",{id:"creating-all-the-required-pages"},"Creating all the required pages"),(0,o.kt)("p",null,"After setting the API key, we now need to create the bare minimum of required pages and set some settings,\nso your customers can browse the available courses and if available book themselves."),(0,o.kt)("admonition",{type:"note"},(0,o.kt)("p",{parentName:"admonition"},"For all pages to work, you have to select them in the proper setting on ",(0,o.kt)("em",{parentName:"p"},"General settings"),",\nand set which URL/folder the plugin should work under.")),(0,o.kt)("p",null,"The shortcodes we go through below can be viewed in detail on the ",(0,o.kt)("a",{parentName:"p",href:"/docs/shortcodes"},"shortcode"),"-page"),(0,o.kt)("p",null,"The pages that we recommend that you create are as follows"),(0,o.kt)("h3",{id:"eduadmin-listview"},(0,o.kt)("inlineCode",{parentName:"h3"},"[eduadmin-listview]")),(0,o.kt)("p",null,"This page will show the available courses that you have published through ",(0,o.kt)("a",{parentName:"p",href:"https://www.eduadmin.se"},(0,o.kt)("strong",{parentName:"a"},"EduAdmin")),",\nand depending on what settings it can show different information."),(0,o.kt)("h3",{id:"eduadmin-detailview"},(0,o.kt)("inlineCode",{parentName:"h3"},"[eduadmin-detailview]")),(0,o.kt)("p",null,"The details view, will show the course information and the available course dates (if there are any available)."),(0,o.kt)("p",null,"It is also possible to build a custom template to use, instead of the two default themes we have."),(0,o.kt)("h3",{id:"eduadmin-bookingview-or-use-the-eduadmin-booking-forms"},(0,o.kt)("inlineCode",{parentName:"h3"},"[eduadmin-bookingview]")," (or use the EduAdmin Booking Forms)"),(0,o.kt)("p",null,"This page is probably the most important one, since it's the page used to post the bookings into ",(0,o.kt)("a",{parentName:"p",href:"https://www.eduadmin.se"},(0,o.kt)("strong",{parentName:"a"},"EduAdmin")),"."),(0,o.kt)("p",null,"The form is automatically built by the plugin, and handles custom fields and questions that you can setup in ",(0,o.kt)("a",{parentName:"p",href:"https://www.eduadmin.se"},(0,o.kt)("strong",{parentName:"a"},"EduAdmin")),",\nthe elements have CSS classes, so it's easy to style the form, the way you want it to be."),(0,o.kt)("hr",null),(0,o.kt)("p",null,'And as stated in the header, you can also check the box in the top of "Booking settings", to use the booking forms from EduAdmin instead.'),(0,o.kt)("p",null,"All customization for these forms are made directly in EduAdmin, so that you don't have to work inside of WordPress to modify them."),(0,o.kt)("h3",{id:"thank-you-page"},"Thank you-page"),(0,o.kt)("p",null,"This is a static page that you create as a ",(0,o.kt)("em",{parentName:"p"},"Thank you"),"-page, whenever someone completes a booking."),(0,o.kt)("p",null,"It will also run the javascript specified in the ",(0,o.kt)("em",{parentName:"p"},"Booking settings"),"-section, if anything is specified,\nthis is normally used to complete goals in Analytic-systems."),(0,o.kt)("h2",{id:"wrapping-it-up"},"Wrapping it up"),(0,o.kt)("p",null,"We went through the guide, created some pages, added the appropriate shortcodes."),(0,o.kt)("p",null,"If everything is setup correctly, you should now be able to view your new,\nfully integrated web booking in the directory you selected during the setup."),(0,o.kt)("p",null,"If you are experiencing some kind or problems,\ncheck the ",(0,o.kt)("a",{parentName:"p",href:"/docs/troubleshooting"},"Troubleshooting"),"-page to see\nif the issue you are experiencing is listed there."))}g.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[90],{3905:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>g});var a=n(7294);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function r(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var l=a.createContext({}),d=function(e){var t=a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):r(r({},t),e)),n},u=function(e){var t=d(e.components);return a.createElement(l.Provider,{value:t},e.children)},p="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},h=a.forwardRef((function(e,t){var n=e.components,i=e.mdxType,o=e.originalType,l=e.parentName,u=s(e,["components","mdxType","originalType","parentName"]),p=d(n),h=i,g=p["".concat(l,".").concat(h)]||p[h]||m[h]||o;return n?a.createElement(g,r(r({ref:t},u),{},{components:n})):a.createElement(g,r({ref:t},u))}));function g(e,t){var n=arguments,i=t&&t.mdxType;if("string"==typeof e||i){var o=n.length,r=new Array(o);r[0]=h;var s={};for(var l in t)hasOwnProperty.call(t,l)&&(s[l]=t[l]);s.originalType=e,s[p]="string"==typeof e?e:i,r[1]=s;for(var d=2;d{n.r(t),n.d(t,{assets:()=>u,contentTitle:()=>l,default:()=>g,frontMatter:()=>s,metadata:()=>d,toc:()=>p});var a=n(3117),i=n(102),o=(n(7294),n(3905)),r=["components"],s={id:"getting-started",title:"Getting started",sidebar_label:"First time setup",slug:"/"},l=void 0,d={unversionedId:"getting-started",id:"getting-started",title:"Getting started",description:"This guide will focus on get you started with the EduAdmin WordPress Plugin, with default templates and settings so your visitors can start booking directly from your WordPress webpage.",source:"@site/docs/getting-started.md",sourceDirName:".",slug:"/",permalink:"/docs/",draft:!1,editUrl:"https://github.com/MultinetInteractive/EduAdmin-WordPress/edit/master/new_website/docs/getting-started.md",tags:[],version:"current",lastUpdatedBy:"NoLifeKing",lastUpdatedAt:1730794042,formattedLastUpdatedAt:"Nov 5, 2024",frontMatter:{id:"getting-started",title:"Getting started",sidebar_label:"First time setup",slug:"/"},sidebar:"docs",next:{title:"Shortcodes",permalink:"/docs/shortcodes"}},u={},p=[{value:"Installing the plugin",id:"installing-the-plugin",level:2},{value:"Setting the API key",id:"setting-the-api-key",level:2},{value:"Creating all the required pages",id:"creating-all-the-required-pages",level:2},{value:"[eduadmin-listview]",id:"eduadmin-listview",level:3},{value:"[eduadmin-detailview]",id:"eduadmin-detailview",level:3},{value:"[eduadmin-bookingview] (or use the EduAdmin Booking Forms)",id:"eduadmin-bookingview-or-use-the-eduadmin-booking-forms",level:3},{value:"Thank you-page",id:"thank-you-page",level:3},{value:"Wrapping it up",id:"wrapping-it-up",level:2}],m={toc:p},h="wrapper";function g(e){var t=e.components,n=(0,i.Z)(e,r);return(0,o.kt)(h,(0,a.Z)({},m,n,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("p",null,"This guide will focus on get you started with the ",(0,o.kt)("a",{parentName:"p",href:"https://wordpress.org/plugins/eduadmin-booking/"},(0,o.kt)("strong",{parentName:"a"},"EduAdmin WordPress Plugin")),", with default templates and settings so your visitors can start booking directly from your ",(0,o.kt)("a",{parentName:"p",href:"https://www.wordpress.org"},(0,o.kt)("strong",{parentName:"a"},"WordPress"))," webpage."),(0,o.kt)("admonition",{title:"EduAdmin API Key",type:"info"},(0,o.kt)("p",{parentName:"admonition"},"If you do not have an API key for ",(0,o.kt)("a",{parentName:"p",href:"https://www.eduadmin.se"},(0,o.kt)("strong",{parentName:"a"},"EduAdmin"))," yet,\nconsider contacting our support."),(0,o.kt)("p",{parentName:"admonition"},(0,o.kt)("a",{parentName:"p",href:"https://www.eduadmin.se"},(0,o.kt)("strong",{parentName:"a"},"EduAdmin"))," is not a free service,\nand the API key comes with a monthly fee.")),(0,o.kt)("p",null,"If you have your API key ready, let us go through the steps below!"),(0,o.kt)("admonition",{title:"Need more customization?",type:"tip"},(0,o.kt)("p",{parentName:"admonition"},"If you need the ability to customize things more than we have the ability to,\nwe recommend that you look into creating your own integration with our API.")),(0,o.kt)("h2",{id:"installing-the-plugin"},"Installing the plugin"),(0,o.kt)("p",null,"Make sure you are logged in to WordPress with a user, that has access to install new plugins.\nFrom the plugin view, click ",(0,o.kt)("strong",{parentName:"p"},"Add New")," and search for ",(0,o.kt)("em",{parentName:"p"},"EduAdmin"),', the one you want is "',(0,o.kt)("a",{parentName:"p",href:"https://wordpress.org/plugins/eduadmin-booking/"},(0,o.kt)("strong",{parentName:"a"},"EduAdmin Booking")),'" by ',(0,o.kt)("a",{parentName:"p",href:"https://www.multinet.com"},(0,o.kt)("strong",{parentName:"a"},"MultiNet Interactive AB")),"."),(0,o.kt)("admonition",{type:"tip"},(0,o.kt)("p",{parentName:"admonition"},"Don't forget to activate the newly installed plugin")),(0,o.kt)("h2",{id:"setting-the-api-key"},"Setting the API key"),(0,o.kt)("p",null,"When you activate the plugin, a new menu item (",(0,o.kt)("em",{parentName:"p"},"EduAdmin"),") will appear in the left menu,\nto set your API key, navigate to the ",(0,o.kt)("em",{parentName:"p"},"Api Authentication")," and enter the API key you got from ",(0,o.kt)("a",{parentName:"p",href:"https://www.multinet.com"},(0,o.kt)("strong",{parentName:"a"},"MultiNet Interactive AB")),"\n(or if you got one from the company you're building the website for.)"),(0,o.kt)("h2",{id:"creating-all-the-required-pages"},"Creating all the required pages"),(0,o.kt)("p",null,"After setting the API key, we now need to create the bare minimum of required pages and set some settings,\nso your customers can browse the available courses and if available book themselves."),(0,o.kt)("admonition",{type:"note"},(0,o.kt)("p",{parentName:"admonition"},"For all pages to work, you have to select them in the proper setting on ",(0,o.kt)("em",{parentName:"p"},"General settings"),",\nand set which URL/folder the plugin should work under.")),(0,o.kt)("p",null,"The shortcodes we go through below can be viewed in detail on the ",(0,o.kt)("a",{parentName:"p",href:"/docs/shortcodes"},"shortcode"),"-page"),(0,o.kt)("p",null,"The pages that we recommend that you create are as follows"),(0,o.kt)("h3",{id:"eduadmin-listview"},(0,o.kt)("inlineCode",{parentName:"h3"},"[eduadmin-listview]")),(0,o.kt)("p",null,"This page will show the available courses that you have published through ",(0,o.kt)("a",{parentName:"p",href:"https://www.eduadmin.se"},(0,o.kt)("strong",{parentName:"a"},"EduAdmin")),",\nand depending on what settings it can show different information."),(0,o.kt)("h3",{id:"eduadmin-detailview"},(0,o.kt)("inlineCode",{parentName:"h3"},"[eduadmin-detailview]")),(0,o.kt)("p",null,"The details view, will show the course information and the available course dates (if there are any available)."),(0,o.kt)("p",null,"It is also possible to build a custom template to use, instead of the two default themes we have."),(0,o.kt)("h3",{id:"eduadmin-bookingview-or-use-the-eduadmin-booking-forms"},(0,o.kt)("inlineCode",{parentName:"h3"},"[eduadmin-bookingview]")," (or use the EduAdmin Booking Forms)"),(0,o.kt)("p",null,"This page is probably the most important one, since it's the page used to post the bookings into ",(0,o.kt)("a",{parentName:"p",href:"https://www.eduadmin.se"},(0,o.kt)("strong",{parentName:"a"},"EduAdmin")),"."),(0,o.kt)("p",null,"The form is automatically built by the plugin, and handles custom fields and questions that you can setup in ",(0,o.kt)("a",{parentName:"p",href:"https://www.eduadmin.se"},(0,o.kt)("strong",{parentName:"a"},"EduAdmin")),",\nthe elements have CSS classes, so it's easy to style the form, the way you want it to be."),(0,o.kt)("hr",null),(0,o.kt)("p",null,'And as stated in the header, you can also check the box in the top of "Booking settings", to use the booking forms from EduAdmin instead.'),(0,o.kt)("p",null,"All customization for these forms are made directly in EduAdmin, so that you don't have to work inside of WordPress to modify them."),(0,o.kt)("h3",{id:"thank-you-page"},"Thank you-page"),(0,o.kt)("p",null,"This is a static page that you create as a ",(0,o.kt)("em",{parentName:"p"},"Thank you"),"-page, whenever someone completes a booking."),(0,o.kt)("p",null,"It will also run the javascript specified in the ",(0,o.kt)("em",{parentName:"p"},"Booking settings"),"-section, if anything is specified,\nthis is normally used to complete goals in Analytic-systems."),(0,o.kt)("h2",{id:"wrapping-it-up"},"Wrapping it up"),(0,o.kt)("p",null,"We went through the guide, created some pages, added the appropriate shortcodes."),(0,o.kt)("p",null,"If everything is setup correctly, you should now be able to view your new,\nfully integrated web booking in the directory you selected during the setup."),(0,o.kt)("p",null,"If you are experiencing some kind or problems,\ncheck the ",(0,o.kt)("a",{parentName:"p",href:"/docs/troubleshooting"},"Troubleshooting"),"-page to see\nif the issue you are experiencing is listed there."))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/runtime~main.589145a7.js b/assets/js/runtime~main.21beb1de.js similarity index 91% rename from assets/js/runtime~main.589145a7.js rename to assets/js/runtime~main.21beb1de.js index 7410f252..c014a9af 100644 --- a/assets/js/runtime~main.589145a7.js +++ b/assets/js/runtime~main.21beb1de.js @@ -1 +1 @@ -(()=>{"use strict";var e,r,t,a,f={},o={};function c(e){var r=o[e];if(void 0!==r)return r.exports;var t=o[e]={id:e,loaded:!1,exports:{}};return f[e].call(t.exports,t,t.exports,c),t.loaded=!0,t.exports}c.m=f,c.c=o,e=[],c.O=(r,t,a,f)=>{if(!t){var o=1/0;for(i=0;i=f)&&Object.keys(c.O).every((e=>c.O[e](t[n])))?t.splice(n--,1):(d=!1,f0&&e[i-1][2]>f;i--)e[i]=e[i-1];e[i]=[t,a,f]},c.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return c.d(r,{a:r}),r},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,c.t=function(e,a){if(1&a&&(e=this(e)),8&a)return e;if("object"==typeof e&&e){if(4&a&&e.__esModule)return e;if(16&a&&"function"==typeof e.then)return e}var f=Object.create(null);c.r(f);var o={};r=r||[null,t({}),t([]),t(t)];for(var d=2&a&&e;"object"==typeof d&&!~r.indexOf(d);d=t(d))Object.getOwnPropertyNames(d).forEach((r=>o[r]=()=>e[r]));return o.default=()=>e,c.d(f,o),f},c.d=(e,r)=>{for(var t in r)c.o(r,t)&&!c.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce(((r,t)=>(c.f[t](e,r),r)),[])),c.u=e=>"assets/js/"+({4:"b78327f3",13:"01a85c17",53:"935f2afb",68:"7afc9797",89:"a6aa9e1f",90:"d589d3a7",103:"ccc49370",124:"9fac906f",161:"05ac6639",162:"bcf2d73d",195:"c4f5d8e4",217:"1dba9094",331:"83e784c4",360:"9d9f8394",426:"896f20ab",477:"b2f554cd",489:"0ce57c98",514:"1be78505",533:"b2b675dd",535:"814f3328",549:"574b0436",585:"03e2d229",608:"9e4087bc",610:"6875c492",647:"beb8c2f8",672:"7e50f87c",713:"a7023ddc",740:"7e37206e",817:"b9a7991f",918:"17896441"}[e]||e)+"."+{4:"af025c4d",13:"13574442",48:"e81f484b",53:"e7344379",68:"9056d841",89:"8aae062b",90:"1a1fa1b0",103:"b957dfe2",124:"416a51ae",161:"cdef9e3b",162:"46e5492e",195:"6a5473b2",217:"00b7f2fc",319:"83c1139e",331:"864805e2",360:"4b8b2889",426:"eab1d013",477:"a0b82336",489:"c5191d35",514:"cfba8914",533:"89e9f0d7",535:"874b2b96",549:"e2c2e762",585:"516e9da7",608:"4a5713a7",610:"3c90c80a",647:"758d87a6",672:"1ae25c63",713:"3b04fa60",740:"b36aefa2",817:"9415b5e8",918:"f5178c20",972:"2d1a37f6"}[e]+".js",c.miniCssF=e=>{},c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),a={},c.l=(e,r,t,f)=>{if(a[e])a[e].push(r);else{var o,d;if(void 0!==t)for(var n=document.getElementsByTagName("script"),b=0;b{o.onerror=o.onload=null,clearTimeout(u);var f=a[e];if(delete a[e],o.parentNode&&o.parentNode.removeChild(o),f&&f.forEach((e=>e(t))),r)return r(t)},u=setTimeout(l.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=l.bind(null,o.onerror),o.onload=l.bind(null,o.onload),d&&document.head.appendChild(o)}},c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.p="/",c.gca=function(e){return e={17896441:"918",b78327f3:"4","01a85c17":"13","935f2afb":"53","7afc9797":"68",a6aa9e1f:"89",d589d3a7:"90",ccc49370:"103","9fac906f":"124","05ac6639":"161",bcf2d73d:"162",c4f5d8e4:"195","1dba9094":"217","83e784c4":"331","9d9f8394":"360","896f20ab":"426",b2f554cd:"477","0ce57c98":"489","1be78505":"514",b2b675dd:"533","814f3328":"535","574b0436":"549","03e2d229":"585","9e4087bc":"608","6875c492":"610",beb8c2f8:"647","7e50f87c":"672",a7023ddc:"713","7e37206e":"740",b9a7991f:"817"}[e]||e,c.p+c.u(e)},(()=>{var e={303:0,532:0};c.f.j=(r,t)=>{var a=c.o(e,r)?e[r]:void 0;if(0!==a)if(a)t.push(a[2]);else if(/^(303|532)$/.test(r))e[r]=0;else{var f=new Promise(((t,f)=>a=e[r]=[t,f]));t.push(a[2]=f);var o=c.p+c.u(r),d=new Error;c.l(o,(t=>{if(c.o(e,r)&&(0!==(a=e[r])&&(e[r]=void 0),a)){var f=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;d.message="Loading chunk "+r+" failed.\n("+f+": "+o+")",d.name="ChunkLoadError",d.type=f,d.request=o,a[1](d)}}),"chunk-"+r,r)}},c.O.j=r=>0===e[r];var r=(r,t)=>{var a,f,[o,d,n]=t,b=0;if(o.some((r=>0!==e[r]))){for(a in d)c.o(d,a)&&(c.m[a]=d[a]);if(n)var i=n(c)}for(r&&r(t);b{"use strict";var e,r,t,a,f={},o={};function c(e){var r=o[e];if(void 0!==r)return r.exports;var t=o[e]={id:e,loaded:!1,exports:{}};return f[e].call(t.exports,t,t.exports,c),t.loaded=!0,t.exports}c.m=f,c.c=o,e=[],c.O=(r,t,a,f)=>{if(!t){var o=1/0;for(i=0;i=f)&&Object.keys(c.O).every((e=>c.O[e](t[n])))?t.splice(n--,1):(d=!1,f0&&e[i-1][2]>f;i--)e[i]=e[i-1];e[i]=[t,a,f]},c.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return c.d(r,{a:r}),r},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,c.t=function(e,a){if(1&a&&(e=this(e)),8&a)return e;if("object"==typeof e&&e){if(4&a&&e.__esModule)return e;if(16&a&&"function"==typeof e.then)return e}var f=Object.create(null);c.r(f);var o={};r=r||[null,t({}),t([]),t(t)];for(var d=2&a&&e;"object"==typeof d&&!~r.indexOf(d);d=t(d))Object.getOwnPropertyNames(d).forEach((r=>o[r]=()=>e[r]));return o.default=()=>e,c.d(f,o),f},c.d=(e,r)=>{for(var t in r)c.o(r,t)&&!c.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce(((r,t)=>(c.f[t](e,r),r)),[])),c.u=e=>"assets/js/"+({4:"b78327f3",13:"01a85c17",53:"935f2afb",68:"7afc9797",89:"a6aa9e1f",90:"d589d3a7",103:"ccc49370",124:"9fac906f",161:"05ac6639",162:"bcf2d73d",195:"c4f5d8e4",217:"1dba9094",331:"83e784c4",360:"9d9f8394",426:"896f20ab",477:"b2f554cd",489:"0ce57c98",514:"1be78505",533:"b2b675dd",535:"814f3328",549:"574b0436",585:"03e2d229",608:"9e4087bc",610:"6875c492",647:"beb8c2f8",672:"7e50f87c",713:"a7023ddc",740:"7e37206e",817:"b9a7991f",918:"17896441"}[e]||e)+"."+{4:"af025c4d",13:"13574442",48:"e81f484b",53:"e7344379",68:"484ee071",89:"8aae062b",90:"511a44ea",103:"b957dfe2",124:"416a51ae",161:"cdef9e3b",162:"c55e5759",195:"6a5473b2",217:"00b7f2fc",319:"83c1139e",331:"864805e2",360:"b2b81596",426:"eab1d013",477:"a0b82336",489:"c5191d35",514:"cfba8914",533:"89e9f0d7",535:"874b2b96",549:"e2c2e762",585:"516e9da7",608:"4a5713a7",610:"3c90c80a",647:"6f89d40e",672:"0931d166",713:"3b04fa60",740:"b36aefa2",817:"9415b5e8",918:"f5178c20",972:"2d1a37f6"}[e]+".js",c.miniCssF=e=>{},c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),a={},c.l=(e,r,t,f)=>{if(a[e])a[e].push(r);else{var o,d;if(void 0!==t)for(var n=document.getElementsByTagName("script"),b=0;b{o.onerror=o.onload=null,clearTimeout(u);var f=a[e];if(delete a[e],o.parentNode&&o.parentNode.removeChild(o),f&&f.forEach((e=>e(t))),r)return r(t)},u=setTimeout(l.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=l.bind(null,o.onerror),o.onload=l.bind(null,o.onload),d&&document.head.appendChild(o)}},c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.p="/",c.gca=function(e){return e={17896441:"918",b78327f3:"4","01a85c17":"13","935f2afb":"53","7afc9797":"68",a6aa9e1f:"89",d589d3a7:"90",ccc49370:"103","9fac906f":"124","05ac6639":"161",bcf2d73d:"162",c4f5d8e4:"195","1dba9094":"217","83e784c4":"331","9d9f8394":"360","896f20ab":"426",b2f554cd:"477","0ce57c98":"489","1be78505":"514",b2b675dd:"533","814f3328":"535","574b0436":"549","03e2d229":"585","9e4087bc":"608","6875c492":"610",beb8c2f8:"647","7e50f87c":"672",a7023ddc:"713","7e37206e":"740",b9a7991f:"817"}[e]||e,c.p+c.u(e)},(()=>{var e={303:0,532:0};c.f.j=(r,t)=>{var a=c.o(e,r)?e[r]:void 0;if(0!==a)if(a)t.push(a[2]);else if(/^(303|532)$/.test(r))e[r]=0;else{var f=new Promise(((t,f)=>a=e[r]=[t,f]));t.push(a[2]=f);var o=c.p+c.u(r),d=new Error;c.l(o,(t=>{if(c.o(e,r)&&(0!==(a=e[r])&&(e[r]=void 0),a)){var f=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;d.message="Loading chunk "+r+" failed.\n("+f+": "+o+")",d.name="ChunkLoadError",d.type=f,d.request=o,a[1](d)}}),"chunk-"+r,r)}},c.O.j=r=>0===e[r];var r=(r,t)=>{var a,f,[o,d,n]=t,b=0;if(o.some((r=>0!==e[r]))){for(a in d)c.o(d,a)&&(c.m[a]=d[a]);if(n)var i=n(c)}for(r&&r(t);b - + @@ -19,7 +19,7 @@ unnamed participants and new "Export to Excel"-function added to booking list.

Update information

In this new version (3.0.0) of the WordPress plugin, we have added some new things.

  • Unnamed participants is now shown under the Bookings tab
  • Export to Excel (CSV) from the Bookings tab
  • Fix for on-demand courses, so they actually show up as on-demand

There has also been changes to the Login Page and Booking page designs, to fix certain layout problems when a default theme is applied.

Breaking design change!

This might break some custom designs if you have implemented any custom CSS to the login page and booking list page, so be sure to test this in a development environment first, before updating to the new version.

Changes Login form

Example on how the Login Page form looked before this change (Swedish text):

Login Pre-changed styling

And this is how the new form looks:

Login Post-changed styling (Desktop)

.. and in mobile layout:

Login Post-changed styling (Mobile)

Changes Booking list

And this is how the booking list used to look before the design overhaul:

Booking list pre-changed styling

Which has been updated, to look like this:

Booking list post-changed styling

- + \ No newline at end of file diff --git a/blog/archive/index.html b/blog/archive/index.html index 9b76b333..0a993883 100644 --- a/blog/archive/index.html +++ b/blog/archive/index.html @@ -10,13 +10,13 @@ - + - + \ No newline at end of file diff --git a/blog/index.html b/blog/index.html index cfa773da..d6d62f50 100644 --- a/blog/index.html +++ b/blog/index.html @@ -10,14 +10,14 @@ - +
- + \ No newline at end of file diff --git a/blog/tags/breaking-change/index.html b/blog/tags/breaking-change/index.html index 4dbb02b4..ee797dc0 100644 --- a/blog/tags/breaking-change/index.html +++ b/blog/tags/breaking-change/index.html @@ -10,14 +10,14 @@ - +

One post tagged with "Breaking Change"

View All Tags
- + \ No newline at end of file diff --git a/blog/tags/index.html b/blog/tags/index.html index 6beceaea..b45eb473 100644 --- a/blog/tags/index.html +++ b/blog/tags/index.html @@ -10,13 +10,13 @@ - + - + \ No newline at end of file diff --git a/blog/tags/my-profile/index.html b/blog/tags/my-profile/index.html index 89a600aa..6bc7765d 100644 --- a/blog/tags/my-profile/index.html +++ b/blog/tags/my-profile/index.html @@ -10,14 +10,14 @@ - +

One post tagged with "My Profile"

View All Tags
- + \ No newline at end of file diff --git a/docs/cookies/index.html b/docs/cookies/index.html index e0c1adc8..66fea05e 100644 --- a/docs/cookies/index.html +++ b/docs/cookies/index.html @@ -10,13 +10,13 @@ - +
-

Cookies

This page will tell you about what cookies are used through the plugin.

Both of these cookies are used to store the user's session in the plugin, and is required for the plugin to work.

We also store transaction data, to keep track if the user have started a booking, so that we can show them the relevant information.

The -legacy cookie gets added for older clients that don't support the eduadmin-cookie cookie.

- +

Cookies

This page will tell you about what cookies are used through the plugin.

Both of these cookies are used to store the user's session in the plugin, and is required for the plugin to work.

We also store transaction data, to keep track if the user have started a booking, so that we can show them the relevant information.

The -legacy cookie gets added for older clients that don't support the eduadmin-cookie cookie.

+ \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index d6371389..1992c084 100644 --- a/docs/index.html +++ b/docs/index.html @@ -10,7 +10,7 @@ - + @@ -29,8 +29,8 @@ this is normally used to complete goals in Analytic-systems.

Wrapping it up

We went through the guide, created some pages, added the appropriate shortcodes.

If everything is setup correctly, you should now be able to view your new, fully integrated web booking in the directory you selected during the setup.

If you are experiencing some kind or problems, check the Troubleshooting-page to see -if the issue you are experiencing is listed there.

- +if the issue you are experiencing is listed there.

+ \ No newline at end of file diff --git a/docs/shortcodes/index.html b/docs/shortcodes/index.html index f2f0a20d..4b251b96 100644 --- a/docs/shortcodes/index.html +++ b/docs/shortcodes/index.html @@ -10,7 +10,7 @@ - + @@ -36,8 +36,8 @@ attribute for courseid, depending on the use.

AttributeValue typeDefault value
courseidintegernull

The courseid-attribute will make the shortcode output a specific form, for that specific course template.


[eduadmin-programme-book]

As with the other booking view, this is important if you want to be able to receive end users programme bookings. It will render a predetermined form with all info needed to book a programme.

AttributeValue typeDefault value
programmeidintegernull
programmestartidintegernull

You can also build static pages and apply the attribute programmeid to make a programme specific form. And if you also specify the programmestartid, it can be tied to a specific programme start.


[eduadmin-programme-detail]

This is the detail view, to view a specific programme, it can be used to create a custom page with a specific programme, -or used as the default view for all programmes.

AttributeValue typeDefault value
programmeidintegernull

And if you want to create a specific page for a programme, you can also use the programmeid-attribute.


[eduadmin-programme-list]

As with the normal list view, this view lists the available programmes you have created in EduAdmin.

AttributeValue typeDefault value
categorystringnull

And if you want to filter this list, you can apply the category-attribute.


[eduadmin-programmeinfo]

This shortcode is used when you want to create your own custom template programme view.

note

We will add more attributes to this shortcode in the future.

AttributeValue typeDefault value
programmeidintegernull
programmenamebooleannull
programmepublicnamebooleannull
programmeimagebooleannull
programmeimagetextbooleannull
programmedescriptionshortbooleannull
programmedescriptionbooleannull
programmegoalbooleannull
programmetargetbooleannull
programmeprerequisitesbooleannull
courseafterbooleannull
programmequotebooleannull
- +or used as the default view for all programmes.

AttributeValue typeDefault value
programmeidintegernull

And if you want to create a specific page for a programme, you can also use the programmeid-attribute.


[eduadmin-programme-list]

As with the normal list view, this view lists the available programmes you have created in EduAdmin.

AttributeValue typeDefault value
categorystringnull

And if you want to filter this list, you can apply the category-attribute.


[eduadmin-programmeinfo]

This shortcode is used when you want to create your own custom template programme view.

note

We will add more attributes to this shortcode in the future.

AttributeValue typeDefault value
programmeidintegernull
programmenamebooleannull
programmepublicnamebooleannull
programmeimagebooleannull
programmeimagetextbooleannull
programmedescriptionshortbooleannull
programmedescriptionbooleannull
programmegoalbooleannull
programmetargetbooleannull
programmeprerequisitesbooleannull
courseafterbooleannull
programmequotebooleannull
+ \ No newline at end of file diff --git a/docs/troubleshooting/index.html b/docs/troubleshooting/index.html index 5ccaae36..a5bce5a1 100644 --- a/docs/troubleshooting/index.html +++ b/docs/troubleshooting/index.html @@ -10,7 +10,7 @@ - + @@ -30,8 +30,8 @@ we get back either a success, or an array of errors.

The unexpected error means something went wrong, that we do not have a classification for, so please contact us at our support portal whenever this occurs.

Want support? Find us here!

You can find the support portal at https://support.eduadmin.se/en/support/tickets/new.

The dates shown on my website are wrong

Make sure you have set the correct timezone in your WordPress instance, we try to convert the dates from the EduAdmin API, to fit your WordPress settings.

And if you want to check how we handle the dates, you can append ?edu-debugdates=1 to the URL, -and then you will see (in the source), something like this:

Example output from plugin when debugging dates

<!-- Array
(
[0] => Y-m-d // The format of the date
[1] => 2020-09-01T17:00:00+02:00 // The original input to the method
[2] => 2020-09-01T17:00:00+02:00 // If we don't send any input, we calculate a new input to be used
[3] => 2020-09-01 // This is what will be outputted into the website
[4] => +02:00 // This is the calculated timezone offset
[5] => 7200 // This is the timezone offset, in seconds
[6] => include // This is an approximation of where the code is used
)
-->

- +and then you will see (in the source), something like this:

Example output from plugin when debugging dates

<!-- Array
(
[0] => Y-m-d // The format of the date
[1] => 2020-09-01T17:00:00+02:00 // The original input to the method
[2] => 2020-09-01T17:00:00+02:00 // If we don't send any input, we calculate a new input to be used
[3] => 2020-09-01 // This is what will be outputted into the website
[4] => +02:00 // This is the calculated timezone offset
[5] => 7200 // This is the timezone offset, in seconds
[6] => include // This is an approximation of where the code is used
)
-->

+ \ No newline at end of file diff --git a/docs/wordpress-actions/index.html b/docs/wordpress-actions/index.html index fc1d62a4..d0f00e9c 100644 --- a/docs/wordpress-actions/index.html +++ b/docs/wordpress-actions/index.html @@ -10,7 +10,7 @@ - + @@ -21,8 +21,8 @@ trigger a webhook or something similar.

eduadmin-bookingcompleted

An old legacy event that is still available for backwards compatibility, used by some integrations/plugins to handle payment updates/information.

eduadmin-bookingerror

This event fires when there is an error with the booking.

Parameter nameDescription
$error_listContains the error message(s) that was returned from the API.

eduadmin-bookingform-loaded

This event fires when the booking form is loaded, and the booking form is about to be rendered.

Parameter nameDescription
$login_userContains information about the user that is logged in (or pseudo user if there is none).

eduadmin-bookingform-view

This event fires when the booking form has been loaded, and we know what course is shown.

Parameter nameDescription
$selected_courseContains the CourseTemplate that is shown in the booking form.

eduadmin-checkpaymentplugins

This event fires when the booking is about to be made, and the plugin is checking if there are any payment plugins that wants to inject themselves into the booking flow.

Parameter nameDescription
$ebiContains the EduAdmin_BookingInfo that has been created.

Example of how this is used in the plugin for Svea WebPay can be found here:

https://github.com/MultinetInteractive/EduAdmin-WordPress-SveaWebPay/blob/master/class/class-edu-sveawebpay.php#L27

eduadmin-detail-view

This event fires when the detail view is loaded, and the detail view is about to be rendered.

Parameter nameDescription
$selected_courseContains the CourseTemplate that is shown.

eduadmin-list-course-view

This event fires when the course list view is loaded, and the list view has been rendered.

Parameter nameDescription
$coursesContains an array of the CourseTemplates that is shown in the list.

eduadmin-list-event-view

This event fires when the event list view is loaded, and the list view has been rendered.

Parameter nameDescription
$eventsContains an array of the Events that is shown in the list.

eduadmin-list-programme-view

This event fires when the event list view is loaded, and the list view has been rendered.

Parameter nameDescription
$programmesContains an array of the Programmes that is shown in the list.

eduadmin-plugin-save_<plugin-id>

This is an internal action, only used to save the options for a plugin.

https://github.com/MultinetInteractive/EduAdmin-WordPress/blob/production/includes/plugin/class-edu-integration.php#L152-L173

eduadmin-processbooking

This event fires when the booking is made, and potential plugins can take part of the booking information for custom -handling.

Parameter nameDescription
$ebiContains the EduAdmin_BookingInfo that has been created.

eduadmin-programme-bookingform-view

This event fires when the programme booking form has been loaded, and we know what programme is shown.

Parameter nameDescription
$programmeContains the Programme that is shown in the booking form.

eduadmin-programme-detail-view

This event fires when the programme detail view is loaded, and the detail view is about to be rendered.

Parameter nameDescription
$programmeContains the Programme that is shown in the detail view.

edu_integrations_init

This event fires when the plugin is loaded, and the integrations are about to be loaded.

eduadmin_loaded

This event fires when the plugin is loaded, and the plugin is done initializing.

eduadmin_showtimers

This event fires when the plugin is loaded, and the plugin is about to show the timers.

Can be used, if you want to extend the timer functionality, and add your own timers.

- +handling.

Parameter nameDescription
$ebiContains the EduAdmin_BookingInfo that has been created.

eduadmin-programme-bookingform-view

This event fires when the programme booking form has been loaded, and we know what programme is shown.

Parameter nameDescription
$programmeContains the Programme that is shown in the booking form.

eduadmin-programme-detail-view

This event fires when the programme detail view is loaded, and the detail view is about to be rendered.

Parameter nameDescription
$programmeContains the Programme that is shown in the detail view.

edu_integrations_init

This event fires when the plugin is loaded, and the integrations are about to be loaded.

eduadmin_loaded

This event fires when the plugin is loaded, and the plugin is done initializing.

eduadmin_showtimers

This event fires when the plugin is loaded, and the plugin is about to show the timers.

Can be used, if you want to extend the timer functionality, and add your own timers.

+ \ No newline at end of file diff --git a/docs/your-first-custom-template/index.html b/docs/your-first-custom-template/index.html index d9c67a86..1f215f68 100644 --- a/docs/your-first-custom-template/index.html +++ b/docs/your-first-custom-template/index.html @@ -10,7 +10,7 @@ - + @@ -21,8 +21,8 @@ Don't worry, it is to be expected, since we told the plugin that we are going to use a custom template, and didn't add anything else to the page.

So, let's go recreate the template_A-template, so we get to know the custom templating.

All the code below should go into a single code block. We won't be using the image, because we can only get the image URL, -not see if it actually contains anything, and we don't want to render broken images.


[eduadmin-detailview customtemplate]

<div class="eduadmin">
<a href="javascript://" onclick="eduGlobalMethods.GoBack('../', event);" class="backLink">
« Go back
</a>
<div class="title">
<h1 class="courseTitle">
[eduadmin-detailinfo coursepublicname]
<small class="courseLevel">
[eduadmin-detailinfo courselevel]
</small>
</h1>
</div>
<hr />
<div class="textblock">
<h3>Course description</h3>
<div>[eduadmin-detailinfo coursedescription]</div>

<h3>Course goal</h3>
<div>[eduadmin-detailinfo coursegoal]</div>

<h3>Target group</h3>
<div>[eduadmin-detailinfo coursetarget]</div>

<h3>Prerequisites</h3>
<div>[eduadmin-detailinfo courseprerequisites]</div>

<h3>After the course</h3>
<div>[eduadmin-detailinfo courseafter]</div>

<h3>Quotes</h3>
<div>[eduadmin-detailinfo coursequote]</div>

</div>
<div class="eventInformation">
<h3>Time</h3>
[eduadmin-detailinfo coursedays],
[eduadmin-detailinfo coursestarttime] - [eduadmin-detailinfo courseendtime]

<h3>Price</h3>
[eduadmin-detailinfo courseprice]
</div>
</div>

[eduadmin-detailinfo courseeventlist]

<div class="eduadmin">
<div class="inquiry">
<a class="inquiry-link" href="[eduadmin-detailinfo courseinquiryurl]">
Send inquiry about this course
</a>
</div>
</div>

- +not see if it actually contains anything, and we don't want to render broken images.


[eduadmin-detailview customtemplate]

<div class="eduadmin">
<a href="javascript://" onclick="eduGlobalMethods.GoBack('../', event);" class="backLink">
« Go back
</a>
<div class="title">
<h1 class="courseTitle">
[eduadmin-detailinfo coursepublicname]
<small class="courseLevel">
[eduadmin-detailinfo courselevel]
</small>
</h1>
</div>
<hr />
<div class="textblock">
<h3>Course description</h3>
<div>[eduadmin-detailinfo coursedescription]</div>

<h3>Course goal</h3>
<div>[eduadmin-detailinfo coursegoal]</div>

<h3>Target group</h3>
<div>[eduadmin-detailinfo coursetarget]</div>

<h3>Prerequisites</h3>
<div>[eduadmin-detailinfo courseprerequisites]</div>

<h3>After the course</h3>
<div>[eduadmin-detailinfo courseafter]</div>

<h3>Quotes</h3>
<div>[eduadmin-detailinfo coursequote]</div>

</div>
<div class="eventInformation">
<h3>Time</h3>
[eduadmin-detailinfo coursedays],
[eduadmin-detailinfo coursestarttime] - [eduadmin-detailinfo courseendtime]

<h3>Price</h3>
[eduadmin-detailinfo courseprice]
</div>
</div>

[eduadmin-detailinfo courseeventlist]

<div class="eduadmin">
<div class="inquiry">
<a class="inquiry-link" href="[eduadmin-detailinfo courseinquiryurl]">
Send inquiry about this course
</a>
</div>
</div>

+ \ No newline at end of file diff --git a/help/index.html b/help/index.html index ed0da242..ea1da16f 100644 --- a/help/index.html +++ b/help/index.html @@ -10,13 +10,13 @@ - +

Need help?

This project is maintained by a dedicated group of people.

- + \ No newline at end of file diff --git a/index.html b/index.html index 7c106a2d..aa77525c 100644 --- a/index.html +++ b/index.html @@ -10,7 +10,7 @@ - + @@ -22,7 +22,7 @@ Use the built-in templates, or create a custom template for your needs!

Customize it to match your needs

With settings to configure how the plugin behaves, you can't go wrong. You can configure what should be visible and not, templates for lists and details, among many other settings available in the plugin.

- + \ No newline at end of file diff --git a/users/index.html b/users/index.html index 1ebf0bc0..56361f66 100644 --- a/users/index.html +++ b/users/index.html @@ -10,13 +10,13 @@ - + - + \ No newline at end of file