Need to Locate Code for Sorting

Home Forums Calendar Products Events Calendar PRO Need to Locate Code for Sorting

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1104887
    fifteen15studios
    Participant

    Hi 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!
    Brendan

    #1105373
    Brian
    Member

    Hi,

    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

    #1111514
    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 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Need to Locate Code for Sorting’ is closed to new replies.