mirror of
https://github.com/posquit0/Awesome-CV.git
synced 2026-05-13 16:38:38 +08:00
Add support for WhatsApp links (#555)
* Add support for WhatsApp links See "How to use click to chat": "Create your own link" in WhatsApp Help Center <https://faq.whatsapp.com/5913398998672934#create-your-own-link>. * fix: use FontAwesome 6 icon name for WhatsApp FontAwesome 6 renamed brand square icons from `\fa<Brand>Square` to `\faSquare<Brand>`. Update WhatsApp icon from `\faWhatsappSquare` to `\faSquareWhatsapp` to match the fontawesome6 package. Fixes compilation error: ``` Undefined control sequence: \faWhatsappSquare ``` * fix: add `faAlt` text for WhatsApp header icon
This commit is contained in:
parent
12dd17c773
commit
1d6a925bb6
4 changed files with 23 additions and 0 deletions
|
|
@ -307,6 +307,20 @@
|
|||
\StrDel{\@teluri}{)}[\@teluri]%
|
||||
}
|
||||
|
||||
% Defines writer's WhatsApp (optional)
|
||||
% Usage: \whatsapp{<mobile number>}
|
||||
\newcommand*{\whatsapp}[1]
|
||||
{
|
||||
\def\@whatsapp{#1}
|
||||
\def\@wameuri{https://wa.me/\@whatsapp}
|
||||
% Strip unwanted characters
|
||||
\StrDel{\@wameuri}{ }[\@wameuri]%
|
||||
\StrDel{\@wameuri}{+}[\@wameuri]%
|
||||
\StrDel{\@wameuri}{-}[\@wameuri]%
|
||||
\StrDel{\@wameuri}{(}[\@wameuri]%
|
||||
\StrDel{\@wameuri}{)}[\@wameuri]%
|
||||
}
|
||||
|
||||
% Defines writer's email (optional)
|
||||
% Usage: \email{<email address>}
|
||||
\newcommand*{\email}[1]{\def\@email{#1}}
|
||||
|
|
@ -533,6 +547,12 @@
|
|||
\href{\@teluri}{\faAlt{tel:\@mobile}{\faMobile}{\@mobile}}%
|
||||
\setbool{isstart}{false}%
|
||||
}%
|
||||
\ifthenelse{\isundefined{\@whatsapp}}%
|
||||
{}%
|
||||
{%
|
||||
\ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}%
|
||||
\href{\@wameuri}{\faAlt{WhatsApp: \@whatsapp}{\faSquareWhatsapp}{\@whatsapp}}%
|
||||
}%
|
||||
\ifthenelse{\isundefined{\@email}}%
|
||||
{}%
|
||||
{%
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@
|
|||
\address{235, World Cup buk-ro, Mapo-gu, Seoul, 03936, Republic of Korea}
|
||||
|
||||
\mobile{(+82) 10-9030-1843}
|
||||
%\whatsapp{(+82) 10-9030-1843}
|
||||
\email{posquit0.bj@gmail.com}
|
||||
%\dateofbirth{January 1st, 1970}
|
||||
\homepage{www.posquit0.com}
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@
|
|||
\address{235, World Cup buk-ro, Mapo-gu, Seoul, 03936, Republic of Korea}
|
||||
|
||||
\mobile{(+82) 10-9030-1843}
|
||||
%\whatsapp{(+82) 10-9030-1843}
|
||||
\email{posquit0.bj@gmail.com}
|
||||
%\dateofbirth{January 1st, 1970}
|
||||
\homepage{www.posquit0.com}
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@
|
|||
\address{235, World Cup buk-ro, Mapo-gu, Seoul, 03936, Republic of Korea}
|
||||
|
||||
\mobile{(+82) 10-9030-1843}
|
||||
%\whatsapp{(+82) 10-9030-1843}
|
||||
\email{posquit0.bj@gmail.com}
|
||||
%\dateofbirth{January 1st, 1970}
|
||||
\homepage{www.posquit0.com}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue