Answer the question
In order to leave comments, you need to log in
How can I implement the function of changing the text even / odd week on the site?
Hey! It is necessary to implement the function of changing the text "even / odd week" on the site. Perhaps there are modules with calendars complete with such a change at a given time? Perhaps someone has already done something similar, what solutions did you use? I suspect that it is possible to implement this with a code of a couple of lines, but Google does not help me with this, since I most likely am not doing the search query correctly, I don’t know what this looping is called. Can you tell me what solution can be used?
Answer the question
In order to leave comments, you need to log in
You need to get the week number using PHP functions and then insert the display of the desired text according to the condition of the remainder of the division x%2===0 - even, otherwise - odd.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question