Changed address/phone number added facebook icon

This commit is contained in:
R. Eric Wheeler 2016-07-25 09:15:00 -07:00
parent 13f99ed192
commit 4623252424
10 changed files with 71 additions and 40 deletions

View File

@ -58,7 +58,7 @@ class App extends Application
*/ */
public function getResumeJson() 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) 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]);
} }
} }

View File

@ -1,10 +1,10 @@
# This file is auto-generated during the composer install # This file is auto-generated during the composer install
app: app:
debug: true debug: false
environment: dev environment: prod
title: 'R. Eric Wheeler | Resume' title: 'R. Eric Wheeler | Resume'
email: eric@rewiv.com 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' schema: 'https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json'
captcha: true captcha: true
captcha_sitekey: 6LcvmSQTAAAAAMmf9w6mhCbpdLvknuD9SGVHT0q- captcha_sitekey: 6LcvmSQTAAAAAMmf9w6mhCbpdLvknuD9SGVHT0q-
@ -13,5 +13,5 @@ app:
smtp_host: smtp.gmail.com smtp_host: smtp.gmail.com
smtp_port: 465 smtp_port: 465
smtp_user: eric@rewiv.com smtp_user: eric@rewiv.com
smtp_password: 'P*8ic32!100023&p' smtp_password: '123'
from_email: no-reply@rewiv.com from_email: no-reply@rewiv.com

View File

