From 69ae03b63e80dbe4a21d8698578fc03420f37e3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobi=20Sch=C3=A4fer?= Date: Wed, 24 Jul 2013 07:23:04 +0000 Subject: [PATCH] Added round social media icons from http://medialoot.com/item/round-social-media-icons --- .gitattributes | 5 +++++ code/Images/Images.js | 18 +++++++++--------- code/Root/$Root.skin | 22 ++++++++++++++-------- extra/connect/Global/connect.skin | 26 +++++++++++++------------- legal/medialoot.txt | 3 +++ static/www/ant-white.png | Bin 0 -> 952 bytes static/www/facebook_round.png | Bin 0 -> 1588 bytes static/www/google_round.png | Bin 0 -> 1773 bytes static/www/rss_round.png | Bin 0 -> 1758 bytes static/www/twitter_round.png | Bin 0 -> 1728 bytes 10 files changed, 44 insertions(+), 30 deletions(-) create mode 100644 legal/medialoot.txt create mode 100644 static/www/ant-white.png create mode 100644 static/www/facebook_round.png create mode 100644 static/www/google_round.png create mode 100644 static/www/rss_round.png create mode 100644 static/www/twitter_round.png diff --git a/.gitattributes b/.gitattributes index 13da87de..9a473452 100644 --- a/.gitattributes +++ b/.gitattributes @@ -193,13 +193,16 @@ lib/jdom.jar -text svneol=unset#application/x-compressed lib/opml-0.1.jar -text svneol=unset#application/x-compressed lib/rome-1.0.jar -text svneol=unset#application/x-compressed static/www/ant-icon.png -text svneol=unset#image/png +static/www/ant-white.png -text svneol=unset#image/png static/www/ant.png -text svneol=unset#image/png static/www/big.gif -text svneol=unset#image/gif static/www/bullet.gif -text svneol=unset#image/gif static/www/dot.gif -text svneol=unset#image/gif static/www/facebook.png -text svneol=unset#image/png +static/www/facebook_round.png -text svneol=unset#image/png static/www/formica.html svneol=native#text/html static/www/google.png -text svneol=unset#image/png +static/www/google_round.png -text svneol=unset#image/png static/www/headbg.gif -text svneol=unset#image/gif static/www/helma.png -text svneol=unset#image/png static/www/hop.gif -text svneol=unset#image/gif @@ -209,11 +212,13 @@ static/www/menu.gif -text svneol=unset#image/gif static/www/pixel.gif -text svneol=unset#image/gif static/www/recent.gif -text svneol=unset#image/gif static/www/rss.png -text svneol=unset#image/png +static/www/rss_round.png -text svneol=unset#image/png static/www/smallanim.gif -text svneol=unset#image/gif static/www/smallchaos.gif -text svneol=unset#image/gif static/www/smallstraight.gif -text svneol=unset#image/gif static/www/smalltrans.gif -text svneol=unset#image/gif static/www/status.gif -text svneol=unset#image/gif static/www/twitter.png -text svneol=unset#image/png +static/www/twitter_round.png -text svneol=unset#image/png static/www/webloghead.gif -text svneol=unset#image/gif static/www/xmlbutton.gif -text svneol=unset#image/gif diff --git a/code/Images/Images.js b/code/Images/Images.js index f2741465..6a8a7d41 100644 --- a/code/Images/Images.js +++ b/code/Images/Images.js @@ -34,14 +34,14 @@ markgettext("images"); * @name Images * @constructor * @property {Image} _children - * @property {Tag[]} alphabeticalGalleries + * @property {Tag[]} alphabeticalGalleries * @property {Tag[]} galleries * @property {Tag[]} otherGalleries * @extends HopObject */ /** - * + * * @param {String} action * @returns {Boolean} */ @@ -74,16 +74,16 @@ Images.prototype.main_action = function() { skin = "$Images#main"; res.data.title = gettext("Member Images"); break; - + case Layout: images = res.handlers.layout.images; skin = "$Images#layout"; res.data.title = gettext("Layout Images"); break; } - res.data.list = renderList(images, "$Image#listItem", + res.data.list = renderList(images, "$Image#listItem", 10, req.queryParams.page); - res.data.pager = renderPager(images, + res.data.pager = renderPager(images, this.href(req.action), 10, req.queryParams.page); res.data.body = this.renderSkinAsString(skin); res.handlers.site.renderSkin("Site#page"); @@ -118,9 +118,9 @@ Images.prototype.create_action = function() { } Images.prototype.all_action = function() { - res.data.pager = renderPager(this, this.href(req.action), + res.data.pager = renderPager(this, this.href(req.action), 10, req.queryParams.page); - res.data.list = renderList(this, "$Image#listItem", + res.data.list = renderList(this, "$Image#listItem", 10, req.queryParams.page); res.data.title = gettext("All Images"); res.data.body = this.renderSkinAsString("$Images#main"); @@ -142,7 +142,7 @@ Images.Default = new function() { this.width = image.width; this.height = image.height; this.getUrl = function() { - // Cannot use global.Image.getUrl() here because these images are + // Cannot use global.Image.getUrl() here because these images are // located in the top-level of the static directory. return root.getStaticUrl(name); } @@ -200,7 +200,7 @@ Images.prototype.mergeImages = function() { } /** - * + * * @param {String} group * @returns {Tag[]} * @see Site#getTags diff --git a/code/Root/$Root.skin b/code/Root/$Root.skin index 49b8bf2f..9b658cab 100644 --- a/code/Root/$Root.skin +++ b/code/Root/$Root.skin @@ -4,11 +4,11 @@ <% gettext "To create a new site you need to fill out the form below." %>
-

