Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Ajuda com smarty por favor

 
Post new topic   Reply to topic    Smarty Forum Index -> Language: Portuguese
View previous topic :: View next topic  
Author Message
kleberwebmaster
Smarty n00b


Joined: 20 Nov 2012
Posts: 1

PostPosted: Tue Nov 20, 2012 4:18 pm    Post subject: Ajuda com smarty por favor Reply with quote

Amigos seguinte eu tenho um template .tpl com o codigo que vou colocar abaixo, eu queria saber como fašo esse viewVideo.tpl que estar na pasta /public_html/video/design/templates/orient/general/viewVideo.tpl chamar o arquivo chamado /public_html/ads_boo.php

Quem poder min ajudar ficarei grato.
segue abaixo o codigo do arquivo viewVideo.tpl

{php}if(isset($this->bodyBackgroundImage) && $this->bodyBackgroundImage){{/php}
<div id="selViewVideo" style="margin-top:{$myobj->background_offset}px">
{php}}
else{{/php}
<div id="selViewVideo">
{php}}
{/php}
{if $myobj->isTrimmedVideo()}
<div class="clsTrimmedVideo">
<h4 class="clsAlert">{$myobj->trimmendMessage}</h4>
</div>
{/if}

{* VIDEO CONTENT STARTS *}
<div class="clsViewVideoContent">
{if $myobj->isShowPageBlock('msg_form_error')}
<div id="selMsgError">
<p>{$myobj->getCommonErrorMsg()}</p>
</div>
{/if}
{if $myobj->isShowPageBlock('videoMainBlock')}

{if $myobj->isShowPageBlock('msg_form_success') OR $myobj->video_response_added}
<div id="selMsgSuccess">
<p>{$myobj->video_response_successfully_added}</p>
</div>
{/if}

<!-- flagged video confirmation form -->
{if $myobj->isShowPageBlock('confirmation_flagged_form')}
<div id="flaggedForm">
<p>{$LANG.viewvideo_flagged_msg}</p>
<p><a href="{$myobj->flaggedVideoUrl}">{$LANG.viewvideo_flagged}</a></p>
</div>
{/if}
<!-- flagged video confirmation form ends-->

<!-- Adult video confirmation form -->
{if $myobj->isShowPageBlock('confirmation_adult_form')}
<div id="selAdultUserForm">
<p>{$myobj->replaceAdultText($LANG.confirmation_alert_text)}</p>
<p><a href="{$myobj->acceptAdultVideoUrl}">{$LANG.viewvideo_accept}</a>&nbsp;&nbsp;
<a href="{$myobj->acceptThisAdultVideoUrl}">{$LANG.viewvideo_accept_this_page_only}</a>&nbsp;&nbsp;
<a href="{$myobj->rejectAdultVideoUrl}">{$LANG.viewvideo_reject}</a>&nbsp;&nbsp;
<a href="{$myobj->rejectThisAdultVideoUrl}">{$LANG.viewvideo_reject_this_page_only}</a> </p>
</div>
{/if}
<!-- Adult video confirmation form ends-->
<!-- displaying Video -->
{if $myobj->isShowPageBlock('videos_form') and $myobj->validate}

{if $CFG.admin.videos.download_option && $myobj->checkDownloadOption() && !$myobj->checkIsExternalEmebedCode()}
<div id="downloadFormat" style="position:absolute;display:none;">
{$myobj->setTemplateFolder('general/')}
{include file='box.tpl' opt='popupvideo_top'}
<div class="clsOverflow clsPopUpURLHeadingContainer">
<div class="clsDownloadeVideoLeft clsPopUpWindowHeading">
<h2>{$LANG.viewvideo_downloads_formats}</h2>
</div>
<div class="clsDownloadeVideoRight">
<input class="clsCloseWindow" type="button" title="{$LANG.close}" onClick="closeDownload()" />
</div>
</div>
<div class="clsOverflow clsVideoDownloadListContainer">
<ul class="clsVideoDownloadList">
<li><a href="{$myobj->flvDownloadUrl}">{$LANG.flv} ({$myobj->getFormField('total_downloads')} {$LANG.viewvideo_downloads}) </a>
</li>
{if $CFG.admin.videos.save_original_file_to_download and $myobj->getFormField('video_ext')!='flv'}
{$myobj->populateOriginalFormatDownloadLink()}
{/if}
{if $CFG.admin.videos.video_other_formats_enabled and !$myobj->getFormField('video_flv_url')}
{$myobj->populateOtherFormatDownloadLink()}
{/if}
</ul>
<p>{$LANG.viewvideo_savetarget}</p>
</div>
{$myobj->setTemplateFolder('general/')}
{include file='box.tpl' opt='popupvideo_bottom'}
</div>
{/if}

