+0.04
Рейтинг
0.51
Сила
Нашёл баг, в разделах «Люди» и «Категории» не работает поиск(проверял в мозиле и опере)
Извиняюсь, я не прочитал описание полностью и поэтому не так понял. Проект пока на денвере, тк занимаюсь доработкой шаблона.
Скачиваете последнюю версию jquery на оф.сайте и подключаете.И подгрузка будет работать(у меня работает)
Всё делается без плагина, подключая один js-скрипт.
Вот мой код topic_photoset.tpl в шаблоне Social, всё идёт правильно и без ошибок.
{assign var="oBlog" value=$oTopic->getBlog()}
{assign var="oUser" value=$oTopic->getUser()}
{assign var="oVote" value=$oTopic->getVote()}

<script type="text/javascript">
jQuery(window).load(function($) {
	ls.photoset.showMainPhoto({$oTopic->getId()});
});
</script>

<div class="topic photo {if $tSingle}single{/if}">
	<div class="title">
		{if $oBlog->getType() == 'personal'}
			<a href="{$oUser->getUserWebPath()}"><img src="{$oUser->getProfileAvatarPath(48)}" alt="avatar" class="blog-avatar" /></a>
		{else}	
			<a href="{router page='blog'}{$oBlog->getUrl()}/"><img src="{$oBlog->getAvatarPath(48)}" alt="avatar" class="blog-avatar" /></a>
		{/if}
		<a href="{$oBlog->getUrlFull()}" class="title-blog">{$oBlog->getTitle()|escape:'html'}</a>
		/ 
		{if $oTopic->getPublish()==0}	
			<img src="{cfg name='path.static.skin'}/images/draft.png" title="{$aLang.topic_unpublish}" alt="{$aLang.topic_unpublish}" />
		{/if}
		<h1 class="title-topic"><a href="{$oTopic->getUrl()}">{$oTopic->getTitle()|escape:'html'}</a></h1><br />
		<a href="{$oUser->getUserWebPath()}" class="username">{$oUser->getLogin()}</a>, {date_format date=$oTopic->getDateAdd() format="j F Y, H:i"}
		
		<div id="vote_area_topic_{$oTopic->getId()}" class="voting {if $oVote || ($oUserCurrent && $oTopic->getUserId()==$oUserCurrent->getId()) || strtotime($oTopic->getDateAdd())<$smarty.now-$oConfig->GetValue('acl.vote.topic.limit_time')}{if $oTopic->getRating()>0}positive{elseif $oTopic->getRating()<0}negative{/if}{/if} {if !$oUserCurrent || $oTopic->getUserId()==$oUserCurrent->getId() || strtotime($oTopic->getDateAdd())<$smarty.now-$oConfig->GetValue('acl.vote.topic.limit_time')}guest{/if}{if $oVote} voted {if $oVote->getDirection()>0}plus{elseif $oVote->getDirection()<0}minus{/if}{/if}">
			<a href="#" class="minus" onclick="return ls.vote.vote({$oTopic->getId()},this,-1,'topic');"></a>
			<a href="#" class="plus" onclick="return ls.vote.vote({$oTopic->getId()},this,1,'topic');"></a>
			<span id="vote_total_topic_{$oTopic->getId()}" class="total" title="{$aLang.topic_vote_count}: {$oTopic->getCountVote()}">{if $oVote || ($oUserCurrent && $oTopic->getUserId()==$oUserCurrent->getId()) || strtotime($oTopic->getDateAdd())<$smarty.now-$oConfig->GetValue('acl.vote.topic.limit_time')} {if $oTopic->getRating()>0}{/if}{$oTopic->getRating()} {else} <a href="#" onclick="lsVote.vote({$oTopic->getId()},this,0,'topic'); return false;">?</a> {/if}</span>
		</div>
	</div>

    
{assign var=iPhotosCount value=$oTopic->getPhotosetCount()}
	<div class="content">
					
			{if $bTopicList}
			{$oTopic->getTextShort()}
			{if $oTopic->getTextShort()!=$oTopic->getText()}
				<br /><a href="{$oTopic->getUrl()}#cut" title="{$aLang.topic_read_more}">
				{if $oTopic->getCutText()}
					{$oTopic->getCutText()}
				{else}
					{$aLang.topic_photoset_show_all|ls_lang:"COUNT%%`$iPhotosCount`"} →
				{/if}			   
				</a>
			{/if}
		
                    {else}
			{$oTopic->getText()}

		{/if}
	</div> 

	
		<div class="topic-photo-preview" id="photoset-main-preview-{$oTopic->getId()}" onclick="window.location='{$oTopic->getUrl()}#photoset'">
		{assign var=oMainPhoto value=$oTopic->getPhotosetMainPhoto()}
			
	// ФОТОРАМА
		{if !$bTopicList}
                <script type="text/javascript" src="{cfg name='path.static.skin'}/js/fotorama.js"></script>
                <link rel='stylesheet' type='text/css' href="{cfg name='path.static.skin'}/css/fotorama.css" />
				
				
				
                <script type="text/javascript">
                    jQuery(document).ready(function($) {
                        $('.topic-photo-images').fotorama();
                    });
				
					fotoramaDefaults = {
fullscreenIcon: true,
	caption: true,
	width: 610,
	margin: 0
  }
                </script>

																
           <center> <div class="topic-photo-images">
                <h2>{$oTopic->getPhotosetCount()} {$oTopic->getPhotosetCount()|declension:$aLang.topic_photoset_count_images}</h2>
                                {assign var=aPhotos value=$oTopic->getPhotosetPhotos(0, $oConfig->get('module.topic.photoset.count_photos_max'))}
                                {if count($aPhotos)}
                                     {foreach from=$aPhotos item=oPhoto}
                                                <a class="photoset-image" href="{$oPhoto->getWebPath(500)}" title="{$oPhoto->getDescription()}"><img src="{$oPhoto->getWebPath('50crop')}" alt="{$oPhoto->getDescription()}" /></a>
                                        {/foreach}
                                {/if}
                </div>
        {/if}</center>
		// ФОТОРАМА		
				
	</div>
	

	
	{if !$bTopicList}
		<ul class="tags">
			{foreach from=$oTopic->getTagsArray() item=sTag name=tags_list}
				<li><a href="{router page='tag'}{$sTag|escape:'url'}/">{$sTag|escape:'html'}</a>{if !$smarty.foreach.tags_list.last}, {/if}</li>
			{/foreach}	


