From 0155d963812a5b5254f2e6e3bc6bc35eeacd6da7 Mon Sep 17 00:00:00 2001 From: Julian Prieber Date: Tue, 28 Mar 2023 14:19:37 +0200 Subject: [PATCH] Bugfix Fixed vcard title bug --- app/Http/Controllers/UserController.php | 4 +- .../components/pageitems/vcard-form.blade.php | 95 ++++++++++++------- 2 files changed, 65 insertions(+), 34 deletions(-) diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php index 7a36471..046a9f3 100755 --- a/app/Http/Controllers/UserController.php +++ b/app/Http/Controllers/UserController.php @@ -362,7 +362,7 @@ class UserController extends Controller $suffix = $request->input('suffix'); $nickname = $request->input('nickname'); $organization = $request->input('organization'); - $title = $request->input('title'); + $vtitle = $request->input('vtitle'); $role = $request->input('role'); $workUrl = $request->input('work_url'); $email = $request->input('email'); @@ -392,7 +392,7 @@ class UserController extends Controller // Set the organization information $vCard->addCompany($organization); - $vCard->addJobtitle($title); + $vCard->addJobtitle($vtitle); $vCard->addUrl($workUrl); // Set the phone numbers diff --git a/resources/views/components/pageitems/vcard-form.blade.php b/resources/views/components/pageitems/vcard-form.blade.php index d56e5db..a5bad29 100644 --- a/resources/views/components/pageitems/vcard-form.blade.php +++ b/resources/views/components/pageitems/vcard-form.blade.php @@ -1,11 +1,42 @@ -name)){$buttonName = $button->name;}else{$buttonName = 0;} ?> +name)){$buttonName = $button->name;}else{$buttonName = 0;} ?> - - -Leave blank for default title
+{{-- @php +$vcard = new VCard($link_url); +$prefix = $vcard->getPrefix(); +$firstName = $vcard->getFirstName(); +$middleName = $vcard->getMiddleName(); +$lastName = $vcard->getLastName(); +$suffix = $vcard->getSuffix(); +$organization = $vcard->getOrganization(); +$title = $vcard->getTitle(); +$role = $vcard->getRole(); +$workUrl = $vcard->getUrl(); +$email = $vcard->getEmail(); +$workEmail = $vcard->getWorkEmail(); +$homePhone = $vcard->getHomePhone(); +$workPhone = $vcard->getWorkPhone(); +$cellPhone = $vcard->getCellPhone(); +$homeAddressLabel = $vcard->getHomeAddressLabel(); +$homeAddressStreet = $vcard->getHomeAddressStreet(); +$homeAddressCity = $vcard->getHomeAddressCity(); +$homeAddressState = $vcard->getHomeAddressRegion(); +$homeAddressZip = $vcard->getHomeAddressPostalCode(); +$homeAddressCountry = $vcard->getHomeAddressCountry(); +$workAddressLabel = $vcard->getWorkAddressLabel(); +$workAddressStreet = $vcard->getWorkAddressStreet(); +$workAddressCity = $vcard->getWorkAddressCity(); +$workAddressState = $vcard->getWorkAddressRegion(); +$workAddressZip = $vcard->getWorkAddressPostalCode(); +$workAddressCountry = $vcard->getWorkAddressCountry(); +@endphp --}} + + + +Leave blank for default title
+{{$link_url}}
Upload existing file
@@ -14,95 +45,95 @@

Name

- +
- +
- +
- +
- +
{{-- - +
--}}

Work

- +
- - + +
- +
- +

Emails

- + Enter your personal email
- + Enter your work email

Phones

- +
- +
- +

Home Address

- +
- +
- +
- +
- +
- +

Work Address

- +
- +
- +
- +
- +
- +