diff --git a/app/App.php b/app/App.php index e878358..46ff6fe 100644 --- a/app/App.php +++ b/app/App.php @@ -58,7 +58,7 @@ class App extends Application */ public function getResumeJson() { - return $this->getDataDirectory() . '/resume.test.data.json'; + return $this->getDataDirectory() . '/resume.json'; } /** @@ -197,6 +197,13 @@ class App extends Application */ public function registerIcon(\Sikofitt\Image\Profile\ProfileIconInterface $icon) { - $this->config(sprintf('app.icons.%s', $icon->getName()), ['icon' => $icon->getIcon(), 'url' => $icon->getDefaultUrl()]); + $r = new ReflectionClass($icon); + if($r->hasMethod('getClass')) { + $classes = $icon->getClass(); + } else { + $classes = null; + } + + $this->config(sprintf('app.icons.%s', $icon->getName()), ['icon' => $icon->getIcon(), 'url' => $icon->getDefaultUrl(), 'class' => $classes]); } } diff --git a/app/config/config.yml b/app/config/config.yml index dd25dca..42adf70 100644 --- a/app/config/config.yml +++ b/app/config/config.yml @@ -1,10 +1,10 @@ # This file is auto-generated during the composer install app: - debug: true - environment: dev + debug: false + environment: prod title: 'R. Eric Wheeler | Resume' email: eric@rewiv.com - phone: 510-646-2135 + phone: 971-770-2633 schema: 'https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json' captcha: true captcha_sitekey: 6LcvmSQTAAAAAMmf9w6mhCbpdLvknuD9SGVHT0q- @@ -13,5 +13,5 @@ app: smtp_host: smtp.gmail.com smtp_port: 465 smtp_user: eric@rewiv.com - smtp_password: 'P*8ic32!100023&p' + smtp_password: '123' from_email: no-reply@rewiv.com diff --git a/app/themes/default/base.html.twig b/app/themes/default/base.html.twig index a3f99c4..0d02861 100644 --- a/app/themes/default/base.html.twig +++ b/app/themes/default/base.html.twig @@ -7,10 +7,11 @@ {% block meta %}{% endblock %} {% block title %}Resume{% endblock %} {% block shortcut_icon %} - {# #} + + {% endblock %} {% block apple_meta %} - {# #} + {% endblock %} diff --git a/app/themes/default/index.html.twig b/app/themes/default/index.html.twig index 1c242cf..dee55bf 100644 --- a/app/themes/default/index.html.twig +++ b/app/themes/default/index.html.twig @@ -34,12 +34,7 @@ {% include 'skills.html.twig' %} {% include 'work.html.twig' %} - {{ 'volunteer' }} {{ dump(volunteer) }} - {{ 'education' }} {{ dump(education) }} - {{ 'awards' }} {{ dump(awards) }} - {{ 'publications' }} {{ dump(publications) }} - {{ 'languages' }} {{ dump(languages) }} - {{ 'interests' }} {{ dump(interests) }} + {% include 'references.html.twig' %} diff --git a/app/themes/default/phone.html.twig b/app/themes/default/phone.html.twig index e4a8d6f..aa2019b 100644 --- a/app/themes/default/phone.html.twig +++ b/app/themes/default/phone.html.twig @@ -1,28 +1,36 @@ {% if renderPdf == false %}
-
- +
+ -
+
-
-

Verify

-
-

Verify that you are a human please.

