'1', 'bar' => '0', 'con' => '0'), $atts));
switch ($col) {
case 0:
$atscss= "";
break;
case 1:
$atscss= "";
break;
case 2:
$atscss= "width:49%;float:left;";
$atw2 = "width:98%;float:left;";
break;
case 3:
$atscss= "width:31%;float:left;";
$atw2 = "width:62%;float:left;";
break;
}
echo '
';
if ($bar) {
echo '
';
if ($bar > 2) {
echo do_shortcode( '[at-desc]' );
}
if ($bar > 1) {
echo '
Ultimi inseriti';
}
echo do_shortcode( '[at-search]' ).'
';
}
$atcontatore = $atct = 0;
foreach (amministrazionetrasparente_getarray() as $inner) {
$atcontatore++;
// Scan through inner loop
$atreturn = '';
$atcounter = 0;
foreach ($inner[1] as $value) {
$args = array( 'taxonomy' => 'tipologie', 'term' => $value );
$query = new WP_Query( $args );
$fount_posts = $query->found_posts;
$atcounter = $atcounter + $fount_posts;
if ( !$fount_posts && at_option('opacity') ) {
$opty = 'style="opacity: 0.5;"';
} else { $opty = ''; }
$atreturn .= '- ';
$atreturn .= '' . $value . '';
$atreturn .= '
';
}
$atreturn .= '
';
echo '';
$sez_l = strtolower(preg_replace('/[^a-zA-Z]+/', '', $inner[0]));
echo '
';
if ($con) { echo '
'.$atcounter.'
'; }
echo ''.$inner[0].'';
echo $atreturn;
echo '
';
if ($col && $atcontatore == $col) {
echo '';
$atcontatore=0;
}
}
if ( at_option('show_love') ) {
echo '
wpgov.it
Powered by Amministrazione Trasparente
';
}
echo '';
?>