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

Back and forth in the calendar plugin #128

Closed
Fraenkiman opened this issue Jun 30, 2022 · 2 comments
Closed

Back and forth in the calendar plugin #128

Fraenkiman opened this issue Jun 30, 2022 · 2 comments

Comments

@Fraenkiman
Copy link
Collaborator

Hello, everyone.

Suggested improvements:
Create the ability to jump back and forth in the calendar without having to use the outdated each () function.

Best regards from Berlin

azett added a commit that referenced this issue Aug 14, 2022
…not highlight proper days in previous months :/
@Fraenkiman
Copy link
Collaborator Author

Thought experiment: There is already the function "nextpage, prevpage" in the file fp-includes/core/core.fpdb.class.php

Can't this one be taken as a workaround?
global $fpdb;

	$p = '<span class="calendar-prev"><a href="' . $prevpage . '">&laquo;</a></span>&nbsp;';
	$n = '&nbsp;<span class="calendar-next"><a href="' . $nextpage . '">&raquo;</a></span>';

I did not get it running though

Fraenkiman added a commit to Fraenkiman/flatpress that referenced this issue Oct 6, 2024
- This solves flatpressblog#73 and flatpressblog#128.
- Two new functions which only output a “Next” or “Previous” link if there is at least one entry in the month.
- The “Next”, “Previous” and “Day” links now always contain a 4-digit year.
- The set language is now taken into account when determining the first day of the week.
- Single-digit months are now always two-digit.
Fraenkiman added a commit that referenced this issue Oct 6, 2024
- This solves #73 and #128.
- Two new functions which only output a “Next” or “Previous” link if there is at least one entry in the month.
- The “Next”, “Previous” and “Day” links now always contain a 4-digit year.
- The set language is now taken into account when determining the first day of the week.
- Single-digit months are now always two-digit.
@Fraenkiman
Copy link
Collaborator Author

Solved with 69ef6b0.

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

No branches or pull requests

1 participant