Example #1
0
function threadedComments($comments, $options)
{
    //$depth = $comments->levels + 1;
    ?>
<li id="<?php 
    $comments->theId();
    ?>
" class="comment even thread-even depth-1">
<article id="div-<?php 
    $comments->theId();
    ?>
" class="comment-body">
    <footer class="comment-meta">
        <div class="comment-author vcard">
            <img alt="" src="<?php 
    gravatar_url($comments->mail, 56);
    ?>
" class="aavatar avatar-60 photo avatar-default" height="60" width="60" /> 
            <b class="fn"><?php 
    $comments->author();
    ?>
</b><span class="says">说道:</span>
        </div>
        <div class="comment-metadata">
        <a href="<?php 
    $comments->permalink();
    ?>
 "><time datetime="<?php 
    $comments->date('c');
    ?>
"> <?php 
    $comments->date('Y年m月d日 H:i');
    ?>
</time></a>
        </div>
    </footer>
    <div class="comment-content"><?php 
    $comments->content();
    ?>
</div>
    <div class="reply"><?php 
    $comments->reply($singleCommentOptions->replyWord);
    ?>
</div>
</article>
<?php 
    if ($comments->children) {
        ?>
<ol class="children">
<?php 
        $comments->threadedComments($options);
        ?>
</ol>
<?php 
    }
    ?>
</li>
<?php 
}
Example #2
0
<img class="img-responsive img-circle sidebar-image" src="<?php 
echo gravatar_url("*****@*****.**", 256);
?>
">
<h2 class="text-center">Peter Jonsson</h2>

<p>My name is Peter Jonsson and I am a computer science student from Stockholm, Sweden. I do a lot of programming and game development in my spare time. I also write a lot of fiction - primarily short stories, but also longer pieces of work.</p>

<p>I am currently getting things organized for a new story of mine at the same time as I am improving an already completed one. My ambition is to have a story released quite soon, although the first one that I finish will probably be a 250+ page piece of work written in Swedish.</p>

<p>If you wish to contact me, feel free to send me a tweet or an email.</p>

<div class="divider-dots">...</div>

<ul class="social-links list-group">
    <li class="social-link list-group-item">
        <span class="label"><span class="fa fa-envelope fa-fw"></span> Email:</span>
        <a href="mailto:peter@95jonpet.se">peter@95jonpet.se</a>
    </li>
    <li class="social-link list-group-item">
        <span class="label"><span class="fa fa-github fa-fw"></span> Github:</span>
        <a href="https://github.com/95jonpet">95jonpet</a>
    </li>
    <li class="social-link list-group-item">
        <span class="label"><span class="fa fa-twitter fa-fw"></span> Twitter:</span>
        <a href="https://twitter.com/95jonpet">@95jonpet</a>
    </li>
    <li class="social-link list-group-item">
        <span class="label"><span class="fa fa-linkedin-square fa-fw"></span> LinkedIn:</span>
        <a href="https://se.linkedin.com/pub/peter-jonsson/b2/8b8/185">Peter Jonsson</a>
    </li>
Example #3
0
<?php

$this->load->view('header');
?>
<script src="<?php 
echo base_url();
?>
/web/statics/fancybox/jquery.fancybox-1.3.1.js"></script>
<div class="container">
    <div class="span-6 leftColumn">
        <?php 
echo '<h4><img src="' . gravatar_url($this->dx_auth->get_user_email(), 'X', '45') . '" align="left" width="45" height="45" />';
echo '&nbsp;<span class="strong loud">' . $this->dx_auth->get_username() . '</span><br/><span class="small">&nbsp;&nbsp;' . anchor('session/logout', 'logout') . '</span></h4>';
echo '<p>Total Gold Coins: <span id="gold">' . $gold_amount . '</span></p>';
echo '<p class="small">' . anchor('account/manage', 'Manage Account') . '</p>';
?>
        <hr />
        <p><?php 
echo anchor('dockets/', 'Back to your Dockets');
?>
 or <?php 
echo anchor('dockets/create', 'Create a new one');
?>
</p>
        <h6>Sharing</h6>
        <p class="small quiet">My Making this Docket public, anyone can view this Docket.<br/>
        <span class="loud">This docket is currently:
            <a href="<?php 
echo site_url('dockets/view/' . $docket->id . '/#');
?>
" id="share_docket" rel="<?php 
Example #4
0
<?php

$this->load->view('header');
?>
<div class="container">
    <div class="span-6 leftColumn">
        <p>This Docket was created by: <br/>
        <img src="<?php 
echo gravatar_url($user->email, 'X', 28);
?>
" title="<?php 
echo $this->dx_auth->get_username();
?>
" /><br/></p>
        <h6>Want one for you too?</h6>
        <p>Get Started <span class="strong"><?php 
