diff --git a/awesome-cv.cls b/awesome-cv.cls index 87fce2f..8e68d92 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -307,6 +307,20 @@ \StrDel{\@teluri}{)}[\@teluri]% } +% Defines writer's WhatsApp (optional) +% Usage: \whatsapp{} +\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{} \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}}% {}% {% diff --git a/examples/coverletter.tex b/examples/coverletter.tex index 3b3a30f..6200a15 100644 --- a/examples/coverletter.tex +++ b/examples/coverletter.tex @@ -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} diff --git a/examples/cv.tex b/examples/cv.tex index e936309..0958311 100644 --- a/examples/cv.tex +++ b/examples/cv.tex @@ -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} diff --git a/examples/resume.tex b/examples/resume.tex index a934172..0722f27 100644 --- a/examples/resume.tex +++ b/examples/resume.tex @@ -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}