% Copyright 2017 Alick Zhao <alick9188@gmail.com>
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License, version 1.3c or later, and/or
% 2. under the GNU Public License, version 2 or later.
%
% Last modified on: 2017-07-16

\mode<presentation>

\ifbeamer@infolines
  \useoutertheme{infolines}
\else
  \ifbeamer@secheader
    \useoutertheme{infolines}
  \else
    \useoutertheme{default}
  \fi
\fi

\ifbeamer@infolines
\setbeamertemplate{footline}
{
  \leavevmode%
  \hbox{%
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
    \usebeamerfont{author in head/foot}\insertshortauthor\expandafter\beamer@ifempty\expandafter{\beamer@shortinstitute}{}{~~(\insertshortinstitute)}
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
    \usebeamerfont{title in head/foot}\insertshorttitle
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
    \usebeamerfont{date in head/foot}\insertshortdate{}
      \ifbeamer@onlycurpagenum\hspace*{5em}
	\insertframenumber{}\hspace*{2ex}
      \else\hspace*{2em}
	\insertframenumber{} / \inserttotalframenumber\hspace*{2ex}
      \fi
  \end{beamercolorbox}}%
  \vskip0pt%
}
\else
\setbeamertemplate{footline}
{
  \leavevmode%
  \hbox{%
  \begin{beamercolorbox}[wd=\paperwidth,ht=2.25ex,dp=1ex,right]{page number in head/foot}%
    \ifbeamer@onlycurpagenum
      \insertframenumber{}\hspace*{2ex}
    \else
      \insertframenumber{} / \inserttotalframenumber\hspace*{2ex}
    \fi
  \end{beamercolorbox}}%
  \vskip0pt%
}
\fi

\mode
<all>
