• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP getGravatar函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中getGravatar函数的典型用法代码示例。如果您正苦于以下问题:PHP getGravatar函数的具体用法?PHP getGravatar怎么用?PHP getGravatar使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了getGravatar函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: die

if (!defined('SYSTEM_ROOT')) {
    die('Insufficient Permissions');
}
global $i, $m;
$today = date('Y-m-d');
doAction('index_1');
?>

<div class="panel panel-primary">
	<div class="panel-heading">
		<h3 class="panel-title">程序信息</h3>
	</div>
	<div class="panel-body">
		<span id="avatar" style="float:right;"><img src="<?php 
echo getGravatar();
?>
" alt="您的头像" title="您的头像" class="img-rounded" height='80px' weight='80px' onerror="$('#avatar').html('无法加载头像');"></span>
		<?php 
echo SYSTEM_FN;
?>
 V<?php 
echo SYSTEM_VER;
?>
.<?php 
echo SYSTEM_REV;
?>
 <?php 
echo SYSTEM_VER_NOTE;
?>
		<br/>
开发者ID:wan-qy,项目名称:Tieba-Cloud-Sign,代码行数:30,代码来源:index.php


示例2: getGravatar

if (isset($settings['version'])) {
    echo $settings['version'];
}
?>
 by Cyberbyte Studios</b></a>
</header>

<aside>
    <div id="sidebar" class="nav-collapse ">
        <ul class="sidebar-menu" id="nav-accordion">
            <p class="centered">
                <?php 
if (!isset($_SESSION['profile_link'])) {
    if (isset($_SESSION['user_email']) && $settings['gravatar']) {
        echo '<a href="' . $settings['url'] . 'profile">';
        echo '<img src="' . getGravatar($_SESSION['user_email'], 64, 'retro') . '" class="img-circle" width="60" height="60"></a></p>';
    } else {
        echo '<a href="' . $settings['url'] . 'profile">';
        echo '<img src="' . $settings['url'] . 'assets/img/profile/' . $_SESSION['user_profile'] . '.jpg"';
        echo 'class="img-circle" width="60" height="60"></a></p>';
    }
} else {
    echo '<a href="' . $_SESSION['profile_link'] . '" target="_blank">';
    echo '<img src="' . $_SESSION['user_profile'] . '"';
    echo 'class="img-circle" width="64" height="64"></a></p>';
}
?>
            <h5 class="centered">
                <?php 
if ($_SESSION['steamsignon']) {
    echo '<i class="fa fa-steam-square"></i>';
开发者ID:Cyberbyte-Studios,项目名称:CyberWorks,代码行数:31,代码来源:template.php


示例3: getAvatar

 /**
  * @return string
  */
 public function getAvatar()
 {
     return getGravatar($this->email);
 }
开发者ID:InquisitiveQuail,项目名称:abantecart-src,代码行数:7,代码来源:user.php


示例4: getGravatar

    <ul class="collapsible" data-collapsible="expandable">
        <li class="active comment" id="comment-<?php 
    echo $comment['cid'];
    ?>
">
            <a name="<?php 
    echo $comment['cid'];
    ?>
"></a>
            <div class="collapsible-header active">
                <?php 
    if ($isGravatar == 'y') {
        ?>
                    <div class="avatar">
                        <img src="<?php 
        echo getGravatar($comment['mail']);
        ?>
" width="40" height="40" />
                    </div>
                <?php 
    }
    ?>
                <b><?php 
    echo $comment['poster'];
    ?>
 </b>
                <span class="light comment-time"><?php 
    echo $comment['date'];
    ?>
</span>
            </div>
开发者ID:ArronYR,项目名称:emlog-material-theme,代码行数:31,代码来源:comments.php


示例5: getUserAvatar

            if (array_intersect($is_admin, $userGroups)) {
                echo '<div class="control"><a class="btn-delete">' . JText::_('COM_DATSOGALLERY_DELETE') . '</a> | ' . $action . ' | <a class="btn-spam">Spam</a></div>';
            }
            echo "</li>\n";
        }
        echo "</ul>\n";
    } else {
        echo '<div id="nocom"></div>';
    }
    if ($ad_anoncomment || $user->id) {
        if ($ad_js || $ad_cb) {
            $avatar = $user->id ? getUserAvatar($user->id) : getUserAvatar(0);
        } elseif ($ad_kunena) {
            $avatar = $user->id ? getUserAvatar($user->id) : getUserAvatar(0);
        } else {
            $avatar = getGravatar($user->email);
        }
        $brd = $ad_showsend2friend && $user->id ? '' : ' style="border-bottom: 1px solid #DCDCDC"';
        ?>
<div class="dg_body_background_comment"<?php 
        echo $brd;
        ?>
>
  <div class="imgblock" style="position:relative;float:right"><?php 
        echo $avatar;
        ?>
</div>
  <p>
    <label for="cmtname"><?php 
        echo JText::_('COM_DATSOGALLERY_YOUR_NAME');
        ?>
开发者ID:j0rg3m414,项目名称:centerar,代码行数:31,代码来源:datso.image.php


示例6: getGravatar

} else {
    echo "";
}
?>
    </ul>

