From 572103de993986d86cd70e0fa5f1eaa12ddcc8b0 Mon Sep 17 00:00:00 2001
From: admin <admin@optics-design.com>
Date: Sun, 31 Aug 2025 01:55:07 +0200
Subject: added website option

---
 beamerthemeOptics.sty | 45 +++++++++++++++++++++++++++++++++++++--------
 1 file changed, 37 insertions(+), 8 deletions(-)

(limited to 'beamerthemeOptics.sty')

diff --git a/beamerthemeOptics.sty b/beamerthemeOptics.sty
index 6df7188..7c34115 100644
--- a/beamerthemeOptics.sty
+++ b/beamerthemeOptics.sty
@@ -34,14 +34,42 @@
 \setlength{\abovecaptionskip}{-6pt}
 \setlength{\belowcaptionskip}{6pt}
 
+% Custom command for location
+\newcommand{\location}[1]{\def\insertlocation{#1}}
+\location{} % Default empty
+\newcommand{\email}[1]{\def\insertemail{#1}}
+\email{} % Default empty
+\newcommand{\website}[2]{\def\insertwebsitename{#1}\def\insertwebsiteurl{#2}}
+\newcommand{\insertwebsite}{%
+  \ifx\insertwebsitename\empty%
+  \else%
+    \href{\insertwebsiteurl}{\faGlobe\ \insertwebsitename}%
+  \fi%
+}
+\website{}{} % Default empty
 % Clean header with presentation title in dark blue
+
 \setbeamertemplate{headline}{%
   \begin{beamercolorbox}[wd=\paperwidth,ht=2.5ex,dp=1ex]{title in head/foot}%
     \usebeamerfont{title in head/foot}%
-    \begin{minipage}[c]{0.5\paperwidth}%
+    \begin{minipage}[c]{0.33\paperwidth}%
       \color{darkblue}\hspace{1em}\insertsection%
     \end{minipage}%
-    \begin{minipage}[c]{0.5\paperwidth}%
+      \begin{minipage}[c]{0.34\paperwidth}%
+      \ifnum\value{framenumber}>1% Only show author after title page
+      \color{darkblue}
+      \centering
+      \insertwebsite%
+  \fi
+    \end{minipage}%
+    % \begin{minipage}[c]{0.34\paperwidth}%
+    %       \color{darkblue}\hspace{1em}%
+    %   \ifx\insertwebsite\empty%
+    %   \else%
+    %     \href{\insertwebsite}{\insertwebsite}%
+    %   \fi%
+    % \end{minipage}%
+    \begin{minipage}[c]{0.33\paperwidth}%
       \raggedleft%
       \ifnum\value{framenumber}>1% Only show author after title page
         \color{darkblue}%
@@ -59,11 +87,6 @@
   % \end{beamercolorbox}%
 }
 
-% Custom command for location
-\newcommand{\location}[1]{\def\insertlocation{#1}}
-\location{} % Default empty
-\newcommand{\email}[1]{\def\insertemail{#1}}
-\email{} % Default empty
 
 % Custom title page with location
 \setbeamertemplate{title page}{%
@@ -80,6 +103,12 @@
       \fi%     
     \end{beamercolorbox}%
     \vskip1em\par
+    \ifx\insertwebsitename\empty%
+    \else%
+      \begin{beamercolorbox}[sep=4pt,center]{author}
+        \usebeamerfont{author}\insertwebsite
+      \end{beamercolorbox}
+    \fi%
     \begin{beamercolorbox}[sep=8pt,center]{author}
       \usebeamerfont{author}%
       \ifx\insertemail\empty%
@@ -109,7 +138,7 @@
     \usebeamerfont{title in head/foot}%
     \color{secondary}%
     \begin{minipage}[c]{0.33\paperwidth}%
-      \hspace{1em}\insertshorttitle : \insertsubtitle%
+      \hspace{1em}\insertshorttitle $\cdot$ \insertsubtitle%
     \end{minipage}%
     \begin{minipage}[c]{0.34\paperwidth}%
       \centering%
-- 
cgit v1.2.3