-
-
-
+
+
+ + +
+ Verify + Please verify you are human. +
+ +
+
+
+
+
+ +
+ +
+
+
+ + +
-
- -
- -
-
-
{% endif %} \ No newline at end of file diff --git a/data/resume.json b/data/resume.json index b7c7b6a..a74802b 100644 --- a/data/resume.json +++ b/data/resume.json @@ -4,15 +4,15 @@ "label": "Developer / Systems", "picture": "http://rewiv.com/storage/me.png", "email": "eric@ericwheeler.net", - "phone": "510-646-2135", + "phone": "971-770-2633", "website": "http://rewiv.com", "summary": "My name is Eric Wheeler.
I enjoy programming, working on computer hardware/electronics, music and gardening. My computer experience dates back to the Apple II/e. I enjoy learning in general, although my focus is mainly on new technologies. I have excellent problem solving skills, I adapt well to new things, and learn very quickly.", "location": { "address": "", - "postalCode": "94578", - "city": "San Leandro", + "postalCode": "97217", + "city": "Portland", "countryCode": "US", - "region": "California" + "region": "Oregon" }, "profiles": [ { @@ -34,6 +34,11 @@ "network": "linkedin", "username": "reric", "url": "https://www.linkedin.com/in/reric" + }, + { + "network": "facebook", + "username": "rericc", + "url": "https://fb.me/rericc" } ] }, @@ -93,7 +98,10 @@ "HTML 4/5", "CSS 2/3", "Javascript", - "jQuery" + "jQuery", + "Bootstrap 2/3", + "UIKit", + "The GNU Image Manipulation Program (G.I.M.P.)" ] }, { diff --git a/src/Sikofitt/Image/Profile/FacebookProfileIcon.php b/src/Sikofitt/Image/Profile/FacebookProfileIcon.php index aff9616..6099231 100644 --- a/src/Sikofitt/Image/Profile/FacebookProfileIcon.php +++ b/src/Sikofitt/Image/Profile/FacebookProfileIcon.php @@ -39,6 +39,11 @@ class FacebookProfileIcon implements ProfileIconInterface public function getIcon() { - return 'data:image/x-icon;base64,AAABAAIAICAAAAEAIACoEAAAJgAAABAQAAABACAAaAQAAM4QAAAoAAAAIAAAAEAAAAABACAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlFZBSp5eROejYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+bXUT//////////////////////5tdRP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+eX0TklFZBSgAAAAAAAAAAAAAAAAAAAACZWkLmo2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/5tdRP//////////////////////m11E/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+aW0PnAAAAAAAAAAAAAAAAAAAAAJtdRP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/m11E//////////////////////+bXUT/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/5tdRP8AAAAAAAAAAAAAAAAAAAAAm11E/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+bXUT//////////////////////5tdRP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/m11E/wAAAAAAAAAAAAAAAAAAAACbXUT/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/5tdRP//////////////////////m11E/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+bXUT/AAAAAAAAAAAAAAAAAAAAAJtdRP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/m11E//////////////////////+bXUT/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/5tdRP8AAAAAAAAAAAAAAAAAAAAAm11E/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+bXUT//////////////////////5tdRP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/m11E/wAAAAAAAAAAAAAAAAAAAACbXUT/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/5tdRP//////////////////////m11E/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+bXUT/AAAAAAAAAAAAAAAAAAAAAJtdRP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/m11E//////////////////////+bXUT/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/5tdRP8AAAAAAAAAAAAAAAAAAAAAm11E/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+bXUT//////////////////////5tdRP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/m11E/wAAAAAAAAAAAAAAAAAAAACbXUT/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/oGFG/51eRf+bXUT/m11E/5VZQv//////////////////////lVlC/5tdRP+bXUT/nV5F/6BgRv+jYkj/o2JI/6NiSP+bXUT/AAAAAAAAAAAAAAAAAAAAAJtdRP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+dXkX/kFdA/4tTPf+LUz3/iVE8//////////////////////+JUTz/i1M9/4tTPf+PVj7/ml1E/6JhRv+jYkj/o2JI/5tdRP8AAAAAAAAAAAAAAAAAAAAAm11E/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/5tdRP////////////////////////////////////////////////////////////////+ib1r/oGBG/6NiSP+jYkj/m11E/wAAAAAAAAAAAAAAAAAAAACbXUT/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/m11E/////////////////////////////////////////////////////////////////7qWiP+eX0X/o2JI/6NiSP+bXUT/AAAAAAAAAAAAAAAAAAAAAJtdRP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+dXkX/////////////////////////////////////////////////////////////////18G5/55fRf+jYkj/o2JI/5tdRP8AAAAAAAAAAAAAAAAAAAAAm11E/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6BhRv/////////////////////////////////////////////////////////////////z6+j/oGFG/6NiSP+jYkj/m11E/wAAAAAAAAAAAAAAAAAAAACbXUT/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/5tdRP//////////////////////m11E/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+bXUT/AAAAAAAAAAAAAAAAAAAAAJtdRP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/m11E//////////////////////+YW0P/omFG/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/5tdRP8AAAAAAAAAAAAAAAAAAAAAm11E/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+bXUT//////////////////////5dgS/+YW0P/m11E/5tdRP+dXkX/oGFG/6NiSP+jYkj/m11E/wAAAAAAAAAAAAAAAAAAAACbXUT/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/51eRf/7+fj/////////////////x66k/49bRf+LUz3/i1M9/5BXQP+dXkX/o2JI/6NiSP+bXUT/AAAAAAAAAAAAAAAAAAAAAJtdRP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/n2BF/+3i3v///////////////////////////////////////////5tdRP+jYkj/o2JI/5tdRP8AAAAAAAAAAAAAAAAAAAAAm11E/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+iYUb/zrCk////////////////////////////////////////////m11E/6NiSP+jYkj/m11E/wAAAAAAAAAAAAAAAAAAAACbXUT/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+malH/7eLd//////////////////////////////////////+fX0X/o2JI/6NiSP+bXUT/AAAAAAAAAAAAAAAAAAAAAJtdRP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+maFD/0LGk//Dm4v/7+fj/+/j3//Pr6P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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP//////////4AAAB8AAAAPAAAADwAAAA8AAAAPAAAADwAAAA8AAAAPAAAADwAAAA8AAAAPAAAADwAAAA8AAAAPAAAADwAAAA8AAAAPAAAADwAAAA8AAAAPAAAADwAAAA8AAAAPAAAADwAAAA8AAAAPAAAAD4AAAB///////////KAAAABAAAAAgAAAAAQAgAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAoGBFw6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI////////////o2JI/6NiSP+jYkj/o2JI/6JgR8QAAAAAAAAAAKNiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP///////////6NiSP+jYkj/o2JI/6NiSP+jYkj/AAAAAAAAAACjYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj///////////+jYkj/o2JI/6NiSP+jYkj/o2JI/wAAAAAAAAAAo2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI////////////o2JI/6NiSP+jYkj/o2JI/6NiSP8AAAAAAAAAAKNiSP+jYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP///////////6NiSP+jYkj/o2JI/6NiSP+jYkj/AAAAAAAAAACjYkj/o2JI/6NiSP+jYkj/o2JI/4JOOv+CTjr///////////+CTjr/gk46/5JYQP+jYkj/o2JI/wAAAAAAAAAAo2JI/6NiSP+jYkj/o2JI/6NiSP/////////////////////////////////HrqT/o2JI/6NiSP8AAAAAAAAAAKNiSP+jYkj/o2JI/6NiSP+jYkj/////////////////////////////////8efj/6NiSP+jYkj/AAAAAAAAAACjYkj/o2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj///////////+aXUT/o2JI/6NiSP+jYkj/o2JI/wAAAAAAAAAAo2JI/6NiSP+jYkj/o2JI/6NiSP+jYkj/o2JI//n29f//////pH5v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ABhATIRR1tDGFszIzNZTT/9oACAEBAAY/AiYwiMzKTMzmSIyKdSIinyRFPmZnzM+Z4p4LHytbrUmRvdu7NaukJY97NsSU7QHQAj9xpLXqO/dCrCubK2YyPr0UrGLGqirZSDq1ix6olDkrb1gPZWO01aT3wnu/SD/lMj/ds/6dKHNQZ1R5m1TytZ2B7lXuoUOQOvD5XDfVRuVVU7U1QOj487ZGZtZynzAGQyuXz9mbmKE6hTjwYFl7t8KabxlToSiIaAfqLXQoiOv2TI/kqcc2+/5P5TOmU9wu/JZx9lyP5KnHNnv+T+Uzp//EABoQAQACAwEAAAAAAAAAAAAAAAEAMRARMEH/2gAIAQEAAT8hSy6Eo2rFWUKKys2Dx+6MMGZ2reISzKRFpkZkEjL9VfxkC2aCl/O9+90vflrlBKOU0OP/2gAMAwEAAgADAAAAELOxMBCfgP/EAB0RAQACAQUBAAAAAAAAAAAAAAERISAAEDFBUZH/2gAIAQMBAT8QRIBBQKgqhVFVVVdWINvKjwoCBFzoREGR40r6JAjdNyyu0xlMyyMwKuMkgu46JPKBZQBgBjpYk9Ppi80y/wD/xAAbEQEAAgMBAQAAAAAAAAAAAAABESEAIPAQQf/aAAgBAgEBPxA7IHhwGAAAAAAAMFANoKcwMgrZHNdVdSvMmRLH7r2PhNCuDSVrJhYkSBUcEZ7Tk4uosdMvB4jYfZhf/8QAGRABAAMBAQAAAAAAAAAAAAAAAQAQESAx/9oACAEBAAE/EE4Ut7k0H/4BXRUqCGM3wa/UwFRqSRcpElrcTu+bQ2aPWDFjMvchiAlwOQDst+ER6X6L/9k='; + } + + public function getClass() + { + return 'uk-border-circle'; } } diff --git a/src/Sikofitt/Twig/RenderProfile.php b/src/Sikofitt/Twig/RenderProfile.php index 7fc796d..353b31b 100644 --- a/src/Sikofitt/Twig/RenderProfile.php +++ b/src/Sikofitt/Twig/RenderProfile.php @@ -24,6 +24,9 @@ namespace Sikofitt\Twig; +use Symfony\Bridge\Monolog\Logger; +use Symfony\Component\VarDumper\Caster\ReflectionCaster; + class RenderProfile extends \Twig_Extension { @@ -42,7 +45,7 @@ class RenderProfile extends \Twig_Extension public function renderProfile($context, $iconData, $withText = false) { $imageData = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAIAAABLixI0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AcHEQYsjAFXqQAAAEVpVFh0Q29tbWVudAAAAAAAQ1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSkcgSlBFRyB2ODApLCBxdWFsaXR5ID0gOTAKqozFDgAAAiVJREFUOMutlT/oOWEcx+8OX5fLDVwx2ZQFSQYzmZgMzCaDzaCUMpmQkowM2G+gFFnUGXRKSQwGIYtyisif+w2n+973ucef4fde7u75fD6v5/l8Ps/zHMLDxHFcp9OJxWJOp1Ov1ysUChzHLRZLNBrt9Xrn8xkahciH6vW6VqtFXouiqOFw+JmVz+eR79Rqtd6xSqUS8rUwDGNZFs7a7/c4jku9lUplOByuVqvtdpum6Xg8jqKo1MHn88FZHo8HmPnn50co8+PxeLVwjuNA1mq1giaSTCaDwaDX653P58+Av6pUKiJLKQxNJhMUReWumUxGeGFZ1mw2yydbLpe/FRQeh8NBDhJFkmQgEEAQJJ1OAyaDwfD7ISyv2+0CdZV2YL1e8zw/Go3UajXQSkjtj8fjK1YkEnmWQ6kETEajUcp65qjRaAqFApRls9kQBBkMBrfbDTBtt9tGowHmKMhqtUJzJAhCpVJBZ9LpdKfTCbLvGYaRe2ez2d1uV6vV5CahLAzDwM9jIpEAAjabDXRnCSqXy5fLBc46HA4kSUq9c7kcz/PQdQElAlnX69XhcHx5vP1+P6SP0i0DnPD3rD+xgPnxeJhMpm9AKIra7faXCYtaLBYURUHjRWEYJnbw5R0t6HK5hEIhKYggiGazOZ1O+/1+u90ej8ef73up3G63yEqlUu+dP7Du97vL5RL+F/wnIR89ZrMZhmHFYvE/sHiep2lavFff6B8xFGrMmf/uPQAAAABJRU5ErkJggg=='; - //network": "Twitter" +"username": "sikofitt" +"url": "" + $icons = $context['app']->config('app.icons'); $network = strtolower($iconData->network); @@ -52,10 +55,14 @@ class RenderProfile extends \Twig_Extension } else { return; } + + + if (!isset($iconData->url) || empty($iconData->url)) { $iconData->url = $icons[strtolower($iconData->network)]['url'] . '/' . $iconData->username; } - $imageUrl = sprintf('%s', $imageData['icon'], $iconData->network); + + $imageUrl = sprintf('%s', $imageData['icon'], $iconData->network, $imageData['class']); if (isset($iconData->url) && !empty($iconData->url)) { if ($withText) { return sprintf('%s %s', $iconData->url, $iconData->network, $imageUrl, $iconData->url); diff --git a/web/favicon.ico b/web/favicon.ico new file mode 100644 index 0000000..85fcd13 Binary files /dev/null and b/web/favicon.ico differ diff --git a/web/favicon.png b/web/favicon.png new file mode 100644 index 0000000..5fd0287 Binary files /dev/null and b/web/favicon.png differ