mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Since phpBB 2 pagination has been rendered mostly within the source. This limits just what designers can do with pagination. The current form is also questionable in terms of "best practice". The aim is to move rendering completely to the template via the use of a block element. Enabling S_ template vars also allows for control over specific aspects of the pagination output such as next, previous, active and ellipsis. Related to this - merging the capabilities of the topic_generate_pagination with generate_pagination removes an element of duplication. PHPBB3-10968
38 lines
1.6 KiB
HTML
38 lines
1.6 KiB
HTML
<!-- INCLUDE simple_header.html -->
|
|
|
|
<script type="text/javascript">
|
|
// <![CDATA[
|
|
var form_name = 'postform';
|
|
var text_name = 'message';
|
|
// ]]>
|
|
</script>
|
|
<script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/editor.js"></script>
|
|
|
|
<table width="100%" cellspacing="1" cellpadding="4" border="0">
|
|
<tr>
|
|
<td>
|
|
<table class="tablebg" width="95%" cellspacing="1" cellpadding="4" border="0">
|
|
<tr>
|
|
<th>{L_SMILIES}</th>
|
|
</tr>
|
|
<tr>
|
|
<td class="row1" align="center" valign="middle"><!-- BEGIN smiley --> <a href="#" onclick="initInsertions(); insert_text('{smiley.A_SMILEY_CODE}', true, true); return false;"><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_CODE}" title="{smiley.SMILEY_DESC}" hspace="2" vspace="2" /></a> <!-- END smiley --><br />
|
|
<!-- IF .pagination -->
|
|
<b><a href="#" onclick="jumpto(); return false;" title="{L_JUMP_TO_PAGE}">{L_GOTO_PAGE}</a>
|
|
<!-- BEGIN pagination -->
|
|
<!-- IF pagination.S_IS_PREV --><a href="{pagination.PAGE_URL}">{pagination.PAGE_NUMBER}</a>
|
|
<!-- ELSEIF pagination.S_IS_CURRENT --><strong>{pagination.PAGE_NUMBER}</strong>
|
|
<!-- ELSEIF pagination.S_IS_ELLIPSIS --> {L_ELLIPSIS}
|
|
<!-- ELSEIF pagination.S_IS_NEXT --><a href="{pagination.PAGE_URL}">{pagination.PAGE_NUMBER}</a>
|
|
<!-- ELSE --><a href="{pagination.PAGE_URL}">{pagination.PAGE_NUMBER}</a>
|
|
<!-- ENDIF -->
|
|
<!-- END pagination -->
|
|
<br />
|
|
<!-- ENDIF -->
|
|
<a class="nav" href="#" onclick="window.close(); return false;">{L_CLOSE_WINDOW}</a></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<!-- INCLUDE simple_footer.html -->
|