How can i center the image in this script?
<div class="usericon">
<?php
if ((isadminloggedin()) || (!$vars['entity']->isBanned())) {
?><a href="<?php echo $vars['entity']->getURL(); ?>" class="icon" ><?php
}
}
?><img src="<?php echo $vars['entity']->getIcon($vars['size']); ?>" border="0" <?php echo $align; ?> title="<?php echo htmlentities($vars['entity']->name, ENT_QUOTES, 'UTF-8'); ?>" <?php echo $vars['js']; ?> /><?php
if (!$override) {
?></a><div class="sub_menu">
<a href="<?php echo $vars['entity']->getURL(); ?>"><h3><?php echo $vars['entity']->name; ?></h3></a>
<?php
if (isloggedin()) {
$actions = elgg_view('profile/menu/actions',$vars);
if (!empty($actions)) {
echo "<div class=\"item_line\">{$actions}</div>";
}
if ($vars['entity']->getGUID() == $vars['user']->getGUID()) {
echo elgg_view('profile/menu/linksownpage',$vars);
} else {
echo elgg_view('profile/menu/links',$vars);
}
} else {
echo elgg_view('profile/menu/links',$vars);
}
?>
</div>
</div>
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Per Jensen@gillie
Per Jensen - 0 likes
- Clinton van Axel@ruffsense
Clinton van Axel - 0 likes
- Clinton van Axel@ruffsense
Clinton van Axel - 0 likes
- Brett@brett.profitt
Brett - 0 likes
You must log in to post replies.Almost all styling is done in the corresponding css files.
No i want 2 do it in a echo style. Is this possible?
Can nobody help me out?
This is a CSS question--You need to write some CSS rules to center the image. I'm not sure what you mean by "echo style."