• Resolved manuelkuhs

    (@manuelkuhs)


    I have the following in the event display builder:

    <div class="panel panel-default">
    <div class="panel-heading">
    <h3 class="panel-title">[event-title]</h3>
    </div>
    <div class="panel-body">
    <div><span>Starts in:</span> [start-human]
    ([start-date] - [start-time])</div>
    <div><span>Ends: </span>[if-multi-day] [end-date] -[/if-multi-day]
    [end-time]</div>
    </div>
    </div>

    For events that do NOT have a description, it fails to output [end-time] – it just outputs blank.

    Also perhaps related, I’ve noticed that if I put in “custom” HTML attributes, it filters them out when saving. E.g. if I give a rel attribute to a attr tag.

    http://wordpress.org/plugins/google-calendar-events/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Ross Hanney

    (@rosshanney)

    Hello,

    Apologies for the delayed reply.

    Try adding a space between the </span> and [if-multi-day] shortcode on the 8th line, so it looks like this:

    <div><span>Ends: </span> [if-multi-day] [end-date] -[/if-multi-day]
    Plugin Contributor Ross Hanney

    (@rosshanney)

    Regarding the filtered attributes; the plugin runs the event display builder stuff through the WordPress KSES filters, which use a whitelist of allowed tags and attributes.

    You can add to the whitelist via a small functionality plugin, if you like. I wrote an example one that adds microdata stuff to the whitelist.

    Thread Starter manuelkuhs

    (@manuelkuhs)

    Great, adding the space made the conditional work, thanks!

    Also, adjusting the gist worked for preventing rel tags being filtered.

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Conditionals not working properly’ is closed to new replies.