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; +} ); + +