{* External embeded site list starts here *}
{if !$myobj->checkIsExternalEmebedCode()}
<div style="display:none;position:absolute;" id="clsVideoRenders" class="clsCommonPopupDiv">
<form name="msgHistoryLink" id="msgHistoryLink" method="post" action="{$myobj->getCurrentUrl()}" autocomplete="off">
<table class="clsTable100">
<tr>
<th><h4>{$LANG.viewvideo_site_links}</h4></th>
<th><input class="clsCloseWindow" onClick="return hideAllBlocks()" name="cancel_submit" /></th>
</tr>
<tr>
<td colspan="2">
<ul class="clsLinkingSites">
{$myobj->getLinksHistory()}
</ul>
</td>
</tr>
</table>
</form>
</div>
{/if}
{* External embeded site list ends here *}

{* VIDEO BOTTOM CONTENT STARTS *}
<div class="clsVideoBottom">
<div class="clsViewVideoLeft">
{* VIDEO PLAYER ROUNDED CORNERS STARTS *}
<div id="playerSection">
<div class="clsOverflow clsVideoPlayerHeadingContainer">
<h2 class="clsVideoPlayerHeading">{$myobj->videoTitle}</h2>
<div class="clsVideoRatingRight">
{* DISPLAYING RATING FORM BEGINS*}
{if $myobj->chkAllowRating()}
<div id="ratingForm">
{assign var=tooltip value=""}
{if !isLoggedIn()}
{$myobj->populateRatingImages($myobj->total_video_rating, 'viewvideo',$LANG.view_video_login_message,$myobj->memberviewVideoUrl)}
{assign var=tooltip value=$LANG.view_video_login_message}
<span> ({$myobj->getFormField('rating_count')} {if $myobj->getFormField('rating_count') > 1}{$LANG.viewvideo_ratings}{else}{$LANG.viewvideo_rating}{/if})</span>
{else}
<div id="selRatingVideo">
{if $myobj->isMember and $myobj->rankUsersRayzz}
{$myobj->populateRatingImagesForAjax($myobj->total_video_rating,'viewviewo')}
{else}
{$myobj->populateRatingImages($myobj->total_video_rating,'viewvideo',$LANG.viewvideo_rate_yourself,'javascript:void(0);')}
{assign var=tooltip value=$LANG.viewvideo_rate_yourself}
{/if}
<span> ({$myobj->getFormField('rating_count')} {if $myobj->getFormField('rating_count') > 1}{$LANG.viewvideo_ratings}{else}{$LANG.viewvideo_rating}{/if})</span>
</div>
{/if}
<div id="rating_tooltip" style="display:None;" class="clsToolTip">
{$tooltip}
</div>
<script language="javascript" type="text/javascript">
var my_tooltip = new Tooltip('ratingLink', 'rating_tooltip')
</script>
{* DISPLAYING RATING FORM ENDS*}
</div>
{/if}
</div>
</div>

{* Video Player Begins *}
<div id="flashcontent2" class="clsVideoPlayerBorder">
{if $myobj->checkIsExternalEmebedCode()}
{$myobj->displayEmbededVideo()}
{/if}
</div>
{if !$myobj->checkIsExternalEmebedCode()}
<script type="text/javascript">
var so1 = new SWFObject("{$myobj->flv_player_url}", "flvplayer", "{$CFG.admin.videos.minimum_player_width}", "{$CFG.admin.videos.minimum_player_height}", "7", null, true);
so1.addParam("allowFullScreen", "true");
so1.addParam("wmode", "transparent");
{if $myobj->play_list_next_url}
so1.addParam("autoplay", "true");
{/if}
so1.addParam("allowSciptAccess", "always");
so1.addVariable("config", "{$myobj->configXmlcode_url}{$myobj->arguments_play}");
so1.write("flashcontent2");
</script>
{else}
{literal}
<script type="text/javascript">
var user_agent = navigator.userAgent.toLowerCase();
if(user_agent.indexOf("msie") != -1)
{
// FIX for IE 6 since sometimes dom:loaded not working
Event.observe(window, "load", function() {
chkExtenalEmbededHeightAndWidth();
});
}
else
{
document.observe("dom:loaded", function() {
chkExtenalEmbededHeightAndWidth();
});
}
</script>
{/literal}
{/if}
{* Video Player ends *}
<div class="clsCaptionMinHeight">
{if $CFG.admin.media_description_display and $myobj->getFormField('video_caption')}
{* displaying Video Description begin*}
<div id="videoCaption" class="clsVideoSummary">
<p><strong>{$LANG.viewvideo_summary}:</strong>&nbsp;{$myobj->videoCaption}</p>
</div>
{/if}
{* displaying Video Description ends*}

{* video statistics begins *}
<div class="clsOverflow">
<div class="clsVideoPlayerViews">
<ul>
<li> <span>{$myobj->getFormField('total_views')}</span> {$LANG.common_views} </li>
<li> <span>{$myobj->getFormField('favorited')}</span> {$LANG.short_favorite} </li>
<li> <span>{$myobj->getFormField('comments')}</span> {$LANG.short_comments} </li>
</ul>
</div>
</div>
{* video statistics begins ends *}
</div>