</div>



</div>

<!-- tab -->
<div id="Tags">
    <div class="userPhoto"><img src="<?php 
echo getGravatar($_SESSION[current_account][email]);
?>
" /> </div>
    <div class="navArea">
        <div class="userInfo">
            <div>
                <a href="<?php 
echo U('Public/logout');
?>
" class="loginOut"><span>&nbsp;</span>退出系统</a>
            </div>
            欢迎您,<?php 
echo $_SESSION['current_account']['email'];
?>
        </div>
        <div class="nav">
开发者ID:def1984,项目名称:genedealer,代码行数:31,代码来源:cf7ca3f58fc09f82899d0c6d435d5344.php


示例7: blog_comments_children

function blog_comments_children($comments, $children)
{
    $isGravatar = Option::get('isgravatar');
    foreach ($children as $child) {
        $comment = $comments[$child];
        $comment['content'] = preg_replace("|\\[em_(\\d+)\\]|i", '<img src="' . BLOG_URL . 'admin/editor/plugins/emoticons/images/$1.gif" />', $comment['content']);
        $comment['poster'] = $comment['url'] ? '<a href="' . $comment['url'] . '" target="_blank" class="upps">' . $comment['poster'] . '</a>' : $comment['poster'];
        ?>
	<ol class="children">
		<a name="<?php 
        echo $comment['cid'];
        ?>
"></a>
        <li id="comment-<?php 
        echo $comment['cid'];
        ?>
" class="comment byuser comment-author-benz odd alt depth-2">
			<article id="div-comment-2035" class="comment-body">
			  <footer class="comment-meta">
					<div class="comment-author vcard">
                    		<?php 
        if ($isGravatar == 'y') {
            ?>
                            <img alt='' src='<?php 
            echo getGravatar($comment['mail']);
            ?>
' class='avatar avatar-70 wp-user-avatar wp-user-avatar-70 alignnone photo' height='70' width='70' /><?php 
        }
        ?>
                        <b class="fn"><strong><?php 
        echo $comment['poster'];
        ?>
</strong></b><span class="says">于<strong><span style="color:#FF9900;"><?php 
        echo $comment['date'];
        ?>
</span></strong> 回复道:</span>					</div>
				  <!-- .comment-author --><!-- .comment-metadata -->

			  </footer><!-- .comment-meta -->

				<div class="comment-content">
					<p><?php 
        echo $comment['content'];
        ?>
</p>
				</div><!-- .comment-content -->

				<div class="reply">
					<a class="comment-reply-login" href="#comment-<?php 
        echo $comment['cid'];
        ?>
" onclick="commentReply(<?php 
        echo $comment['cid'];
        ?>
,this)">回复</a>				</div><!-- .reply -->
			</article><!-- .comment-body -->
</li><!-- #comment-## -->
		<?php 
        blog_comments_children($comments, $comment['children']);
        ?>
</ol><!-- .children -->
	<?php 
    }
}
开发者ID:Bigstars,项目名称:Wangjx.org,代码行数:64,代码来源:module.php


示例8: getGravatar

    </nav>
</header>

<div id="contenuDash" class="wrapper row-offcanvas row-offcanvas-left">
    <!-- Left side column. contains the logo and sidebar -->
    <aside class="left-side sidebar-offcanvas">
        <!-- 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 ($userSession) {
    ?>
                        <img src=<?php 
    echo getGravatar($userSession->getEmail());
    ?>
 class="img-circle" alt="User Image" />
                    <?php 
}
?>
                </div>
                <div class="pull-left info">
                    <p>Hello, <?php 
echo $userSession->getFirstname();
?>
</p>

                    <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
                </div>
            </div>
开发者ID:at69,项目名称:beta-OwlEyes,代码行数:31,代码来源:menu.php


示例9: session_start

<?php

