\documentclass{MYbidipresentation}

%\usepackage{calc}
\usepackage{sectsty}
\allsectionsfont{\centering\bf\yekan\color{purple}}

\newcommand{\lesstikzdefinition}{\addtocounter{tikzdefinition}{-1}}
\newcommand{\lesstikztheorem}{\addtocounter{tikztheorem}{-1}}
\newcommand{\lesssection}{\addtocounter{section}{-1}}
\newcommand{\lessequation}{\addtocounter{equation}{-1}}

\input{COMMAND}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\sectionmark}[1]{\markright{#1}{}} %%استخراج عنوان خالص سكشن % required for writing the section titles in the header
%--------------------------------------------------------------------------------------------------------------
%\newcommand{\headerbody}{\hfill\color{magenta}\bf\koodak\thesection~~\rightmark\\[-5pt]\hrule}

%\newdynamicframe[>2]{\textwidth}{10mm}{0pt}{100mm}[header] % to produce a header
%\setdynamiccontents*{header}{\headerbody}


\newcommand{\footerbody}{\textcolor{black}{\hrule}\newline\hspace*{\fill}\textcolor{MyGreenrgb!35!black}{\scriptsize\vahid
استفاده از روش‌های جدید
}\hfill%
\fcolorbox{white}{red!10}{\textcolor{MyGreenhsb!15!red}{\tiny\pageref{LastPage}}}\ / \fcolorbox{white}{red!10}{\textcolor{MyGreenhsb!25!red}{\tiny\thepage}}}

\newdynamicframe[>2]{\textwidth}{10mm}{0mm}{-12mm}[footer] % to produce a footer
\setdynamiccontents*{footer}{\footerbody}



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\begin{document}
\setlength{\baselineskip}{2\baselineskip}
%-------------------------------------------------
\mdfsetup{skipabove=\topskip,skipbelow=\topskip}
%-----------------------------------------------
\input{Title}
\input{BeamerChap1}
%-----------------------------------------------
\begin{plainslide}%\setdynamiccontents*{header}{}
\setdynamiccontents*{footer}{}
\AddToShipoutPicture*{\put(-40,0){\includegraphics[height=\paperheight, width=194mm]{SS004.jpg}}}
\centering
{\Huge\bfseries\titr\textcolor{white}{
با تشکّر از توجّه شما
}}
\end{plainslide}
%-----------------------------------------------
\end{document}