Skip to content

Commit fe98cb2

Browse files
committed
Improve: Update tabs
1 parent 174bd39 commit fe98cb2

8 files changed

Lines changed: 12 additions & 12 deletions

File tree

.vitepress/config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export default defineConfig({
7575
{
7676
text: 'Lazy Load for Comments',
7777
items: [
78-
{ text: 'General Settings', link: '/lazy-load-for-comments/general' },
78+
{ text: 'Loading Behaviour', link: '/lazy-load-for-comments/loading-behaviour' },
7979
{ text: 'Load Button', link: '/lazy-load-for-comments/load-button' },
8080
{ text: 'Cache Management', link: '/lazy-load-for-comments/cache' },
8181
{ text: 'Developer Docs', link: '/lazy-load-for-comments/developer-docs' },

index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ features:
3131
- title: Lazy Load for Comments
3232
details: "The Cure for Slow Comments: Documentation for Lazy Load for Comments"
3333
icon: <svg id="fi_4081342" enable-background="new 0 0 512 512" height="30" viewBox="0 0 512 512" width="30" xmlns="http://www.w3.org/2000/svg"><g><path d="m436.31 107.425c-48.24-37.44-112.28-58.06-180.31-58.06-6.2 0-12.37.17-18.5.51-61.08 3.39-117.97 23.52-161.81 57.55-48.81 37.88-75.69 88.42-75.69 142.31 0 48.61 22.29 95.16 62.89 131.62-11.95 27.81-27.25 50.79-45.52 68.36-2.18 2.1-2.89 5.3-1.8 8.12 1.1 2.82 3.78 4.71 6.8 4.79.21 0 .81.01 1.78.01 10.59 0 64.83-1.51 124.87-30.79 28.04 10.11 57.71 16.05 88.47 17.75 6.13.34 12.3.51 18.51.51 68.03 0 132.07-20.63 180.31-58.07 48.81-37.88 75.69-88.42 75.69-142.3 0-53.89-26.88-104.43-75.69-142.31z" fill="#ff3e7a"></path><g><g><path d="m398.32 255.999c0 20.68-16.799 37.5-37.453 37.5-4.375 0-8.579-.75-12.484-2.14-14.532-5.16-24.969-19.06-24.969-35.36s10.437-30.2 24.969-35.36c3.905-1.39 8.11-2.14 12.484-2.14 20.654 0 37.453 16.82 37.453 37.5z" fill="#fff"></path><path d="m398.32 255.999c0 20.68-16.799 37.5-37.453 37.5-4.375 0-8.579-.75-12.484-2.14 14.532-5.16 24.969-19.06 24.969-35.36s-10.437-30.2-24.969-35.36c3.905-1.39 8.11-2.14 12.484-2.14 20.654 0 37.453 16.82 37.453 37.5z" fill="#dcecf4"></path></g><g><path d="m188.586 255.996c0 20.68-16.799 37.5-37.453 37.5-4.375 0-8.579-.75-12.484-2.14-14.532-5.16-24.969-19.06-24.969-35.36s10.437-30.2 24.969-35.36c3.905-1.39 8.11-2.14 12.484-2.14 20.654 0 37.453 16.82 37.453 37.5z" fill="#fff"></path><path d="m188.586 255.996c0 20.68-16.799 37.5-37.453 37.5-4.375 0-8.579-.75-12.484-2.14 14.532-5.16 24.969-19.06 24.969-35.36s-10.437-30.2-24.969-35.36c3.905-1.39 8.11-2.14 12.484-2.14 20.654 0 37.453 16.82 37.453 37.5z" fill="#dcecf4"></path></g><g><path d="m293.455 255.996c0 20.68-16.799 37.5-37.453 37.5-4.375 0-8.579-.75-12.484-2.14-14.532-5.16-24.969-19.06-24.969-35.36s10.437-30.2 24.969-35.36c3.905-1.39 8.11-2.14 12.484-2.14 20.654 0 37.453 16.82 37.453 37.5z" fill="#fff"></path><path d="m293.455 255.996c0 20.68-16.799 37.5-37.453 37.5-4.375 0-8.579-.75-12.484-2.14 14.532-5.16 24.969-19.06 24.969-35.36s-10.437-30.2-24.969-35.36c3.905-1.39 8.11-2.14 12.484-2.14 20.654 0 37.453 16.82 37.453 37.5z" fill="#dcecf4"></path></g></g><path d="m512 249.735c0 53.88-26.88 104.42-75.69 142.3-48.24 37.44-112.28 58.07-180.31 58.07-6.21 0-12.38-.17-18.51-.51 61.08-3.39 117.98-23.53 161.82-57.56 48.81-37.88 75.69-88.42 75.69-142.3 0-53.89-26.88-104.43-75.69-142.31-43.84-34.03-100.73-54.16-161.81-57.55 6.13-.34 12.3-.51 18.5-.51 68.03 0 132.07 20.62 180.31 58.06 48.81 37.88 75.69 88.42 75.69 142.31z" fill="#b2006e"></path></g></svg>
34-
link: ./lazy-load-for-comments/general
34+
link: ./lazy-load-for-comments/loading-behaviour
3535
---
3636

lazy-load-for-comments/cache.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Cache Management
44

55
# Cache Management
66

7-
The Cache section lets you control how Lazy Load for Comments stores the rendered comments markup, and gives you a quick way to clear it. You can find it under **Comments → Lazy Load** in your WordPress admin, on the **General** tab.
7+
The Cache section lets you control how Lazy Load for Comments stores the rendered comments markup, and gives you a quick way to clear it. You can find it under **Comments → Lazy Load** in your WordPress admin, inside the **Cache** section of the settings page.
88

99
[![Cache Management](/lazy-load-for-comments/cache.png)](/lazy-load-for-comments/cache.png)
1010

lazy-load-for-comments/developer-docs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ script to fetch the comments on click or scroll.
312312

313313
Clears every cached comments-block transient.
314314

315-
* **Permission:** `manage_options`.
315+
* **Permission:** routed through `DuckDev\LazyComments\Utils\Permission::has_access()` — defaults to `manage_options`, filterable via [`lazy_load_for_comments_capability`](#lazy-load-for-comments-capability) and [`lazy_load_for_comments_has_access`](#lazy-load-for-comments-has-access).
316316
* **Response (200):** `{ "success": true, "message": "Comments cache cleared." }`
317317

318318
## Placeholder helper

lazy-load-for-comments/load-button.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ title: Load Button Settings
44

55
# Load Button Settings
66

7-
The Load Button settings let you customise the **Load Comments** button. You can find them under **Comments → Lazy Load** in your WordPress admin, on the **Load Button** tab.
7+
The Load Button settings let you customise the **Load Comments** button. You can find them under **Comments → Lazy Load** in your WordPress admin, inside the **Load Button** section of the settings page.
88

99
[![Load Button Settings](/lazy-load-for-comments/load-button.png)](/lazy-load-for-comments/load-button.png)
1010

1111
::: info Note
12-
These settings only take effect when the **Load Method** on the [General Settings](./general) tab is set to **On Button Click**. With the *On Scroll* method there is no button to customise.
12+
These settings only take effect when the **Load Method** in the [Loading Behaviour](./loading-behaviour) section is set to **On Button Click**. With the *On Scroll* method there is no button to customise.
1313
:::
1414

1515
## Button Text

lazy-load-for-comments/general.md renamed to lazy-load-for-comments/loading-behaviour.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
2-
title: General Settings
2+
title: Loading Behaviour
33
---
44

5-
# General Settings
5+
# Loading Behaviour
66

7-
The General Settings section controls how and when comments are lazy loaded on your posts and pages. You can find it under **Comments → Lazy Load** in your WordPress admin, on the **General** tab.
7+
The Loading Behaviour section controls how and when comments are lazy loaded on your posts and pages. You can find it under **Comments → Lazy Load** in your WordPress admin, inside the **Loading Behaviour** section of the settings page.
88

9-
[![General Settings](/lazy-load-for-comments/general-settings.png)](/lazy-load-for-comments/general-settings.png)
9+
[![Loading Behaviour](/lazy-load-for-comments/loading-behaviour.png)](/lazy-load-for-comments/loading-behaviour.png)
1010

1111
## Load Method
1212

@@ -18,7 +18,7 @@ This is a dropdown (select) input with three options:
1818
Comments are loaded automatically as soon as the visitor scrolls down close to the comments area. This is the default option and gives the smoothest experience.
1919

2020
### On Button Click
21-
Comments are not loaded until the visitor clicks the **Load Comments** button. The button can be customised on the [Load Button Settings](./load-button) tab.
21+
Comments are not loaded until the visitor clicks the **Load Comments** button. The button can be customised in the [Load Button](./load-button) section.
2222

2323
### Disabled (load normally)
2424
Lazy loading is turned off completely. Comments load together with the rest of the page, exactly like the default WordPress behaviour.
@@ -55,4 +55,4 @@ This is an on/off toggle.
5555

5656
::: tip Recommended
5757
Keep this setting enabled. Lazy loaded comments are fetched with JavaScript, and leaving this on ensures search engines still see the comment content for SEO.
58-
:::
58+
:::
-4.73 KB
Loading
File renamed without changes.

0 commit comments

Comments
 (0)