session_start();
// TODO(eriq): I would prefer if ids were used to fetch profiles, they are easier to sanitize.
header('Content-type: application/json');
require_once '../db.php';
require_once '../functions.php';
$response = array();
$userName = null;
if (isset($_GET['user']) && $_GET['user'] != '') {
    $userName = $_GET['user'];
} else {
    if (isset($_SESSION['userName'])) {
        $userName = $_SESSION['userName'];
    }
}
if (!$userName) {
    $response['valid'] = false;
    $response['error'] = 'nouser';
} else {
    $response = getExpandedProfile(mongoUserSanitize($userName));
    if ($response) {
        // TODO(eriq): This sucks. When we host somewhere on a default port, we can use our own image.
        $response['profilePic'] = getGravatar($response['meta']['email'], 200, 'http://i47.tinypic.com/wo26c.png');
        $response['valid'] = true;
    } else {
        $response['valid'] = false;
        $response['error'] = 'cantfind';
    }
}
echo json_encode($response);
开发者ID:rverdon,项目名称:CGAT,代码行数:31,代码来源:user_profile.php


示例10: foreach

 }
 $i = $_SERVER['REMOTE_ADDR'];
 $ct = 0;
 foreach ($a as $r) {
     if (date('z', $r['d']) == date('z') && $r['i'] == $i) {
         ++$ct;
     }
     // same IP and more than 3 comment a day
 }
 if ($ct > 3) {
     echo '<strong>' . T_('You have exceeded the quota') . '.</strong>';
     exit;
 }
 $c = nl2br(strip_tags($_POST['t']));
 $c = preg_replace('#(<br */?>\\s*)+#i', '<br />', $c);
 $g = getGravatar(strip_tags($_POST['e']));
 $a[] = array('e' => $key, 'n' => strip_tags($_POST['n']), 's' => $a1['vmel'] ? 0 : 1, 'd' => $t, 'u' => strip_tags($_POST['u']), 't' => $c, 'g' => $g, 'i' => $i);
 usort($a, 'sortDate');
 if (!$b) {
     $a1['mail'][$key] = strip_tags($_POST['e']);
     $a1['key'] = $key;
     $out = json_encode($a1);
     file_put_contents('../../data/_sdata-' . $sdata . '/commentMail.json', $out);
 }
 $out = json_encode($a);
 //
 if (file_put_contents('../../data/' . strip_tags($_POST['u']) . '/comment.json', $out)) {
     echo strip_tags($_POST['t']) . '<br /><strong>' . T_('Your comment is awaiting moderation.') . '</strong>';
     mailAdmin(T_('New Comment') . ' : ' . strip_tags($_POST['u']), strip_tags($_POST['n']) . '<br />' . $c, strip_tags($_POST['u']), $bottom, $top, $sdata);
     exit;
 }
开发者ID:cmsunoPlugins,项目名称:comment,代码行数:31,代码来源:commentCall.php


示例11: getGravatar

?>
				</h1>
			</header>
			<div class="page-content post-content">
				<?php 
$this->content();
?>
			</div>
			<?php 
if (!$this->allow('comment')) {
    ?>
			<footer class="post-footer">
				<section class="author">
					<div class="author-ava">
						<img src="<?php 
    echo getGravatar($this->options->navy_gravatar, 160);
    ?>
" alt="" width="160" height="160" />
					</div>
					<p><?php 
    $this->options->navy_tips();
    ?>
</p>
				</section>
            </footer>
            <?php 
}
?>
		</article>
		<?php 
