Вход Регистрация
Файл: content/themes/facebook/templates/poll.tpl
Строк: 165
{include file='headinclude.tpl'} {include file='header.tpl'} <!--
Commom [post] JS --> <script type="text/javascript"
src="{$SITE_URL}/js/core.post.js"></script> <!--
Commom [post] JS --> {if !$userExist}{include
file='signup.bar.tpl'}{/if} <!-- Content --> <div
class="contentWrapper"> <div
class="content"> <table
class="mainContent"> <tr>
<!-- Left Panel --> <td
class="leftPanel"> {include
file='appsmenu.tpl'} </td> <!--
Left Panel --> <!-- Center Panel
--> <td class="centerPanel">
<div
class="centerPanelHeader"> <!--
App Header --> <div
class="appHeaderWrapper"> <a
href="{$SITE_URL}/{$userArray.UserName}/polls">{$post.UserFirstName}
{$post.UserLastName}'s Polls</a>
</div> <!-- App Header -->
</div> <div
class="centerPanelContent">
<div class="dataContainer"
id="0-{$post.PostType}-{$post.PostID}-{$post.UserID}"
style="border-bottom: 1px solid #3c3c3c;">
<!-- Vote Box -->
<div class="dataSideWrapper small">
<div class="voteBox doLikePost {if
$post.liked == 'Y'}active{/if}"><i
class="up"></i></div>
<div class="voteBox doDislikePost {if $post.liked ==
'N'}active{/if}"><i
class="down"></i></div>
</div> <!-- Vote Box -->
<!-- Avatar -->
<div class="dataSideWrapper
ml5"> <a
href="{$SITE_URL}/{$post.UserName}"><img
src="{$SITE_URL}/{$post.UserAvatarPath}" /></a>
</div> <!--
Avatar -->
<!-- Post Data --> <div
class="dataContentWrapper medium ml10">
<!-- Buttons & UserName
& Time --> <div
class="dataContent mb5">
<!-- Buttons -->
<div class="dataButtons hidden">
{if $post.UserID == $userArray.UserID
|| $userArray.UserGroup < 3}
<div class="right">
<div class="{if $userArray.UserGroup <
3}button-edit{else}button-close{/if} doRemovePost"></div>
</div>
<div class="left">
<div class="button-favorit
doFavorite {if $post.favorited == true}active{/if}"></div>
</div>
{else}
<div class="button-favorit doFavorite {if $post.favorited ==
true}active{/if}"></div>
{/if} </div>
<!-- Buttons -->
<!-- User Name -->
<span class="relative
showHoverCard" id="{$post.UserID}">
<strong><a
href="{$SITE_URL}/{$post.UserName}">{$post.UserFirstName}
{$post.UserLastName}</a></strong>
<!-- Hover Card -->
<div class="hoverCardWrapper hidden"><div
class="hoverCard"><div
class="hoverCardHeader">Loading</div></div><div
class="hoverCardArrow"></div></div>
<!-- Hover Card -->
</span> <!--
User Name -->
<!-- Time -->
<span class="timeago gray" data-time="{$post.Time}"
title="{$post.Time|date_format:"%A, %B %e, %Y at %I:%M
%p"}"></span>
<!-- Time -->
</div> <!--
Buttons & UserName & Time -->
<!-- Data -->
<div class="dataContent mb10">
<table
class="pollOptions mt10">
{foreach $post.pollOptions as $option}
<tr>
<td class="pollRadioBtn">
<input type="radio" {if
$option.select}checked="true"{/if} class="pollBtn"
id="{$option.ID}" name="option_id" />
</td>
<td class="pollResultsBar">
<div
class="pollOption" title="{$option.Title}">
<div
style="width:{$option.Bar}%"
class="shaded"></div>
<div
class="label"><span>{$option.Title}</span></div>
<div
class="votes"><span><b
class="optionVotes">{$option.Votes}</b>
votes</span></div>
</div>
</td> <td
class="pollWhoVoted">
<span class="uiButtonText whoVoted"
hits="{$option.Votes}" id="{$post.PostID}-{$option.ID}"
title="who vote for this">[?]</span>
</td>
</tr> {/foreach}
</table>
<input type="hidden" name="poll[votes]"
value="{$post.Votes}" />
<input type="hidden" name="poll[selected]"
value="{$post.data.selected}" />
</div> <!-- Data -->
</div>
<!-- Post Data -->
</div>
<!-- Comments System -->
<!-- Comments System Header -->
<div class="dataContainer" style="border-bottom:
1px solid #3c3c3c;"> {if
$userExist}<div class="right"><span
class="uiButtonText addComment"><strong>Add a
Comment</strong></span></div>{/if}
<strong><span class="whoComment">{if
$post.Comments > 0}{$post.Comments}{else}No{/if}</span>
Comments</strong> </div>
<!-- Comments System Header -->
<!-- Add a Comment -->
<form class="postComment hidden">
<div class="dataContainer postCommentWrapper">
<div class="dataSideWrapper
small"></div> <div
class="dataSideWrapper ml5">
<img src="{$SITE_URL}/{$userArray.UserAvatarPathMedium}"
/> </div>
<div class="dataContentWrapper medium ml10">
<div class="commentContent
mb5"> <textarea
class="uiTextArea addComment expand">Write a
comment...</textarea>
</div> <div
class="commentContent tright">
<input class="uiButton" type="submit"
value="Comment" />
<div class="hidden"><img
src="{$spinner.small}" /></div>
</div> </div>
</div>
</form> <!-- Add a Comment -->
{if $post.prevComments > 0}
<!-- View More
--> <div class="viewMore mt10
viewMoreComments" id="{$post.prevComments}">
<div class="right hidden"><img
src="{$spinner.small}" /></div>
View previous comments </div>
<!-- View More -->
{/if}
{if $post.Comments > 0} <ul
id="streamComments" class="liveFeeds">
{foreach $post.comments as $comment}
{include file='ajax.comments.comment.tpl' method='get'}
{/foreach}
</ul> {else}
<ul id="streamComments"
class="liveFeeds"></ul> {/if}
<!-- Comments System
--> </div>
</td> <!-- Center Panel -->
<!-- Right Panel --> <td
class="rightPanel">
<!-- Share --> {include file='rp.share.tpl'
margin='28'} <!-- Share -->
<!-- Statistics -->
{include file='rp.statistics.tpl'} <!-- Statistics
--> <!-- Sponsored Ads
--> {include file='rp.sponsored.tpl' margin='10'}
<!-- Sponsored Ads -->
</td> <!-- Right Panel -->
</tr> </table>
</div> </div> <!-- Content --> {include
file='footer.tpl' footerType = 'narrow'}
Онлайн: 2
Реклама