diff --git a/LICENSE.html b/LICENSE.html index f468c29e..f010bb37 100644 --- a/LICENSE.html +++ b/LICENSE.html @@ -36,6 +36,7 @@
+{{gravatar}}

The MIT License (MIT)

Copyright © {{info}}

diff --git a/README.md b/README.md index 8ef054f9..d591ec54 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,7 @@ Available fields: * url * email * format +* gravatar * version * theme @@ -97,6 +98,21 @@ And if you want your license to appear as plain text, just add the "format": "txt" } +### gravatar + +And if you want to show your gravatar, just add the `gravatar` +property (allowed values are `on` or `off`): + + { + "copyright": "Remy Sharp, http://remysharp.com", + "url": "http://remysharp.com", + "email": "me@mysite.com", + "gravatar": "on" + } + +*Depends of email property. You need to check the compatibility of the +chosen theme. Currently, only the default theme supports Gravatar.* + ### License version targeting License version targeting allows you to link your MIT license to a @@ -141,7 +157,8 @@ Current available themes: * default - [preview](http://mit-license.org) (by [@remy](http://github.com/remy) & - [@raphaelbastide](http://github.com/raphaelbastide)) + [@raphaelbastide](http://github.com/raphaelbastide) & + [@evertton](http://github.com/evertton)) * flesch - [preview](http://jsbin.com/ufefid/3) (by [@flesch](http://github.com/flesch)) * afterdark - [preview](http://jsbin.com/ivufon/4) (by [@rmartindotco](http://github.com/rmartindotco)) @@ -191,6 +208,7 @@ Development contributions from: * [batuhanicoz](http://github.com/batuhanicoz) * [georgebashi](http://github.com/georgebashi) * [mathiasbynens](http://github.com/mathiasbynens) +* [evertton](http://github.com/evertton) ### 1. Donate domain years diff --git a/index.php b/index.php index 5f387bb3..7d75e8ed 100644 --- a/index.php +++ b/index.php @@ -56,6 +56,11 @@ if (property_exists($user, 'email')) { $holder = $holder . ' <' . $user->email . '>'; + + if(property_exists($user, 'gravatar') && $user->gravatar === "on"){ + $gravatar = ''; + } + } if (property_exists($user, 'format')) { @@ -135,6 +140,7 @@ $info = $year . ' ' . $holder; $license = str_replace('{{info}}', $info, $license); $license = str_replace('{{theme}}', $theme, $license); +$license = str_replace('{{gravatar}}', $gravatar, $license); // if we want text format, strip out the license from the article tag // and then strip any other tags in the license. diff --git a/seyedi.json b/seyedi.json deleted file mode 100644 index 03e86bfc..00000000 --- a/seyedi.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - copyright : 'Seyed Mojtaba Seyedi, http://seyedi.github.com', - url : 'http://seyedi.github.com' - email : 'seyedmojtabaseyedi@gmail.com' - theme : 'default' -} diff --git a/themes/default.css b/themes/default.css index f23fc2b4..6bee89d5 100644 --- a/themes/default.css +++ b/themes/default.css @@ -17,4 +17,4 @@ a:active { color:#000; } :-moz-any-link:focus {color:#000; border:0;} ::selection {background:#ccc;} ::-moz-selection {background:#ccc;} - +#gravatar{position:relative;float:right;} diff --git a/users/evertton.json b/users/evertton.json index e56c3573..fb10f32a 100644 --- a/users/evertton.json +++ b/users/evertton.json @@ -2,5 +2,6 @@ "copyright": "Evertton de Lima", "email": "e.everttonlima@gmail.com", "format": "html", + "gravatar": "on", "theme": "default" }