{* video tags begin*}
<div class="clsMainTagsDisplayContainer">
<div class="clsMainTagsDisplay">
<div class="clsOverflow">
<table class="clsVideoTags" style="float:left"><tr>
<td>{$LANG.viewvideo_tags}&nbsp;
</td>
<td>{$myobj->getTagsOfThisVideo()}</td></tr></table>
</div>

</div>
</div>
{* video tags ends*}
</div>
{* VIDEO PLAYER ROUNDED CORNERS ENDS *}
<a id="anchor_video_response_block"></a>
{* DISPLAYING PLAYLIST, FAVORITE , FEATURED , FLAG CONTENT , SHARE VIDEO BEGIN*}

<div class="clsvideoFeaturesMiddle"><div class="clsvideoFeaturesLeft"><div class="clsvideoFeaturesRight"><div class="clsVideoFeaturesList">
<ul>
{if $myobj->isMember}
<li id="videoPlaylistLi" {if $CFG.admin.videos.allow_play_list==false} style="display:none" {/if}><a class="clsVideoPlaylist" onclick="showVideoSection('playlistDiv','clsDisplayNone')"><span>{$LANG.playlist|capitalize:true}</span></a></li>
<li id="slideVideoLi"><a class="clsVideoShare" onclick="showShareDiv('{$myobj->shareUrl}')"><span>{$LANG.viewvideo_share_video|capitalize:true}</span></a></li>
<li id='unfavorite' {if !$myobj->favorite.added} style="display:none"{/if}>
<a class="clsVideofavourite"><span>{$LANG.favorited|capitalize:true}</span></a>
</li>
<li id="favorite" {if $myobj->favorite.added} style="display:none"{/if}>
<a class="clsVideofavourited"> <span>{$LANG.favorites|capitalize:true}</span></a>
</li>
<li id="videoFlagLi"><a class="clsVideoflag" onclick="showVideoSection('flagDiv','clsDisplayNone')"><span>{$LANG.viewvideo_flag_content|capitalize:true}</span></a></li>
<li id='unfeatured' {if !$myobj->featured.added} style="display:none"{/if}>
<a class="clsVideofeatured"><span>{$LANG.featured|capitalize:true}</span></a>
</li>
<li id="featured" {if $myobj->featured.added} style="display:none"{/if}>
<a class="clsVideofeature"><span>{$LANG.feature|capitalize:true}</span></a>
</li>
<li id="selAddBlogLink">
<a class="clsVideofeature" onClick="return {if $myobj->videos_form.getBlogList}showVideoSection('selMsgAddNewBlog', 'clsDisplayNone'){else}showVideoSection('blogDiv','clsDisplayNone'){/if}"><span>{$LANG.viewvideo_add_to_blog}</span></a>
</li>
{else}

<li id="videoPlaylistLi" {if $CFG.admin.videos.allow_play_list==false} style="display:none" {/if}><a class="clsVideoPlaylist" href="javascript:void(0)" onclick="memberBlockLoginConfirmation('{$LANG.common_video_login_create_playlist_msg}', '{$myobj->playlistUrl}')"><span>{$LANG.playlist|capitalize:true}</span></a></li>
<li id="slideVideoLi"><a class="clsVideoShare" onclick="showShareDiv('{$myobj->shareUrl}')"><span>{$LANG.viewvideo_share_video|capitalize:true}</span></a></li>
<li id='favorite'><a class="clsVideofavourite" href="javascript:void(0)" onclick="memberBlockLoginConfirmation('{$LANG.common_video_login_favorite_msg}', '{$myobj->favorite.url}')"><span>{$LANG.favorites|capitalize:true}</span></a></li>
<li id="videoFlagLi"><a class="clsVideoflag" href="javascript:void(0)" onclick="memberBlockLoginConfirmation('{$LANG.common_video_login_flag_msg}', '{$myobj->flaggedVideoUrl}')"><span>{$LANG.viewvideo_flag_content|capitalize:true}</span></a></li>
<li id="featured" ><a class="clsVideofeature" href="javascript:void(0)" onclick="memberBlockLoginConfirmation('{$LANG.common_video_login_featured_msg}', '{$myobj->featured.url}')"><span>{$LANG.feature|capitalize:true}</span></a></li>
<li id="selAddBlogLink">
<a class="clsVideofeature" href="javascript:void(0)" onclick="memberBlockLoginConfirmation('{$LANG.common_video_login_blog_msg}', '{$myobj->playlistUrl}')"> <span>{$LANG.viewvideo_add_to_blog}</span></a>
</li>
{/if}
</ul>

