123 lines
7.1 KiB
XML
123 lines
7.1 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="ipsGrid ipsGrid_collapseTablet ipsGrid_collapsePhone ipsAttachment_fileList ipsContained cReactionMapper" data-ipsGrid data-ipsGrid-equalHeights='row' >
|
|
{{foreach $cReactions as $id => $cReaction}}
|
|
<div class='ipsGrid_span2 ipsBox ipsAttach ipsImageAttach ipsPad_half' data-controller="convert.admin.forms.reactionmapper" data-reactionid="{$id}">
|
|
{{if $cReaction['icon']}}
|
|
<div class='ipsType_center ipsPadding_top:half cReactionImage'>
|
|
<img src="{$cReaction['icon']}" alt='' class='ipsImage'>
|
|
</div>
|
|
{{endif}}
|
|
<div class="ipsType_center ipsPad_half">
|
|
<input type="hidden" value="0" name="{$name}[{$id}]" />
|
|
<p class='ipsType_center'>{$cReaction['title']|raw}</p>
|
|
<div>
|
|
<a href='#elReactionMapper{$id}_menu' id='elReactionMapper{$id}' class='ipsButton ipsButton_normal ipsButton_small ipsButton_fullWidth' data-ipsMenu><span class="elMenuSelect_replace">{lang="convert_reaction_choose"}</span> <i class='fa fa-caret-down'></i></a>
|
|
</div>
|
|
<ul id='elReactionMapper{$id}_menu' role='menu' class='ipsMenu ipsMenu_auto ipsMenu_withStem ipsHide'>
|
|
{{foreach $ipsReactions as $reactionId => $reaction}}
|
|
<li class='ipsMenu_item'><a role='menuitem' href='#' 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 ]}</a></li>
|
|
{{endforeach}}
|
|
</ul>
|
|
</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='ipsPad'>
|
|
{{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='ipsClearfix' 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_normal ipsButton_verySmall' 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_normal ipsButton_verySmall ipsButton_alternate' 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_normal ipsButton_disabled ipsButton_verySmall' 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_normal ipsButton_verySmall' name='submit' value='{lang="continue_conversion"}' />
|
|
{{else}}
|
|
<input class='ipsButton ipsButton_normal ipsButton_verySmall' type='submit' name='submit' value='{lang="begin_conversion"}' />
|
|
{{endif}}
|
|
<div id='elReconvertForm_{$v}' class='ipsPad 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 ipsType_break{{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 */
|
|
#rep_like img,
|
|
#rep_neutral img,
|
|
#rep_positive img,
|
|
#rep_negative img {
|
|
max-width: 50px;
|
|
}
|
|
|
|
.cReactionMapper .cReactionImage img
|
|
{
|
|
max-width: 100px;
|
|
}
|
|
|
|
img.cReactionSmall
|
|
{
|
|
max-width: 30px;
|
|
max-height: 30px;
|
|
}
|
|
|
|
a:not(.ipsButton) img.cReactionSmall
|
|
{
|
|
margin-right: 10px;
|
|
}</css>
|
|
</theme>
|