Files
Testing/templates/adopt_groups.tpl
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

108 lines
6.1 KiB
Smarty
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{include file='header.tpl'}
{* $Id: browse_groups.tpl 247 2009-11-14 03:30:43Z phil $ *}
<div class='page_header'>
<span class="defaultheader">Adopt Groups</span>
<div class="clearfix"></div>
<div>These groups are in need of new leaders. Want to run one? You don’t need any special skills. Just click on the group you’re interested in. If you’re not already a member make sure to join the group, and refresh your screen. Then just follow the directions that appear at the top of the group page. Click any group below to get started.
</div>
<br>
<br>
<div class="col-sm-11">
{* NO GROUPS AT ALL *}
{if $groups|@count == 0}
<br>
<table cellpadding='0' cellspacing='0' align='center'>
<tr>
<td class='result'>
<!--<img src='./images/icons/bulb16.gif' border='0' class='icon' />-->
{lang_print id=2000132}
</td>
</tr>
</table>
{/if}
{* DISPLAY PAGINATION MENU IF APPLICABLE *}
{if $maxpage > 1}
<div class='browse_pages'>
{if $p != 1}<a href="{$smarty.server.PHP_SELF}?s={$s}&search={$search}&v={$v}&groupcat_id={$groupcat_id}&p=1"><span class="white arrow">&#171;</span></a> <a href='{$smarty.server.PHP_SELF}?s={$s}&search={$search}&v={$v}&groupcat_id={$groupcat_id}&p={math equation='p-1' p=$p}'><span class="white arrow">&#8249;</span></a>{else}<font class='disabled'><span class="white arrow">&#171; &#8249;</span></font>{/if}
| {foreach from=$for item=foo}
<a href='{$smarty.server.PHP_SELF}?s={$s}&search={$search}&groupcat_id={$groupcat_id}&v={$v}&p={$foo}'>{$foo}</a>
{/foreach} |
{if $p != $maxpage}<a href='{$smarty.server.PHP_SELF}?s={$s}&search={$search}&v={$v}&groupcat_id={$groupcat_id}&p={math equation='p+1' p=$p}'><span class="white arrow">&#8250;</span></a> <a href="{$smarty.server.PHP_SELF}?s={$s}&search={$search}&groupcat_id={$groupcat_id}&v={$v}&p={$maxpage}"><span class="white arrow">&#187;</span></a>{else}<font class='disabled'><span class="white arrow">&#8250; &#187;</span></font>{/if}
<br /><span style="font-weight:normal;">{if $p_start == $p_end}
{lang_sprintf id=184 1=$p_start 2=$total_groups}
{else}
{lang_sprintf id=185 1=$p_start 2=$p_end 3=$total_groups}
{/if}</span><br />
<form>Go to Page: <input type="text" name="p" class="gotext" /><input type="hidden" name="s" value="{$s}" /><input type="hidden" name="groupcat_id" value="{$groupcat_id}" /><input type="hidden" name="search" value="{$search}" /><input type="hidden" name="v" value="{$v}" /><input type="submit" value="Go" /></form>
</div>
{/if}
{section name=group_loop loop=$groups}
<div style='padding: 10px; border: 1px solid #CCCCCC; background: #000000; margin-bottom: 10px;'>
<table cellpadding='0' cellspacing='0'>
<tr>
<td style="width:60px; vertical-align:top;" >
<a href='{$url->url_create("group", $smarty.const.NULL, $groups[group_loop].group->group_info.group_id)}'>
<img src='{$groups[group_loop].group->group_photo()}' onerror="this.src='{$imagecdn}images/nophoto.png'" border='0' width='60' height='60' />
</a>
</td>
<td style='vertical-align: top; padding-left: 10px;'>
<div style='font-weight: bold; font-size: 13px;'>
<a href='{$url->url_create("group", $smarty.const.NULL, $groups[group_loop].group->group_info.group_id)}'>
{$groups[group_loop].group->group_info.group_title}
</a>
</div>
<div style='color: #777777; font-size: 9px; margin-bottom: 5px;'>
{assign var='group_dateupdated' value=$datetime->time_since($groups[group_loop].group->group_info.group_dateupdated)}
{capture assign="updated"}{lang_sprintf id=$group_dateupdated[0] 1=$group_dateupdated[1]}{/capture}
{capture assign='group_leader'}<a href='{$url->url_create("profile", $groups[group_loop].group_leader->user_info.user_username)}'>{$groups[group_loop].group_leader->user_displayname}</a>{/capture}
{lang_sprintf id=2000133 1=$groups[group_loop].group_members 2=$group_leader} - {lang_sprintf id=2000134 1=$updated}
</div>
<div>
{$groups[group_loop].group->group_info.group_desc|strip_tags|truncate:300:"...":true}
</div>
</td>
</tr>
</table>
</div>
{/section}
{* DISPLAY PAGINATION MENU IF APPLICABLE *}
{if $maxpage > 1}
<div class='browse_pages'>
{if $p != 1}<a href="{$smarty.server.PHP_SELF}?s={$s}&search={$search}&v={$v}&groupcat_id={$groupcat_id}&p=1"><span class="white arrow">&#171;</span></a> <a href='{$smarty.server.PHP_SELF}?s={$s}&search={$search}&v={$v}&groupcat_id={$groupcat_id}&p={math equation='p-1' p=$p}'><span class="white arrow">&#8249;</span></a>{else}<font class='disabled'><span class="white arrow">&#171; &#8249;</span></font>{/if}
| {foreach from=$for item=foo}
<a href='{$smarty.server.PHP_SELF}?s={$s}&search={$search}&groupcat_id={$groupcat_id}&v={$v}&p={$foo}'>{$foo}</a>
{/foreach} |
{if $p != $maxpage}<a href='{$smarty.server.PHP_SELF}?s={$s}&search={$search}&v={$v}&groupcat_id={$groupcat_id}&p={math equation='p+1' p=$p}'><span class="white arrow">&#8250;</span></a> <a href="{$smarty.server.PHP_SELF}?s={$s}&search={$search}&groupcat_id={$groupcat_id}&v={$v}&p={$maxpage}"><span class="white arrow">&#187;</span></a>{else}<font class='disabled'><span class="white arrow">&#8250; &#187;</span></font>{/if}
<br /><span style="font-weight:normal;">{if $p_start == $p_end}
{lang_sprintf id=184 1=$p_start 2=$total_groups}
{else}
{lang_sprintf id=185 1=$p_start 2=$p_end 3=$total_groups}
{/if}</span><br />
<form>Go to Page: <input type="text" name="p" class="gotext" /><input type="hidden" name="s" value="{$s}" /><input type="hidden" name="groupcat_id" value="{$groupcat_id}" /><input type="hidden" name="search" value="{$search}" /><input type="hidden" name="v" value="{$v}" /><input type="submit" value="Go" /></form>
</div>
{/if}
</div>
<div class="clearfix"></div>
</div>
<div class="clearfix"></div>
{include file='footer.tpl'}