From 1ff997cdd69680038f6a06b033d77c97222387a4 Mon Sep 17 00:00:00 2001 From: Bhagya Silva Date: Wed, 13 May 2015 16:36:42 +0200 Subject: [PATCH 1/3] Adding fix for logo width adjustment --- .../site-data/extensions/site-logo-extensions.xml | 6 ++++++ .../resources/META-INF/components/site/site-logo.css | 12 ++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 customise-site-logo-share/src/main/resources/META-INF/components/site/site-logo.css diff --git a/customise-site-logo-share/src/main/amp/config/alfresco/site-data/extensions/site-logo-extensions.xml b/customise-site-logo-share/src/main/amp/config/alfresco/site-data/extensions/site-logo-extensions.xml index c31ad7f..02cab5f 100644 --- a/customise-site-logo-share/src/main/amp/config/alfresco/site-data/extensions/site-logo-extensions.xml +++ b/customise-site-logo-share/src/main/amp/config/alfresco/site-data/extensions/site-logo-extensions.xml @@ -9,6 +9,12 @@ org.alfresco.share.header site-logo.share-header + + org.alfresco + + /res/components/site/site-logo.css + + diff --git a/customise-site-logo-share/src/main/resources/META-INF/components/site/site-logo.css b/customise-site-logo-share/src/main/resources/META-INF/components/site/site-logo.css new file mode 100644 index 0000000..7d6428b --- /dev/null +++ b/customise-site-logo-share/src/main/resources/META-INF/components/site/site-logo.css @@ -0,0 +1,12 @@ +.alfresco-logo-Logo .alfresco-logo-large { + max-height: 100%; + width:auto; +} + +.alfresco-logo-Logo .alfresco-logo-only { + max-height: 100%; + width:auto; +} +.alfresco-logo-Logo .alfresco-logo-only > img { + max-height: 100%; +} \ No newline at end of file From 6e9b24e084e05a2b7a98203b6a25f2985b63f44e Mon Sep 17 00:00:00 2001 From: Bhagya Silva Date: Wed, 13 May 2015 16:36:55 +0200 Subject: [PATCH 2/3] Updated Maven SDK to 2.0.1-SNAPSHOT --- customise-site-logo-repo/pom.xml | 2 +- customise-site-logo-share/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/customise-site-logo-repo/pom.xml b/customise-site-logo-repo/pom.xml index 3d9984e..d75e26b 100644 --- a/customise-site-logo-repo/pom.xml +++ b/customise-site-logo-repo/pom.xml @@ -12,7 +12,7 @@ org.alfresco.maven alfresco-sdk-parent - 1.1.1 + 2.0.1-SNAPSHOT diff --git a/customise-site-logo-share/pom.xml b/customise-site-logo-share/pom.xml index bdc55b5..bcf45e9 100644 --- a/customise-site-logo-share/pom.xml +++ b/customise-site-logo-share/pom.xml @@ -12,7 +12,7 @@ org.alfresco.maven alfresco-sdk-parent - 1.1.1 + 2.0.1-SNAPSHOT From 3f589f33a9baf43c90ca4dcabbbcf22fa154f4b8 Mon Sep 17 00:00:00 2001 From: Bhagya Nirmaan Silva Date: Wed, 13 May 2015 17:11:04 +0200 Subject: [PATCH 3/3] Update README.md --- README.md | 50 +++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 43 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 0eb5765..5abd7cb 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,46 @@ -alfresco-share-site-logo-customization -====================================== +#Site Logo Customization for Alfresco Share -This addon will allow you to set a different logo for each Alfresco Site +##Introduction -It's based on the project hosted in https://code.google.com/p/alfresco-share-site-logo-customization/ +This addon will allow you to set a different logo for each Alfresco Site. (Site Specific Logo) -The differences are: -Project based on Alfresco SDK -Comparible with Alfresco Community 4.2.f +It's based on the project hosted in [https://code.google.com/p/alfresco-share-site-logo-customization/](https://code.google.com/p/alfresco-share-site-logo-customization/) + +The primary differences from the original project are: + +- Project is now based on Alfresco SDK. +- Compatible with Alfresco Community 4.2.f, Alfresco Community 5.0d, [LXCommunity LX80](https://loftux.se/en/products-and-add-ons/alfresco/alfresco-versions?ref=site-logo). + +##Building the Project +- Run `mvn package` from the project root. +- Deploy the AMP files generated in each target folder or use as dependencies in your Alfresco Maven SDK based projects. + + +##Updates + +**2015 May 13** +- Added support for Maven SDK 2.0.1-SNAPSHOT +- Fixed site logo width being set to 48px issue + + +##Authors + +###Original Author +- Alex Yu-Kuang Lu, ixxus ([https://github.com/alu-ixxus](https://github.com/alu-ixxus), [http://www.ixxus.com](http://www.ixxus.com)) + +###Contributors +- Douglas C. R. Paes ([http://douglascrp.blogspot.se/](http://douglascrp.blogspot.se/)) +- Bhagya Silva, Loftux AB ([http://about.me/bhagyas](http://about.me/bhagyas), [http://www.loftux.se/en](http://www.loftux.se/en?ref=site-logo)) + +##License +- Apache License 2.0 + + +##Support or Contact + +If you discover any issues, please report them over at GitHub - or simply fork the project, fix it and then do a pull request. + +Commercial support available from sponsors. + +##Contributions +Feel free to make suggestions on the issue tracker and pull requests for any improvements you make to the code.