Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

Commit

Permalink
Added jQueryUI specific accordion for 1.10.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Edwards committed Feb 26, 2015
1 parent 90c8c87 commit e305cdb
Show file tree
Hide file tree
Showing 13 changed files with 140 additions and 10 deletions.
4 changes: 2 additions & 2 deletions AssemblyInfo.vb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ Imports System.Runtime.InteropServices
Assembly: AssemblyCopyright("Copyright (c) DNNStuff 2004-2012"), _
Assembly: ComVisible(false), _
Assembly: CLSCompliant(true), _
Assembly: AssemblyVersion("06.04.09"), _
Assembly: AssemblyFileVersion("06.04.09")>
Assembly: AssemblyVersion("06.04.10"), _
Assembly: AssemblyFileVersion("06.04.10")>

11 changes: 11 additions & 0 deletions DNNStuff.Aggregator.vbproj
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,19 @@
<SubType>Designer</SubType>
</Content>
<Content Include="App_LocalResources\ManageScript.ascx.resx" />
<Content Include="Skins\jQueryUI\Accordion_1_10\Layout.html" />
<Content Include="Skins\jQueryUI\Accordion_1_10\Paging.html" />
<Content Include="Skins\jQueryUI\Accordion_1_10\Script.txt" />
<Content Include="Skins\jQueryUI\Accordion_1_10\Settings.xml" />
<Content Include="Skins\jQueryUI\Accordion_1_10\styles.css" />
<Content Include="Skins\jQueryUI\Accordion_1_10\Tab.html" />
<Content Include="Skins\jQueryUI\Accordion_1_10\TabPage.html" />
<Content Include="Skins\jQueryUI\Accordion_1_10\TabStrip.html" />
<Content Include="Skins\jQueryUI\head.txt" />
<Content Include="Skins\jQueryUI\_js\jquery-ui-tabs-rotate.js" />
<Content Include="Version\All\Version_Current.html">
<DependentUpon>Version_Current.md</DependentUpon>
</Content>
<Content Include="Version\Documentation\images\Install - Browse.Png" />
<Content Include="Version\Documentation\images\ModuleWrapping_Html.jpg" />
<Content Include="Version\Documentation\images\ModuleWrapping_Result.jpg" />
Expand Down
5 changes: 5 additions & 0 deletions Skins/jQueryUI/Accordion_1_10/Layout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div style="overflow:auto;[HEIGHT_STYLE][WIDTH_STYLE]" class="[IFQS_THEME][QS_THEME][/IFQS_THEME][IFNOTQS_THEME][THEME][/IFNOTQS_THEME]">
<div id="[UNIQUE]Accordion">
[TABSTRIP]
</div>
</div>
4 changes: 4 additions & 0 deletions Skins/jQueryUI/Accordion_1_10/Paging.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<div style="[OVERFLOW_STYLE][WIDTH_STYLE]" class="[THEME]" style="margin-top:3px;">
<a href="#" class="fg-button fg-button-icon-left ui-state-default ui-corner-all" onclick="[UNIQUE]SelectPrevTab();"><span class="ui-icon ui-icon-circle-triangle-w"></span>Prev</a>
<a href="#" class="fg-button fg-button-icon-right ui-state-default ui-corner-all" onclick="[UNIQUE]SelectNextTab();"><span class="ui-icon ui-icon-circle-triangle-e"></span>Next</a>
</div>
49 changes: 49 additions & 0 deletions Skins/jQueryUI/Accordion_1_10/Script.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
[REQUIRESJQUERYUI]
<input id="[UNIQUE]SelectedElementId" name="[UNIQUE]SelectedElementId" type="hidden" value="[UNIQUE]Tab[SELECTEDTABNUMBER]" />
<link rel="stylesheet" href="[SKINBASEFOLDER]/_themes/[IFQS_THEME][QS_THEME][/IFQS_THEME][IFNOTQS_THEME][THEME][/IFNOTQS_THEME]/ui.all.css" type="text/css" media="all" />
<script type="text/javascript">
jQuery(document).ready(function(){
var $accordion = jQuery('#[UNIQUE]Accordion').accordion({[IFACTIVEHOVER value="True"]event: 'mouseover',[/IFACTIVEHOVER] [IFSTARTCOLLAPSED value="True"] active: false, [/IFSTARTCOLLAPSED] heightStyle: '[HEIGHTSTYLE]', collapsible: [COLLAPSIBLE]});
$accordion.bind("accordionchange", function(event, ui) { [UNIQUE]AccordionChangeCallback(event, ui); });

[IFSTARTCOLLAPSED value="False"][UNIQUE]SelectTab([SELECTEDTABNUMBER],'');[/IFSTARTCOLLAPSED]
});