if ($this->allow('comment')) {
开发者ID:KoMiles,项目名称:typecho_navy,代码行数:31,代码来源:page.php


示例12: commentAdd

function commentAdd()
{
    $db = JFactory::getDBO();
    $user = JFactory::getUser();
    $post = JRequest::get('post');
    $post = array_map('addslashes', $post);
    $cmtip = getIpAddress();
    jimport('joomla.mail.helper');
    require JPATH_COMPONENT_ADMINISTRATOR . DS . 'config.datsogallery.php';
    if ($post) {
        if (refererCheck()) {
            echo '<li class="dg_body_error_message"><div>' . refererCheck() . '</div></li>';
        } elseif (blacklistCheck($cmtip)) {
            echo '<li class="dg_body_error_message"><div>' . blacklistCheck($cmtip) . '</div></li>';
        } elseif (empty($post['cmtname'])) {
            echo '<li class="dg_body_error_message"><div>' . JText::_('COM_DATSOGALLERY_ENTER_NAME') . '</div></li>';
        } elseif (empty($post['cmtmail'])) {
            echo '<li class="dg_body_error_message"><div>' . JText::_('COM_DATSOGALLERY_ENTER_EMAIL') . '</div></li>';
        } elseif (JMailHelper::isEmailAddress($post['cmtmail']) == false) {
            echo '<li class="dg_body_error_message"><div>' . JText::_('COM_DATSOGALLERY_INVALID_EMAIL') . '</div></li>';
        } elseif (empty($post['cmttext'])) {
            echo '<li class="dg_body_error_message"><div>' . JText::_('COM_DATSOGALLERY_ENTER_COMMENT') . '</div></li>';
        } elseif (empty($post['dgcaptchaval'])) {
            echo '<li class="dg_body_error_message"><div>' . JText::_('COM_DATSOGALLERY_ENTER_CODE') . '</div></li>';
        } else {
            if (!$user->id && strlen($post['cmtname']) < 4) {
                echo '<li class="dg_body_error_message"><div>' . JText::_('COM_DATSOGALLERY_NAME_IS_TOO_SHORT') . '</div></li>';
            } elseif (empty($_SESSION['CAPTCHA']) || strtolower($post['dgcaptchaval']) != $_SESSION['CAPTCHA']) {
                echo '<li class="dg_body_error_message"><div>' . JText::_('COM_DATSOGALLERY_SECURITY_NOT_VALUE') . '</div></li>';
            } else {
                $db->setQuery("INSERT INTO #__datsogallery_comments SET cmtpic='" . $post['cmtpic'] . "', cmtip='" . $cmtip . "', cmtname='" . $post['cmtname'] . "', cmtmail='" . $post['cmtmail'] . "', cmttext='" . $post['cmttext'] . "', cmtdate ='" . time() . "', published = 1");
                $db->query();
                echo "<li class=\"pane\">\n";
                echo "<div class=\"imgblock\">";
                if ($ad_js || $ad_cb || $ad_kunena) {
                    $avatar = $user->id ? getUserAvatar($user->id) : getUserAvatar(0);
                } else {
                    $avatar = getGravatar($post['cmtmail']);
                }
                echo $avatar;
                echo "</div>";
                echo '<div style="display:block;min-height:60px;margin-left:70px;padding-bottom:20px">' . stripslashes(nl2br($post['cmttext'])) . '</div>';
                echo '<div class="date">' . sprintf(JText::_('COM_DATSOGALLERY_ON'), $post['cmtname'], strftime($ad_datef, time())) . '</div>';
                echo "</li>\n";
                $db->setQuery('SELECT notify' . ' FROM #__datsogallery' . ' WHERE id = ' . $post['cmtpic']);
                $unotify = $db->loadResult();
                if ($ad_comment_notify && $unotify != 0) {
                    commentNotify($post['cmtpic'], $post['cmtname'], $post['cmtmail'], stripslashes(dgwordlimiter($post['cmttext'], $ad_comment_wl)));
                }
            }
        }
        exit;
    }
}
开发者ID:j0rg3m414,项目名称:centerar,代码行数:54,代码来源:datso.functions.php


示例13: blog_comments_children

function blog_comments_children($comments, $children)
{
    $isGravatar = Option::get('isgravatar');
    foreach ($children as $child) {
        $comment = $comments[$child];
        $comment['poster'] = $comment['url'] ? '<a href="' . $comment['url'] . '" target="_blank">' . $comment['poster'] . '</a>' : $comment['poster'];
        ?>
	<ul id="commentlist" width="20px">
	<li class="comment comment-children" width="20px" id="comment-<?php 
        echo $comment['cid'];
        ?>
">
		<a name="<?php 
        echo $comment['cid'];
        ?>
"></a>
		<?php 
        if ($isGravatar == 'y') {
            ?>
		<div class="gravatar"><img src="<?php 
            echo getGravatar($comment['mail']);
            ?>
" height='48' width='48' /></div><?php 
        }
        ?>
			<div>
			<b><?php 
        echo $comment['poster'];
        ?>
 </b>
			<p><?php 
        echo $comment['content'];
        ?>
</p>
			<div class="commentMeta">
			<?php 
        echo $comment['date'];
        ?>
			
			<?php 
        if ($comment['level'] < 4) {
            ?>
			<a class='comment-reply-link' href="#comment-<?php 
            echo $comment['cid'];
            ?>
" onclick="commentReply(<?php 
            echo $comment['cid'];
            ?>
,this)">回复</a></div>
			<?php 
        }
        ?>
			<?php 
        blog_comments_children($comments, $comment['children']);
        ?>
			</div>
	</li>
	</ul>
	<?php 
    }
}
开发者ID:zhaozhiliang,项目名称:emblog531,代码行数:61,代码来源:module.php


示例14: getGravatar

Typecho_Widget::widget('Widget_Stat')->to($stat);
?>
<div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
  </div>
</div>

<aside id="sidebar" class="sidebar">
    <div class="sidebar-inner">
      <section class="site-overview">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
          <img class="site-author-image" src="<?php 
echo getGravatar($this->options->next_gravatar, 160);
?>
" alt="<?php 
$this->options->next_name();
?>
" itemprop="image"/>
          <p class="site-author-name" itemprop="name"><?php 
$this->options->next_name();
?>
</p>
      </div>
      <p class="site-description motion-element" itemprop="description"><?php 
$this->options->next_tips();
?>
</p>
      <nav class="site-state motion-element">
开发者ID:andyhuai,项目名称:typecho-theme-next,代码行数:31,代码来源:sidebar.php


示例15: pg_query

$query = "SELECT context FROM contexts WHERE userid='" . $userid . "' ORDER BY utc DESC LIMIT 1";
$result = pg_query($dbh, $query);
$context = null;
if ($result) {
    while ($contexts = pg_fetch_row($result)) {
        $context = $contexts[0];
    }
}
/**
 * Check login/password validity
 */
$logged = false;
if ($authFromPassword) {
    $logged = $password && md5($_POST['password']) == $password;
    /*
     * Store a sessionid for the user
     */
    if ($logged) {
        $sessionid = getSessionId();
    }
    $query = "UPDATE users SET lastsessionid='" . $sessionid . "' WHERE userid=" . $userid;
    $result = pg_query($dbh, $query);
} else {
    $logged = $sessionid && $_POST['sessionid'] == $sessionid;
}
pg_close($dbh);
if ($logged) {
    echo json_encode(array('userid' => $userid, 'username' => $username, 'email' => $email, 'icon' => getGravatar($email), 'sessionid' => $sessionid, 'context' => json_decode($context)));
} else {
    die('{"error":{"message":"Invalid password"}}');
}
开发者ID:ssunkari,项目名称:mapshup,代码行数:31,代码来源:login.php


示例16: elseif

            }
            $output .= $tmp;
            $x++;
        } elseif ($x <= 3) {
            $img = "<a class=\"item-top item-3\" target=\"_blank\" href=" . $row['url'] . "><h4>【铜牌读者】<small>评论:" . $row['comment_nums'] . "</small></h4><img alt='' src=" . getGravatar($row['mail']) . " class=\"avatar avatar-36 photo\" height=\"36\" width=\"36\" /><strong>" . $row['poster'] . "</strong>" . $row['url'] . "</a>";
            if ($row['url']) {
                $tmp = "<a class=\"item-top item-3\" target=\"_blank\" href=" . $row['url'] . "><h4>【铜牌读者】<small>评论:" . $row['comment_nums'] . "</small></h4><img alt='' src=" . getGravatar($row['mail']) . " class=\"avatar avatar-36 photo\" height=\"36\" width=\"36\" /><strong>" . $row['poster'] . "</strong>" . $row['url'] . "</a>";
            } else {
                $tmp = $img;
            }
            $output .= $tmp;
            $x++;
        } elseif ($x >= 4) {
            $img = "";
            if ($row['url']) {
                $tmp = "<a target=\"_blank\" href=\"" . $row['url'] . "\" title=\"【第" . $x . "名】 评论:" . $row['comment_nums'] . "\"><img alt='' src=" . getGravatar($row['mail']) . " class=\"avatar avatar-36 photo\" height=\"36\" width=\"36\" />" . $row['poster'] . "</a>";
            } else {
                $tmp = $img;
            }
            $output .= $tmp;
            $x++;
        }
    }
    $output = '<section class="container"><div class="content no-sidebar">
		<header class="article-header">
			<h1 class="article-title">读者排行</h1>
		</header><div class="readers">' . $output . '</div></section>';
    echo $output;
    ?>
