View file upload/src/addons/MMO/Hide/_data/templates.xml

File size: 14.02Kb
<?xml version="1.0" encoding="utf-8"?>
<templates>
  <template type="admin" title="mh_hide_option_template_mhUserGroupsDefaultSortOrder" version_id="2010770" version_string="2.1.7"><![CDATA[<xf:formrow rowtype="input"
			label="{$option.title}"
			hint="{$hintHtml}"
			explain="{$explainHtml}"
			html="{$listedHtml}">
	<div class="inputPair">
		<xf:select name="{$inputName}[order]" value="{$option.option_value.order}" class="input--inline">
			<xf:option value="title">{{ phrase('title') }}</xf:option>
			<xf:option value="user_group_id">{{ phrase('mh_hide_user_group_id') }}</xf:option>
		</xf:select>
		<xf:select name="{$inputName}[direction]" value="{$option.option_value.direction}"
				   class="input--inline">
			<xf:option value="asc" label="{{ phrase('ascending') }}" />
			<xf:option value="desc" label="{{ phrase('descending') }}" />
		</xf:select>
	</div>
</xf:formrow>]]></template>
  <template type="public" title="mh_bb_code_hide" version_id="2010470" version_string="2.1.4"><![CDATA[<xf:css src="bb_code.less" />

<xf:if is="property('mh_block_type')">
	<div class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote">
		<div class="bbCodeBlock-title">
			{$title}
		</div>
		<xf:if is="$visible">
			<div class="bbCodeBlock-content">
				{$content}
			</div>
		</xf:if>
	</div>
	<xf:else />
	<xf:css src="mh_bb_code_hide.less" />
	<div class="bbCodeBlock bbCodeBlock--hide bbCodeBlock--{{ $visible ? 'visible' : 'hidden' }}">
		<div class="bbCodeBlock-title">
			{$title}
		</div>
		<xf:if is="$visible">
			<div class="bbCodeBlock-content">
				{$content}
			</div>
		</xf:if>
	</div>
</xf:if>]]></template>
  <template type="public" title="mh_bb_code_hide.less" version_id="2010470" version_string="2.1.4"><![CDATA[.bbCodeBlock--hidden {
	.xf-mh_block_hidden();
}

.bbCodeBlock--visible {
	.xf-mh_block_shown();
}]]></template>
  <template type="public" title="mh_hide_auth_or_register" version_id="2010670" version_string="2.1.6"><![CDATA[<xf:css src="mh_hide_auth_or_register.less" />

<div class="block-mhhide block-mhhide--link">
	{{ phrase('mh_auth_or_register', {
		'login': link('login'),
		'register': link('register') })
	}}
</div>]]></template>
  <template type="public" title="mh_hide_auth_or_register.less" version_id="2010670" version_string="2.1.6"><![CDATA[.block-mhhide {
	margin: @xf-messagePaddingSmall 0;
	padding: @xf-messagePaddingSmall @xf-messagePadding;
	
	a,
	a:hover
	{
		.xf-linkColor();
	}
	
	&:first-child
	{
		margin-top: 0;
	}

	&:before
	{
		display: inline-block;
		.m-faBase();
		padding-right: .2em;
		font-size: 125%;
	}
	
	&.block-mhhide--link
	{ 
		.xf-mh_hide_link_from_guests_error_link(); 
	}
}]]></template>
  <template type="public" title="mh_hide_editor" version_id="2010970" version_string="2.1.9"><![CDATA[<script class="js-mhHideEditorConfig" type="application/json">
	{$mhHide|json|raw}
</script>
<xf:js src="MMO/Hide/editor.js" addon="MMO/Hide" min="1"/>]]></template>
  <template type="public" title="mh_hide_editor_dialog_club" version_id="2010670" version_string="2.1.6"><![CDATA[<xf:title>{{ phrase('mh_dialog_hide_club_title') }} </xf:title>

<xf:set var="$fields">	
	<xf:macro template="mh_hide_editor_dialog_macros" name="editor_row" 
			  arg-label="{{ phrase('mh_dialog_hide_club_content') }}" />
</xf:set>

<xf:macro template="mh_hide_editor_dialog_macros" name="form" 
		  arg-id="hide"
		  arg-fields="{$fields}" />]]></template>
  <template type="public" title="mh_hide_editor_dialog_days" version_id="2010670" version_string="2.1.6"><![CDATA[<xf:title>{{ phrase('mh_dialog_hide_days_title') }} </xf:title>

<xf:set var="$fields">
	<xf:macro template="mh_hide_editor_dialog_macros" name="number_row" 
			  arg-label="{{ phrase('mh_dialog_hide_days_label') }}"
			  arg-explain="{{ phrase('mh_dialog_hide_days_label') }}" />
	
	<xf:macro template="mh_hide_editor_dialog_macros" name="editor_row" 
			  arg-label="{{ phrase('mh_dialog_hide_days_content') }}" />
</xf:set>

<xf:macro template="mh_hide_editor_dialog_macros" name="form" 
		  arg-id="days"
		  arg-fields="{$fields}" />]]></template>
  <template type="public" title="mh_hide_editor_dialog_groups" version_id="2010770" version_string="2.1.7"><![CDATA[<xf:title>{{ phrase('mh_dialog_hide_groups_title') }} </xf:title>

<xf:set var="$fields">
	<xf:checkboxrow id="editor_hide_id_count"  
					value="{$groupPrefix.group_id}"
					listclass="listColumns"
					label="{{ phrase('mh_dialog_hide_groups_label') }}"
					listclass="listColumns mh_cols">
		<xf:hint>
			<xf:checkbox standalone="true">
				<xf:option check-all="#editor_hide_id_count" label="{{ phrase('select_all') }}" />
			</xf:checkbox>
		</xf:hint>
		
		<xf:options source="$xf.app.em.getRepository('MMO\Hide:UserGroup').getUserGroupTitlePairs()" />
	</xf:checkboxrow>
	
	<xf:macro template="mh_hide_editor_dialog_macros" name="editor_row" 
			  arg-label="{{ phrase('mh_dialog_hide_groups_content') }}" />
</xf:set>

<xf:macro template="mh_hide_editor_dialog_macros" name="form" 
		  arg-id="groups"
		  arg-fields="{$fields}" />]]></template>
  <template type="public" title="mh_hide_editor_dialog_hide" version_id="2010670" version_string="2.1.6"><![CDATA[<xf:title>{{ phrase('mh_dialog_hide_hide_title') }} </xf:title>

<xf:set var="$fields">	
	<xf:macro template="mh_hide_editor_dialog_macros" name="editor_row" 
			  arg-label="{{ phrase('mh_dialog_hide_hide_content') }}" />
</xf:set>

<xf:macro template="mh_hide_editor_dialog_macros" name="form" 
		  arg-id="hide"
		  arg-fields="{$fields}" />]]></template>
  <template type="public" title="mh_hide_editor_dialog_likes" version_id="2010670" version_string="2.1.6"><![CDATA[<xf:title>{{ phrase('mh_dialog_hide_reactions_title') }} </xf:title>

<xf:set var="$fields">
	<xf:macro template="mh_hide_editor_dialog_macros" name="number_row" 
			  arg-label="{{ phrase('mh_dialog_hide_likes_label') }}"
			  arg-explain="{{ phrase('mh_dialog_hide_likes_label') }}" />

	<xf:macro template="mh_hide_editor_dialog_macros" name="editor_row" 
			  arg-label="{{ phrase('mh_dialog_hide_likes_content') }}" />
</xf:set>

<xf:macro template="mh_hide_editor_dialog_macros" name="form" 
		  arg-id="likes"
		  arg-fields="{$fields}" />]]></template>
  <template type="public" title="mh_hide_editor_dialog_macros" version_id="2010670" version_string="2.1.6"><![CDATA[<xf:macro name="form" arg-id="!" arg-fields="!">
	<xf:set var="$tag" value="{{ $tag ?: $id }}" />
	<form class="block" id="editor_hide_{$id}_form" data-bb-code="{$tag}">
		<div class="block-container">
			<div class="block-body">
				{{ $fields|raw }}
			</div>
			<xf:submitrow submit="{{ phrase('continue') }}" id="editor_hide_submit" />
		</div>
	</form>
</xf:macro>

<xf:macro name="number_row" arg-label="" arg-explain="">
	<xf:numberboxrow id="editor_hide_count"
					 value="0"
					 min="1"
					 label="{$label}"
					 explain="{$explain}"
					 required="true"/>
</xf:macro>

<xf:macro name="editor_row" arg-label="!">
	<xf:textarearow id="editor_hide_text" 
					name="description" 
					autosize="true" 
					label="{$label}" />
</xf:macro>]]></template>
  <template type="public" title="mh_hide_editor_dialog_posts" version_id="2010670" version_string="2.1.6"><![CDATA[<xf:title>{{ phrase('mh_dialog_hide_posts_title') }} </xf:title>

<xf:set var="$fields">
	<xf:macro template="mh_hide_editor_dialog_macros" name="number_row" 
			  arg-label="{{ phrase('mh_dialog_hide_posts_label') }}"
			  arg-explain="{{ phrase('mh_dialog_hide_posts_label') }}" />

	<xf:macro template="mh_hide_editor_dialog_macros" name="editor_row" 
			  arg-label="{{ phrase('mh_dialog_hide_posts_content') }}" />
</xf:set>

<xf:macro template="mh_hide_editor_dialog_macros" name="form" 
		  arg-id="posts"
		  arg-fields="{$fields}" />]]></template>
  <template type="public" title="mh_hide_editor_dialog_reacts" version_id="2010670" version_string="2.1.6"><![CDATA[<xf:title>{{ phrase('mh_dialog_hide_reacts_title') }} </xf:title>

<xf:set var="$fields">
	<xf:set var="$reactionRepo" value="{$xf.app.em.getRepository('XF:Reaction')}" />
	<xf:set var="$reactions" value="{$reactionRepo.findReactionsForList(true).fetch().pluckNamed('title', 'reaction_id')}" />

	<xf:checkboxrow id="editor_hide_id_count" listclass="listColumns">
		<xf:foreach loop="$reactions" key="$reactionId" value="$reaction">
			<xf:set var="{$title}">
				<xf:reaction id="{$reactionId}" showtitle="true" class="reaction--inline" />
			</xf:set>
			<xf:option value="{$reactionId}" selected="{{ $reactionId === 1 ? true : false }}">
				{$title}
			</xf:option>
		</xf:foreach>
	</xf:checkboxrow>
	
	<xf:macro template="mh_hide_editor_dialog_macros" name="editor_row" 
			  arg-label="{{ phrase('mh_dialog_hide_reacts_content') }}" />
</xf:set>

<xf:macro template="mh_hide_editor_dialog_macros" name="form" 
		  arg-id="reacts"
		  arg-fields="{$fields}" />]]></template>
  <template type="public" title="mh_hide_editor_dialog_reply" version_id="2010670" version_string="2.1.6"><![CDATA[<xf:title>{{ phrase('mh_dialog_hide_reply_title') }} </xf:title>

<xf:set var="$fields">	
	<xf:macro template="mh_hide_editor_dialog_macros" name="editor_row" 
			  arg-label="{{ phrase('mh_dialog_hide_reply_content') }}" />
</xf:set>

<xf:macro template="mh_hide_editor_dialog_macros" name="form" 
		  arg-id="hide"
		  arg-fields="{$fields}" />]]></template>
  <template type="public" title="mh_hide_editor_dialog_replyandthanks" version_id="2010670" version_string="2.1.6"><![CDATA[<xf:title>{{ phrase('mh_dialog_hide_reply_and_thanks_title') }} </xf:title>

<xf:set var="$fields">	
	<xf:macro template="mh_hide_editor_dialog_macros" name="editor_row" 
			  arg-label="{{ phrase('mh_dialog_hide_reply_and_thanks_content') }}" />
</xf:set>

<xf:macro template="mh_hide_editor_dialog_macros" name="form" 
		  arg-id="hide"
		  arg-fields="{$fields}" />]]></template>
  <template type="public" title="mh_hide_editor_dialog_replythanks" version_id="2010670" version_string="2.1.6"><![CDATA[<xf:title>{{ phrase('mh_dialog_hide_reply_thanks_title') }} </xf:title>

<xf:set var="$fields">	
	<xf:macro template="mh_hide_editor_dialog_macros" name="editor_row" 
			  arg-label="{{ phrase('mh_dialog_hide_reply_thanks_content') }}" />
</xf:set>

<xf:macro template="mh_hide_editor_dialog_macros" name="form" 
		  arg-id="hide"
		  arg-fields="{$fields}" />]]></template>
  <template type="public" title="mh_hide_editor_dialog_thanks" version_id="2010670" version_string="2.1.6"><![CDATA[<xf:title>{{ phrase('mh_dialog_hide_thanks_title') }} </xf:title>

<xf:set var="$fields">	
	<xf:macro template="mh_hide_editor_dialog_macros" name="editor_row" 
			  arg-label="{{ phrase('mh_dialog_hide_thanks_content') }}" />
</xf:set>

<xf:macro template="mh_hide_editor_dialog_macros" name="form" 
		  arg-id="hide"
		  arg-fields="{$fields}" />]]></template>
  <template type="public" title="mh_hide_editor_dialog_trophies" version_id="2010670" version_string="2.1.6"><![CDATA[<xf:title>{{ phrase('mh_dialog_hide_trophies_title') }} </xf:title>

<xf:set var="$fields">
	<xf:macro template="mh_hide_editor_dialog_macros" name="number_row" 
			  arg-label="{{ phrase('mh_dialog_hide_trophies_label') }}"
			  arg-explain="{{ phrase('mh_dialog_hide_trophies_label') }}" />
	
	<xf:macro template="mh_hide_editor_dialog_macros" name="editor_row" 
			  arg-label="{{ phrase('mh_dialog_hide_trophies_content') }}" />
</xf:set>

<xf:macro template="mh_hide_editor_dialog_macros" name="form" 
		  arg-id="trophies"
		  arg-fields="{$fields}" />]]></template>
  <template type="public" title="mh_hide_editor_dialog_users" version_id="2010670" version_string="2.1.6"><![CDATA[<xf:title>{{ phrase('mh_dialog_hide_users_title') }} </xf:title>

<xf:set var="$fields">
	<xf:textboxrow id="editor_hide_count" 
				   type="search" 
				   ac="true"
				   placeholder="{{ phrase('user_name...') }}"
				   label="{{ phrase('user_name') }}" />
	
	<xf:macro template="mh_hide_editor_dialog_macros" name="editor_row" 
			  arg-label="{{ phrase('mh_dialog_hide_users_content') }}" />
</xf:set>

<xf:macro template="mh_hide_editor_dialog_macros" name="form" 
		  arg-id="users"
		  arg-fields="{$fields}" />]]></template>
  <template type="public" title="mh_hide_editor_dialog_usersexc" version_id="2010670" version_string="2.1.6"><![CDATA[<xf:title>{{ phrase('mh_dialog_hide_users_exc_title') }} </xf:title>

<xf:set var="$fields">
	<xf:textboxrow id="editor_hide_count" 
				   type="search" 
				   ac="true"
				   placeholder="{{ phrase('user_name...') }}"
				   label="{{ phrase('user_name') }}" />
	
	<xf:macro template="mh_hide_editor_dialog_macros" name="editor_row" 
			  arg-label="{{ phrase('mh_dialog_hide_users_exc_content') }}" />
</xf:set>

<xf:macro template="mh_hide_editor_dialog_macros" name="form" 
		  arg-id="usersexc"
		  arg-fields="{$fields}" />]]></template>
  <template type="public" title="mh_hide_editor_dialog_usersid" version_id="2010670" version_string="2.1.6"><![CDATA[<xf:title>{{ phrase('mh_dialog_hide_users_id_title') }} </xf:title>

<xf:set var="$fields">
	<xf:textboxrow id="editor_hide_count"
				   label="{{ phrase('mh_dialog_hide_users_id_label') }}" 
				   explain="{{ phrase('mh_dialog_hide_users_id_label') }}" />
	
	<xf:macro template="mh_hide_editor_dialog_macros" name="editor_row" 
			  arg-label="{{ phrase('mh_dialog_hide_users_id_content') }}" />
</xf:set>

<xf:macro template="mh_hide_editor_dialog_macros" name="form" 
		  arg-id="usersid"
		  arg-fields="{$fields}" />]]></template>
  <template type="public" title="mh_hide_editor_dialog_usersidexc" version_id="2010670" version_string="2.1.6"><![CDATA[<xf:title>{{ phrase('mh_dialog_hide_users_exc_id_title') }} </xf:title>

<xf:set var="$fields">
	<xf:textboxrow id="editor_hide_count"
				   label="{{ phrase('mh_dialog_hide_users_id_label') }}" 
				   explain="{{ phrase('mh_dialog_hide_users_id_label') }}" />
	
	<xf:macro template="mh_hide_editor_dialog_macros" name="editor_row" 
			  arg-label="{{ phrase('mh_dialog_hide_users_exc_id_content') }}" />
</xf:set>

<xf:macro template="mh_hide_editor_dialog_macros" name="form" 
		  arg-id="usersidexc"
		  arg-fields="{$fields}" />]]></template>
  <template type="public" title="mh_tag_react" version_id="2010010" version_string="2.1.0 Alpha"><![CDATA[{{ phrase('mh_tag_react') }} {{ mh_react('hideReacts', $reactions) }}]]></template>
</templates>