make the sponsors clickable, if they have a url
This commit is contained in:
parent
01ad399aea
commit
4a4bb1a5b0
|
@ -25,12 +25,20 @@ get_header(); ?>
|
||||||
?>
|
?>
|
||||||
<div class="col2 tac">
|
<div class="col2 tac">
|
||||||
<?php
|
<?php
|
||||||
|
$custom = get_post_custom();
|
||||||
|
if (!empty ($custom['url'])) {
|
||||||
|
echo '<a href="'.$custom['url'][0].'" target=_blank alt="'.get_the_title().'">';
|
||||||
|
}
|
||||||
|
|
||||||
if ( has_post_thumbnail() ) {
|
if ( has_post_thumbnail() ) {
|
||||||
the_post_thumbnail();
|
the_post_thumbnail();
|
||||||
} else {
|
} else {
|
||||||
the_title();
|
the_title();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!empty ($custom['url'])) {
|
||||||
|
echo '</a>';
|
||||||
|
}
|
||||||
the_excerpt();
|
the_excerpt();
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue