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

Add option to combine duplicate footnotes #29

Merged
merged 2 commits into from
Nov 26, 2024

Conversation

jasonyingling
Copy link
Owner

@jasonyingling jasonyingling commented 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.

jasonyingling and others added 2 commits November 26, 2024 09:26
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).
@jasonyingling jasonyingling merged commit 8d89cdf into master Nov 26, 2024
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 this pull request may close these issues.

Combining duplicate footnotes and using the same number for the footnote should be an optional setting
1 participant