Skip to content

Commit

Permalink
Item14219: Incorporate cookbook changes, bump version
Browse files Browse the repository at this point in the history
and update release notes.
  • Loading branch information
gac410 committed Nov 29, 2016
1 parent d5c8c1e commit c73d23c
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 27 deletions.
40 changes: 22 additions & 18 deletions PatternSkin/data/System/PatternSkin.txt
@@ -1,4 +1,4 @@
%META:TOPICINFO{author="ProjectContributor" date="1459801632" format="1.1" version="1"}%
%META:TOPICINFO{author="ProjectContributor" date="1480385562" format="1.1" version="1"}%
%META:TOPICPARENT{name="Skins"}%
%STARTINCLUDE%
---+!! Pattern skin
Expand Down Expand Up @@ -189,6 +189,10 @@ For further troubleshooting and feedback, go to http://foswiki.org/Support/%TOPI
| Preview: | [[%SCRIPTURL{view}%/%WEB%/%TOPIC%?skin=pattern][Preview with this skin]] |
| Base Name: | pattern |
| History: | <!-- specify latest version first -->&nbsp; |
| 28 Nov 2016 | v.6.07: Foswikitask:Item14069: Improve sanitization of attach filename<br/>\
Foswikitask:Item14092: Add hook to attach.pattern.tmpl to support attachment properties.<br/>\
Foswikitask:Item14145: Deprecation of beforetext/aftertext templates breaks compatibility with other skins.<br/>\
Foswikitask:Item14219: Add WebSideBar toggle cookbook. |
| 04 Apr 2016 | V.6.06: Foswikitask:Item13950: Remove refresh cache links for guests<br/> \
Foswikitask:Item14039: SkinBrowser is too slow, searches are too broad. |
| 03 Feb 2016 | V.6.05: Foswikitask:Item13880: Malformed HTML in WebCreateNewTopic |
Expand Down Expand Up @@ -262,20 +266,20 @@ Leave remarks, suggestions and other feedback in http://foswiki.org/Support/%TOP
%META:FIELD{name="Repository" title="Repository" value="https://github.com/foswiki/distro"}%
%META:FIELD{name="Support" title="Support" value="http://foswiki.org/Support/%25$ROOTMODULE%25"}%
%META:FIELD{name="Version" title="Version" value="%25$VERSION%25"}%
%META:FILEATTACHMENT{name="print.css.gz" attr="h" comment="" date="1459801632" size="786" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="header3.gif" attr="h" comment="" date="1459801632" size="33112" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="patternskin_screenshot.png" attr="h" comment="" date="1459801632" size="129505" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswiki_edit_01x01_src.js" attr="h" comment="" date="1459801632" size="2618" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="header1.gif" attr="h" comment="" date="1459801632" size="20605" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="pattern.js" attr="h" comment="" date="1459801632" size="1305" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="header2.gif" attr="h" comment="" date="1459801632" size="41616" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="header5.gif" attr="h" comment="" date="1459801632" size="20639" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="pattern_src.js" attr="h" comment="" date="1459801632" size="1732" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswiki_edit_01x01.js.gz" attr="h" comment="" date="1459801632" size="474" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="pattern.js.gz" attr="h" comment="" date="1459801632" size="620" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="print.css" attr="h" comment="" date="1459801632" size="3869" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="headers.psd" attr="h" comment="" date="1459801632" size="8499470" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="header4.gif" attr="h" comment="" date="1459801632" size="92238" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="patternskin_screenshot_full.png" attr="h" comment="" date="1459801632" size="177943" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswiki_edit_01x01.js" attr="h" comment="" date="1459801632" size="1007" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="print_src.css" attr="h" comment="" date="1459801632" size="5545" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="print.css.gz" attr="h" comment="" date="1480385562" size="786" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="header3.gif" attr="h" comment="" date="1480385562" size="33112" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="patternskin_screenshot.png" attr="h" comment="" date="1480385562" size="129505" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswiki_edit_01x01_src.js" attr="h" comment="" date="1480385562" size="2618" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="header1.gif" attr="h" comment="" date="1480385562" size="20605" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="pattern.js" attr="h" comment="" date="1480385562" size="1305" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="header2.gif" attr="h" comment="" date="1480385562" size="41616" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="header5.gif" attr="h" comment="" date="1480385562" size="20639" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="pattern_src.js" attr="h" comment="" date="1480385562" size="1732" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswiki_edit_01x01.js.gz" attr="h" comment="" date="1480385562" size="474" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="pattern.js.gz" attr="h" comment="" date="1480385562" size="620" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="print.css" attr="h" comment="" date="1480385562" size="3869" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="headers.psd" attr="h" comment="" date="1480385562" size="8499470" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="header4.gif" attr="h" comment="" date="1480385562" size="92238" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="patternskin_screenshot_full.png" attr="h" comment="" date="1480385562" size="177943" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="foswiki_edit_01x01.js" attr="h" comment="" date="1480385562" size="1007" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="print_src.css" attr="h" comment="" date="1480385562" size="5545" user="ProjectContributor" version="1"}%
6 changes: 5 additions & 1 deletion PatternSkin/data/System/PatternSkinCssCookbook.txt
@@ -1,4 +1,4 @@
%META:TOPICINFO{author="ProjectContributor" date="1479139667" format="1.1" version="1"}%
%META:TOPICINFO{author="ProjectContributor" date="1480385562" format="1.1" version="1"}%
%META:TOPICPARENT{name="PatternSkin"}%
---+!! %SYSTEMWEB%.PatternSkin CSS Cookbook

Expand Down Expand Up @@ -59,6 +59,10 @@ The rest of this topic shows examples of small CSS changes.

See example at: PatternSkinCssCookbookNoLeftBar

---+++ Toggle the left bar on small screen

See example at: PatternSkinCssCookbookSidebarToggle

---+++ Use different fonts

See example at: PatternSkinCssCookbookFonts
Expand Down
16 changes: 10 additions & 6 deletions PatternSkin/data/System/PatternSkinCssCookbookSidebarToggle.txt
@@ -1,4 +1,4 @@
%META:TOPICINFO{author="ProjectContributor" date="1479575910" format="1.1" version="1"}%
%META:TOPICINFO{author="ProjectContributor" date="1480387012" format="1.1" version="1"}%
%META:TOPICPARENT{name="System.PatternSkinCssCookbook"}%
<!--
* Set NOWYSIWYG = 1
Expand All @@ -16,13 +16,17 @@ This line loads the extra style definition:
* Set USERSTYLEURL = %PUBURLPATH{topic="%SYSTEMWEB%.PatternSkinCssCookbookSidebarToggle" "SidebarToggle.css"}%
</verbatim>

To activate the button in the sidebar, also add the following to the preferences: (Be sure to escape any double-quotes (\") if you modiy this statement.)
<verbatim class="tml">
* Set PATTERNSIDEBARTOGGLE = <button class='sidebartoggle-button' title='Reveal/Hide Sidebar' onclick=\"$('body').toggleClass('showsidebar');\">%JQICON{"fa-bars"}%</button>
</verbatim>
To activate the button in the sidebar, override the =viewsidebar.pattern.tmpl= using the supplied =viewsidebar.sidetoggle.tmpl= by adding it to the front of
the SKIN setting.

Your current SKIN setting is =%SKIN%=
Change it to
<pre>
* Set SKIN=sidetoggle,%SKIN%
</pre>

The formating and positioning is done in the css. When the sidebar is hidden, the button will appear in the lower left corner of the screen, appearing as the "hamburg" icon: ... %JQICON{fa-bars}%.
</div>
<!-- %JQREQUIRE{"chili"}% -->

%META:FILEATTACHMENT{name="SidebarToggle.css" attachment="SidebarToggle.css" attr="" comment="StyleSheet to toggle left Sidebar in the PatternSkin" date="1479575910" size="784" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="SidebarToggle.css" attachment="SidebarToggle.css" attr="" comment="StyleSheet to toggle left Sidebar in the PatternSkin" date="1480387012" size="784" user="ProjectContributor" version="1"}%
4 changes: 2 additions & 2 deletions PatternSkin/lib/Foswiki/Contrib/PatternSkin.pm
Expand Up @@ -3,8 +3,8 @@ package Foswiki::Contrib::PatternSkin;
use strict;
use warnings;

our $VERSION = '6.06';
our $RELEASE = '04 Apr 2016';
our $VERSION = '6.07';
our $RELEASE = '28 Nov 2016';
our $SHORTDESCRIPTION =
'Pattern skin provides a CSS based default look and feel - flexible and [[http://www.w3.org/][W3C]] compliant. Its layout and color scheme are designed to provide a nice, clean and productive editing environment';

Expand Down
4 changes: 4 additions & 0 deletions PatternSkin/lib/Foswiki/Contrib/PatternSkin/MANIFEST
@@ -1,4 +1,5 @@
!noci

data/_default/WebLeftBar.txt 0644
data/Main/PatternSkinUserViewTemplate.txt 0644
data/Main/WebLeftBarExample.txt 0644
Expand All @@ -14,6 +15,7 @@ data/System/PatternSkinCssCookbookHideActions.txt 0644
data/System/PatternSkinCssCookbookNoLeftBar.txt 0644
data/System/PatternSkinCssCookbookNoTopBar.txt 0644
data/System/PatternSkinCssCookbookSidebarBackground.txt 0644
data/System/PatternSkinCssCookbookSidebarToggle.txt 0644
data/System/PatternSkinCustomization.txt 0644
data/System/PatternSkinElements.txt 0644
data/System/PatternSkinGraphics.txt 0644
Expand Down Expand Up @@ -110,6 +112,7 @@ pub/System/PatternSkinCssCookbookHideActions/hideunauthaction.css 0644
pub/System/PatternSkinCssCookbookNoLeftBar/hideleftbar.css 0644
pub/System/PatternSkinCssCookbookNoTopBar/notopbar.css 0644
pub/System/PatternSkinCssCookbookSidebarBackground/sidebar.css 0644
pub/System/PatternSkinCssCookbookSidebarToggle/SidebarToggle.css 0644
pub/System/PatternSkinTheme/bullet-lock.gif 0644
pub/System/PatternSkinTheme/bullet-personal_sidebar.gif 0644
pub/System/PatternSkinTheme/bullet-toc.gif 0644
Expand Down Expand Up @@ -293,6 +296,7 @@ templates/viewbottombar.pattern.tmpl 0444
templates/viewplain.pattern.tmpl 0444
templates/viewprint.pattern.tmpl 0444
templates/viewsidebar.pattern.tmpl 0444
templates/viewsidebar.sidetoggle.tmpl 0444
templates/viewtopbar.pattern.tmpl 0444
templates/formtables.pattern01x01.tmpl 0444
templates/view.pattern01x01.tmpl 0444
Expand Down

0 comments on commit c73d23c

Please sign in to comment.