Home › Forums › Calendar Products › Events Calendar PRO › Getting raw data from functions
- This topic has 5 replies, 3 voices, and was last updated 10 years, 1 month ago by
Support Droid.
-
AuthorPosts
-
February 20, 2016 at 7:52 pm #1079100
fifteen15studios
ParticipantModern Tribe,
I would like to take apart a couple functions to get to the root text. One is the date and time display, another is the summary.
Is there a way I can take the function in single-events.php which displays the date and time in the format like ”
February 21 @ 7:00 pm – 10:00 pm” and output this as separate variables? I’d rather display the month, then day, then year, then start time, then end time, so I can output this in different tags and also change some of the text inside this. How would I do that?By summary, I’d mostly like to remove the inner tags like div and p so that I can output only the contents. I’d also like to remove hyperlinks. Is there a way I can do this?
Guys, I appreciate all the help you’ve given me (and us) in modifying our interface! It’s come a long way, and if I can send some links privately, I can show you what we’ve done! It’s actually quite surprising!
Thanks,
BrendanFebruary 22, 2016 at 2:31 pm #1080208Geoff B.
MemberGood evening Brendan and welcome back!
Thank you for reaching out to us.
The short answer to your question is yes. You can totally modify the display layer to your liking.
You might want to read our Themer’s guide to do so (if you haven’t already).To summarize, basically you:
- Copy the template file from the view you are interested in changing to the tribe-events folder of your WordPress theme
- You edit the file to your liking
- The edited file will have priority over the built-in view file
As for the offer to see what you have done so far, we are absolutely interested. Please hit us up when you have a chance!
Let me know how that goes.
Best regards,
Geoff B.February 22, 2016 at 3:04 pm #1080238fifteen15studios
ParticipantThanks, Geoff. I appreciate the reply, but that’s nooot quiiite what I had in mind. I’m already doing that so I can theme the single-event.php file a certain way. What I’m asking for, mainly, is how I can break the tribe_events_event_schedule_details() function into components so I can display the variables such as date, start time, end time, and such in a separate variable?
February 22, 2016 at 3:09 pm #1080240fifteen15studios
ParticipantThis reply is private.
February 23, 2016 at 4:41 pm #1081114Geoff B.
MemberGood evening Brendan,
I am sorry I misunderstood what you were asking for, my bad.
As you probably know, the scope of our support when it comes down to customization is unfortunately limited to getting you started 🙂
So, with that in mind, here are a couple of links that should totally get you closer to what you are trying to achieve:
- https://theeventscalendar.com/function/tribe_events_event_schedule_details/
- http://php.net/manual/en/function.explode.php
Pretty nice links! Kudos on that!
Let me know how if that helps.
Best regards,
Geoff B.March 9, 2016 at 8:35 am #1086690Support Droid
KeymasterThis 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. -
AuthorPosts
- The topic ‘Getting raw data from functions’ is closed to new replies.