</div>
</section>
开发者ID:Bigstars,项目名称:Wangjx.org,代码行数:31,代码来源:page.php


示例17: Gravatar

      <li>alojado en <a class="externalLink external module_link" 
                         href="http://github.com/">Github.com</a></li>
      <li class="module_ul_bigLi">en la siguiente dirección: 
        <a class="externalLink external module_link" 
           href="http://github.com/JeanPerriault/Bilazea-template">
          http://github.com/JeanPerriault/Bilazea-template</a>
      </li>
    </ul>
  </div>


<?php 
        }
    }
}
?>
  <br />
  <br />
  <br />
  <!-- Gravatar (get avatar) -->
  <div id="gravatar">
    <b>GrAvatar</b><br />
    <a href="http://fr.gravatar.com/jeanperriault">
      <img src="<?php 
echo getGravatar("[email protected]");
?>
" alt="Gravatar avatar" />
    </a>
  </div>
</div>
开发者ID:JeanPerriault,项目名称:Bilazea-template,代码行数:30,代码来源:module_0.php


示例18: getGravatar

                <li><a  href="/Cubbyhole/view/contact.php">CONTACT US</a></li>

            </ul>

            <ul id="menuTwo" class="nav navbar-nav navbar-right ">
                <?php 
if (isset($user)) {
    //Mise en place d'un module Gravatar pour la photo de profil
    ?>
                    <li>

                        <img class="img-circle" title="<?php 
    echo $user->getLastName() . ' ' . $user->getFirstname();
    ?>
" src=<?php 
    echo getGravatar($user->getEmail());
    ?>
>

                    </li>
                    <li>
                        <a id="cross" title="Se déconnecter" href="/Cubbyhole/view/logout.php"><span style="color:red;" class="glyphicon glyphicon-remove"></span></a></span>
                    </li>
                    <li>
                        <a id="menuTwo-Name">
                            <?php 
    echo $user->getLastName() . ' ' . $user->getFirstname();
    ?>
                        </a>
                    </li>
                <?php 
开发者ID:at69,项目名称:beta-cubbyhole,代码行数:31,代码来源:menu.php


示例19: blog_comments_children

function blog_comments_children($comments, $children)
{
    $isGravatar = Option::get('isgravatar');
    foreach ($children as $child) {
        $comment = $comments[$child];
        $comment['poster'] = $comment['url'] ? '<a href="' . $comment['url'] . '" target="_blank">' . $comment['poster'] . '</a>' : $comment['poster'];
        ?>
	<div class="comment comment-children" id="comment-<?php 
        echo $comment['cid'];
        ?>
">
		<a name="<?php 
        echo $comment['cid'];
        ?>
"></a>
		<?php 
        if ($isGravatar == 'y') {
            ?>
<div class="avatar"><img src="<?php 
            echo getGravatar($comment['mail']);
            ?>
" /></div><?php 
        }
        ?>
		<div class="comment-info">
			<b><?php 
        echo $comment['poster'];
        ?>
 </b><br /><span class="comment-time"><?php 
        echo $comment['date'];
        ?>
</span>
			<div class="comment-content"><?php 
        echo $comment['content'];
        ?>
</div>
			<?php 
        if ($comment['level'] < 4) {
            ?>
<div class="comment-reply"><a href="#comment-<?php 
            echo $comment['cid'];
            ?>
" onclick="commentReply(<?php 
            echo $comment['cid'];
            ?>
,this)">回复</a></div><?php 
        }
        ?>
		</div>
		<?php 
        blog_comments_children($comments, $comment['children']);
        ?>
	</div>
	<?php 
    }
}
开发者ID:szshenjian,项目名称:JIEWU,代码行数:56,代码来源:module.php


示例20: getGravatar



            </ul>

            <ul id="menuTwo" class="nav navbar-nav navbar-right ">
                <?php 
if ($myUserInfo) {
    //Mise en place d'un module Gravatar pour la photo de profil
    ?>
                    <li>

                        <img class="img-circle" title="<?php 
    echo $myUserInfo->getLastName() . ' ' . $myUserInfo->getFirstname();
    ?>
" src=<?php 
    echo getGravatar($myUserInfo->getEmail());
    ?>
>

                    </li>
                    <li>
                        <a id="cross" title="Logout" href="/Nestbox/view/logout.php"><span style="color:red;" class="glyphicon glyphicon-remove"></span></a></span>
                    </li>
                    <li>
                        <a id="menuTwo-Name">
                            <?php 
    echo $myUserInfo->getLastName() . ' ' . $myUserInfo->getFirstname();
    ?>
                        </a>
                    </li>
                <?php 
开发者ID:at69,项目名称:beta-nestbox,代码行数:29,代码来源:menu.php



注:本文中的getGravatar函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP getGroup函数代码示例发布时间:2022-05-15
下一篇:
PHP getGlobalUnread函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap