mirror of
https://github.com/ulaulaman/eduinaf.git
synced 2024-12-17 00:48:47 +01:00
Modifica minore per correzione errore tabella
This commit is contained in:
parent
497086cfd5
commit
045fa019ad
@ -85,7 +85,7 @@ function specialishort($atts) {
|
||||
|
||||
if ($nomespeciale <> $speciale) { $content = null; } else {
|
||||
$q = new WP_Query( array( 'speciali' => $speciale, 'posts_per_page'=>-1 ) );
|
||||
$content = '<p>';
|
||||
$header = '<div class="divTable paleBlueRows"><div class="divTableHeading"><div class="divTableRow"><div class="divTableHead"><strong>Speciale '.$speciale.'</strong></div></div></div>';
|
||||
|
||||
if ( $q->have_posts() ) {
|
||||
while ( $q->have_posts() ) {
|
||||
@ -98,8 +98,7 @@ function specialishort($atts) {
|
||||
}
|
||||
$estratto = get_the_excerpt();
|
||||
|
||||
$header = '<div class="divTable paleBlueRows"><div class="divTableHeading"><div class="divTableRow"><div class="divTableHead"><strong>Speciale '.$speciale.'</strong></div></div></div>';
|
||||
$content .= $header.'<div class="divTableBody"><div class="divTableRow"><div class="divTableCell"><a href="'.get_the_permalink().'" style="color: #1d71b8;">'.$titolo.'</a></div></div></div></div>';
|
||||
$content .= '<div class="divTableBody"><div class="divTableRow"><div class="divTableCell"><a href="'.get_the_permalink().'" style="color: #1d71b8;">'.$titolo.'</a></div></div></div>';
|
||||
}
|
||||
$content = $content.'</p>';
|
||||
/* ripristino */
|
||||
@ -107,6 +106,8 @@ function specialishort($atts) {
|
||||
}
|
||||
}
|
||||
|
||||
$content = '<p>'.$header.$content.'</div></p>';
|
||||
|
||||
return $content;
|
||||
}
|
||||
add_shortcode( 'specialishort', 'specialishort' );
|
||||
|
Loading…
Reference in New Issue
Block a user