From 12a25de340355e622ba72430eaf729cf2853b5fa Mon Sep 17 00:00:00 2001 From: ulaulaman Date: Thu, 1 Oct 2020 02:27:17 +0200 Subject: [PATCH] Aggiornato snippet disattivato --- .../php/eduinaf_codice_deprecato.php | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/eduinafoldcode/php/eduinaf_codice_deprecato.php b/eduinafoldcode/php/eduinaf_codice_deprecato.php index d266020..dfac113 100644 --- a/eduinafoldcode/php/eduinaf_codice_deprecato.php +++ b/eduinafoldcode/php/eduinaf_codice_deprecato.php @@ -46,3 +46,24 @@ function specialishort($atts) { return $content; } add_shortcode( 'specialishort', 'specialishort' ); + +/* snippet cancellati */ + +# header didattica + +add_shortcode( 'header_didattica', function () { + + $header = '
'; + $title = '

'.get_the_title().'

'; + if ( has_excerpt ()) { + $excerpt ='
'.get_the_excerpt().'
'; + } else { + $excerpt = ''; + } + $date = '
'; + $out = $header.$title.$date.$excerpt; + + return $out; +} ); + +