Example #1
0
	        'label' => lang('profile_username'),
	        'attributes' => array(
		        'type' => 'text',
		        'name' => 'profile_username',
		        'id' => 'profile_username',
		        'value' => set_value('profile_username') ? set_value('profile_username') : ( isset($account->username) ? $account->username : ''),
		        'maxlength' => '24',
		        'placeholder' => lang('profile_username')
	        )
		)
	);

	$this->load->view('admin/form/input', array(
			'error' => form_error('profile_picture') || isset($profile_picture_error),
	        'label' => lang('profile_picture'),
	        'image' => ( isset( $account_details->picture ) && $account_details->picture ? showPhoto( $account_details->picture ) : null ),
	        'header' => lang('profile_custom_upload_picture'),
	        'description' => (
	            isset( $account_details->picture ) && $account_details->picture
		        ? anchor('account/account_profile/index/delete', '<i class="icon trash"></i> '.lang('profile_delete_picture'), 'class="ui mini button negative"')
		        : '<br><small><i class="info icon"></i>' . lang('profile_picture_guidelines') . '></small>'
			),
	        'attributes' => array(
		        'type' => 'item_image',
		        'name' => 'account_picture_upload',
		        'id' => 'account_picture_upload',
		        'value' => set_value('profile_picture') ? set_value('profile_picture') : ( isset($account->username) ? $account->username : ''),
	        )
		)
	);
Example #2
0
<!-- Left side column. contains the logo and sidebar -->
      <aside class="main-sidebar">
        <!-- sidebar: style can be found in sidebar.less -->
        <section class="sidebar">
          <!-- Sidebar user panel -->
          <div class="user-panel">
            <div class="pull-left image">
			   <?php 
if (isset($account_details->picture) && strlen(trim($account_details->picture)) > 0) {
    echo showPhoto($account_details->picture, array('class' => 'img-circle'));
} else {
    echo showPhoto(null, array('class' => 'img-circle'));
}
?>
            </div>
            <div class="pull-left info">
              <p><?php 
echo $account_details->fullname ? $account_details->fullname : $account->username;
?>
</p>
              <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
            </div>
          </div>
          <!-- search form -->
          <form action="#" method="get" class="sidebar-form">
            <div class="input-group">
              <input type="text" name="q" class="form-control" placeholder="Search..." />
              <span class="input-group-btn">
                <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i></button>
              </span>
            </div>
Example #3
0
            <td>
                <form class="LogoutButton" action="user.php" method="post">
                    <input type="submit" name="logout" value="Выйти">
                </form>
            </td>
        </tr>
    </table>
</div>
<div class="texst" align="center">
    <table class="centerTable" align="center" style="background-image: url(<?php 
echo showCover($email);
?>
);" >
        <tr style="background: linear-gradient(to top, rgba(29, 27, 27, 1), rgba(73, 73, 73, 0.26), rgba(255, 255, 255, 0));">
            <td class="userPhoto" style="background-image: url(<?php 
echo showPhoto($email);
?>
);">
            </td>
            <td class="mainInfo" style="width: 1px;">
                <p class="nameSurname"><?php 
echo $name;
?>
</p>
            </td>
        </tr>
    </table>
</div>
<div class="coverChange" align="center">
    <table>
        <tr>
    echo form_upload(array('name' => 'account_picture_upload', 'id' => 'account_picture_upload'));
    ?>
<br>
										<p class="help-block">(<?php 
    echo lang('profile_picture_guidelines');
    ?>
)</p>
									</p>
								</div>
							</div>

							<div class="accountPicSelect clearfix">
								<div class="pull-left">
									<input type="radio" name="pic_selection" value="gravatar" />
									<?php 
    echo showPhoto($gravatar, array('class' => 'img-circle'));
    ?>
								</div>
								<div class="pull-left">
									<p>
										<p class="help-block"><a href="http://gravatar.com/" target="_blank">Gravatar</a></p>
									</p>
								</div>
							</div>
						
						<?php 
}
?>
						
						<?php 
if (!isset($account_details->picture)) {
Example #5
0
    echo form_upload(array('name' => 'account_picture_upload', 'id' => 'account_picture_upload'));
    ?>
<br>
									<small>(<?php 
    echo lang('profile_picture_guidelines');
    ?>
)</small>
								</p>
							</div>
						</div>

						<div class="accountPicSelect clearfix">
							<div class="pull-left">
								<input type="radio" name="pic_selection" value="gravatar" />
								<?php 
    echo showPhoto($gravatar);
    ?>
							</div>
							<div class="pull-left">
								<p>
									<small><a href="http://gravatar.com/" target="_blank">Gravatar</a></small>
								</p>
							</div>
						</div>
					
					<?php 
}
?>
                    </p>
					<?php 
if (!isset($account_details->picture)) {
Example #6
0
/**
 * Shows source's photo
 * @param string $picture Description
 * @param Array $param Array with parameters to be included in the generated img tag (height, width, id, check, nocache, title, class)
 * @return string
 */
function showSourcePhoto($picture = NULL, $param = NULL)
{
    return showPhoto($picture, $param, base_url() . RES_DIR . '/source/profile/');
}
Example #7
0
resources/img/icon.png" alt="Carus"></a>
		</div>
		<div class="right menu">
<?php 
if ($this->authentication->is_signed_in()) {
    $picture = isset($account_details->picture) && trim($account_details->picture) ? base_url() . RES_DIR . $account_details->picture : base_url() . 'resources/img/user.png';
    ?>
			<div class="ui item">
				<a href="<?php 
    echo base_url();
    ?>
"><?php 
    echo ucfirst(strtolower(preg_replace('/([\\-_\\.]+)/', ' ', $account->username)));
    ?>
 <?php 
    echo showPhoto($account_details->picture, array('class' => 'ui avatar image'));
    ?>
</a>
			</div>
			<div class="ui item sign-out">
				<a href="<?php 
    echo base_url();
    ?>
account/sign_out">Cerrar Sesión</a>
			</div>
<?php 
}
/*
?>
		<div class="ui language dropdown item hoverable" id="languages"
		     data-content="Select Language">