</div></div></div></div>
<div id="clsMsgDisplay" class="clsDisplayNone clsFeaturedContent clsAddErrorMsg">
</div>
<!-- playlist section -->
<div>
{if isMember()}
{if $CFG.admin.videos.allow_play_list}
{$myobj->populatePlaylist()}
{/if}
{$myobj->populateFlagContent()}
{/if}
<div id="shareDiv" class="clsDisplayNone">
<br />&nbsp;
</div>
<script type="text/javascript">
slideDiv('shareDiv');
</script>
</div>
{* DISPLAYING PLAYLIST, FAVORITE , FEATURED , FLAG CONTENT , SHARE VIDEO ENDS*}

<div class="clsvideoFeaturesMiddle"><div class="clsvideoFeaturesLeft"><div class="clsvideoFeaturesRight"><div class="clsVideoFeaturesList clsOverflow">
<div class="clsVideoRatingLeft"><ul>
</ul></div>

<script type="text/javascript">
var subMenuClassName1='clsActiveVideoLink';
var hoverElement1 = '.clsVideoFeaturesList li';
loadChangeClass(hoverElement1,subMenuClassName1);
</script>
</div></div></div></div>
<div id="blogDiv" class="clsDisplayNone">
{$myobj->setTemplateFolder('general/')}
{include file='box.tpl' opt='flag_top'}
<div class="clsOverflow">
<div class="clsFlagTitle">
{$LANG.viewvideo_add_to_blog}
</div>
<div class="clsCloseFlag"><a onclick="hideVideoSection('blogDiv','clsDisplayNone')">{$LANG.viewvideo_close}</a></div>
</div>
<div class="clsFlagTable">
<table>
<tr>
<td><p>{$LANG.viewvideo_blog_post_info}</p></td>
</tr>
</table>
</div>
{$myobj->setTemplateFolder('general/')}
{include file='box.tpl' opt='flag_bottom'}
<script type="text/javascript">
slideDiv('blogDiv');
</script>
</div>
{if $myobj->isMember}
<div id="selMsgAddNewBlog" class="clsDisplayNone">
{$myobj->setTemplateFolder('general/')}
{include file='box.tpl' opt='flag_top'}
<form name="formMsgAddNewBlog" id="formMsgAddNewBlog" method="post" action="{$myobj->getCurrentUrl()}">
<div class="clsOverflow">
{*<h3 id="confirmation_msg" class="clsPopUpHeading"></h3>*}
<div class="clsFlagTitle">{$LANG.viewvideo_add_to_blog}</div>
<div class="clsCloseFlag"><a onclick="hideVideoSection('selMsgAddNewBlog','clsDisplayNone')">{$LANG.common_close}</a>
</div>
</div>
<div id="blogPostInfo">
<p>{$myobj->LANG.viewvideo_blog_post_info}</p>
</div>
<div class="clsPopupContent" id="selAddNewBlogSuccess" style="display:none"><p>{$LANG.viewvideo_posted_your_blog}</p></div>
<div class="clsFlagTable" id="selAddNewBlogContent" >
<table class="clsProfileEditTbl">
<tr>
<td>
<label for="blog_title">{$LANG.viewvideo_blog_title}&nbsp;{$LANG.important}&nbsp;</label>
</td>
<td>{$myobj->getFormFieldErrorTip('blog_title')}
<select name="blog_title" id="blog_title" tabindex="{smartyTabIndex}" onChange="showBlogDetailForm()">
{$myobj->generalPopulateArray($myobj->videos_form.getBlogList, $myobj->getFormField('blog_title'))}
</select>
</td>
</tr>
<tr>
<td>
<label for="blog_post_title">{$LANG.viewvideo_blog_post_title}&nbsp;{$LANG.important}&nbsp;</label>
</td>
<td>{$myobj->getFormFieldErrorTip('blog_post_title')}
<input type="text" class="clsTextBox" name="blog_post_title" id="blog_post_title" tabindex="{smartyTabIndex}" value="{$myobj->getFormField('blog_post_title')}" />
</td>
</tr>
<tr>
<td>
<label for="blog_post_text">{$LANG.viewvideo_blog_post_text}&nbsp;{$LANG.important}&nbsp;</label>
</td>
<td>{$myobj->getFormFieldErrorTip('blog_post_text')}
<textarea name="blog_post_text" id="blog_post_text" tabindex="{smartyTabIndex}">{$myobj->getFormField('blog_post_text')}</textarea>
</td>
</tr>
<tr>
<td>
<div class="clsFlagButtonLeft"><div class="clsFlagButtonRight"><input type="button" class="clsSubmitButton" name="add_blog_submit" id="add_blog_submit" tabindex="{smartyTabIndex}" value="{$LANG.viewvideo_add_blog_submit}" onClick="postThisVideo()" /></div></div>
</td>
</tr>
</table>
</div>

</form>
<script type="text/javascript">
slideDiv('selMsgAddNewBlog');
</script>

{$myobj->setTemplateFolder('general/')}
{include file='box.tpl' opt='flag_bottom'}
</div>
{/if}

