Hi, I would like to make some modifications in the CV header of moderncv, classic style, as here shown in this picture:
This is the code I used to produce that figure (without the red marks obviously!), but I am stuck.. Could you please help me?
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{casual}
\moderncvcolor{blue}
\usepackage[utf8]{inputenc}
\usepackage[scale=0.75]{geometry}
% personal data
\name{John}{Doe}
\title{Resumé title}
\address{street, number}{postcode, city}{country}
\phone[mobile]{+1~(234)~567~890}
% \phone[fixed]{+2~(345)~678~901}
\email{[email protected]}
\homepage{www.johndoe.com}
\social[linkedin]{john.doe}
% \social[twitter]{jdoe}
% \social[github]{jdoe}
\extrainfo{additional information}
\photo[64pt][0.4pt]{example-image-a}
\quote{Some long quote, some long quote, some long quote, some long quote, some long quote, some long quote, some long quote, some long quote, some long quote, some long quote, some long quote, some long quote, some long quote, some long quote, some long quote, some long quote, some long quote, some long quote, some long quote, some long quote, some long quote, some long quote, }
% https://tex.stackexchange.com/questions/353579/patchcmd-not-showing
\makeatletter
% phone definition (a bit messy... anything easier?)
\def\phonesdetails{}
\collectionloop{phones}
{
\protected@edef\phonesdetails
{\phonesdetails\protect\makenewline\csname\collectionloopkey phonesymbol\endcsname\collectionloopitem
}}
% social definition (a bit messy... anything easier?)
\def\socialsdetails{}
\collectionloop{socials}{
\protected@edef\socialsdetails{\socialsdetails\protect\makenewline\csname\collectionloopkey socialsymbol\endcsname\collectionloopitem
}}
\patchcmd{\makecvhead}% <cmd> instead \makecvtitle
{\framebox{\includegraphics[width=\@photowidth]{\@photo}}}% <search>
{\begin{tabular}[t]{@{}p{4cm}p{2cm}@{}}
&
\raisebox{-\totalheight}{\includegraphics[width=\@photowidth]{\@photo}}
\\
\namefont{\color{color1}\@firstname{\color{color1}\@lastname}} & \\
\namefont{\color{color2}\@title} & \\
\addresssymbol\@addressstreet & \phonesdetails \\
\@addresscity & \emailsymbol\emaillink{\@email} \\
\@addresscountry & \socialsdetails \\
\end{tabular}%
}% <replace>
{}{}% <success><failure>
\makeatother
\begin{document}
\makecvtitle
\section{Education}
\cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description}
\cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description}
\end{document}