Hi, i want to override the files:
eventON/includes/class-calendar_generator.php
eventON/includes/eventon_eventCard.php
Is it possible? I want to change some options like the “Driving directions”, i want to use the geo lat & long instead of the address. I’ve changed the code and works, but i want to put it in child theme because if I update the plugin i will lose all the changes. Regards.
Mar 12,2017 AT 10:38AM - 4 years ago -Thank you for your messages, I am going to assign this ticket to Ashan and he will be able to take it from here and find you a solution. Please allow some time for him to get back to you, we greatly appreciate your patience and thank you for being a eventon customer!
Nope this is not a duplicatable file. If you want to send the code I can implement it in there for the next update so that it will work for you as well 🙂
Thanks for the reply Ashan. It’s only a small change. I made it because the “Get directions” button uses the google maps URL + address but I have some event locations that doesn’t have a real address… That’s why I prefer to use the latitude & longitude of the location.
Regards! 🙂
If you wouldnt mind sharing the changes you did I can include them in eventon so others in same need can also benefit from this 🙂
@Pacadia , Can you share the changes you made? This mod would be perfect for a site I’m working on where the locations do not have street address, just LAT & LONG
I dont think he was going to share it 🙂
Here is how to do it:
file: eventon/includes/class-calendar_generator.php
This change is for eventon 2.5.3 version
Here is the new code
// GET directions
if(!empty($LocTermMeta[‘location_lat’]) && !empty($LocTermMeta[‘location_lon’])){
$_eventcard[‘getdirection’] = array(‘fromaddress’=>$LocTermMeta[‘location_lat’].’,’.$LocTermMeta[‘location_lon’]);
}
if($location_address ){
$_eventcard[‘getdirection’] = array(‘fromaddress’=>$location_address);
}