Ripristino versione precedente del codice

This commit is contained in:
ulaulaman 2020-11-11 02:51:35 +01:00
parent 38d988cc99
commit c802029f05
3 changed files with 4 additions and 18 deletions

View File

@ -216,11 +216,5 @@ add_shortcode( 'sbdidattica', function () {
$outnew = $outnew.$licenza;
if ( get_post_type() == 'astrodidattica' ) {
$out = $outnew;
} else {
$out = null;
}
return $outnew;
} );

View File

@ -19,12 +19,8 @@ add_shortcode( 'sbastrofoto', function () {
$auth = $auth;
}
}
if ( get_post_type() == 'astrofoto' ) {
$out = $out = $img.$auth;;
} else {
$out = null;
}
$out = $img.$auth;
return $out;
} );

View File

@ -64,14 +64,10 @@ add_shortcode( 'sbcostellazioni', function () {
$season = $season.'<a rel="tag" href="'.$term_link.'">'.$term->name.'</a>';
}
}
$visibile = '<p><strong>Visibile in</strong>: '.$type.'</p><p>'.$season.'</p>';
if ( get_post_type() == 'costellazioni' ) {
$out = $map.$field1.$field2.$visibile;
} else {
$out = null;
}
$out = $map.$field1.$field2.$visibile;
return $out;
} );