Skip to content

Commit

Permalink
Fix for CS
Browse files Browse the repository at this point in the history
  • Loading branch information
carstingaxion committed Sep 27, 2024
1 parent 507eb62 commit cfef33b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions docs/developer/custom-url-endpoints/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ Example for a new redirection endpoint like `example.org/event/my-sample-event/o
use GatherPress\Core\Endpoints\Posttype_Single_Endpoint;
use GatherPress\Core\Endpoints\Endpoint_Redirect;
```

```php
new Posttype_Single_Endpoint(
array(
Expand All @@ -123,6 +124,7 @@ Example for a new redirection endpoint like `example.org/event/my-sample-event/o
```php
use GatherPress\Core\Event;
```

```php

/**
Expand Down Expand Up @@ -179,6 +181,7 @@ Example for a new redirection endpoint like `example.org/event/my-sample-event/o
```php
use GatherPress\Core\Endpoints;
```

```php
Endpoints::get_url(
'office365-calendar'
Expand Down
10 changes: 5 additions & 5 deletions docs/developer/theme-customizations/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,19 @@ GatherPress does respect [theme_supports](https://developer.wordpress.org/refere

- When **`automatic-feed-links`** are supported, GatherPress will add `rel="alternate"` links to the `<head>` of each view, with the URLs to the relevant iCal feed links. This will be:

- For all requests (`example.org/*`):
- For all requests (`example.org/*`):
- `example.org/event/feed/ical`

- For singular event requests (`example.org/event/my-sample-event`):
- For singular event requests (`example.org/event/my-sample-event`):
- `example.org/event/feed/ical`
- `example.org/event/my-sample-event/ical`
- `example.org/venue/my-sample-venue/feed/ical` (if its not an Online-Event)
- `example.org/topic/my-sample-topic/feed/ical` (if a topic is selected)

- For singular venue requests (`example.org/venue/my-sample-venue`):
- For singular venue requests (`example.org/venue/my-sample-venue`):
- `example.org/event/feed/ical`
- `example.org/venue/my-sample-venue/feed/ical`

- For topic term requests (`example.org/topic/my-sample-topic`):
- For topic term requests (`example.org/topic/my-sample-topic`):
- `example.org/event/feed/ical`
- `example.org/topic/my-sample-topic/feed/ical`
- `example.org/topic/my-sample-topic/feed/ical`

0 comments on commit cfef33b

Please sign in to comment.