• Resolved gigapec

    (@gigapec)


    I’m trying to use CM Tooltip Glossary with The Events Calendar.

    The latter plugin uses HTML5, namely <script type=”text/html”>.

    The problem is that PHP’s DOMDocument (used by CMTG to replace glossary terms) does not support that and breaks the HTML.

    For example,

    <script type="text/html" id="tribe_tmpl_month_mobile">
    	<div class="tribe-events-mobile tribe-clearfix tribe-events-mobile-event-[[=eventId]][[ if(categoryClasses.length) { ]] [[= categoryClasses]][[ } ]]">
    		<h4 class="summary">
    			<a href="[[=permalink]]" title="[[=title]]" rel="bookmark">[[=title]]</a>
    		</h4>
    
    		<div class="tribe-events-event-body">
    			<div class="tribe-events-event-schedule-details">
    				<span class="tribe-event-date-start">[[=dateDisplay]] </span>
    			</div>
    			[[ if(imageSrc.length) { ]]
    			<div class="tribe-events-event-image">
    				<a href="[[=permalink]]" title="[[=title]]">
    					<img src="[[=imageSrc]]" alt="[[=title]]" />
    				</a>
    			</div>
    			[[ } ]]
    			[[ if(excerpt.length) { ]]
    			<div class="tribe-event-description"> [[=raw excerpt]] </div>
    			[[ } ]]
    			<a href="[[=permalink]]" rel="bookmark">[[=i18n.find_out_more]]</a>
    		</div>
    	</div>
    </script>

    gets replaced to

    <script type="text/html" id="tribe_tmpl_month_mobile">
    	<div class="tribe-events-mobile tribe-clearfix tribe-events-mobile-event-[[=eventId]][[ if(categoryClasses.length) { ]] [[= categoryClasses]][[ } ]]">
    		<h4 class="summary">
    			<a href="[[=permalink]]" title="[[=title]]" rel="bookmark">[[=title]]
    
    		<div class="tribe-events-event-body">
    			<div class="tribe-events-event-schedule-details">
    				<span class="tribe-event-date-start">[[=dateDisplay]]
    			</script></div>
    			[[ if(imageSrc.length) { ]]
    			<div class="tribe-events-event-image">
    				<a href="[[=permalink]]" title="[[=title]]">
    					<img src="[[=imageSrc]]" alt="[[=title]]" />
    				</a>
    			</div>
    			[[ } ]]
    			[[ if(excerpt.length) { ]]
    			<div class="tribe-event-description"> [[=raw excerpt]] </div>
    			[[ } ]]
    			<a href="[[=permalink]]" rel="bookmark">[[=i18n.find_out_more]]</a>
    		</div>
    • This topic was modified 9 years, 9 months ago by gigapec.
Viewing 1 replies (of 1 total)
  • Plugin Author CreativeMindsSolutions

    (@creativemindssolutions)

    Hi gigapec,

    Unfortunately as you probably understand we can’t do anything about the DOMDocument, so the only thing I can suggest is wrapping the content of Event Calendar with [glossary_exclude] shortcode.

    Best,
    CM Plugins

Viewing 1 replies (of 1 total)

The topic ‘is not supported.’ is closed to new replies.