Ozzy47
Well-known member
I have this regex,
It matches just about everything I am looking for in the
The only thing that is not included it the closing </xf:if> tag, and that needs to be included.
<xf:if is="\$post\.edit_count && \$post\.canViewHistory\(\)".*\/>
It matches just about everything I am looking for in the
post_macros
template:
HTML:
<xf:if is="$post.edit_count && $post.canViewHistory()">
<a href="{{ link('posts/history', $post) }}"
class="actionBar-action actionBar-action--history actionBar-action--menuItem"
data-xf-click="toggle"
data-target="#js-post-{$post.post_id} .js-historyTarget"
data-menu-closer="true">{{ phrase('history') }}</a>
<xf:set var="$hasActionBarMenu" value="{{ true }}" />
</xf:if>
The only thing that is not included it the closing </xf:if> tag, and that needs to be included.