<?php $current_date = getdate(); $current_year = $current_date['year']; if ( !empty( $_GET['year'] ) ) { $display_year = $_GET['year']; } else { $display_year = $current_year; } $pageTitle = $display_year; ?>