Can I get the individual variables in $venue_details?

Home Forums Calendar Products Events Calendar PRO Can I get the individual variables in $venue_details?

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

    Hi Modern Tribe,

    I am looking at the single_events.php script (and others) and I’m trying to display the content differently. I realized there’s a variable called $venue_details, which seems to concatenate and add tags for address, state, zip, google map, and other useful variables.

    However, I was wondering if we have variables which I can use for each individual piece of this string? I’d like to take each of these segments and apply my own CSS and tags. For example, I’d like to turn the Google Map into a button, not just a link after the text.

    Right now, my $venue_details reports data like this:

    <address>
    <span class="tribe-locality">Rochester</span>
    <span class="tribe-delimiter">,</span>
    <abbr class="tribe-region tribe-events-abbr" title="New York">NY</abbr>
    <span class="tribe-postal-code">14623</span>
    <span class="tribe-country-name">United States</span>
    </span>
    </address>
    <a class="tribe-events-gmap" href="XXX" title="Click to view a Google Map" target="_blank">+ Google Map</a>

    I could apply CSS, but that would only give me so much control. I want control over where the data is presented, since I plan on placing in different areas. If possible, I’d like to separate each piece of content here into different variables. I could cut the heck out of the string using functions, but I figured these variables have to exist somewhere.

    Thanks!
    Brendan

    #1052790
    Cliff
    Member

    Hi Brendan.

    You might want to check out the tribe_get_full_address filter or, if that’s not sufficient, reference our Themer’s Guide.

    I hope that helps get you what you need.

    Thanks!

    #1076592
    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 ‘Can I get the individual variables in $venue_details?’ is closed to new replies.