Little issues in 3.2.0.0 themes with correction

Topics: Themes
Dec 28, 2015 at 2:39 PM
Hello

I found some little issues with 3.2.0.0.
Please find below corrections.
  • Small avatar not shown in admin sidebar:
    Modify admin\themes\standard\sidebar.cshtml
Line 12:
-            src = profile.PhotoUrl;
+            src = Utils.ApplicationRelativeWebRoot + "image.axd?picture=/avatars/" + profile.PhotoUrl;
  • Standard 2015 social networks logos + Facebook/Twitter HTTPS + Custom fields
    Modify Custom\Themes\Standard-2015\site.master
Line 68:
-                    <img src="<%=Utils.AbsoluteWebRoot %>[CUSTOMFIELD|THEME|Standard|Logo Address|Custom/Themes/Standard-2014/images/logo.png/]" class="pull-left logo" alt="<%=BlogSettings.Instance.Name %>" />
+                    <img src="<%=Utils.AbsoluteWebRoot %>[CUSTOMFIELD|THEME|Standard-2015|Logo Address|Custom/Themes/Standard-2015/images/logo.png/]" class="pull-left logo" alt="<%=BlogSettings.Instance.Name %>" />

Lines 74-75:
-                        <a href="http://facebook.com/[CUSTOMFIELD|THEME|Standard|Facebook account|BlogEngine.NET/]">
-                            <img src="~/Custom/Themes/Standard-2014/images/facebook.png" runat="server" />
+                        <a href="https://facebook.com/[CUSTOMFIELD|THEME|Standard-2015|Facebook Account|BlogEngine.NET/]" target="_blank">
+                            <img src="~/Custom/Themes/Standard-2015/images/facebook.png" runat="server" />

Lines 77-78:
-                        <a href="http://twitter.com/[CUSTOMFIELD|THEME|Standard|Twitter account|blogenginenet/]">
-                            <img src="~/Custom/Themes/Standard-2014/images/twitter.png" runat="server" />
+                        <a href="https://twitter.com/[CUSTOMFIELD|THEME|Standard-2015|Twitter Account|blogenginenet/]" target="_blank">
+                            <img src="~/Custom/Themes/Standard-2015/images/twitter.png" runat="server" />

Lines 80-81:
-                        <a href="https://plus.google.com/[CUSTOMFIELD|THEME|Standard|Google plus|u/0/]">
-                            <img src="~/Custom/Themes/Standard-2014/images/googleplus.png" runat="server" />
+                        <a href="https://plus.google.com/[CUSTOMFIELD|THEME|Standard-2015|Google Plus Account|u/0/]" target="_blank">
+                            <img src="~/Custom/Themes/Standard-2015/images/googleplus.png" runat="server" />

Line 84:
-                            <img src="~/Custom/Themes/Standard-2014/images/rss.png" runat="server" />
+                            <img src="~/Custom/Themes/Standard-2015/images/rss.png" runat="server" />

Lines 117-118:
-                if (link.href == 'http://facebook.com/') { link.style.display = "none"; }
-                if (link.href == 'http://twitter.com/') { link.style.display = "none"; }
+                if (link.href == 'https://facebook.com/') { link.style.display = "none"; }
+                if (link.href == 'https://twitter.com/') { link.style.display = "none"; }
Regards
Stéphane
Coordinator
Dec 28, 2015 at 4:37 PM
Thanks, patched.