@ -7,10 +7,11 @@
{% block meta %}{% endblock %} {% block meta %}{% endblock %}
<title>{% block title %}Resume{% endblock %}</title> <title>{% block title %}Resume{% endblock %}</title>
{% block shortcut_icon %} {% block shortcut_icon %}
{# <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"> #} <link rel="shortcut icon" href="/favicon.png" type="image/png" />
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
{% endblock %} {% endblock %}
{% block apple_meta %} {% block apple_meta %}
{# <link rel="apple-touch-icon-precomposed" href="images/apple-touch-icon.png"> #} <link rel="apple-touch-icon-precomposed" href="/favicon.png" type="image/png" />
{% endblock %} {% endblock %}
<link rel="stylesheet" href="{{ baseUrl ~ asset('css/resume.min.css') }}"> <link rel="stylesheet" href="{{ baseUrl ~ asset('css/resume.min.css') }}">

View File

@ -34,12 +34,7 @@
{% include 'skills.html.twig' %} {% include 'skills.html.twig' %}
{% include 'work.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' %} {% include 'references.html.twig' %}
</div> </div>

View File

@ -1,28 +1,36 @@
{% if renderPdf == false %} {% if renderPdf == false %}
<!-- phone --> <!-- phone -->
<div id="phone-modal" class="uk-modal"> <div id="phone-modal" class="uk-modal">
<div class="uk-modal-dialog uk-modal-dialog-blank"> <div class="uk-modal-dialog uk-modal-dialog-blank">
<button class="uk-modal-close uk-close" type="button"></button> <button class="uk-modal-close uk-close" type="button"></button>
<div class="uk-grid uk-flex-center uk-grid-match uk-grid-divider uk-flex-middle uk-height-viewport uk-cover-background"> <div class="uk-grid uk-flex-center uk-grid-divider uk-flex-middle uk-height-viewport uk-cover-background">
<div id="phone-recaptcha-wrapper"> <div class="uk-width-small-1-1 uk-width-large-1-3" id="phone-recaptcha-wrapper">
<h1>Verify</h1> <div class="uk-container uk-container-center">
<div> <form class="uk-form" id="phone-recaptcha" method="post" action="{{ path('api_captcha') }}" onsubmit="return false;">
<p> Verify that you are a human please.</p>
<form class="uk-form" id="phone-recaptcha" method="post" action="{{ path('api_captcha') }}" <fieldset data-uk-margin>
onsubmit="return false;"> <legend>Verify
<div class="uk-form-row"> <small class="uk-align-right">Please verify you are human.</small></legend>
<div class="g-recaptcha" data-sitekey="6LcvmSQTAAAAAMmf9w6mhCbpdLvknuD9SGVHT0q-"></div> <div class="uk-form-row">
<label class="uk-form-label uk-hidden">Verify</label>
<div class="uk-form-controls">
<div class="g-recaptcha" data-sitekey="6LcvmSQTAAAAAMmf9w6mhCbpdLvknuD9SGVHT0q-"></div>
</div>
</div>
<div class="uk-form-row uk-align-left uk-margin-small-top">
<label class="uk-hidden" for="verify">Verify</label>
<div class="uk-form-controls uk-align-left uk-margin-top">
<button class="uk-button uk-button-large uk-button-primary" type="submit">Verify</button>
</div>
</div>
</fieldset>
</form>
</div>
</div> </div>
<div class="uk-form-row">
<input type="submit" class="uk-button" id="submit" name="submit" value="Verify"/>
</div>
</form>
</div> </div>
</div>
</div> </div>
</div>
</div> </div>
{% endif %} {% endif %}

View File

@ -4,15 +4,15 @@
"label": "Developer / Systems", "label": "Developer / Systems",
"picture": "http://rewiv.com/storage/me.png", "picture": "http://rewiv.com/storage/me.png",
"email": "eric@ericwheeler.net", "email": "eric@ericwheeler.net",
"phone": "510-646-2135", "phone": "971-770-2633",
"website": "http://rewiv.com", "website": "http://rewiv.com",
"summary": "My name is Eric Wheeler.<br /> 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.", "summary": "My name is Eric Wheeler.<br /> 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": { "location": {
"address": "", "address": "",
"postalCode": "94578", "postalCode": "97217",
"city": "San Leandro", "city": "Portland",
"countryCode": "US", "countryCode": "US",
"region": "California" "region": "Oregon"
}, },
"profiles": [ "profiles": [
{ {
@ -34,6 +34,11 @@
"network": "linkedin", "network": "linkedin",
"username": "reric", "username": "reric",
"url": "https://www.linkedin.com/in/reric" "url": "https://www.linkedin.com/in/reric"
},
{
"network": "facebook",
"username": "rericc",
"url": "https://fb.me/rericc"
} }
] ]
}, },
@ -93,7 +98,10 @@
"HTML 4/5", "HTML 4/5",
"CSS 2/3", "CSS 2/3",
"Javascript", "Javascript",
"jQuery" "jQuery",
"Bootstrap 2/3",
"UIKit",
"The GNU Image Manipulation Program (G.I.M.P.)"
] ]
}, },
{ {

File diff suppressed because one or more lines are too long

View File

@ -24,6 +24,9 @@
namespace Sikofitt\Twig; namespace Sikofitt\Twig;
use Symfony\Bridge\Monolog\Logger;
use Symfony\Component\VarDumper\Caster\ReflectionCaster;
class RenderProfile extends \Twig_Extension class RenderProfile extends \Twig_Extension
{ {
@ -42,7 +45,7 @@ class RenderProfile extends \Twig_Extension
public function renderProfile($context, $iconData, $withText = false) public function renderProfile($context, $iconData, $withText = false)
{ {
$imageData = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAIAAABLixI0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AcHEQYsjAFXqQAAAEVpVFh0Q29tbWVudAAAAAAAQ1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSkcgSlBFRyB2ODApLCBxdWFsaXR5ID0gOTAKqozFDgAAAiVJREFUOMutlT/oOWEcx+8OX5fLDVwx2ZQFSQYzmZgMzCaDzaCUMpmQkowM2G+gFFnUGXRKSQwGIYtyisif+w2n+973ucef4fde7u75fD6v5/l8Ps/zHMLDxHFcp9OJxWJOp1Ov1ysUChzHLRZLNBrt9Xrn8xkahciH6vW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jqKo1MHn88FZHo8HmPnn50co8+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'); $icons = $context['app']->config('app.icons');
$network = strtolower($iconData->network); $network = strtolower($iconData->network);
@ -52,10 +55,14 @@ class RenderProfile extends \Twig_Extension
} else { } else {
return; return;
} }
if (!isset($iconData->url) || empty($iconData->url)) { if (!isset($iconData->url) || empty($iconData->url)) {
$iconData->url = $icons[strtolower($iconData->network)]['url'] . '/' . $iconData->username; $iconData->url = $icons[strtolower($iconData->network)]['url'] . '/' . $iconData->username;
} }
$imageUrl = sprintf('<img src="%s" alt="%s" />', $imageData['icon'], $iconData->network);
$imageUrl = sprintf('<img src="%s" alt="%s" class="%s" />', $imageData['icon'], $iconData->network, $imageData['class']);
if (isset($iconData->url) && !empty($iconData->url)) { if (isset($iconData->url) && !empty($iconData->url)) {
if ($withText) { if ($withText) {
return sprintf('<a class="profile-link" href="%s" title="%s" target="_blank"><span class="uk-margin-small-right">%s</span> %s</a>', $iconData->url, $iconData->network, $imageUrl, $iconData->url); return sprintf('<a class="profile-link" href="%s" title="%s" target="_blank"><span class="uk-margin-small-right">%s</span> %s</a>', $iconData->url, $iconData->network, $imageUrl, $iconData->url);

BIN
web/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

BIN
web/favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB