1
0
mirror of https://github.com/ulaulaman/eduinaf.git synced 2025-01-20 20:40:04 +01:00

Inserimento codice di controllo tipologia post

This commit is contained in:
ulaulaman 2020-11-11 02:18:26 +01:00
parent ee5730e5b8
commit 64b47bc82c
3 changed files with 17 additions and 6 deletions

View File

@ -215,8 +215,12 @@ add_shortcode( 'sbdidattica', function () {
$licenza = '<p><a href="http://creativecommons.org/licenses/by-nc/4.0/" target="cc"><img src="https://i.creativecommons.org/l/by-nc/4.0/88x31.png" /></a><br/>Quest\'opera è distribuita con <a href="http://creativecommons.org/licenses/by-nc/4.0/" target="cc">Licenza Creative Commons Attribuzione - Non commerciale 4.0 Internazionale</a>.';
$outnew = $outnew.$licenza;
$out = $img;
if ( get_post_type() == 'astrodidattica' ) {
$out = $outnew;
} else {
$out = null;
}
return $outnew;
} );

View File

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

View File

@ -65,10 +65,13 @@ add_shortcode( 'sbcostellazioni', function () {
}
}
$visibile = '<p><strong>Visibile in</strong>: '.$type.'</p><p>'.$season.'</p>';
$out = $map.$field1.$field2.$visibile;
if ( get_post_type() == 'costellazioni' ) {
$out = $map.$field1.$field2.$visibile;
} else {
$out = null;
}
return $out;
} );