getSpecificData(WebContext context) {
+
+ AvatarsSettings settings = null;
+ try {
+ settings = AvatarsSettings.LoadByAccount(context.account);
+ int accountId = settings.accountId; //just to make sure it is loaded
+ } catch(NotFoundInDBException) {
+ }
+
+ return new XElement[] {
+ (settings != null) ? new XElement("avatars", from avatar in settings.avatars select avatar.exportToXml(context)) : null,
+ (context.account.user.avatarId.HasValue) ? new XElement("currentAvatar", context.account.user.avatar.exportToXml(context)) : null,
+ };
+ }
+ }
+
+}
\ No newline at end of file
diff --git a/templates/Full/AvatarsSettings.xslt b/templates/Full/AvatarsSettings.xslt
new file mode 100644
index 0000000..21655de
--- /dev/null
+++ b/templates/Full/AvatarsSettings.xslt
@@ -0,0 +1,122 @@
+
+
+
+ Íàñòðîéêà àâàòàðîê
+
+
+
+
+
+
+
+
+
+
+ Âàøè àâàòàðêè:
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+ Ìàêñèìàëüíûé ðàçìåð ôàéëà – 80ÊÁ, äîïóñòèìûå ðàçðåøåíèÿ: gif, jpg, png, svg, jpe, jpeg, jfif, jif
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+ /Upload/Item//
+
+ |
+
+
+
+ |
+
+
+
+
+
\ No newline at end of file
diff --git a/templates/Full/UploadNew.xslt b/templates/Full/UploadNew.xslt
index 2ade259..6d4976f 100644
--- a/templates/Full/UploadNew.xslt
+++ b/templates/Full/UploadNew.xslt
@@ -16,7 +16,7 @@
Âûáåðèòå ôàéë äëÿ çàãðóçêè
- Ìàêñèìàëüíûé ðàçìåð ôàéëà – 1ÌÁ, äîïóñòèìûå ðàçðåøåíèÿ: gif, jpg, png
+ Ìàêñèìàëüíûé ðàçìåð ôàéëà – 1ÌÁ, äîïóñòèìûå ðàçðåøåíèÿ: gif, jpg, png, svg, jpe, jpeg, jfif, jif
|
diff --git a/templates/Full/elems/MyHeader.xslt b/templates/Full/elems/MyHeader.xslt
index d9e48d6..b89d418 100644
--- a/templates/Full/elems/MyHeader.xslt
+++ b/templates/Full/elems/MyHeader.xslt
@@ -53,6 +53,14 @@
|
+
+ /My/Avatars/
+ Àâàòàðêè
+
+ true
+
+
+ |
/Users/User//Info/
diff --git a/templates/Full/result/AvatarAdded.xslt b/templates/Full/result/AvatarAdded.xslt
new file mode 100644
index 0000000..1e6ef2e
--- /dev/null
+++ b/templates/Full/result/AvatarAdded.xslt
@@ -0,0 +1,48 @@
+
+
+
+ Äîáàâëåíèå àâàòàðêè
+
+
+
+
+
\ No newline at end of file
diff --git a/templates/Full/result/AvatarRemoved.xslt b/templates/Full/result/AvatarRemoved.xslt
new file mode 100644
index 0000000..425e0fb
--- /dev/null
+++ b/templates/Full/result/AvatarRemoved.xslt
@@ -0,0 +1,48 @@
+
+
+
+ Óäàëåíèå àâàòàðêè
+
+
+
+
+
\ No newline at end of file
diff --git a/templates/Full/result/AvatarSetted.xslt b/templates/Full/result/AvatarSetted.xslt
new file mode 100644
index 0000000..b3cc5bf
--- /dev/null
+++ b/templates/Full/result/AvatarSetted.xslt
@@ -0,0 +1,48 @@
+
+
+
+ Èçìåíåíèå àâàòàðêè
+
+
+
+
+
\ No newline at end of file