예제 #1
0
" target="_blank" title="<?php 
echo ___('Views source image');
?>
"><?php 
echo $avatar;
?>
</a>
		</div>
		<div class="g-tablet-5-6">
			<div class="form-control-static">
				<p><?php 
echo ___('My avatar');
?>
</p>
				<p><a href="<?php 
echo theme_custom_user_settings::get_tabs('avatar')['url'];
?>
" class="btn btn-success btn-xs"><?php 
echo ___('Change avatar');
?>
 <i class="fa fa-external-link"></i></a></p>
			</div>
		</div>
	</div>
	<fieldset <?php 
echo $disabled;
?>
>
	<legend><?php 
echo ___('Edit my profile');
?>
예제 #2
0
    /**
     * My statistics
     */
    public static function my_statistics()
    {
        $current_user_id = theme_cache::get_current_user_id();
        ?>
		<div class="panel">
			<div class="heading">
				<i class="fa fa-pie-chart"></i>
				<?php 
        echo ___('My statistics');
        ?>
			</div>
			<div class="content">
				<a class="media" href="<?php 
        echo theme_custom_user_settings::get_tabs('history')['url'];
        ?>
" title="<?php 
        echo ___('Views my histories');
        ?>
">
					<div class="media-left">
						<img class="media-object" src="<?php 
        echo theme_custom_point::get_point_img_url();
        ?>
" alt="">
					</div>
					<div class="media-body">
						<h4 class="media-heading"><strong class="total-point"><?php 
        echo number_format(theme_custom_point::get_point($current_user_id));
        ?>
</strong></h4>
					</div>
				</a>
				<div class="row">
					<!-- posts count -->
					<div class="g-phone-1-2">
						<?php 
        echo sprintf(___('My posts: %s'), '<a href="' . theme_cache::get_author_posts_url($current_user_id) . '">' . theme_custom_author_profile::get_count('works', $current_user_id) . '</a>');
        ?>
					</div>
					<!-- comments count -->
					<div class="g-phone-1-2">
						<?php 
        echo sprintf(___('My comments: %s'), '<a href="' . theme_custom_author_profile::get_tabs('comments', $current_user_id)['url'] . '">' . theme_custom_author_profile::get_count('comments', $current_user_id) . '</a>');
        ?>
					</div>
					<!-- followers count -->
					<div class="g-phone-1-2">
						<?php 
        echo sprintf(___('My followers: %s'), '<a href="' . theme_custom_author_profile::get_tabs('followers_count', $current_user_id)['url'] . '">' . theme_custom_author_profile::get_count('followers_count', $current_user_id) . '</a>');
        ?>
					</div>
					<!-- following count -->
					<div class="g-tablet-1-2 g-desktop-1-3">
						<?php 
        echo sprintf(___('My following: %s'), '<a href="' . theme_custom_author_profile::get_tabs('following_count', $current_user_id)['url'] . '">' . theme_custom_author_profile::get_count('following_count', $current_user_id) . '</a>');
        ?>
					</div>
				</div>
			</div>
		</div>
		<?php 
    }
예제 #3
0
파일: header.php 프로젝트: ClayMoreBoy/mx
							<img class="avatar" width="32" height="32" src="<?php 
        echo theme_cache::get_avatar_url(theme_cache::get_current_user_id());
        ?>
" alt="avatar">&nbsp;<?php 
        echo theme_cache::get_the_author_meta('display_name', theme_cache::get_current_user_id());
        ?>
 <i class="fa fa-caret-down"></i>
						</a>
						<div class="box">
							<!-- points -->
							<div class="box-points">
								<?php 
        if (class_exists('theme_custom_point')) {
            ?>
									<a href="<?php 
            echo theme_custom_user_settings::get_tabs('history')['url'];
            ?>
">
										<?php 
            if (theme_custom_point::get_point_img_url()) {
                ?>
											<img src="<?php 
                echo theme_custom_point::get_point_img_url();
                ?>
" alt="" width="16" height="16">
										<?php 
            } else {
                ?>
											<i class="fa fa-diamond fa-fw"></i> 
										<?php 
            }