'wcf.global.loading': '{lang}wcf.global.loading{/lang}',
'wcf.global.page.jumpTo': '{lang}wcf.global.page.jumpTo{/lang}',
'wcf.global.page.jumpTo.description': '{lang}wcf.global.page.jumpTo.description{/lang}',
- 'wcf.global.page.pageNavigation': '{lang}wcf.global.page.pageNavigation{/lang}',
+ 'wcf.global.page.pagination': '{lang}wcf.global.page.pagination{/lang}',
'wcf.global.page.next': '{capture assign=pageNext}{lang}wcf.global.page.next{/lang}{/capture}{@$pageNext|encodeJS}',
'wcf.global.page.previous': '{capture assign=pagePrevious}{lang}wcf.global.page.previous{/lang}{/capture}{@$pagePrevious|encodeJS}',
'wcf.global.pageDirection': '{lang}wcf.global.pageDirection{/lang}',
$(function() {
new WCF.Effect.SmoothScroll();
- WCF.System.PageNavigation.init('.pageNavigation');
+ WCF.System.PageNavigation.init('.pagination');
WCF.User.Profile.ActivityPointList.init();
{event name='javascriptInit'}
+++ /dev/null
-<div class="navigation navigationBottom">
- <div class="layoutFluid">
- {if $skipBreadcrumbs|empty}{include file='breadcrumbs'}{/if}
-
- <ul class="navigationIcons">
- <li id="toTopLink" class="toTopLink"><a href="{$__wcf->getAnchor('top')}" title="{lang}wcf.global.scrollUp{/lang}" class="jsTooltip"><span class="icon icon16 fa-arrow-up"></span> <span class="invisible">{lang}wcf.global.scrollUp{/lang}</span></a></li>
- {event name='navigationIcons'}
- </ul>
- </div>
-</div>
-<div class="navigation navigationTop">
+<div class="pageNavigation">
<div class="layoutBoundary">
{if $skipBreadcrumbs|empty}{include file='breadcrumbs'}{/if}
- <ul class="navigationIcons">
+ <ul class="pageNavigationIcons">
<li id="sitemap" class="jsOnly"><a href="#" title="{lang}wcf.page.sitemap{/lang}" class="jsTooltip"><span class="icon icon16 fa-sitemap"></span> <span class="invisible">{lang}wcf.page.sitemap{/lang}</span></a></li>
{if $headerNavigation|isset}{@$headerNavigation}{/if}
{event name='navigationIcons'}
_setupPagination: function() {
// remove previous instances
this._content = { 1: this._packageSearchResultList.html() };
- this._packageSearchResultContainer.find('.pageNavigation').wcfPages('destroy').remove();
+ this._packageSearchResultContainer.find('.pagination').wcfPages('destroy').remove();
if (this._pageCount > 1) {
// TODO: Fix ui.wcfPages to properly synchronize multiple instances without triggering events
}
else {
var $button = $('<li><a class="button"><span class="icon icon16 fa-refresh"></span> <span>' + WCF.Language.get('wcf.acp.package.searchForUpdates') + '</span></a></li>');
- $button.click($.proxy(this._click, this)).prependTo($('.contentNavigation:eq(0) > nav:not(.pageNavigation) > ul'));
+ $button.click($.proxy(this._click, this)).prependTo($('.contentNavigation:eq(0) > nav:not(.pagination) > ul'));
}
},
});
var $button = $('<li><a class="button"><span class="icon icon16 fa-shopping-cart" /> <span>' + WCF.Language.get('wcf.acp.pluginStore.purchasedItems.button.search') + '</span></a></li>');
- $button.prependTo($('.contentNavigation:eq(0) > nav:not(.pageNavigation) > ul')).click($.proxy(this._click, this));
+ $button.prependTo($('.contentNavigation:eq(0) > nav:not(.pagination) > ul')).click($.proxy(this._click, this));
},
/**
'wcf.global.loading': '{lang}wcf.global.loading{/lang}',
'wcf.global.page.jumpTo': '{lang}wcf.global.page.jumpTo{/lang}',
'wcf.global.page.jumpTo.description': '{lang}wcf.global.page.jumpTo.description{/lang}',
- 'wcf.global.page.pageNavigation': '{lang}wcf.global.page.pageNavigation{/lang}',
+ 'wcf.global.page.pagination': '{lang}wcf.global.page.pagination{/lang}',
'wcf.global.page.next': '{capture assign=pageNext}{lang}wcf.global.page.next{/lang}{/capture}{@$pageNext|encodeJS}',
'wcf.global.page.previous': '{capture assign=pagePrevious}{lang}wcf.global.page.previous{/lang}{/capture}{@$pagePrevious|encodeJS}',
'wcf.global.pageDirection': '{lang}wcf.global.pageDirection{/lang}',
if (jQuery.browser.touch) $('html').addClass('touch');
new WCF.Effect.SmoothScroll();
- WCF.System.PageNavigation.init('.pageNavigation');
+ WCF.System.PageNavigation.init('.pagination');
{if $__wcf->user->userID}
//new WCF.ACP.Search();
_dialogSetup: function() {
var source = '<dl>'
- + '<dt><label for="jsPageNavigationPageNo">' + Language.get('wcf.global.page.jumpTo') + '</label></dt>'
+ + '<dt><label for="jsPaginationPageNo">' + Language.get('wcf.global.page.jumpTo') + '</label></dt>'
+ '<dd>'
- + '<input type="number" id="jsPageNavigationPageNo" value="1" min="1" max="1" class="tiny">'
+ + '<input type="number" id="jsPaginationPageNo" value="1" min="1" max="1" class="tiny">'
+ '<small></small>'
+ '</dd>'
+ '</dl>'
+ '</div>';
return {
- id: 'pageNavigationOverlay',
+ id: 'paginationOverlay',
options: {
onSetup: (function(content) {
_input = elByTag('input', content)[0];
_buttonSubmit = elByTag('button', content)[0];
_buttonSubmit.addEventListener('click', this._submit.bind(this));
}).bind(this),
- title: Language.get('wcf.global.page.pageNavigation')
+ title: Language.get('wcf.global.page.pagination')
},
source: source
};
if (typeof this._options.callbackShouldSwitch !== 'function') this._options.callbackShouldSwitch = null;
if (typeof this._options.callbackSwitch !== 'function') this._options.callbackSwitch = null;
- this._element.classList.add('pageNavigation');
+ this._element.classList.add('pagination');
this._element.classList.add('small');
this._rebuild(this._element);
* CSS class name for <nav> element
* @var string
*/
- protected $cssClassName = 'pageNavigation';
+ protected $cssClassName = 'pagination';
/**
* Inserts the page number into the link.
/**
* @see \wcf\system\template\plugin\PagesFunctionTemplatePlugin::$cssClassName
*/
- protected $cssClassName = 'pageNavigation small';
+ protected $cssClassName = 'pagination small';
/**
* @see \wcf\system\template\plugin\PagesFunctionTemplatePlugin::makePreviousLink()
}
}
}
+
+.contentNavigation {
+ align-items: center;
+ display: flex;
+
+ // align <nav> to the right side
+ justify-content: flex-end;
+
+ &:not(:first-child) {
+ margin-top: 30px;
+ }
+
+ &:not(:last-child) {
+ margin-bottom: 30px;
+ }
+
+ > nav {
+ flex: 0 0 auto;
+ order: 3;
+
+ &.pagination {
+ order: 1;
+
+ // use up maximum space, causing it to stick to the left while all other
+ // <nav> elements will still be aligned to the right side
+ flex: 1 1 auto;
+ }
+
+ &.jsClipboardEditor {
+ margin-right: 5px;
+ order: 2;
+ }
+
+ & + nav {
+ flex: 0 0 auto;
+ }
+
+ &:not(.pagination) {
+ text-align: right;
+ }
+ }
+
+ ul {
+ display: inline-flex;
+
+ > li {
+ flex: 0 0 auto;
+
+ &:not(:last-child) {
+ margin-right: 5px;
+ }
+ }
+ }
+}
\ No newline at end of file
+++ /dev/null
-.navigation {
- background-color: $wcfNavigationBackground;
- color: $wcfNavigationText;
- flex: 0 0 auto;
- padding: 5px 0;
- z-index: 25;
-
- > div {
- align-items: center;
- display: flex;
- justify-content: flex-end;
- height: 30px;
- }
-
- .icon {
- color: $wcfNavigationText;
- }
-
- a {
- color: $wcfNavigationLink;
-
- &:hover {
- color: $wcfNavigationLinkActive;
- }
- }
-}
-
-.navigationIcons {
- display: flex;
- flex: 0 0 auto;
- flex-direction: row-reverse;
-
- > li {
- flex: 0 0 auto;
-
- &:not(:last-child) {
- margin-left: 10px;
- }
-
- > a {
- > .icon {
- color: $wcfHeaderLink;
- }
-
- &:hover > .icon {
- color: $wcfHeaderLinkActive;
- }
- }
- }
-}
-
-.contentNavigation {
- align-items: center;
- display: flex;
-
- // align <nav> to the right side
- justify-content: flex-end;
-
- &:not(:first-child) {
- margin-top: 30px;
- }
-
- &:not(:last-child) {
- margin-bottom: 30px;
- }
-
- > nav {
- flex: 0 0 auto;
- order: 3;
-
- &.pageNavigation {
- order: 1;
-
- // use up maximum space, causing it to stick to the left while all other
- // <nav> elements will still be aligned to the right side
- flex: 1 1 auto;
- }
-
- &.jsClipboardEditor {
- margin-right: 5px;
- order: 2;
- }
-
- & + nav {
- flex: 0 0 auto;
- }
-
- &:not(.pageNavigation) {
- text-align: right;
- }
- }
-
- ul {
- display: inline-flex;
-
- > li {
- flex: 0 0 auto;
-
- &:not(:last-child) {
- margin-right: 5px;
- }
- }
- }
-}
-
-.pageNavigation > ul {
- display: inline-flex;
-
- > li {
- display: flex;
- flex: 0 0 auto;
-
- > .invisible {
- display: none;
- }
-
- > a,
- > span {
- color: $wcfContentText;
- padding: 1px 8px;
- }
-
- &.disabled > span {
- color: $wcfContentDimmedText;
- }
-
- &.active > a,
- &.active > span,
- > a:hover {
- background-color: $wcfButtonBackgroundActive;
- color: $wcfButtonTextActive;
- }
-
- > .icon {
- height: auto;
- line-height: inherit;
- width: auto;
- }
-
- &:not(:last-child) {
- margin-right: 1px;
- }
- }
-}
-/*@todo
-.pageNavigation.small > ul > li {
- > a,
- > span:not(.invisible) {
- padding: 1px 5px;
- }
-}*/
--- /dev/null
+.pageNavigation {
+ background-color: $wcfNavigationBackground;
+ color: $wcfNavigationText;
+ flex: 0 0 auto;
+ padding: 5px 0;
+ z-index: 25;
+
+ > div {
+ align-items: center;
+ display: flex;
+ justify-content: flex-end;
+ height: 30px;
+ }
+
+ .icon {
+ color: $wcfNavigationText;
+ }
+
+ a {
+ color: $wcfNavigationLink;
+
+ &:hover {
+ color: $wcfNavigationLinkActive;
+ }
+ }
+}
+
+.pageNavigationIcons {
+ display: flex;
+ flex: 0 0 auto;
+ flex-direction: row-reverse;
+
+ > li {
+ flex: 0 0 auto;
+
+ &:not(:last-child) {
+ margin-left: 10px;
+ }
+
+ > a {
+ > .icon {
+ color: $wcfHeaderLink;
+ }
+
+ &:hover > .icon {
+ color: $wcfHeaderLinkActive;
+ }
+ }
+ }
+}
.columnSubject > .statusDisplay {
opacity: 1;
- > .pageNavigation {
+ > .pagination {
opacity: 1;
}
}
}
}
- .pageNavigation {
+ .pagination {
flex: 0 0 auto;
opacity: 0;
--- /dev/null
+.pagination > ul {
+ display: inline-flex;
+
+ > li {
+ display: flex;
+ flex: 0 0 auto;
+
+ > .invisible {
+ display: none;
+ }
+
+ > a,
+ > span {
+ color: $wcfContentText;
+ padding: 1px 8px;
+ }
+
+ &.disabled > span {
+ color: $wcfContentDimmedText;
+ }
+
+ &.active > a,
+ &.active > span,
+ > a:hover {
+ background-color: $wcfButtonBackgroundActive;
+ color: $wcfButtonTextActive;
+ }
+
+ > .icon {
+ height: auto;
+ line-height: inherit;
+ width: auto;
+ }
+
+ &:not(:last-child) {
+ margin-right: 1px;
+ }
+ }
+}
<item name="wcf.global.name"><![CDATA[Name]]></item>
<item name="wcf.global.objectID"><![CDATA[ID]]></item>
<item name="wcf.global.page.next"><![CDATA[Nächste Seite]]></item>
- <item name="wcf.global.page.pageNavigation"><![CDATA[Navigation]]></item>
+ <item name="wcf.global.page.pagination"><![CDATA[Navigation]]></item>
<item name="wcf.global.page.previous"><![CDATA[Vorherige Seite]]></item>
<item name="wcf.global.pageDirection"><![CDATA[ltr]]></item> <!-- system variable; do not translate -->
<item name="wcf.global.redirect.title"><![CDATA[Weiterleitung]]></item>
<item name="wcf.global.name"><![CDATA[Name]]></item>
<item name="wcf.global.objectID"><![CDATA[ID]]></item>
<item name="wcf.global.page.next"><![CDATA[Next Page]]></item>
- <item name="wcf.global.page.pageNavigation"><![CDATA[Navigation]]></item>
+ <item name="wcf.global.page.pagination"><![CDATA[Navigation]]></item>
<item name="wcf.global.page.previous"><![CDATA[Previous Page]]></item>
<item name="wcf.global.pageDirection"><![CDATA[ltr]]></item> <!-- system variable; do not translate -->
<item name="wcf.global.redirect.title"><![CDATA[Redirection]]></item>