uawdijnntqw1x1x1
IP : 216.73.216.107
Hostname : toronto-dev2
Kernel : Linux toronto-dev2 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
srv
/
users
/
craft4
/
apps
/
craft4-newsite-space
/
vendor
/
craftcms
/
cms
/
src
/
.
/
templates
/
users
/
_photo.twig
/
/
{% set volume = craft.app.volumes.getUserPhotoVolume() %} {% if volume %} <div class="user-photo" data-user="{{ user.id }}"> <div id="current-photo"> {% set photoUrl = user.getThumbUrl(100) %} {% if photoUrl %} <img sizes="100px" srcset="{{ photoUrl }} 100w, {{ user.getThumbUrl(200) }} 200w" alt="{{ user.getThumbAlt() }}"> {% else %} {{ svg('@appicons/user.svg')|prepend(tag('title', { text: user.getName(), })) }} {% endif %} </div> <div class="user-photo-controls"> <input type="file" name="photo" class="hidden" /> {% if user.photo %} <div class="flex flex-nowrap"> <button type="button" class="btn upload-photo">{{ "Change photo"|t('app') }}</button> <button type="button" class="btn delete-photo">{{ "Delete photo"|t('app') }}</button> </div> <div class="flex flex-nowrap"> <button type="button" class="btn edit-photo" data-photoid="{{ user.photoId }}">{{ "Edit Image"|t('app') }}</button> </div> {% else %} <div class="flex flex-nowrap"> <button type="button" class="btn upload-photo">{{ "Upload a photo"|t('app') }}</button> </div> {% endif %} </div> </div> {% else %} <p>{{ 'Please set a valid volume for storing the user photos in user settings page first.'|t('app') }}</p> {% endif %}
/srv/users/craft4/apps/craft4-newsite-space/vendor/craftcms/cms/src/./templates/users/_photo.twig