Files
2025-12-19 19:04:57 -08:00

127 lines
7.3 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<theme name="Default" author_name="Invision Power Services, Inc" author_url="https://www.invisioncommunity.com">
<template template_group="forms" template_name="reactionmapper" template_data="$name, $value, $cReactions, $ipsReactions, $descriptions" template_location="admin" template_app="convert"><![CDATA[
<div class="ipsSpanGrid ipsAttachment_fileList cReactionMapper">
{{foreach $cReactions as $id => $cReaction}}
<div class='ipsSpanGrid__2 ipsBox ipsAttach ipsImageAttach i-padding_2' data-controller="convert.admin.forms.reactionmapper" data-reactionid="{$id}">
{{if $cReaction['icon']}}
<div class='i-text-align_center i-padding-top_2 cReactionImage'>
<img src="{$cReaction['icon']}" alt='' class='ipsImage'>
</div>
{{endif}}
<div class="i-text-align_center i-padding_2">
<input type="hidden" value="0" name="{$name}[{$id}]" />
<p class='i-text-align_center'>{$cReaction['title']|raw}</p>
<div>
<button type="button" id="elReactionMapper{$id}" popovertarget="elReactionMapper{$id}_menu" class='ipsButton ipsButton--secondary ipsButton--small ipsButton--wide'><span class="elMenuSelect_replace">{lang="convert_reaction_choose"}</span><i class='fa-solid fa-caret-down'></i></button>
</div>
<i-dropdown popover id="elReactionMapper{$id}_menu">
<div class="iDropdown">
<ul class="iDropdown__items" role='menu'>
{{foreach $ipsReactions as $reactionId => $reaction}}
<li><button type="button" data-action="selectReaction" role='menuitem' data-id="{$reactionId}" {{if(isset($value[$id]) AND $value[$id] ==$reactionId)}}data-default="true"{{endif}}>{{if( !empty( $reaction ))}}<img src="{$reaction}" alt="" class="cReactionSmall"/> {{endif}}{$descriptions[ $reactionId ]}</button></li>
{{endforeach}}
</ul>
</div>
</i-dropdown>
</div>
</div>
{{endforeach}}
</div>]]></template>
<template template_group="forms" template_name="settingsToConvert" template_data="$settingsToConvert" template_location="admin" template_app="convert"><![CDATA[
<div class='ipsMessage ipsMessage--info'>{lang="converting_settings_desc"}</div>
<ul class='i-padding_3'>
{{foreach $settingsToConvert AS $setting}}
<li><em>{$setting['title']}</em> {lang="to"} <em>{$setting['our_title']}</em>: {$setting['value']}</li>
{{endforeach}}
</ul>]]></template>
<template template_group="table" template_name="convertMenuRow" template_data="$table, $headers, $rows" template_location="admin" template_app="convert"><![CDATA[{{$softwareClass = $table->extra['softwareClass'];}}
{{foreach $rows as $r}}
<form action='{url="app=convert&module=manage&controller=convert&do=runStep&id={$table->extra['appClass']->app_id}&method={$r['step_method']}"}' method='post' data-controller='convert.admin.convert.menu'>
<tr class='' data-keyNavBlock>
{{foreach $r as $k => $v}}
{{if $k === 'per_cycle'}}
<td>
<input type='text' name='per_cycle' value='{$v|raw}' size='5' style='width:50%'><br>
</td>
{{elseif $k === 'empty_local_data'}}
<td>
<input type='checkbox' name='empty_local_data' id='empty_local_data_{$r['step_method']}' value='1' /> <label for='empty_local_data_{$r['step_method']}'>{lang="empty_local_data"}</label>
</td>
{{elseif $k === 'step_method'}}
<td>
<input type="hidden" name="csrfKey" value="{expression="\IPS\Session::i()->csrfKey"}">
{{if \in_array( $r['step_method'], $table->extra['sessionData']['completed'] )}}
<input class='ipsButton ipsButton--secondary ipsButton--tiny' type='submit' name='submit' value='{lang="convert_again"}' />
{{if \IPS\IN_DEV == TRUE}}
<a href='{url="app=convert&module=manage&controller=convert&do=emptyData&id={$table->extra['appClass']->app_id}&method={$r['step_method']}" csrf="true"}' class='ipsButton ipsButton--secondary ipsButton--tiny ipsButton--secondary' data-action='remove_converted_data'>{lang="remove_converted_data"}</a>
{{endif}}
{{if \in_array( $r['step_method'], $softwareClass::checkConf() )}}
<br><input type='checkbox' name='reconfigure' id='reconfigure_{$r['step_method']}' value='1' /> <label for='reconfigure_{$r['step_method']}'>{lang="reconfigure"}</label>
{{endif}}
{{elseif \count( array_filter( $table->extra['menuRows'][$r['step_method']]['dependencies'], array( $table->extra['appClass'], 'dependencies' ) ) )}}
<a href='#' class='ipsButton ipsButton--secondary ipsButton--disabled ipsButton--tiny' data-ipsTooltip title='{lang="cannot_convert_desc"}'>{lang="cannot_convert"}</a>
{{elseif array_key_exists( $r['step_method'], $table->extra['sessionData']['working'] )}}
<input type='hidden' name='continue' value='1' />
<input type='submit' class='ipsButton ipsButton--secondary ipsButton--tiny' name='submit' value='{lang="continue_conversion"}' />
{{else}}
<input class='ipsButton ipsButton--secondary ipsButton--tiny' type='submit' name='submit' value='{lang="begin_conversion"}' />
{{endif}}
<div id='elReconvertForm_{$v}' class='i-padding_3 ipsHide'>
{lang="confirm_reconvert"}<br>
<ul>
{{foreach $table->extra['menuRows'] AS $step}}
{{if \in_array( $r['step_method'], $step['dependencies'] )}}
<li>{lang="$step['step_method']"}</li>
{{endif}}
{{endforeach}}
</ul><br>
<input type='submit' class='ipsButton' name='submit' value='{lang="reconvert_button"}' />
</div>
</td>
{{else}}
<td class='{{if $k === 'photo'}}ipsTable_icon{{endif}} {{if $k === $table->mainColumn}}ipsTable_primary{{endif}} {{if $k === '_buttons'}}ipsTable_controls{{endif}}' {{if $k !== $table->mainColumn && $k !== '_buttons' && $k !== 'photo'}}data-title="{lang="{$table->langPrefix}{$k}"}"{{endif}}>
{{if $k === '_buttons'}}
{template="controlStrip" params="$v" group="global" app="core"}
{{else}}
{$v|raw}
{{endif}}
</td>
{{endif}}
{{endforeach}}
</tr>
</form>
{{endforeach}}]]></template>
<template template_group="table" template_name="postConversionInformation" template_data="$info" template_location="admin" template_app="convert"><![CDATA[
<div class='ipsMessage ipsMessage--info'>
{$info|raw}
</div>]]></template>
<template template_group="table" template_name="settingsMessage" template_data="$app" template_location="admin" template_app="convert"><![CDATA[{{$url = \IPS\Http\Url::internal( "app=convert&module=manage&controller=convert&do=settings&id={$app->app_id}" );}}
<div class='ipsMessage ipsMessage--info'>
{lang="converter_supports_settings_link" sprintf="$url"}
</div>]]></template>
<css css_location="admin" css_app="convert" css_attributes="" css_path="." css_name="convert.css">/* Make the reputation images NOT huge */&#13;
#rep_like img,&#13;
#rep_neutral img,&#13;
#rep_positive img,&#13;
#rep_negative img {&#13;
max-width: 50px;&#13;
}&#13;
&#13;
.cReactionMapper .cReactionImage img&#13;
{&#13;
max-width: 100px;&#13;
}&#13;
&#13;
img.cReactionSmall&#13;
{&#13;
max-width: 30px;&#13;
max-height: 30px;&#13;
}&#13;
&#13;
a:not(.ipsButton) img.cReactionSmall&#13;
{&#13;
margin-inline-end: 10px;&#13;
}</css>
</theme>