I'm working on beamer and setting up a custom footnote-template. In this template I invoke a macro which contains the footnotes.
The problem is, that beamer prints the contents of the footnote-template every time the \footnote macro was used. Because of that, if no \footnote was used the template isn't printed.
How is it possible to print the template once (and only once) at the end (so after any \AddToFoot) of each frame? A two run solution utilizing footline is not an option (well technically it is, but where's the fun in that).
An option which doesn't move any contents of the slide would be appreciated (so unlike my \invisfootnote).
Another template, which gets evaluated/used at the end of each frame would be fine, too, so it doesn't has to be footnote.
MWE:
\documentclass[]{beamer}
\setbeamertemplate{footnote}{%
\hfill\smash{\llap{\parbox[b]{5cm}{\footnotesize\myfootnotes}}}%
}
\newcommand*{\myfootnotes}{}
\newcommand*{\AddToFoot}[1]{\edef\myfootnotes{\myfootnotes#1\\}}
\newcommand*{\invisfootnote}{\smash{\llap{\phantom{\footnote{foo}}}}}% still takes up space
\let\footnoterule\relax
\makeatletter
%\def\@end@frame@hook{\invisfootnote}% doesn't work
%\edef\endframe{\noexpand\invisfootnote\unexpanded\expandafter{\endframe}}% doesn't work
\makeatother
\begin{document}
\begin{frame}
\frametitle{with \texttt{\string\footnote}}
\begin{itemize}
\item Foo
\item Bar
\item Baz
\end{itemize}
\AddToFoot{foo}
\AddToFoot{bar}
\invisfootnote
\end{frame}
\begin{frame}
\frametitle{without \texttt{\string\footnote}}
\begin{itemize}
\item Foo
\item Bar
\item Baz
\end{itemize}
\AddToFoot{foo}
\AddToFoot{bar}
\end{frame}
\end{document}
Edit: Defining a new environment which calls the frame environment and something like \invisfootnote would work, but is definitely not the desired solution.
Edit2: What I'm actually trying to achieve is to rebuild the following template (the image is created using the code I already have with the two-pass solution to the footnote problem):


beamerdocumentation says something along the lines: "Use\setbeamertemplate{footnote}" this is overkill. I still think that applying small changes to the frame layout should be easier :) – Skillmon Aug 29 '17 at 14:38\setbeamertemplate. – samcarter_is_at_topanswers.xyz Aug 29 '17 at 14:44