<script type="text/javascript" src="//yandex.st/share/share.js" charset="utf-8"></script>
<div class="yashare-auto-init" data-yashareL10n="ru" data-yashareType="none" data-yashareQuickServices="yaru,vkontakte,facebook,twitter,odnoklassniki,moimir,lj,friendfeed,moikrug"></div> 						     
		</ul>
	      {/if}

	
	<ul class="info">
		<li class="comments-link">
			{assign var="comments" value=$aLang.comments_1|cat:";"|cat:$aLang.comments_2|cat:";"|cat:$aLang.comments_3}
			{assign var="count_comments" value=$oTopic->getCountComment()}
			
			{if $bTopicList}<a href="{$oTopic->getUrl()}#comments">
			{if $oTopic->getCountComment()>0}
				{$count_comments} {$count_comments|declension:$comments:'russian'} <span>{if $oTopic->getCountCommentNew()}+{$oTopic->getCountCommentNew()}{/if}</span>
			{else}
				{$aLang.topic_comment_add}
			{/if}
			</a>{/if}
		</li>
		{if !$bTopicList}<li><a href="#" onclick="return ls.favourite.toggle({$oTopic->getId()},this,'topic',true);" class="favourite-inline {if $oUserCurrent && $oTopic->getIsFavourite()}active{/if}">{if $oTopic->getIsFavourite()}{$aLang.fav_delete}{else}{$aLang.fav_add}{/if}</a></li>{/if}

		
		<li class="actions">								   
			{if $oUserCurrent and ($oUserCurrent->getId()==$oTopic->getUserId() or $oUserCurrent->isAdministrator() or $oBlog->getUserIsAdministrator() or $oBlog->getUserIsModerator() or $oBlog->getOwnerId()==$oUserCurrent->getId())}
				<a href="{cfg name='path.root.web'}/{$oTopic->getType()}/edit/{$oTopic->getId()}/" title="{$aLang.topic_edit}" class="edit">{$aLang.topic_edit}</a>
			{/if}
			{if $oUserCurrent and ($oUserCurrent->isAdministrator() or $oBlog->getUserIsAdministrator() or $oBlog->getOwnerId()==$oUserCurrent->getId())}
				<a href="{router page='topic'}delete/{$oTopic->getId()}/?security_ls_key={$LIVESTREET_SECURITY_KEY}" title="{$aLang.topic_delete}" onclick="return confirm('{$aLang.topic_delete_confirm}');" class="delete">{$aLang.topic_delete}</a>
			{/if}
		</li>

		{hook run='topic_show_info' topic=$oTopic}
	</ul>

	{if !$bTopicList}
		{hook run='topic_show_end' topic=$oTopic}
	{/if}
</div>