summaryrefslogtreecommitdiff
path: root/modules/mod_components.tpl
blob: b4e89739aea3795b7be72cc7ef695b27cc3388de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{strip}
{if $gBitSystem->isPackageActive( 'stock' ) && $modComponents}
	{bitmodule title="$moduleTitle" name="stock_components"}
		<ul class="list-unstyled">
			{foreach from=$modComponents item=modComp}
				<li class="{cycle values='odd,even'} item">
					<a href="{$modComp.display_url|escape}">
						{if $maxlen gt 0}
							{$modComp.title|escape|truncate:$maxlen:"...":true}
						{else}
							{$modComp.title|escape}
						{/if}
					</a>
					{if !empty($module_params.description)}
						<br />
						{if $maxlendesc gt 0}
							{$modComp.data|escape|truncate:$maxlendesc:"...":true}
						{else}
							{$modComp.data|escape}
						{/if}
					{/if}
					{if !$userComponents}
						<br />{tr}By{/tr} {displayname hash=$modComp}
					{/if}
				</li>
			{foreachelse}
				<li></li>
			{/foreach}
		</ul>
		{if $userComponents}
			<a href="{$smarty.const.STOCK_PKG_URL}list_components.php?user_id={$userComponents}">{tr}See more...{/tr}</a>
		{/if}
	{/bitmodule}
{/if}
{/strip}