% File created by Daniel Haase based on 'beamerouterthemeinfolines.sty' by Till Tantau
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%
% See the file doc/licenses/LICENSE for more details.

% translation for slide numbers shown in the footer, e.g. "7 of 18"
\usepackage{translator}
\deftranslation[to=English]{of}{of}
\deftranslation[to=German]{of}{von}

\setbeamertemplate{navigation symbols}{}

\mode<presentation>

% set some colors
% \setbeamercolor*{author in head/foot}{parent=palette tertiary}
% \setbeamercolor*{title in head/foot}{parent=palette secondary}
% \setbeamercolor*{date in head/foot}{parent=palette primary}
% 
% \setbeamercolor*{section in head/foot}{parent=palette tertiary}
% \setbeamercolor*{subsection in head/foot}{parent=palette primary}

% headline
\defbeamertemplate*{headline}{al theme}{%
   \insertlogo%
}

% frame title
\defbeamertemplate*{frametitle}{al theme}[1][center]{%
   \vspace{2ex}%
   \hbox{%
      \begin{beamercolorbox}[wd=0.09\paperwidth]{}%
      \end{beamercolorbox}%
      \begin{beamercolorbox}[wd=0.55\paperwidth]{palette secondary}%
         \usebeamerfont{headline}\insertsectionhead%
         \ifx\insertsubsectionhead\@empty%
         \else%
         :~\insertsubsectionhead%
         \fi%
         \\[-1ex]%
         {\usebeamerfont{frametitle}\insertframetitle\strut\par}%
         \ifx\insertframesubtitle\@empty%
         \else%
         {\usebeamerfont{framesubtitle}\usebeamercolor{framesubtitle}\insertframesubtitle\\[-2.5em]\strut\par}%
         \fi%
      \end{beamercolorbox}
   }%
   \leavevmode\\[-0.5em]%
}

% right sidebar
% is necessary, as this is the original position of the logo (see default outer theme)
\defbeamertemplate*{sidebar right}{al theme}{}

% footline
\defbeamertemplate*{footline}{al theme}{%
  \leavevmode%
  \hbox{%
  \begin{beamercolorbox}[wd=.4\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
    \usebeamerfont{author in head/foot}\insertshortauthor~~%(\insertshortinstitute)
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.535\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
    \usebeamerfont{title in head/foot}\insertshorttitle
  \end{beamercolorbox}%
% 
  \begin{picture}(0,0)
% 	  \@ifundefined{maskottchen}{}{
%       \put(0,7){\includegraphics[width=.065\paperwidth]{\maskottchen}}}
      \put(-2,0){
	\begin{beamercolorbox}[wd=.065\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
	%SHOW CURRENT DATE
	% \usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}
	%SHOW CURRENT NUMBER OF FRAME
	\insertframenumber{}
	%SHOW TOTAL NUMBER OF FRAMES 
	    \hspace*{2ex} 
	\end{beamercolorbox}%
  	}
  \end{picture}
  }
  \vskip0pt%
}

\setbeamersize{text margin left=1em,text margin right=1em}

% we don't want no icon bar
\defbeamertemplate*{sidebar right}{masl theme} {}
\beamertemplatenavigationsymbolsempty      % deaktivieren der Navigationsleiste

\mode
<all>
