N
N
Nicelogin2016-09-23 13:04:23
CMS
Nicelogin, 2016-09-23 13:04:23

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

1 answer(s)
X
xmoonlight, 2016-09-23
@xmoonlight

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 question

Ask a Question

731 491 924 answers to any question