From a540cdc3b2efd6fdb10f6c7ce9de43ac04ad2897 Mon Sep 17 00:00:00 2001 From: PayBas Date: Thu, 5 Jun 2014 01:31:19 +0200 Subject: [ticket/12662] Initial setup PHPBB3-12662 --- phpBB/styles/prosilver/template/forum_fn.js | 39 ++++-- phpBB/styles/prosilver/template/index_body.html | 18 +-- phpBB/styles/prosilver/template/navbar_footer.html | 18 ++- phpBB/styles/prosilver/template/navbar_header.html | 137 +++++++++++++-------- .../styles/prosilver/template/viewforum_body.html | 2 +- .../styles/prosilver/template/viewtopic_body.html | 2 +- phpBB/styles/prosilver/theme/bidi.css | 4 +- phpBB/styles/prosilver/theme/colours.css | 24 +++- phpBB/styles/prosilver/theme/common.css | 94 +++++++++++--- phpBB/styles/prosilver/theme/images/icon_acp.gif | Bin 0 -> 389 bytes .../styles/prosilver/theme/images/icon_cookies.gif | Bin 0 -> 363 bytes .../prosilver/theme/images/icon_dropdown.png | Bin 0 -> 197 bytes phpBB/styles/prosilver/theme/images/icon_mcp.gif | Bin 0 -> 342 bytes .../styles/prosilver/theme/images/icon_profile.gif | Bin 0 -> 538 bytes phpBB/styles/prosilver/theme/images/icon_team.gif | Bin 0 -> 1009 bytes phpBB/styles/prosilver/theme/links.css | 16 +++ phpBB/styles/prosilver/theme/responsive.css | 2 +- 17 files changed, 252 insertions(+), 104 deletions(-) create mode 100644 phpBB/styles/prosilver/theme/images/icon_acp.gif create mode 100644 phpBB/styles/prosilver/theme/images/icon_cookies.gif create mode 100644 phpBB/styles/prosilver/theme/images/icon_dropdown.png create mode 100644 phpBB/styles/prosilver/theme/images/icon_mcp.gif create mode 100644 phpBB/styles/prosilver/theme/images/icon_profile.gif create mode 100644 phpBB/styles/prosilver/theme/images/icon_team.gif (limited to 'phpBB/styles/prosilver') diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js index ea2b815e77..b19149477b 100644 --- a/phpBB/styles/prosilver/template/forum_fn.js +++ b/phpBB/styles/prosilver/template/forum_fn.js @@ -673,19 +673,23 @@ function parse_document(container) var $this = $(this), $body = $('body'), filterSkip = '.breadcrumbs, [data-skip-responsive]', - filterLast = '.pagination, .icon-notifications, .icon-pm, .icon-logout, .icon-login, .mark-read, .edit-icon, .quote-icon', + filterLast = '.pagination, .icon-acp, .icon-mcp, .icon-notifications, .icon-pm, .icon-logout, .icon-login, .mark-read, .edit-icon, .quote-icon', + persist = $this.attr('id') == 'nav-main', allLinks = $this.children(), links = allLinks.not(filterSkip), html = '', filterLastList = links.filter(filterLast); - if (links.is('.rightside')) - { - links.filter('.rightside:first').before(html); - } - else - { - $this.append(html); + if (!persist) { + if (links.is('.rightside')) + { + links.filter('.rightside:first').before(html); + $this.children('.responsive-menu').addClass('rightside'); + } + else + { + $this.append(html); + } } var item = $this.children('.responsive-menu'), @@ -706,7 +710,7 @@ function parse_document(container) responsive = false; $this.removeClass('responsive'); links.css('display', ''); - item.css('display', 'none'); + if (!persist) item.css('display', 'none'); } if (compact) { @@ -752,9 +756,16 @@ function parse_document(container) if (!copied) { var clone = links.clone(true); clone.filter('.rightside').each(function() { + if (persist) this.addClass('clone'); menu.prepend(this); }); - menu.prepend(clone.not('.rightside')); + + if (persist) { + menu.prepend(clone.not('.rightside').addClass('clone')); + } else { + menu.prepend(clone.not('.rightside')); + } + menu.find('li.leftside, li.rightside').removeClass('leftside rightside'); menu.find('.inputbox').parents('li:first').css('white-space', 'normal'); @@ -771,7 +782,7 @@ function parse_document(container) item.css('display', ''); $this.addClass('responsive'); - // Try to not hide filtered items + // Try to not hide filtered items #TODO: this does not work! if (filterLastList.length) { links.not(filterLast).css('display', 'none'); @@ -787,10 +798,14 @@ function parse_document(container) } } + // If even responsive isn't enough, use both responsive and compact at same time + compact = true; + $this.addClass('compact'); + links.css('display', 'none'); } - phpbb.registerDropdown(item.find('a.responsive-menu-link'), item.find('.dropdown')); + if (!persist) phpbb.registerDropdown(item.find('a.responsive-menu-link'), item.find('.dropdown')); check(); $(window).resize(check); diff --git a/phpBB/styles/prosilver/template/index_body.html b/phpBB/styles/prosilver/template/index_body.html index f9c5b4cf20..ce2886111e 100644 --- a/phpBB/styles/prosilver/template/index_body.html +++ b/phpBB/styles/prosilver/template/index_body.html @@ -1,23 +1,13 @@ -

{LAST_VISIT_DATE}{CURRENT_TIME}

-

{CURRENT_TIME}
{L_ACP} | {L_MCP} ]

+

{LAST_VISIT_DATE}{CURRENT_TIME}

+

{CURRENT_TIME}

- + diff --git a/phpBB/styles/prosilver/template/navbar_footer.html b/phpBB/styles/prosilver/template/navbar_footer.html index e2259e8712..2f811d9103 100644 --- a/phpBB/styles/prosilver/template/navbar_footer.html +++ b/phpBB/styles/prosilver/template/navbar_footer.html @@ -10,13 +10,25 @@
  • {S_WATCH_FORUM_TITLE}
  • +
  • {S_TIMEZONE}
  • -
  • {L_DELETE_COOKIES}
  • +
  • {L_DELETE_COOKIES}
  • -
  • {L_THE_TEAM}
  • -
  • {L_CONTACT_US}
  • + + + +
  • {L_THE_TEAM}
  • + + +
  • + {L_MEMBERLIST} +
  • + + +
  • {L_CONTACT_US}
  • + diff --git a/phpBB/styles/prosilver/template/navbar_header.html b/phpBB/styles/prosilver/template/navbar_header.html index 67a3b553fd..a48d16e466 100644 --- a/phpBB/styles/prosilver/template/navbar_header.html +++ b/phpBB/styles/prosilver/template/navbar_header.html @@ -1,68 +1,107 @@