{* DISPLAYING VIDEO RESPONSE BEGIN*}
{if $myobj->video_response_links}
<div class="clsRespondedVideo">
<h4>{$LANG.this_video_response_for_video}
{$myobj->video_response_links}
</h4>
</div>
{/if}
{* DISPLAYING VIDEO RESPONSE ENDS *}

<div style="display:none;position:absolute;" id="selVideoResposeLinks"></div>
<div id="slideShowBlock_anchor"></div>
<span id="loaderRespVideos" style="display:none">
<img src="{$CFG.site.url}/design/templates/{$CFG.html.template.default}/images/foxLoader.gif" alt="" title="" />
</span>

<div class="clsMarginTop10">
{include file='box.tpl' opt='videodetails_top'}
<div class="clsOverflow">
<div class="clsViewVideoDetailsHeading clsVideVideoHeadingLeft">
<h3>{$LANG.video_responses_title}</h3>
</div>
<div class="clsPostCommentHeading clsVideVideoHeadingRight">
{if isLoggedIn()}
{if $myobj->getFormField('allow_response')=='Kinda' OR $myobj->getFormField('allow_response')=='Yes'}
<a class="clsButton2" onclick="postVideoResponse();" ><span>{$LANG.post_video_response}</span></a>
{/if}
{else}
<a class="clsButton2" href="javascript:void(0)" onclick="memberBlockLoginConfirmation('{$LANG.common_video_login_post_video_response_msg}', '{$myobj->notLoginVideoUrl}')"><span>{$LANG.post_video_response}</span></a>
{/if}

</div>
</div>



{if isLoggedIn()}
{if $myobj->getFormField('allow_response')=='Kinda'}
<div class="clsOverflow">
<div class="clsPostCommentHeading clsVideVideoHeadingRight">({$LANG.approval})</div></div>
{/if}
{/if}

<div id="selUserContentResp" class="clsViewVideoDetailsContent">
{$myobj->populateVideoCommentsOfThisVideo()}
</div>
{$myobj->setTemplateFolder('general/')}
{include file='box.tpl' opt='videodetails_bottom'}
</div>


{$myobj->setTemplateFolder('general/','video')}
{include file='box.tpl' opt='videocontent_top'}
<div>
{* Comment Link *}

<div class="clsHeadingPostComment clsOverflow">
<div class="clsViewVideoDetailsHeading clsVideVideoHeadingLeft">
<h3>{$LANG.viewvideo_text_comments}</h3>
</div>
<div class="clsPostCommentHeading clsVideVideoHeadingRight">
{if $myobj->getFormField('allow_comments')=='Kinda' OR $myobj->getFormField('allow_comments')=='Yes'}
{if isMember()}
<div id="selEditMainComments">
</div>
<span id="selViewPostComment" class="clsViewPostComment">
<a class="clsButton2" href="javascript:void(0);" onclick="javascript: myLightWindow.activateWindow( {literal} { {/literal} type:'external',href:'{$myobj->commentUrl}',title:'{$LANG.viewvideo_post_comment}',width:550,height:300 {literal} } {/literal} );"
title="{$LANG.viewvideo_post_comment}" id="add_comment"><span>{$LANG.viewvideo_post_comment}</span></a>
</span>
{else}
<span id="selViewPostComment" class="clsViewPostComment">
<a class="clsButton2" href="javascript:void(0)" onclick="memberBlockLoginConfirmation('{$LANG.common_video_login_post_comment_msg}', '{$myobj->commentUrl}')">
<span>{$LANG.viewvideo_post_comment}</span> {if $myobj->getFormField('allow_comments')=='Kinda'}({$LANG.approval}){/if}
</a>
</span>
{/if}
{/if}
</div>
</div>

{if isMember()}
{if $myobj->getFormField('allow_comments')=='Kinda'}
<div class="clsOverflow">
<div class="clsPostCommentHeading clsVideVideoHeadingRight">({$LANG.approval})</div></div>
{/if}
{/if}

{$myobj->populateCommentOptionsVideo()}
<div id="selMsgSuccess" style="display:none">
<p id="kindaSelMsgSuccess"></p>
</div>
<div id="selCommentBlock" class="clsViewVideoDetailsContent">
{$myobj->populateCommentOfThisVideo()}
</div>

</div>
{$myobj->setTemplateFolder('general/','video')}
{include file='box.tpl' opt='videocontent_bottom'}

{if !isLoggedIn()}
{$myobj->setTemplateFolder('general/','video')}
{include file='box.tpl' opt='videocontent_top'}
<div id="selComment">
<h3>{$LANG.comment_nt_logged_users_msg}</h3>
<div class="clsViewVideoDetailsContent">
<p class="clsMemberJoin">{$myobj->member_join_msg}</p>
</div>
</div>
{$myobj->setTemplateFolder('general/','video')}
{include file='box.tpl' opt='videodetails_bottom'}
{/if}
</div>

