Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combining duplicate footnotes and using the same number for the footnote should be an optional setting #28

Closed
jasonyingling opened this issue Nov 26, 2024 · 0 comments · Fixed by #29

Comments

@jasonyingling
Copy link
Owner

Footnotes should only use the same number and be combined into a single footnote in the after content if the user selects a setting in the options page to "Combine duplicate footnotes"

jasonyingling added a commit that referenced this issue Nov 26, 2024
Fixes #28

Add an option to combine duplicate footnotes and use the same number for the footnote.

* Add a new checkbox input for "Combine duplicate footnotes" in the form in `easy-footnotes-admin.php`.
* Update the `$updateOptions` array and the `$easyFootnoteLabel` and `$easyFootnoteCheck` variables in `easy-footnotes-admin.php` to include the new setting.
* Add a check for the new setting in the `easy_footnote_shortcode` function in `easy-footnotes.php`.
* Update the logic in the `easy_footnote_shortcode` function in `easy-footnotes.php` to handle combining duplicate footnotes based on the new setting.
* Add a new setting to the `$footnoteSettings` array in `easy-footnotes.php` for "combine_duplicate_footnotes".

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/jasonyingling/easy-footnotes/issues/28?shareId=XXXX-XXXX-XXXX-XXXX).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant