Forum Replies Created
-
AuthorPosts
-
January 12, 2017 at 2:11 am in reply to: Edits in pro/photo/single-event.php and pro/photo/loop.php break the calendar #1217260
Daan
ParticipantHi George.
Or view it like this:<span class="tentoonstelling"></span> <span class="lezing cursus"></span> <span class="dada"></span> <span class="bloemen"></span> <span class="collectie"></span> <span class="kinderen"></span> <span class="PietMondriaan"></span> <span class="BartvanderLeck"></span> <span class="TheovanDoesburg"></span> <span class="Theater"></span> <a class="tribe-event-url" href="<?php echo esc_url( tribe_get_event_link() ); ?>" title="<?php the_title() ?>" rel="bookmark">That last bit was already there.
Also, a few spans works fine, but after a certain about of characters it just fails.
It feels like there is a bottleneck somewhere. Can you tell me where that originates, or what number of characters the cap is at?because this reduced version does work:
<span class="tt"></span><span class="lezing cursus"></span><span class="dada"></span><span class="bloemen"></span><span class="kinderen"></span><span class="pm"></span><span class="Theater"></span> <a class="tribe-event-url" href="<?php echo esc_url( tribe_get_event_link() ); ?>" title="<?php the_title() ?>" rel="bookmark">Happy I solved it, for now, but a bit annoyed at the randomness and the loss of time.
All in all, I feel strongly neutral 😐 https://www.youtube.com/watch?v=ussCHoQttyQRegards,
DaanJanuary 12, 2017 at 1:53 am in reply to: Edits in pro/photo/single-event.php and pro/photo/loop.php break the calendar #1217255Daan
ParticipantHi George,
Thanks for taking some time.https://gist.github.com/DaanDirk/ed158f4d8552930d8ef713313c3c2172
Like I said. Just added a few spans. Look at line 31:<span class="tentoonstelling"></span><span class="lezing cursus"></span><span class="dada"></span><span class="bloemen"></span><span class="collectie"></span><span class="kinderen"></span><span class="PietMondriaan"></span><span class="BartvanderLeck"></span><span class="TheovanDoesburg"></span><span class="Theater"></span><a class="tribe-event-url" href="<?php echo esc_url( tribe_get_event_link() ); ?>" title="<?php the_title() ?>" rel="bookmark">Regards,
DaanDaan
ParticipantHi Josh,
We also needed to add:
add_filter( 'tribe_events_pro_google_maps_api', 'language_filter_embedded_map' );
Else the main map remains without the language string.So the full code now is:
// gmap in set language add_filter( 'tribe_events_google_maps_api', 'language_filter_embedded_map' ); add_filter( 'tribe_events_pro_google_maps_api', 'language_filter_embedded_map' ); function language_filter_embedded_map( $js_maps_api_url ) { $js_maps_api_url = add_query_arg( '&language', 'nl', $js_maps_api_url ); return $js_maps_api_url; }But just now i saw that the single-events map doesn’t work on my mobile device.
Could you look into that? Or should i open another ticket.Hhmm, would be great to have the static map on mobile or under a certain screen width.
https://developers.google.com/maps/documentation/static-maps/Regards,
DaanDaan
ParticipantAlmost there Josh,
It’s like this:
// gmap in nl :-3 add_filter( 'tribe_events_google_maps_api', 'language_filter_embedded_map' ); function language_filter_embedded_map( $js_maps_api_url ) { $js_maps_api_url = add_query_arg( '&language', 'nl', $js_maps_api_url ); return $js_maps_api_url; }But then the main map is still in English.
Hhmm, someone didn’t follow protocol.
Could you check that out?Thanks & regards,
Daan-
This reply was modified 9 years, 5 months ago by
Daan. Reason: typo
Daan
ParticipantThanks Josh!
That’s good news.
DaanDaan
ParticipantHi Josh!
Thanks for letting me know you’re on to it!
Exactly my thoughts up to ‘a little more research’ where i gave up and asked. 🙂Hope to hear for you soon!
DaanDaan
ParticipantHi Josh,
That works great for the link to googlemaps! Thanks.
At least when i replace ‘&language=nl’ with ‘&hl=nl’. 🙂But… not so much for the embedded map.
I guess (but not sure) the string ‘&language=nl’ should be added to the Tribe__Events__Embedded_Maps::instance().
But i don’t quite get how i should get that to work.
Maybe you could shed some light into my darkness? Owhhhh! (My best wolf imitation.)Regards,
DaanDaan
ParticipantHi Nico,
That works great! Thanks.I tried it out and found that:
– all the mini calendars on a page after one with a date set go to the prescribed month.
– categories setting don’t work yet.
– but setting a calendar with the date first and second a calendar with a category works out.
– list beneath the mini calendar does show activities that start after said month.I hope to see more customization options in the future! The start is here!
Thanks again.
DaanDaan
ParticipantAh, must be something in the src/functions/template-tags/google-map.php
/** * Google Map Embed * * Returns an embedded google maps for an event * * @category Events * * @param string $post_id * @param int $width * @param int $height * @param bool $force_load If true, then load the map even if an address is not provided. * * @return string An iframe pulling http://maps.google.com/ for this event */ function tribe_get_embedded_map( $post_id = null, $width = null, $height = null, $force_load = false ) { return Tribe__Events__Embedded_Maps::instance()->get_map( $post_id, $width, $height, $force_load ); }How would I fit in the string: &language=nl
https://developers.google.com/maps/documentation/javascript/examples/map-languageThanks!
Daan
ParticipantHi Nico,
Thanks for helping out!Ah, now i see what tricked me. The fact that they call themselves ‘the events calendar newsletter‘ got me mixed up. (see image)
The green upgrade link on the plugin’s page going here: https://eventcalendarnewsletter.com/the-events-calendar-shortcode/But now I see that this plugin doesn’t have the mini calendar of a specific month either. That setting is just for the list.
I’m making a monthly calendar for 2017, so I’ll have a page for each month. Having a way to show each months program would be great.
Of course I prefer to have search engines to actually see the relevant links of each month. I don’t think that will happen with a js snippet. Would it be possible to make it a feature and serve a certain month straight up? Pretty-please?Regards,
Daan -
This reply was modified 9 years, 5 months ago by
-
AuthorPosts
