Home › Forums › Calendar Products › Events Calendar PRO › Need to Locate Code for Sorting
- This topic has 2 replies, 3 voices, and was last updated 9 years, 11 months ago by
Support Droid.
-
AuthorPosts
-
April 20, 2016 at 9:32 am #1104887
fifteen15studios
ParticipantHi Modern Tribe,
Would you be able to tell me which php scripts are in charge of performing the sorting functions? (We also have Advanced Filter Bar, but I thought I’d put this in Events Calendar Pro.) We’re trying to locate them so we can study them and see how they work and what they’re doing. We’d like to know where the sorting and filtering functions take place (essentially, which part of the script relays the MYSQL functions and shows the results).
We’d also like to know where the script is which lists events at a specific venue? The logic’s pretty straightforward, but there are some other details we want to see.
If you could, please provide the path to each of the files, and if relevant, the name of the specific function. We would really appreciate it!
Thanks!
BrendanApril 21, 2016 at 7:51 am #1105373Brian
MemberHi,
Thanks for using our plugins. I can try to help out here, but we are limited in explaining how the plugins works per our terms and conditions.
For sorting it depends on the view
the-events-calendar/src/Tribe/Query.php
Each View has little differences as well:
the-events-calendar/src/Tribe/Template/Month.php
the-events-calendar/src/Tribe/Template/List.php
the-events-calendar/src/Tribe/Template/Day.php
Pro’s are in this directory:
events-calendar-pro/src/Tribe/Templates
I would look at searching those templates for sort, order, and orderby
Venues
For venues the function for the upcoming events is this: tribe_venue_upcoming_events()Found on line 20 of this file: events-calendar-pro/src/functions/template-tags/venue.php
And look for tribe_include_view_list() on line 1103 of this file: the-events-calendar/src/functions/template-tags/general.php
Unfortunately, that is about all we can provide on this. I would load all the coding into a program like PHPStorm or Notepadd ++ or something else that enables you to search all the files for wording.
Thanks
May 6, 2016 at 9:35 am #1111514Support 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 ‘Need to Locate Code for Sorting’ is closed to new replies.