<div class="clsViewVideoRight">

{* Displaying Video details begins*}
{$myobj->setTemplateFolder('general/','video')}
{include file='box.tpl' opt='videocontent_top'}
<div id="videoDetails">
<h3>{$LANG.viewvideo_details}</h3>
<div class="clsViewVideoDetailsContent">
{$myobj->setTemplateFolder('general',video)}
{include file='box.tpl' opt='videoinfo_top'}
<div class="clsOverflow">
<div class="clsVideoDetailsLeft">
<span class="clsMembersImage"><a href="{$myobj->memberProfileUrl}"><img src="{$myobj->memberProfileImgSrc.s_url}" /></a></span>
</div>
<div class="clsVideoDetailsRight">
<p>
<span class="clsVideoContentTitle">{$LANG.viewvideo_added_by}</span><br />
<a href="{$myobj->memberProfileUrl}">{$myobj->getFormField('user_name')}</a>
</p>
{*SUBSCRIPTION LINK FOR USER STARTS HERE*}
{if chkIsSubscriptionEnabled() and chkIsSubscriptionEnabledForModule()}
{if isMember()}
{if $myobj->getFormField('user_id') != $CFG.user.user_id}
<p class="clsSubscriptionBtn">
<a href="javascript:void(0);" id="anchor_subscribe" onclick="get_subscription_options({$myobj->getFormField('user_id')}, 50, -300, 'anchor_subscribe');">{$LANG.common_subscriptions}</a>
</p>
{/if}
{else}
<p class="clsSubscriptionBtn">
<a href="javascript:void(0)" onclick="memberBlockLoginConfirmation('{$LANG.common_video_subscribe_subscribe_msg}', '{$myobj->notLoginVideoUrl}')">{$LANG.common_subscriptions}</a>
</p>
{/if}
{/if}
{*SUBSCRIPTION LINK FOR USER ENDS HERE*}
</div>
</div>
{include file='box.tpl' opt='videoinfo_bottom'}
<div>
<div class="clsVideoInformation">
<div class="clsLabel">{$LANG.viewvideo_added_date}</div>
<div class="clsSeparator">:</div>
<div class="clsDetails">{$myobj->getFormField('date_added')}</div>
</div>
<div class="clsVideoInformation">
<div class="clsLabel">{$LANG.viewvideo_playing_time}</div>
<div class="clsSeparator">:</div>
<div class="clsDetails">{$myobj->getFormField('cur_vid_play_time')}</div>
</div>
<div class="clsVideoInformation">
<div class="clsLabel">{$LANG.totalvideos_thisuser}</div>
<div class="clsSeparator">:</div>
<div class="clsDetails">{$myobj->getTotalVideosOfThisUser(1)}</div>
</div>
<div class="clsVideoInformation" id="category_container_{$myobj->getFormField('video_category_id')}">
<div class="clsLabel">{$LANG.viewvideo_channel}</div>
<div class="clsSeparator">:</div>
<div class="clsDetails">{$myobj->getChannelOfThisVideo()}</div>
</div>
{* DISPLAY SUB CATEGORY IF FEATURE TURNED ON AND AVAILABLE *}
{if $CFG.admin.videos.sub_category and $myobj->getFormField('video_sub_category_id') != 0}
<div class="clsVideoInformation" id="sub_category_container_{$myobj->getFormField('video_sub_category_id')}">
<div class="clsLabel">{$LANG.viewvideo_sub_channel}</div>
<div class="clsSeparator">:</div>
<div class="clsDetails">{$myobj->getChannelOfThisVideo(true)}</div>
</div>
{/if}
{*SUB CATEGORY AREA ENDS*}
{if !$myobj->checkIsExternalEmebedCode() and $myobj->chkLinksDisplayAllowedTo()}
{* DISPLAYING LINK BEGIN*}
<a id="anchor_video_block"></a>
<div class="clsVideoInformation">
<div class="clsLabel">{$LANG.viewvideo_links}</div>
<div class="clsSeparator">:</div>
<div class="clsDetails"><a onclick="Confirmation('clsVideoRenders','msgHistoryLink','','');">{$myobj->getTotalRenderList()}</a></div>
</div>
{* DISPLAYING LINK ENDS*}
{/if}
</div>

{if isMember() and $myobj->getFormField('user_id') == $CFG.user.user_id}
<div class="clsOverflow clsVideoRatingContainer clsMarginBottom5">

<div class="clsEditVideoLink">
<span><a href="{$myobj->editVideoUrl}">{$LANG.viewvideo_edit_video}</a></span>
</div>

