From 74f2c31e9bd75f44b8074642c6df9eff4c676890 Mon Sep 17 00:00:00 2001 From: ulaulaman Date: Thu, 1 Oct 2020 01:18:07 +0200 Subject: [PATCH] Pulizia --- didattica/shortcode.php | 51 ----------------------------------------- 1 file changed, 51 deletions(-) delete mode 100644 didattica/shortcode.php diff --git a/didattica/shortcode.php b/didattica/shortcode.php deleted file mode 100644 index edd27ab..0000000 --- a/didattica/shortcode.php +++ /dev/null @@ -1,51 +0,0 @@ -'; - $title = '

'.get_the_title().'

'; - if ( has_excerpt ()) { - $excerpt ='
'.get_the_excerpt().'
'; - } else { - $excerpt = ''; - } - $date = ''; - $out = $header.$title.$date.$excerpt; - - return $out; -} ); - -add_shortcode( 'sidebar_didattica', function () { - - $img = '
'; - $terms = get_the_terms( $post->ID, 'livello_educativo' ); - $numcat=sizeof($terms); - foreach ( $terms as $term ) { - $term_link = get_term_link( $term, 'livello_educativo' ); - $img = $img.''; - } - - $type = null; - $terms = get_the_terms ( $post->ID, 'tipologia_contenuto' ); - $numcat=sizeof($term); - foreach ( $terms as $term ) { - $term_link = get_term_link( $term, 'tipologia_contenuto' ); - $type = $type.', '; - } - - $auth = null; - $terms = get_the_terms ( $post->ID, 'autore_didattico' ); - $numcat=sizeof($term); - foreach ( $terms as $term ) { - $term_link = get_term_link( $term, 'autore_didattico' ); - $auth = $auth.'di '; - } - - $out = $img.'

'.$type.' '.$auth.'

'; - - return $out; -} );