Na této stránce lze vidět recenze. Pokud kliknete na jméno, recenze se otevře. Já bych rád, aby se otevřela i po kliknutí na obrázek, je to možné?
Pokud si radu ceníte, napište.
Děkuji
Zasílám část *.php souboru, kde to asi je, celý soubor můžu poslat do zpráv.
Kód: Vybrat vše
case 'staff':
$img = wp_get_attachment_image_src( get_post_thumbnail_id( get_the_ID() ), 'full' );
$out .= '<img src="' . bfi_thumb($img[0], array('width' => 270, 'height' => 270) ) . '" alt="">';
$out .= '<div class="hover-effect"></div>';
$out .= '<div class="links">';
$cws_stored_meta = isset( $cws_stored_meta[0]['social'] ) ? $cws_stored_meta[0]['social'] : array();
if (count($cws_stored_meta)>0) {
foreach ($cws_stored_meta as $social_item) {
$url = $social_item['cws-mb-socialgroup-url'];
$title = $social_item['cws-mb-socialgroup-title'];
$fa = $social_item['cws-mb-socialgroup-fa'];
$out .= '<a ' . ( $url ? "href='$url' " : "" ) . ( $title ? "title='$title' " : "" ) . ( $fa ? "class='fa fa-$fa' " : "" ) . '></a>';
}
}
$out .= "</div></div><div class='team_member_info'>";
$name = get_the_title();
$link = get_permalink();
$out .= $name ? "<a href='$link'><div class='name'>" . $name . "</div></a>" : "";
$terms = wp_get_post_terms(get_the_ID(), 'cws-staff-position');
if ( count($terms) ):
$out .= "<div class='positions'>";
$i = 0;
foreach ($terms as $k=>$v) {
$i++;
$out .= $v->name;
if ($i < count($terms)) {
$out .= ', ';
}
}
$out .= "</div>";
endif;
break;
}
$out .= '</div></div>';
return $out;
}