$images =& $badge[$badge_key]; if (@$images['enabled']) { $html .= <<<ENS <h4>My {$display_name}</h4> ENS; $recent = Content::get_recent_content_for_user($user->user_id, $content_type, 8); $items_html = array(); foreach ($recent as $obj) { if ($thumbnail_key) { if (strstr($obj[$thumbnail_key], "http://")) { $img = '<img src="' . $obj[$thumbnail_key] . '" width="75px" height="75px" border="0" />'; } else { $img = uihelper_resize_mk_img($obj[$thumbnail_key], 75, 75); } } else { $img = uihelper_resize_mk_img_static(PA::$theme_rel . "/{$icon_file}", 75, 75, NULL, "", RESIZE_FIT_NO_EXPAND); } $url_enc = htmlspecialchars(PA::$url . "/media_full_view.php?cid=" . $obj['content_id'] . "&type=" . $mfv_type); $title_enc = htmlspecialchars($obj['title']); $h = <<<EOS <div class="badge_person"> <a href="{$url_enc}" target="_blank"><div class="person_image">{$img}</div><div class="person_name">{$title_enc}</div></a> </div> EOS; $items_html[] = array("item", $h); } $html .= badge_render_section($items_html); } } } else { // old-style friends / groups badge
</p> <p>reduce only, smaller: <?php echo uihelper_resize_mk_img_static("images/palogo_black_bg.jpg", 100, 100, NULL, "", RESIZE_CROP_NO_EXPAND); ?> </p> <h2><?php echo __('fitting 135x75 inside 300x300'); ?> </h2> <p>new: <?php echo uihelper_resize_mk_img_static("images/palogo_black_bg.jpg", 300, 300, NULL, "", RESIZE_FIT); ?> </p> <p><?php echo __('reduce only'); ?> : <?php echo uihelper_resize_mk_img_static("images/palogo_black_bg.jpg", 300, 300, NULL, "", RESIZE_FIT_NO_EXPAND); ?> </p> <p><?php echo __('reduce only, smaller'); ?> : <?php echo uihelper_resize_mk_img_static("images/palogo_black_bg.jpg", 100, 100, NULL, "", RESIZE_FIT_NO_EXPAND); ?> </p>