2015-08-03 11:35:01 +02:00
|
|
|
<br />
|
|
|
|
|
|
|
|
<h3 class="block large">{$c->__('page.avatar')}</h3>
|
|
|
|
|
|
|
|
<div class="flex">
|
|
|
|
<div id="preview" class="block">
|
|
|
|
<div>
|
|
|
|
<form name="avatarform" id="avatarform">
|
2015-12-15 11:54:49 +01:00
|
|
|
{if="isset($photobin) && $photobin != ''"}
|
|
|
|
<img src="data:image/jpeg;base64,{$photobin}">
|
|
|
|
{else}
|
|
|
|
<img src="#" class="error">
|
2015-12-28 13:28:17 +01:00
|
|
|
<ul class="list thick">
|
2015-12-15 11:54:49 +01:00
|
|
|
<li>
|
2015-12-28 13:28:17 +01:00
|
|
|
<span class="primary icon bubble color {$me->jid|stringToColor}">
|
2015-12-15 11:54:49 +01:00
|
|
|
<i class="zmdi zmdi-account"></i>
|
|
|
|
</span>
|
2015-12-28 13:28:17 +01:00
|
|
|
<p class="normal line">{$c->__('avatar.missing')}</p>
|
2015-12-15 11:54:49 +01:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
{/if}
|
2015-08-03 11:35:01 +02:00
|
|
|
<input type="hidden" name="photobin" value="{$photobin}"/>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="block">
|
2015-12-21 22:59:03 +01:00
|
|
|
<ul class="list thick divided">
|
|
|
|
<li>
|
|
|
|
<span class="primary icon bubble color green">
|
2015-08-03 11:35:01 +02:00
|
|
|
<i class="zmdi zmdi-attachment-alt"></i>
|
|
|
|
</span>
|
2015-12-21 22:59:03 +01:00
|
|
|
<p>{$c->__('avatar.file')}</p>
|
2015-08-03 11:35:01 +02:00
|
|
|
<p><input type="file" onchange="Avatar.file(this.files);"></p>
|
|
|
|
</li>
|
|
|
|
{if="isset($gravatar)"}
|
2015-12-21 22:59:03 +01:00
|
|
|
<li>
|
|
|
|
<span class="primary icon bubble color blue">
|
|
|
|
<img src="http://www.gravatar.com/avatar/{$gravatar->entry[0]->hash}?s=50" />
|
|
|
|
</span>
|
|
|
|
<p>Gravatar</p>
|
|
|
|
<p>We found a Gravatar picture<br />
|
2015-08-03 11:35:01 +02:00
|
|
|
<a
|
|
|
|
onclick="Avatar.preview('data:image/jpeg;base64,{$gravatar_bin}')"
|
|
|
|
class="button flat">
|
|
|
|
{$c->__('avatar.use_it')}
|
|
|
|
</a>
|
2015-12-21 22:59:03 +01:00
|
|
|
</p>
|
2015-08-03 11:35:01 +02:00
|
|
|
</li>
|
|
|
|
{/if}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!--
|
2015-12-15 11:54:49 +01:00
|
|
|
<div class="block">
|
2015-08-03 11:35:01 +02:00
|
|
|
<input type="file" onchange="vCardImageLoad(this.files);">
|
|
|
|
<label for="avatar">{$c->__('page.avatar')}</label>
|
|
|
|
<input type="hidden" name="photobin" value="{$photobin}"/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{if="isset($gravatar)"}
|
|
|
|
<div class="block">
|
|
|
|
<h4>Gravatar</h4>
|
|
|
|
{$gravatar->entry[0]|var_dump}
|
|
|
|
<img src="http://www.gravatar.com/avatar/{$gravatar->entry[0]->hash}?s=500" />
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
<div class="block" id="result">
|
|
|
|
<img id="vCardPhotoPreview" src="data:image/jpeg;base64,{$photobin}">
|
|
|
|
<span id="picturesize" class="clean"></span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="camdiv" class="block">
|
|
|
|
<video id="runningcam" class="squares" autoplay></video>
|
|
|
|
<canvas style="display:none;"></canvas>
|
2015-12-15 11:54:49 +01:00
|
|
|
|
|
|
|
<a
|
|
|
|
id="shoot"
|
|
|
|
class="button flat oppose"
|
2015-08-03 11:35:01 +02:00
|
|
|
onclick="return false;">
|
|
|
|
{$c->__('avatar.cheese')}
|
|
|
|
</a>
|
|
|
|
<a
|
2015-12-15 11:54:49 +01:00
|
|
|
id="capture"
|
|
|
|
class="button flat"
|
2015-08-03 11:35:01 +02:00
|
|
|
onclick="
|
|
|
|
showVideo();
|
|
|
|
return false;">
|
|
|
|
{$c->__('avatar.snapshot')}
|
|
|
|
</a>
|
|
|
|
<label for="url">{$c->__('avatar.webcam')}</label>
|
|
|
|
</div>-->
|
|
|
|
|
|
|
|
<div class="block large">
|
|
|
|
<a
|
|
|
|
onclick="
|
|
|
|
{$submit}
|
|
|
|
movim_button_save('#avatarvalidate');
|
2015-12-15 11:54:49 +01:00
|
|
|
this.value = '{$c->__('button.submitting')}';
|
|
|
|
this.className='button inactive oppose';"
|
2015-08-03 11:35:01 +02:00
|
|
|
class="button color oppose"
|
|
|
|
id="avatarvalidate"
|
|
|
|
>{$c->__('button.submit')}</a>
|
|
|
|
</div>
|