View file upload/src/addons/ForoAgency/ColoredUsername/_data/template_modifications.xml

File size: 8.86Kb
<?xml version="1.0" encoding="utf-8"?>
<template_modifications>
  <modification type="public" template="PAGE_CONTAINER" modification_key="autoCompleteListUsernameColor" description="Username color member find" execution_order="10" enabled="1" action="str_replace">
    <find><![CDATA[</body>]]></find>
    <replace><![CDATA[<xf:js src="foroagency/coloredusername/index.js" />]]></replace>
  </modification>
  <modification type="public" template="PAGE_CONTAINER" modification_key="fa_cue_visitorMenu" description="Visitor menu" execution_order="10" enabled="1" action="str_replace">
    <find><![CDATA[<span class="p-navgroup-linkText">{$xf.visitor.username}</span>]]></find>
    <replace><![CDATA[<xf:if is="{$xf.options.fa_cue_locations.visitor_menu}">
	<span class="p-navgroup-linkText username--style{$xf.visitor.display_style_group_id}">{$xf.visitor.username}</span>
<xf:else />
	$0
</xf:if>]]></replace>
  </modification>
  <modification type="public" template="node_list_category" modification_key="fa_cue_latestPostCategory" description="Forum List - Category latest post" execution_order="10" enabled="1" action="str_replace">
    <find><![CDATA[<li class="node-extra-user"><xf:username user="{$extras.LastPostUser}" /></li>]]></find>
    <replace><![CDATA[<xf:if is="{$xf.options.fa_cue_locations.fl_latestCategoryPost}">
	<li class="node-extra-user"><xf:username user="{$extras.LastPostUser}" rich="true" /></li>
<xf:else />
	$0
</xf:if>]]></replace>
  </modification>
  <modification type="public" template="node_list_forum" modification_key="fa_cue_latestPostForum" description="Forum List - Forum latest post" execution_order="10" enabled="1" action="str_replace">
    <find><![CDATA[<li class="node-extra-user"><xf:username user="{$extras.LastPostUser}" defaultname="{$extras.last_post_username}" /></li>]]></find>
    <replace><![CDATA[<xf:if is="{$xf.options.fa_cue_locations.fl_latestForumPost}">
	<li class="node-extra-user"><xf:username user="{$extras.LastPostUser}" defaultname="{$extras.last_post_username}" rich="true" /></li>
<xf:else />
	$0
</xf:if>]]></replace>
  </modification>
  <modification type="public" template="search_result_post" modification_key="fa_cue_searchPost" description="Search Result - Post" execution_order="10" enabled="1" action="str_replace">
    <find><![CDATA[<xf:username user="{$post.User}" defaultname="{$post.username}" />]]></find>
    <replace><![CDATA[<xf:if is="{$xf.options.fa_cue_locations.sr_post}">
	<xf:username user="{$post.User}" defaultname="{$post.username}" rich="true" />
<xf:else />
	$0
</xf:if>]]></replace>
  </modification>
  <modification type="public" template="search_result_profile_post" modification_key="fa_cue_searchProfilePost" description="Search Result - Profile post" execution_order="10" enabled="1" action="str_replace">
    <find><![CDATA[<xf:username user="{$profilePost.User}" defaultname="{$profilePost.username}" />]]></find>
    <replace><![CDATA[<xf:if is="{$xf.options.fa_cue_locations.sr_profile_post}">
	<xf:username user="{$profilePost.User}" defaultname="{$profilePost.username}" rich="true" />
<xf:else />
	$0
</xf:if>]]></replace>
  </modification>
  <modification type="public" template="search_result_profile_post_comment" modification_key="fa_cue_searchProfilePostComment" description="Search Result - Profile post comment" execution_order="10" enabled="1" action="str_replace">
    <find><![CDATA[<xf:username user="{$comment.User}" defaultname="{$comment.username}" />]]></find>
    <replace><![CDATA[<xf:if is="{$xf.options.fa_cue_locations.sr_profile_post_comment}">
	<xf:username user="{$comment.User}" defaultname="{$comment.username}" rich="true" />
<xf:else />
	$0
</xf:if>]]></replace>
  </modification>
  <modification type="public" template="search_result_resource" modification_key="fa_cue_searchResource" description="Search Result - Resource" execution_order="10" enabled="1" action="str_replace">
    <find><![CDATA[<li><xf:username user="{$resource.User}" defaultname="{$resource.username}" /></li>]]></find>
    <replace><![CDATA[<xf:if is="{$xf.options.fa_cue_locations.sr_resource}">
	<li><xf:username user="{$resource.User}" defaultname="{$resource.username}" rich="true" /></li>
<xf:else />
	$0
</xf:if>]]></replace>
  </modification>
  <modification type="public" template="search_result_resource_update" modification_key="fa_cue_searchResourceUpdate" description="Search Result - Resource update" execution_order="10" enabled="1" action="str_replace">
    <find><![CDATA[<xf:username user="{$resource.User}" defaultname="{$resource.username}" />]]></find>
    <replace><![CDATA[<xf:if is="{$xf.options.fa_cue_locations.sr_resource_update}">
	<xf:username user="{$resource.User}" defaultname="{$resource.username}" rich="true" />
<xf:else />
	$0
</xf:if>]]></replace>
  </modification>
  <modification type="public" template="search_result_thread" modification_key="fa_cue_searchThread" description="Search Result - Thread" execution_order="10" enabled="1" action="str_replace">
    <find><![CDATA[<xf:username user="{$thread.User}" defaultname="{$thread.username}" />]]></find>
    <replace><![CDATA[<xf:if is="{$xf.options.fa_cue_locations.sr_thread}">
	<xf:username user="{$thread.User}" defaultname="{$thread.username}" rich="true" />
<xf:else />
	$0
</xf:if>]]></replace>
  </modification>
  <modification type="public" template="thread_list_macros" modification_key="fa_cue_newPosts" description="New Posts" execution_order="10" enabled="1" action="str_replace">
    <find><![CDATA[<li>{{ phrase('latest_x', {'name': $thread.last_post_cache.username}) }}</li>]]></find>
    <replace><![CDATA[<xf:if is="{$xf.options.fa_cue_locations.new_posts}">
	<xf:set var="$richUsername"><xf:username user="$thread.LastPoster" rich="true" /></xf:set>
	<li>{{ phrase('latest_x', {'name': $richUsername}) }}</li>
<xf:else />
	$0
</xf:if>]]></replace>
  </modification>
  <modification type="public" template="thread_list_macros" modification_key="fa_cue_newThreads" description="New Threads" execution_order="10" enabled="1" action="str_replace">
    <find><![CDATA[<li>{{ phrase('started_by_x', {'name': $thread.username}) }}</li>]]></find>
    <replace><![CDATA[<xf:if is="{$xf.options.fa_cue_locations.new_threads}">
	<xf:set var="$richUsername"><xf:username user="$thread.User" rich="true" /></xf:set>
	<li>{{ phrase('started_by_x', {'name': $richUsername}) }}</li>
<xf:else />
	$0
</xf:if>]]></replace>
  </modification>
  <modification type="public" template="thread_list_macros" modification_key="fa_cue_threadListAuthor" description="Thread List - Author" execution_order="10" enabled="1" action="str_replace">
    <find><![CDATA[<xf:username user="$thread.User" defaultname="{$thread.username}" />]]></find>
    <replace><![CDATA[<xf:if is="{$xf.options.fa_cue_locations.tl_author}">
	<xf:username user="$thread.User" defaultname="{$thread.username}" rich="true" />
<xf:else />
	$0
</xf:if>]]></replace>
  </modification>
  <modification type="public" template="thread_list_macros" modification_key="fa_cue_threadListLastPost" description="Thread List - Last post" execution_order="10" enabled="1" action="str_replace">
    <find><![CDATA[<xf:username user="{$thread.LastPoster}" defaultname="{$thread.last_post_username}" />]]></find>
    <replace><![CDATA[<xf:if is="{$xf.options.fa_cue_locations.tl_last_post}">
	<xf:username user="{$thread.LastPoster}" defaultname="{$thread.last_post_username}" rich="true" />
<xf:else />
	$0
</xf:if>]]></replace>
  </modification>
  <modification type="public" template="widget_forum_statistics" modification_key="fa_cue_latestUser" description="Forum Statistics - Latest user" execution_order="10" enabled="1" action="str_replace">
    <find><![CDATA[<xf:username user="{$forumStatistics.latestUser}" />]]></find>
    <replace><![CDATA[<xf:if is="{$xf.options.fa_cue_locations.fs_latest_user}">
	<xf:username user="{$forumStatistics.latestUser}" rich="true" />
<xf:else />
	$0
</xf:if>]]></replace>
  </modification>
  <modification type="public" template="xfrm_resource_list_macros" modification_key="fa_cue_resourceListAuthor" description="Resource List - Author" execution_order="10" enabled="1" action="str_replace">
    <find><![CDATA[<li><xf:username user="$resource.User" defaultname="{$resource.username}" /></li>]]></find>
    <replace><![CDATA[<xf:if is="{$xf.options.fa_cue_locations.rl_author}">
	<li><xf:username user="$resource.User" defaultname="{$resource.username}" rich="true" /></li>
<xf:else />
	$0
</xf:if>]]></replace>
  </modification>
  <modification type="public" template="xfrm_resource_view" modification_key="fa_cue_resourceViewAuthor" description="Resource View - Author" execution_order="10" enabled="1" action="str_replace">
    <find><![CDATA[<xf:username user="{$resource.User}" defaultname="{$resource.username}" />]]></find>
    <replace><![CDATA[<xf:if is="{$xf.options.fa_cue_locations.rv_author}">
	<xf:username user="{$resource.User}" defaultname="{$resource.username}" rich="true" />
<xf:else />
	$0
</xf:if>]]></replace>
  </modification>
</template_modifications>