</div>
{/if}
<div>
{* video url begin *}
<p class="clsVideoContentTitle">
<label>{$LANG.viewvideo_video_url}</label></p>
<p class="clsUrlBg"> <input type="text" class="clsVideoUrlTextBox" name="video_url" id="video_url" value="{$myobj->viewVideoEmbedUrl}" size="52" tabindex="{smartyTabIndex}" onfocus="this.select()" onclick="this.select()" readonly="readonly" />
</p>
{* video url ends *}

{* VIDEO EMBEDED BEGINS *}
{if $myobj->getFormField('allow_embed')=='Yes' and $CFG.admin.videos.embedable}
<p class="clsVideoContentTitle">
<label>{$LANG.viewvideo_embeddable_player}</label>
<form name="formGetCode" id="formGetCode" method="post" action="{$myobj->getCurrentUrl()}">
{if $myobj->checkIsExternalEmebedCode()}
<p class="clsUrlBg"><input type="text" class="clsVideoUrlTextBox" name="image_code" id="image_code" readonly="readonly" tabindex="{smartyTabIndex}" onfocus="this.select()" onclick="this.select()" value="{$myobj->getFormField('video_external_embed_code')}" /></p>
{else}
{*<p><input type=text" class="clsVideoUrlTextBox" name="image_code" id="image_code" READONLY onFocus="this.select()" onClick="this.select()" value="&lt;embed src=&quot;{$myobj->flv_player_url_embed}&quot; FlashVars=&quot; config={$myobj->configXmlcode_url}{$myobj->arguments_embed}&quot; quality=&quot;high&quot; bgcolor=&quot;#000000&quot;width=&quot;450&quot; height=&quot;370&quot; name=&quot;flvplayer&quot; align=&quot;middle&quot; allowScriptAccess=&quot;always&quot; type=&quot;application/x-shockwave-flash&quot; pluginspage=&quot;http://www.macromedia.com/go/getflashplayer&quot; {php}global $CFG;htmlentities($CFG['admin']['embed_code']['additional_fields']){/php} /&gt;" /></p>*}
<div class="clsOverflow">
<p class="clsUrlBg clsEmedUrl"><input type="text" class="clsVideoUrlTextBox" name="image_code" id="image_code" readonly="readonly" onfocus="this.select()" onClick="this.select()" value="{$myobj->embeded_code}" />&nbsp;</p><p class="clsEmbededDropContainer"><a class="clsEmbededDrop" href="javascript:void(0)" id="embed_options_key" title="{$LANG.viewvideo_customize_tooltip}"></a></p>
</div>
{/if}
</form>
{/if}
<div id="customize_embed_size" style="display:none">
<div class="clsEmbededDropDown">
<div class="clsEmbededDropDownArrow">
<p><span>{$LANG.viewvideo_note}:</span>&nbsp;&nbsp;{$LANG.viewvideo_customize_embed}</p>
</div>
<div>
<div id="embed_error_msg" class="clsEmbededError" style="display:none"></div>
<form name="form_customize_embed" id="form_customize_embed" autocomplete="off">
<div class="clsOverflow">
<div class="clsEmedWidthLeft"><span><label for="embed_width">{$LANG.viewvideo_customize_width}</label>:</span>&nbsp;
<input type="text" name="embed_width" id="embed_width" class="validate-embed validate-embed-num" tabindex="{smartyTabIndex}" maxlength="4" />
</div>
<div class="clsEmedHeightRight"><span><label for="embed_height">{$LANG.viewvideo_customize_height}</label>:</span>&nbsp;
<input type="text" name="embed_height" id="embed_height" class="validate-embed validate-embed-num" tabindex="{smartyTabIndex}" maxlength="4" />
</div>
</div>

<div class="clsOverflow clsEmbedBtns">
<div class="clsEmbdButtonLeft"><div class="clsEmbdButtonRight">
<input type="button" name="change_embed_code" id="change_embed_code" value="{$LANG.viewvideo_customize_apply}" onclick="customizeEmbedOptions();" />
</div></div>
<div class="clsEmbdButtonLeftdefault"><div class="clsEmbdButtonRightdefault">
<a href="javascript:void(0)" onclick="customizeEmbedOptions('default')">{$LANG.viewvideo_customize_default_size}</a>
</div></div>
<a class="clsEmbdClose" href="javascript:void(0)" id="close_embed_options">{$LANG.viewvideo_customize_close}</a>
</div>
</form>
</div>
</div>
</div>
{* VIDEO EMBEDED ENDS *}
</div>
<div class="clsOverflow">
<div class="clsLeftUrl">
{if !$myobj->checkIsExternalEmebedCode()}
<div class="clsDownloadVideo">
{* DOWNLOAD SECTION *}
{if $CFG.admin.videos.download_option && $myobj->checkDownloadOption()}
<a id="anchor_video_download_block"><!-- --></a>
<p class="clsDownload"><a onClick="return Confirmation('downloadFormat', '', Array(), Array(), Array(), 100, -300, 'anchor_video_download_block')"><span>{$LANG.viewvideo_download}</span></a></p>
{/if}
{* DOWNLOAD SECTION *}
</div>
{/if}

</div>

<div class="clsRightUrl">

<div class="clsVideoBookmarkIcons">
{* DISPLAYING BOOKMARK LINK BEGIN *}
<p class="clsPostVideo">
{$myobj->populateBlogPost($myobj->blogPostViewVideoUrl, $myobj->getFormField('video_title'),$LANG.view_video_video_upload)}
</p>
{* DISPLAYING BOOKMARK LINK ENDS*}
</div>

</div>
</div>


</div>

</div>
{$myobj->setTemplateFolder('general/','video')}
{include file='box.tpl' opt='videocontent_bottom'}
{* Displaying Video details ends*}

{* VIDEO SCREEN SHOT BEGINS *}
{if $CFG.admin.videos.show_available_thumbs AND $myobj->screenShot AND !$myobj->checkIsExternalEmebedCode() && !$myobj->checkIsYouTubeApiVideo()}
<div class="clsVideoScreenShotContainer">
{include file='box.tpl' opt='videodetails_top'}
<h3>{$LANG.available_thumbnail}</h3>
<div class="clsViewVideoDetailsContent"><div id="videoDetailsList" class="clsVideoDetailsList">
<ul class="clsVideoScreenShotThumbnail">
{foreach from=$myobj->screenShot item=thumbnail}
{if $thumbnail.opentr}

{/if}
<li>
{if $thumbnail.imageSrc}
<span class="clsImage"><img src="{$thumbnail.imageSrc}" width="{$myobj->screenShot_width}" height="{$myobj->screenShot_height}"/></span>
{/if}
</li>
{if $thumbnail.closetr}

{/if}
{/foreach}
</ul>
</div></div>
{include file='box.tpl' opt='videodetails_bottom'}
</div>
{/if}

{php}getAdvertisement('viewvideo_sidebanner_234x60'){/php}


{* VIDEO SCREEN SHOT ENDS *}

{* DISPLAYING QUICK LINK BEGINS*}
{if isLoggedIn() and $CFG.admin.videos.allow_quick_links}
<div id="selVideoQuickLinks">
{$myobj->populateQuickLinkVideos()}
</div>
{/if}
{* DISPLAYING QUICK LINK ENDS*}

{* DISPLAYING MORE RELATED VIDEOS BEGIN*}
{$myobj->setTemplateFolder('general/','video')}
{include file='box.tpl' opt='videocontent_top'}
<div class="clsOverflow clsRelatedVideoButton">
<div class="clsViewMoreVideoHeading"><h3>
{$LANG.view_videos_more_videos}</h3></div>
<div id="selNextPrev_top" class="clsRelatedPreviousNext">
<input type="button" class="enabledPrevButton" />
<input type="button" class="enabledNextButton" />
</div>
</div>
<div class="clsMoreVideosNav">
<ul>
<li id="selHeaderVideoUser">
<span>
<a class="" onClick="getRelatedVideo('user');">{$LANG.view_videos_more_videos_user}</a>
</span>
</li>
<li id="selHeaderVideoRel">
<span>
<a onClick="getRelatedVideo('tag')">{$LANG.view_videos_more_videos_related}</a>
</span>
</li>
<li id="selHeaderVideoTop">
<span>
<a onClick="getRelatedVideo('top')">{$LANG.view_videos_more_videos_top}</a>
</span>
</li>
</ul>
</div>
<div class="clsMoreVideosContent">
<div class="clsUserContent" id="relatedVideoContent">
</div>
<div class="clsDisplayNone" id="loaderVideos" align="center">
<img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/loader.gif" alt="{$LANG.loading}"/>{$LANG.loading}
</div>
</div>

<script type="text/javascript">
var subMenuClassName1='clsActiveMoreVideos';
var hoverElement1 = '.clsMoreVideosNav li';
loadChangeClass(hoverElement1,subMenuClassName1);
</script>
<script type="text/javascript">
var relatedUrl="{$myobj->relatedUrl}";
getRelatedVideo('tag');
</script>
{* DISPLAYING MORE RELATED VIDEOS ENDS*}
{$myobj->setTemplateFolder('general/','video')}
{include file='box.tpl' opt='videocontent_bottom'}
</div>

</div>
{* VIDEO BOTTOM CONTENT ENDS *}

{/if}
{/if}
</div>
{* VIDEO CONTENT ENDS *}

<script type="text/javascript" language="javascript">
{if $myobj->isMember}
{if $myobj->favorite.added}
var favorite_added='';
$('unfavorite').observe('click', unfavorite);
{else}
var favorite_added='1';
$('favorite').observe('click', favorite);
{/if}
{if $myobj->featured.added}
var featured_added='';
$('unfeatured').observe('click', unfeatured);
{else}
var featured_added='1';
$('featured').observe('click', featured);
{/if}
{/if}
</script>
</div>
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Language: Portuguese All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP