|
Author: adityasharma
Date: Tue Aug 13 12:26:54 2019 New Revision: 1865034 URL: http://svn.apache.org/viewvc?rev=1865034&view=rev Log: Applied fix from trunk for revision: 1838074 === Improved: Change the uggly favicon with the new one ! | Using new OFBiz logo (OFBIZ-10522) The unreleased branch 17.12 uses new logo, but old favicon icon. Backported the changes from trunk. Additional change: 1. Fixed broken logo image URL for flatgrey theme along with some custom css to fix its height and width 2. Replaced new logo with old in tomahawk theme along with some custom css to fix its height and width Added: ofbiz/ofbiz-framework/branches/release17.12/themes/common/webapp/images/favicon-32.png - copied unchanged from r1864216, ofbiz/ofbiz-framework/branches/release18.12/themes/common-theme/webapp/images/favicon-32.png ofbiz/ofbiz-framework/branches/release17.12/themes/common/webapp/images/favicon-64.png - copied unchanged from r1864216, ofbiz/ofbiz-framework/branches/release18.12/themes/common-theme/webapp/images/favicon-64.png ofbiz/ofbiz-framework/branches/release17.12/themes/common/webapp/images/favicon-96.png - copied unchanged from r1864216, ofbiz/ofbiz-framework/branches/release18.12/themes/common-theme/webapp/images/favicon-96.png ofbiz/ofbiz-framework/branches/release17.12/themes/common/webapp/images/favicon.ico - copied unchanged from r1864216, ofbiz/ofbiz-framework/branches/release18.12/themes/common-theme/webapp/images/favicon.ico ofbiz/ofbiz-framework/branches/release17.12/themes/common/webapp/images/favicon.png - copied unchanged from r1864216, ofbiz/ofbiz-framework/branches/release18.12/themes/common-theme/webapp/images/favicon.png Modified: ofbiz/ofbiz-framework/branches/release17.12/themes/bluelight/template/Header.ftl ofbiz/ofbiz-framework/branches/release17.12/themes/common/template/includes/Lookup.ftl ofbiz/ofbiz-framework/branches/release17.12/themes/common/widget/Theme.xml ofbiz/ofbiz-framework/branches/release17.12/themes/flatgrey/template/Header.ftl ofbiz/ofbiz-framework/branches/release17.12/themes/flatgrey/webapp/flatgrey/style.css ofbiz/ofbiz-framework/branches/release17.12/themes/flatgrey/widget/Theme.xml ofbiz/ofbiz-framework/branches/release17.12/themes/rainbowstone/template/includes/Header.ftl ofbiz/ofbiz-framework/branches/release17.12/themes/tomahawk/template/Header.ftl ofbiz/ofbiz-framework/branches/release17.12/themes/tomahawk/webapp/tomahawk/css/style.css Modified: ofbiz/ofbiz-framework/branches/release17.12/themes/bluelight/template/Header.ftl URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/branches/release17.12/themes/bluelight/template/Header.ftl?rev=1865034&r1=1865033&r2=1865034&view=diff ============================================================================== --- ofbiz/ofbiz-framework/branches/release17.12/themes/bluelight/template/Header.ftl (original) +++ ofbiz/ofbiz-framework/branches/release17.12/themes/bluelight/template/Header.ftl Tue Aug 13 12:26:54 2019 @@ -35,7 +35,11 @@ under the License. <#assign shortcutIcon = layoutSettings.VT_SHORTCUT_ICON /> </#if> <#if shortcutIcon?has_content> - <link rel="shortcut icon" href="<@ofbizContentUrl>${StringUtil.wrapString(shortcutIcon)}</@ofbizContentUrl>" /> + <link rel="shortcut icon" href="<@ofbizContentUrl>${StringUtil.wrapString(shortcutIcon)+".ico"}</@ofbizContentUrl>" type="image/x-icon"> + <link rel="icon" href="<@ofbizContentUrl>${StringUtil.wrapString(shortcutIcon)+".png"}</@ofbizContentUrl>" type="image/png"> + <link rel="icon" sizes="32x32" href="<@ofbizContentUrl>${StringUtil.wrapString(shortcutIcon)+"-32.png"}</@ofbizContentUrl>" type="image/png"> + <link rel="icon" sizes="64x64" href="<@ofbizContentUrl>${StringUtil.wrapString(shortcutIcon)+"-64.png"}</@ofbizContentUrl>" type="image/png"> + <link rel="icon" sizes="96x96" href="<@ofbizContentUrl>${StringUtil.wrapString(shortcutIcon)+"-96.png"}</@ofbizContentUrl>" type="image/png"> </#if> <#if layoutSettings.VT_HDR_JAVASCRIPT?has_content> <#list layoutSettings.VT_HDR_JAVASCRIPT as javaScript> Modified: ofbiz/ofbiz-framework/branches/release17.12/themes/common/template/includes/Lookup.ftl URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/branches/release17.12/themes/common/template/includes/Lookup.ftl?rev=1865034&r1=1865033&r2=1865034&view=diff ============================================================================== --- ofbiz/ofbiz-framework/branches/release17.12/themes/common/template/includes/Lookup.ftl (original) +++ ofbiz/ofbiz-framework/branches/release17.12/themes/common/template/includes/Lookup.ftl Tue Aug 13 12:26:54 2019 @@ -28,13 +28,17 @@ under the License. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <title>${title!}</title> <#if layoutSettings.shortcutIcon?has_content> - <#assign shortcutIcon = layoutSettings.shortcutIcon/> - <#elseif layoutSettings.VT_SHORTCUT_ICON?has_content> - <#assign shortcutIcon = layoutSettings.VT_SHORTCUT_ICON/> - </#if> + <#assign shortcutIcon = layoutSettings.shortcutIcon/> + <#elseif layoutSettings.VT_SHORTCUT_ICON?has_content> + <#assign shortcutIcon = layoutSettings.VT_SHORTCUT_ICON /> + </#if> <#if shortcutIcon?has_content> - <link rel="shortcut icon" href="<@ofbizContentUrl>${StringUtil.wrapString(shortcutIcon)}</@ofbizContentUrl>" /> - </#if> + <link rel="shortcut icon" href="<@ofbizContentUrl>${StringUtil.wrapString(shortcutIcon)+".ico"}</@ofbizContentUrl>" type="image/x-icon"> + <link rel="icon" href="<@ofbizContentUrl>${StringUtil.wrapString(shortcutIcon)+".png"}</@ofbizContentUrl>" type="image/png"> + <link rel="icon" sizes="32x32" href="<@ofbizContentUrl>${StringUtil.wrapString(shortcutIcon)+"-32.png"}</@ofbizContentUrl>" type="image/png"> + <link rel="icon" sizes="64x64" href="<@ofbizContentUrl>${StringUtil.wrapString(shortcutIcon)+"-64.png"}</@ofbizContentUrl>" type="image/png"> + <link rel="icon" sizes="96x96" href="<@ofbizContentUrl>${StringUtil.wrapString(shortcutIcon)+"-96.png"}</@ofbizContentUrl>" type="image/png"> + </#if> <#-- the trick "<scr" + "ipt below is because browsers should not parse the contents of CDATA elements, but apparently they do. --> <script language="JavaScript" type="text/javascript">//<