/*
* Template Name: Archive Page
* Description: Page for creating mosaic of all images posted on the site.
*/
get_header();
?>
Archive for the Category
$ct='';?>
Archive for the Tag
echo ' ',single_cat_title(),' '; ?>
$image = YapbImage::getInstanceFromDb($post->ID);
if ($image->width > $image->height) {
$thumb_param = array(
'sx='.intval(($image->width - $image->height)/2),
'sy=0',
'sw='.$image->height,
'sh='.$image->height
);
} elseif ($image->width < $image->height) {
$thumb_param = array(
'sx=0',
'sy='.intval(($image->height - $image->width)/2),
'sw='.$image->width,
'sh='.$image->width
);
} else {
$thumb_param = array();
}
array_push($thumb_param, 'h=100', 'q=70');
echo 'ID).$ct.'">'; // append cat value to URL for images
echo ' getThumbnailHref($thumb_param).'" />';
echo '';
?>
endwhile;
?>
|
endif;
?>
get_footer();
?>