echo anchor('session/register', 'here');
?>
</span></p>
        <h6>Keep Updated</h6>
        <p>Subscribe to RSS feed of this by clicking <?php 
echo anchor('feed/atom/' . $docket->id, 'here');
?>
</p>

    </div>
    <div class="span-17 prepend-1 last rightColumn">
        <h2 class="inline"><?php 
echo $docket->name;
?>
</h2>
Example #5
0
				<?php 
$admin = OpenVBX::getCurrentUser();
?>
				<?php 
if (isset($users)) {
    $default_avatar = asset_url('assets/i/user-icon.png');
    foreach ($users as $user) {
        ?>
				<li class="user" rel="<?php 
        echo $user->id;
        ?>
">
					<div class="user-utilities">
						<img class="gravatar" src="<?php 
        if ($gravatars) {
            echo gravatar_url($user->email, 30, $default_avatar);
        } else {
            echo $default_avatar;
        }
        ?>
" width="30" height="30" />
						<?php 
        if ($user->id != $admin->id) {
            ?>
						<a class="user-edit" href="#edit"><span class="replace">Edit</span></a>
						<a class="user-remove" href="#remove"><span class="replace">Remove</span></a>
						<?php 
        }
        ?>
					</div>
					<div class="user-info">
Example #6
0
 /**
  * Get gravatar image tag.
  *
  * @param $email
  * @param array $attributes
  * @param bool $cache
  * @param int $minutes
  * @return mixed
  *
  * @require "illuminate/html:4.*"
  */
 function gravatar_image($email, $attributes = array(), $cache = true, $minutes = 1140)
 {
     $secure = array_get($attributes, 'secure', false);
     $size = array_get($attributes, 'size', 60);
     $default = array_get($attributes, 'default', 'mm');
     $rating = array_get($attributes, 'rating', 'g');
     $attributes = array_except($attributes, ['secure', 'size', 'default', 'rating']);
     $image = HTML::image(gravatar_url($email, $size, $default, $rating), $email, $attributes, $secure);
     if ($cache === true) {
         return Cache::remember($email, $minutes, function () use($image) {
             return $image;
         });
     }
     return $image;
 }
Example #7
0
    echo $annotations['total'];
    ?>
</p>
			<ul id="message-details-notes-list">
				<?php 
    foreach ($annotations['items'] as $annotation) {
        ?>
				<li class="note">
					<p class="note-created unformatted-relative-timestamp hide"><?php 
        echo strtotime($annotation->created);
        ?>
</p>
					<div class="note-header">
						<?php 
        if ($gravatars) {
            echo '<img class="gravatar" src="' . gravatar_url($annotation->email, 20, $default_gravatar) . '" width="20" height="20">';
        }
        ?>
						<p class="note-user-fullname"><?php 
        echo $annotation->first_name;
        ?>
 <?php 
        echo $annotation->last_name;
        ?>
</p>
						<p class="note-user-email"><?php 
        echo $annotation->email;
        ?>
</p>
					</div>
					<div class="note-content">
Example #8
0
/**
 * Displays a gravatar image for a given email
 *
 * @param string  $email            Email of the gravatar
 * @param string  $gravatar_rating  Maximal rating of the gravatar
 * @param integer $gravatar_size    size of the gravatar
 * @param string  $alt_text         Alternative text
 * @param string  $class            CSS class
 * @return string
 * @see http://site.gravatar.com/site/implement#section_1_1
 */
function gravatar_image_tag($email, $gravatar_size = '30', $gravatar_rating = 'g', $alt_text = 'Gravatar', $class = 'gravatar')
{
    $url = gravatar_url($email, $gravatar_size, $gravatar_rating);
    return image_tag($url, array('alt' => $alt_text, 'width' => $gravatar_size, 'height' => $gravatar_size, 'class' => $class));
}
Example #9
0
        </script>
    <![endif]-->
    <script type="text/javascript" src="/js/tb_init.js"></script>
</head>
<body>
    <div id="header">
        <div class="inner-container clearfix">
            <h1 id="logo">
                <img src="<?php 
echo image_path('tb_logo.png');
?>
" alt="TimeHive" />
            </h1>
            <div id="userbox" >
                <div class="inner" style="background: url(<?php 
echo gravatar_url($sf_user->getAttribute('email'), 32);
?>
) no-repeat scroll 16px 16px transparent;">
                    <strong><?php 
echo sfContext::getInstance()->getUser()->getAttribute('username');
?>
</strong>
                    <p style="color: white; font-size: 8pt; margin-bottom: 3px;"><?php 
echo $sf_user->getAttribute('account_name');
?>
</p>
                    <ul class="clearfix">
                        <li><a href="<?php 
echo url_for('account/index');
?>
"><?php