<% gettext 'The name will be part of the URL of your site. E.g. if you +

<% gettext 'The name will be part of the URL of your site. E.g. if you enter “{0}” as the name your site will be reachable via this url: {1}' <% example.name %> <% example.href prefix="

" suffix=

%> %>

-

<% gettext "Please note that you cannot change the name after the site was - created." %> <% gettext "The title will appear in the header of every page +

<% gettext "Please note that you cannot change the name after the site was + created." %> <% gettext "The title will appear in the header of every page of your site. You can change it anytime you want." %>

@@ -35,7 +35,7 @@

<% #sites %> -

<% gettext "This is the directory of public sites hosted here, in +

<% gettext "This is the directory of public sites hosted here, in alphabetical order." %>

<% response.pager %> @@ -81,14 +81,14 @@ alphabetical order." %>

@@ -110,7 +110,7 @@ alphabetical order." %>

@@ -140,7 +140,7 @@ alphabetical order." %>

<% #stylesheet %> /* CSS for protected skins (user interface elements etc.) */ -ul { list-style: url(<% image /bullet.gif url %>) circle; } +ul { list-style: url(<% image /bullet.gif url %>) circle; } ul.skinmgrTree { padding-left:15px; @@ -301,3 +301,9 @@ div.skin div.title { padding: 2px; text-decoration: none !important; } + +.connect img { + padding: 2px 0; + vertical-align: middle; + opacity: .3; +} diff --git a/extra/connect/Global/connect.skin b/extra/connect/Global/connect.skin index 70b79790..9f7d1359 100644 --- a/extra/connect/Global/connect.skin +++ b/extra/connect/Global/connect.skin @@ -1,7 +1,7 @@ <% #facebook %>
<% gettext 'Requests' %>: - <% gettext '{0} total' <% param.requestCount %> %>, + <% gettext '{0} total' <% param.requestCount %> %>, <% gettext '{0} last 5 min.' <% param.requestsPerUnit default=n.a. %> %>
<% gettext 'Errors' %>: - <% gettext '{0} total' <% param.errorCount %> %>, + <% gettext '{0} total' <% param.errorCount %> %>, <% gettext '{0} last 5 min.' <% param.errorsPerUnit default=n.a. %> %>
<% gettext 'Memory' %>: - <% gettext '{0} MB total' <% param.totalMemory %> %>, + <% gettext '{0} MB total' <% param.totalMemory %> %>, <% gettext '{0} MB free' <% param.freeMemory %> %>