Permalink
Browse files

Syncing up with version 0.8 of Options Framework plugin.

  • Loading branch information...
1 parent cb68442 commit c7fdf26b22c1f728543a0543071cca5646b80f40 @devinsays devinsays committed Jun 21, 2011
Showing with 398 additions and 189 deletions.
  1. +13 −13 admin/css/admin-style.css
  2. +28 −11 admin/js/options-custom.js
  3. +167 −123 admin/options-framework.php
  4. +5 −8 admin/options-interface.php
  5. +23 −17 admin/options-sanitize.php
  6. +39 −10 changelog.txt
  7. +26 −0 functions.php
  8. +96 −6 readme.txt
  9. +1 −1 style.css
@@ -9,18 +9,18 @@
margin: 10px 0;
width: 785px;
position:relative;
- z-index: 0
+ z-index: 0;
}
#of_container #header {
height: 60px;
background:#dfdfdf url("../../../../wp-admin/images/gray-grad.png") repeat-x left top;
border: 1px solid #ccc;
- border-top-left-radius: 6px;
- -moz-border-radius-topleft: 6px;
- -webkit-border-top-left-radius: 6px;
- -webkit-border-top-right-radius: 6px;
- border-top-right-radius: 6px;
- -moz-border-radius-topright: 6px;
+ border-top-left-radius: 3px;
+ -moz-border-radius-topleft: 3px;
+ -webkit-border-top-left-radius: 3px;
+ -webkit-border-top-right-radius: 3px;
+ border-top-right-radius: 3px;
+ -moz-border-radius-topright: 3px;
}
#of_container #header .logo {
float: left;
@@ -307,10 +307,10 @@
padding: 10px 20px 0px 20px;
height: 35px;
text-align: right;
- -moz-border-radius-bottomright: 6px;
- -moz-border-radius-bottomleft: 6px;
- -webkit-border-bottom-right-radius: 6px;
- -webkit-border-bottom-left-radius: 6px;
- border-bottom-right-radius: 6px;
- border-bottom-left-radius: 6px;
+ -moz-border-radius-bottomright: 3px;
+ -moz-border-radius-bottomleft: 3px;
+ -webkit-border-bottom-right-radius: 3px;
+ -webkit-border-bottom-left-radius: 3px;
+ border-bottom-right-radius: 3px;
+ border-bottom-left-radius: 3px;
}
@@ -31,7 +31,15 @@ jQuery(document).ready(function($) {
// Switches option sections
$('.group').hide();
- $('.group:first').fadeIn();
+ var activetab = '';
+ if (typeof(localStorage) != 'undefined' ) {
+ activetab = localStorage.getItem("activetab");
+ }
+ if (activetab != '' && $(activetab).length ) {
+ $(activetab).fadeIn();
+ } else {
+ $('.group:first').fadeIn();
+ }
$('.group .collapsed').each(function(){
$(this).find('input:checked').parent().parent().parent().nextAll().each(
function(){
@@ -42,6 +50,24 @@ jQuery(document).ready(function($) {
$(this).filter('.hidden').removeClass('hidden');
});
});
+
+ if (activetab != '' && $(activetab + '-tab').length ) {
+ $(activetab + '-tab').parent('li').addClass('current');
+ }
+ else {
+ $('#of-nav li:first').addClass('current');
+ }
+ $('#of-nav li a').click(function(evt) {
+ $('#of-nav li').removeClass('current');
+ $(this).parent().addClass('current');
+ var clicked_group = $(this).attr('href');
+ if (typeof(localStorage) != 'undefined' ) {
+ localStorage.setItem("activetab", $(this).attr('href'));
+ }
+ $('.group').hide();
+ $(clicked_group).fadeIn();
+ evt.preventDefault();
+ });
$('.group .collapsed input:checkbox').click(unhideHidden);
@@ -71,14 +97,5 @@ jQuery(document).ready(function($) {
$('.of-radio-img-label').hide();
$('.of-radio-img-img').show();
$('.of-radio-img-radio').hide();
-
- $('#of-nav li:first').addClass('current');
- $('#of-nav li a').click(function(evt) {
- $('#of-nav li').removeClass('current');
- $(this).parent().addClass('current');
- var clicked_group = $(this).attr('href');
- $('.group').hide();
- $(clicked_group).fadeIn();
- evt.preventDefault();
- });
+
});
Oops, something went wrong.

0 comments on commit c7fdf26

Please sign in to comment.