* Adjust style when it is not onlybody.

This commit is contained in:
daitingting
2018-05-28 10:08:02 +08:00
parent b038d71873
commit 6ecf999f86
+6 -1
View File
@@ -11,10 +11,15 @@
*/
?>
<?php include '../../common/view/header.html.php';?>
<?php if(!isonlybody()):?>
<style>
.main-content{width: 600px; margin: 0 auto;}
</style>
<?php endif;?>
<div id='mainContent' class='main-content'>
<div class='main-header'>
<h2><?php echo html::icon($lang->icons['user']);?> <?php echo $lang->my->profile;?></h2>
<div class='actions'>
<div class='actions pull-right'>
<?php echo html::a($this->createLink('my', 'editprofile'), $lang->user->editProfile, '', "class='btn btn-primary'");?>
</div>
</div>