Display of start date conditionally

Home Forums Calendar Products Events Calendar PRO Display of start date conditionally

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #26690
    Andrew
    Participant

    Hi there.

    I am editing the events-advanced-list-load-widget-display.php file in my theme for custom display of that widget – works great!
    I want to be able to display start date conditionally as follows:
    If this is a single day event, only display the start date.
    else if this is a multi day event display start and end date.
    …can this be done? If so, can you please advise?
    Many thanks, Andrew.

    #26724
    Barry
    Member

    Hi Andrew. Does something like this meet your requirements? http://pastebin.com/DbW3ksYC

    #26812
    Andrew
    Participant

    Hi Barry.
    Unfortunately not.
    I want to show the start and end date if it is a multiple day event.
    If it is a single day event, I want to show both.
    Any ideas?

    #26819
    Barry
    Member

    To be honest I’m not entirely clear what you are after here:

    If this is a single day event, only display the start date.
    else if this is a multi day event display start and end date.

    That’s what the above template code does – if an event takes place and ends on the same day it shows only the start date. If an event takes place and ends two days later it shows the start and the end date.

    I want to show the start and end date if it is a multiple day event. If it is a single day event, I want to show both.

    So this is confusing me – do you actually mean you want to show both the start and end dates for single events?

    #26845
    Andrew
    Participant

    Sorry, I must have misread your original code.
    Just read through it again and it has the bit in there that I need. Thank you so much 🙂
    This is resolved now.

    #26852
    Barry
    Member

    No problem – happy to have helped!

    #978012
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Display of start date conditionally’ is closed to new replies.