Skip to content

Commit b37c0ad

Browse files
author
Chris Gårdenberg
committed
docs: Update documentation, remove showmore from listview, as it was never implemented
1 parent f760e70 commit b37c0ad

3 files changed

Lines changed: 27 additions & 28 deletions

File tree

PLUGIN-CHECKSUM

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
eb2eb5520db5a002e3bced39960938df
1+
c70916b4a8d51e008db5856a81caa2f0

content/template/listTemplate/list-courses.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@
127127
$show_descr = EDU()->is_checked( 'eduadmin-showCourseDescription', true );
128128
$show_event_venue = EDU()->is_checked( 'eduadmin-showEventVenueName', false );
129129
$currency = EDU()->get_option( 'eduadmin-currency', 'SEK' );
130+
131+
$has_hidden_dates = false;
130132
?>
131133
<div class="eduadmin-courselistoptions" data-subject="<?php echo esc_attr( $attributes['subject'] ); ?>"
132134
data-subjectid="<?php echo esc_attr( $attributes['subjectid'] ); ?>"

new_website/docs/shortcodes.md

Lines changed: 24 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -169,32 +169,31 @@ Currently this shortcode doesn't have any attributes to customize it.
169169

170170
One of the main shortcodes, as it shows the end users a list of your courses/events.
171171

172-
| Attribute | Value type | Default value |
173-
| :-------------- | :-----------------------------------------------: | :-----------: |
172+
| Attribute | Value type | Default value |
173+
| :-------------- |:-----------------------------------:| :-----------: |
174174
| template | string (`template_A`, `template_B`) | template_A |
175-
| category | string | _null_ |
176-
| categorydeep | string | _null_ |
177-
| subject | string | _null_ |
178-
| subjectid | integer | _null_ |
179-
| hidesearch | boolean | false |
180-
| onlyevents | boolean | false |
181-
| onlyempty | boolean | false |
182-
| numberofevents | numeric | _null_ |
183-
| mode | string | _null_ |
184-
| orderby | string | _null_ |
185-
| order | string (`ASC`, `DESC`) | _null_ |
186-
| showsearch | boolean | _null_ |
187-
| showmore | boolean | _null_ |
188-
| showcity | boolean | true |
189-
| showbookbtn | boolean | true |
190-
| showreadmorebtn | boolean | true |
191-
| city | integer | _null_ |
192-
| courselevel | integer | _null_ |
193-
| searchCourse | string | _null_ |
194-
| filtercity | string | _null_ |
195-
| hideimages | boolean | _null_ |
196-
| showimages | boolean | _null_ |
197-
| ondemand | boolean | false |
175+
| category | string | _null_ |
176+
| categorydeep | string | _null_ |
177+
| subject | string | _null_ |
178+
| subjectid | integer | _null_ |
179+
| hidesearch | boolean | false |
180+
| onlyevents | boolean | false |
181+
| onlyempty | boolean | false |
182+
| numberofevents | numeric | _null_ |
183+
| mode | string | _null_ |
184+
| orderby | string | _null_ |
185+
| order | string (`ASC`, `DESC`) | _null_ |
186+
| showsearch | boolean | _null_ |
187+
| showcity | boolean | true |
188+
| showbookbtn | boolean | true |
189+
| showreadmorebtn | boolean | true |
190+
| city | integer | _null_ |
191+
| courselevel | integer | _null_ |
192+
| searchCourse | string | _null_ |
193+
| filtercity | string | _null_ |
194+
| hideimages | boolean | _null_ |
195+
| showimages | boolean | _null_ |
196+
| ondemand | boolean | false |
198197

199198
The `template`-attribute lets you override the default setting for what template the list should use.
200199

@@ -226,8 +225,6 @@ The `orderby`-attribute gives you the possibility to change the sort order of th
226225

227226
`showsearch` will force the search bar to be visible.
228227

229-
`showmore` will enable the _Show more_ link and limit the amount of visible results.
230-
231228
The `showcity`-attribute will show the city where the event is held (if applicable)
232229

233230
And the `showbookbtn`-attribute will decide if you want to show the _Book_-button in the event list.

0 commit comments

Comments
 (0)