function [UNIQUE]Initialize()
{
// needs to be here for Aggregator to function but doesn't need to do anything
}

function [UNIQUE]SelectTab(tabNumber,source)
// SelectTab - select a specific tab#, source=tabmodule selecting
{
jQuery('#[UNIQUE]Accordion').accordion('option', 'active', tabNumber-1);
[UNIQUE]UpdateSelectedTab(tabNumber);
[SELECTTARGET]
}

function [UNIQUE]AccordionChangeCallback(event, ui) {
var index = jQuery('#[UNIQUE]Accordion').find("h3").index(ui.newHeader[0]);
[UNIQUE]UpdateSelectedTab(index+1);
}

function [UNIQUE]UpdateSelectedTab(tabNumber)
// UpdateSelectedTab - update hidden value and cookie to remember selection across pages, postbacks
{
// set hidden input value to the new tab
document.getElementById('[UNIQUE]SelectedElementId').value=tabNumber;
[SAVEACTIVETAB]
}

function [UNIQUE]SelectNextTab()
// SelectNextTab - select the next tab
{
// not currently supported
}

function [UNIQUE]SelectPrevTab()
// SelectPrevTab - select the previous tab
{
// not currently supported
}
</script>
38 changes: 38 additions & 0 deletions Skins/jQueryUI/Accordion_1_10/Settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0"?>
<settings>
<description>
<![CDATA[
<strong>jQuery UI Accordion</strong> - based on the jQuery UI Accordion<br />
]]>
</description>
<help>
<![CDATA[
<h2>Compatibility notes</h2>
<ul>
<li>Active Hover Delay - not currently supported</li>
<li>Pager - not currently supported</li>
</ul>
]]>
</help>
<properties>
<property name="Theme" type="Directory" caption="JQuery UI Theme" default="flick" directory="Skins/jQueryUI/_themes">
<help>The jQuery UI theme used to style the tabs</help>
</property>
<property name="HeightStyle" type="Choice" caption="Height Style" default="auto">
<help>Determines how panels are sized</help>
<choices>
<choice value="auto" caption="Auto" />
<choice value="content" caption="Content" />
<choice value="fill" caption="Fill" />
</choices>
</property>
<property name="Collapsible" type="Boolean" caption="Collapsible" default="false">
<help>Determines whether all the sections can be closed at once</help>
</property>
<property name="StartCollapsed" type="Boolean" caption="Start Collapsed" default="false">
<help>If collapsible is set, this will start with all sections closed</help>
</property>
</properties>
<tabproperties>
</tabproperties>
</settings>
2 changes: 2 additions & 0 deletions Skins/jQueryUI/Accordion_1_10/Tab.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<h3><a href="#[UNIQUE][TABNUMBER]">[TABCAPTION]</a></h3>
[TABPAGE]
1 change: 1 addition & 0 deletions Skins/jQueryUI/Accordion_1_10/TabPage.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<div>[TABPAGECONTENT]</div>
1 change: 1 addition & 0 deletions Skins/jQueryUI/Accordion_1_10/TabStrip.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[TABS]
Empty file.
6 changes: 3 additions & 3 deletions Version/All/Version_Current.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<h2>06.04.09</h2>
<p>19/Dec/2014</p>
<h2>06.04.10</h2>
<p>12/Feb/2015</p>
<ul>
<li>
Fixes
<ul>
<li>Minor theme styling fixes</li>
<li>Added a jQueryUI 1.10.x specific version of the jQuery Accordion - in the list as Accordion_1_10</li>
</ul>
</li>
</ul>
Expand Down
7 changes: 3 additions & 4 deletions Version/All/Version_Current.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@

## 06.04.09

19/Dec/2014
## 06.04.10

12/Feb/2015

* Fixes
* Minor theme styling fixes
* Added a jQueryUI 1.10.x specific version of the jQuery Accordion - in the list as Accordion_1_10


For additional release history please visit the [documentation](http://docs.dnnstuff.com/pages/aggregator).
22 changes: 21 additions & 1 deletion Version/Documentation/Releases.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,30 @@ title: Release History
tags: ['intro','page']
```

```Minimum configuration DNN 6.0.3+ / DNN7+ / .NET 3.5 only```
```Minimum configuration DNN 6.0.3+ / DNN7+ / .NET 3.5+ only```

<!-- insert-newversion -->

## 06.04.10

12/Feb/2015

* Fixes
* Added a jQueryUI 1.10.x specific version of the jQuery Accordion - in the list as Accordion_1_10


## 06.04.09

19/Dec/2014


* Fixes
* Minor theme styling fixes


For additional release history please visit the [documentation](http://docs.dnnstuff.com/pages/aggregator).


## 06.04.09

19/Dec/2014
Expand Down

0 comments on commit e305cdb

Please sign in to comment.