refactor header code in awesome-cv.cls

This commit is contained in:
Posquit0.BJ 2016-01-30 11:18:36 +09:00
parent fd8b88ba15
commit 31d163247d

View file

@ -412,91 +412,55 @@
\ifthenelse{\isundefined{\@email}}% \ifthenelse{\isundefined{\@email}}%
{}% {}%
{% {%
\ifbool{isstart}% \ifbool{isstart}{\setbool{istart}{false}}{\acvHeaderSocialSep}%
{%
\setbool{istart}{false}%
}%
{\acvHeaderSocialSep}%
\href{mailto:\@email}{\faEnvelope\acvHeaderIconSep\@email}% \href{mailto:\@email}{\faEnvelope\acvHeaderIconSep\@email}%
}% }%
\ifthenelse{\isundefined{\@homepage}}% \ifthenelse{\isundefined{\@homepage}}%
{}% {}%
{% {%
\ifbool{isstart}% \ifbool{isstart}{\setbool{istart}{false}}{\acvHeaderSocialSep}%
{%
\setbool{istart}{false}%
}%
{\acvHeaderSocialSep}%
\href{http://\@homepage}{\faHome\acvHeaderIconSep\@homepage}% \href{http://\@homepage}{\faHome\acvHeaderIconSep\@homepage}%
}% }%
\ifthenelse{\isundefined{\@github}}% \ifthenelse{\isundefined{\@github}}%
{}% {}%
{% {%
\ifbool{isstart}% \ifbool{isstart}{\setbool{istart}{false}}{\acvHeaderSocialSep}%
{%
\setbool{istart}{false}%
}%
{\acvHeaderSocialSep}%
\href{https://github.com/\@github}{\faGithubSquare\acvHeaderIconSep\@github}% \href{https://github.com/\@github}{\faGithubSquare\acvHeaderIconSep\@github}%
}% }%
\ifthenelse{\isundefined{\@stackoverflowid}}% \ifthenelse{\isundefined{\@stackoverflowid}}%
{}% {}%
{% {%
\ifbool{isstart}% \ifbool{isstart}{\setbool{istart}{false}}{\acvHeaderSocialSep}%
{%
\setbool{istart}{false} %
}%
{\acvHeaderSocialSep}%
\href{https://stackoverflow.com/users/\@stackoverflowid}{\faStackOverflow\acvHeaderIconSep\@stackoverflowname}% \href{https://stackoverflow.com/users/\@stackoverflowid}{\faStackOverflow\acvHeaderIconSep\@stackoverflowname}%
}% }%
\ifthenelse{\isundefined{\@linkedin}}% \ifthenelse{\isundefined{\@linkedin}}%
{}% {}%
{% {%
\ifbool{isstart}% \ifbool{isstart}{\setbool{istart}{false}}{\acvHeaderSocialSep}%
{%
\setbool{istart}{false}%
}%
{\acvHeaderSocialSep}%
\href{https://www.linkedin.com/in/\@linkedin}{\faLinkedinSquare\acvHeaderIconSep\@linkedin}% \href{https://www.linkedin.com/in/\@linkedin}{\faLinkedinSquare\acvHeaderIconSep\@linkedin}%
}% }%
\ifthenelse{\isundefined{\@twitter}}% \ifthenelse{\isundefined{\@twitter}}%
{}% {}%
{% {%
\ifbool{isstart}% \ifbool{isstart}{\setbool{istart}{false}}{\acvHeaderSocialSep}%
{%
\setbool{istart}{false} %
}%
{\acvHeaderSocialSep}%
\href{https://twitter.com/\@twitter}{\faTwitter\acvHeaderIconSep\@twitter}% \href{https://twitter.com/\@twitter}{\faTwitter\acvHeaderIconSep\@twitter}%
}% }%
\ifthenelse{\isundefined{\@skype}}% \ifthenelse{\isundefined{\@skype}}%
{}% {}%
{% {%
\ifbool{isstart}% \ifbool{isstart}{\setbool{istart}{false}}{\acvHeaderSocialSep}%
{%
\setbool{istart}{false} %
}%
{\acvHeaderSocialSep}%
\faSkype\acvHeaderIconSep\@skype% \faSkype\acvHeaderIconSep\@skype%
}% }%
\ifthenelse{\isundefined{\@reddit}}% \ifthenelse{\isundefined{\@reddit}}%
{}% {}%
{% {%
\ifbool{isstart}% \ifbool{isstart}{\setbool{istart}{false}}{\acvHeaderSocialSep}%
{%
\setbool{istart}{false} %
}%
{\acvHeaderSocialSep}%
\href{https://www.reddit.com/user/\@reddit}{\faReddit\acvHeaderIconSep\@reddit}% \href{https://www.reddit.com/user/\@reddit}{\faReddit\acvHeaderIconSep\@reddit}%
}% }%
\ifthenelse{\isundefined{\@extrainfo}}% \ifthenelse{\isundefined{\@extrainfo}}%
{}% {}%
{% {%
\ifbool{isstart}% \ifbool{isstart}{\setbool{istart}{false}}{\acvHeaderSocialSep}%
{%
\setbool{istart}{false} %
}%
{\acvHeaderSocialSep}%
\@extrainfo% \@extrainfo%
}% }%
} \\[\acvHeaderAfterSocialSkip]% } \\[\acvHeaderAfterSocialSkip]%