<div class="modal fade in modal-image-upload" id="window_upload_img">
<div class="modal-dialog">
<div class="modal-content">
<header class="modal-header">
<button type="button" class="close jqmClose" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">{$aLang.uploadimg}</h4>
</header>
<div class="modal-body">
<ul class="nav nav-tabs">
<li class="active js-block-upload-img-item" data-type="pc"><a href="#">{$aLang.uploadimg_from_pc}</a></li>
<li class="js-block-upload-img-item" data-type="link"><a href="#">{$aLang.uploadimg_from_link}</a></li>
</ul>
<br />
<form method="POST" action="" enctype="multipart/form-data" id="block_upload_img_content_pc" onsubmit="return false;" class="tab-content js-block-upload-img-content" data-type="pc">
<div class="form-group">
<label for="img_file">{$aLang.uploadimg_file}</label>
<input type="file" name="img_file" id="img_file" value="" />
</div>
{hook run="uploadimg_source"}
<div class="form-group">
<label for="form-image-align">{$aLang.uploadimg_align}</label>
<select name="align" id="form-image-align" class="form-control">
<option value="">{$aLang.uploadimg_align_no}</option>
<option value="left">{$aLang.uploadimg_align_left}</option>
<option value="right">{$aLang.uploadimg_align_right}</option>
<option value="center">{$aLang.uploadimg_align_center}</option>
</select>
</div>
<div class="form-group">
<label for="form-image-title">{$aLang.uploadimg_title}</label>
<input type="text" name="title" id="form-image-title" value="" class="form-control" />
</div>
{hook run="uploadimg_additional"}
<button type="submit" class="btn btn-success" onclick="ls.ajaxUploadImg('block_upload_img_content_pc','{$sToLoad}');">{$aLang.uploadimg_submit}</button>
<button type="submit" class="btn btn-default jqmClose">{$aLang.uploadimg_cancel}</button>
</form>
<form method="POST" action="" enctype="multipart/form-data" id="block_upload_img_content_link" onsubmit="return false;" style="display: none;" class="tab-content js-block-upload-img-content" data-type="link">
<div class="form-group">
<label for="img_file">{$aLang.uploadimg_url}</label>
<input type="text" name="img_url" id="img_url" value="http://" class="form-control" />
</div>
<div class="form-group">
<label for="form-image-url-align">{$aLang.uploadimg_align}</label>
<select name="align" id="form-image-url-align" class="form-control">
<option value="">{$aLang.uploadimg_align_no}</option>
<option value="left">{$aLang.uploadimg_align_left}</option>
<option value="right">{$aLang.uploadimg_align_right}</option>
<option value="center">{$aLang.uploadimg_align_center}</option>
</select>
</div>
<div class="form-group">
<label for="form-image-url-title">{$aLang.uploadimg_title}</label>
<input type="text" name="title" id="form-image-url-title" value="" class="form-control" />
</div>
{hook run="uploadimg_link_additional"}
<button type="submit" class="btn btn-success" onclick="ls.topic.insertImageToEditor(jQuery('#img_url').val(),jQuery('#form-image-url-align').val(),jQuery('#form-image-url-title').val());">{$aLang.uploadimg_link_submit_paste}</button>
{$aLang.or}
<button type="submit" class="btn btn-success" onclick="ls.ajaxUploadImg('block_upload_img_content_link','{$sToLoad}');">{$aLang.uploadimg_link_submit_load}</button>
<button type="submit" class="btn btn-default jqmClose">{$aLang.uploadimg_cancel}</button>
</form>
</div>
</div>
</div>
</div>
<a href="{$oTopic->getUrl()}#disqus_thread"></a>
<li class="topic-info-comment">
<a href="{$oTopic->getUrl()}#disqus_thread"class="topic-comment"></a>
</li>
<footer class="topic-footer">
<ul class="list-unstyled list-inline small topic-info">
<li class="topic-info-author">
<a href="{$oUser->getUserWebPath()}"><img src="{$oUser->getProfileAvatarPath(24)}" alt="{$oUser->getLogin()}" class="avatar" /></a>
<a rel="author" href="{$oUser->getUserWebPath()}">{$oUser->getLogin()}</a>
</li>
<li class="topic-info-date">
<time datetime="{date_format date=$oTopic->getDateAdd() format='c'}" title="{date_format date=$oTopic->getDateAdd() format='j F Y, H:i'}" class="text-muted">
{date_format date=$oTopic->getDateAdd() hours_back="12" minutes_back="60" now="60" day="day H:i" format="j.m.Y"}
</time>
</li>
<li class="topic-info-comment">
<a href="{$oTopic->getUrl()}#disqus_thread"class="topic-comment"></a>
</li>
</ul>
</footer>
<li class="topic-info-date">
<time datetime="{date_format date=$oTopic->getDateAdd() format='c'}" pubdate title="{date_format date=$oTopic->getDateAdd() format='j F Y, H:i'}" class="text-muted">
{date_format date=$oTopic->getDateAdd() format="j F Y, H:i"}
</time>
<li class="topic-info-comment">
<a href="http://geekninja.ru/podcasts/227#disqus_thread" class="topic-comment"></a>
</li>
</li>
<li class="topic-info-date">
<time datetime="{date_format date=$oTopic->getDateAdd() format='c'}" pubdate title="{date_format date=$oTopic->getDateAdd() format='j F Y, H:i'}" class="text-muted">
{date_format date=$oTopic->getDateAdd() format="j F Y, H:i"}
</time>
</li>