Ho questi 2 codici, sono identici, cambia solo quella nell'else che ha i 2 puntini prima di /wp-login.php
Vorrei evitare di tenere 2 codici identici, ma di metterne uno che fa tutto.
Codice PHP:
<?php
if (is_home()) {
$output = '© 2016-'.(new DateTime('now', new DateTimeZone('Europe/Rome')))->format('Y').' AlbenessereBlog - Powered by <a class ="info" href="https://it.wordpress.org" target="_blank">WordPress</a> - <a class ="info" href="https://themezee.com/themes/donovan" target="_blank">Donovan original theme</a>
- <a class ="info" href="informativa-privacy">Informativa privacy</a> - <a class ="info" href="wp-login.php">Area amministratore</a>';
echo $output;
}
else {
$output = '© 2016-'.(new DateTime('now', new DateTimeZone('Europe/Rome')))->format('Y').' AlbenessereBlog - Powered by <a class ="info" href="https://it.wordpress.org" target="_blank">WordPress</a> - <a class ="info" href="https://themezee.com/themes/donovan" target="_blank">Donovan original theme</a>
- <a class ="info" href="informativa-privacy">Informativa privacy</a> - <a class ="info" href="../wp-login.php">Area amministratore</a>';
echo $output;
}
?>