Closed GoogleCodeExporter closed 9 years ago
found a error in the css - sorry
#subsidiary {
width:960px;
Original comment by eugene.m...@gmail.com
on 1 Oct 2009 at 3:35
I'd rather not add another option to the options page (I'd like to remove the
options
page entirely to a wp-plugin or theme-plugin [like a folder you could drop in
your
child theme]). Especially one for layout.
However: is it possible to make use of that css document in another way? Maybe
with
the existing styles? Maybe with a custom field (add a custom field for
additional
body classes)?
Original comment by ian%them...@gtempaccount.com
on 1 Oct 2009 at 11:55
Yeah, the more I think about the parent options page the more I see potential
for breaking the priority a child theme. I see
the value of a wp-plugin as being greater than that of a theme-plugin if only
for the repository based admin update feature.
Did the thematic options plugin ever get any traction?
Custom Fields would be a great solution, then the layout could be set on a per
page/post basis.
The only problem with the stylesheet I provided is that is has no default. When
I wrote that I was thinking more on
minimizing the three and using the options array[std] to create the default.
I'm thinking either the stylesheet would probably need to be rewritten with a
default setting in mind or a body class would
need to be set by default.
Original comment by eugene.m...@gmail.com
on 1 Oct 2009 at 2:20
I ran through this and tested it briefly. It probably would need someone who
knows these layouts better to look it over.
/* ---------------------------------------------------------------------
Thematic Body Class Based - Combined Layouts - Default is Two Col Fixed Right
--------------------------------------------------------------------- */
body {
min-width:960px;
}
body.two-c-l-f {
min-width:940px;
}
#header {
position:relative;
}
#branding {
width:940px;
margin:0 auto;
}
#access {
position:relative;
overflow:hidden;
}
.menu {
width:940px;
margin:0 auto;
}
#main {
width:960px;
margin:0 auto;
overflow:hidden;
position:relative;
}
.two-c-l-f #main {
width:940px;
}
#container {
float:left;
width: 620px;
}
.two-c-l-f #container {
float:right;
margin: 0 0 0 -310px;
}
.two-c-l-f #container, .three-c-f #container {
width:940px;
}
.three-c-r-f #container, .three-c-r-f-p #container {
width:540px;
}
.three-c-f #container, .three-c-r-f #container, .three-c-r-f-p #container {
margin: 0 0 0 10px;
}
#content {
overflow:hidden;
margin:0 0 0 10px;
width:540px;
}
.three-c-f-r #content, .three-c-f-r-p #content {
margin:0;
width:auto;
}
.two-c-l-f #content {
margin: 0 0 0 320px;
width:620px;
}
.three-c-f #content {
margin: 0 240px;
}
.hentry {
width:auto;
}
.two-c-l-f .hentry {
width:630px;
}
.main-aside {
width:300px;
position:relative;
float:right;
right:10px;
}
.three-c-f .main-aside, .three-c-r-f .main-aside, .three-c-r-f-p .main-aside {
width:auto;
position:static;
float:none;
}
.two-c-l-f .main-aside {
float:left;
right:0;
}
#primary {
}
.two-c-l-f #primary, .three-c-f #primary, .three-c-r-f-p #primary {
float:left;
}
.three-c-r-f #primary {
float:right;
}
.three-c-f #primary {
width:220px;
margin: 0 0 0 -940px;
}
.three-c-r-f #primary, .three-c-r-f-p #primary {
width:220px;
margin:0 10px 0 20px;
}
* html .three-c-f #primary {
left: 20px;
position: relative;
}
#secondary {
clear:right;
}
.two-c-l-f #secondary {
clear:left;
}
.three-c-f #secondary {
clear:none;
width:220px;
float:left;
margin: 0 0 0 -220px;
}
.three-c-r-f #secondary, .three-c-r-f-p #secondary {
clear:none;
width:140px;
float:right;
margin:0 0 0 10px;
}
#footer {
clear:both;
}
#subsidiary {
width:940px;
margin:0 auto;
overflow:hidden;
}
.three-c-f #subsidiary, .three-c-r-f #subsidiary, .three-c-r-f-p #subsidiary {
width:960px;
}
#subsidiary .aside, .two-c-l-f #subsidiary .aside {
width:300px;
float:left;
margin:0 20px 0 0;
}
.three-c-f #subsidiary .aside, .three-c-r-f #subsidiary .aside, .three-c-r-f-p #subsidiary .aside {
margin:0 10px 0 10px;
}
#subsidiary #third, .two-c-l-f #subsidiary #third {
margin:0;
}
.three-c-f #subsidiary #third, .three-c-r-f #subsidiary #third, .three-c-r-f-p #subsidiary #third {
margin:0 0 0 10px;
}
#siteinfo {
clear:both;
width:940px;
margin:0 auto;
}
and then pulling the custom field into the body class:
// Generates semantic classes for BODY element
function thematic_body_class( $print = true ) {
global $wp_query, $current_user, $post;
// It's surely a WordPress blog, right?
$c = array('wordpress');
// Set default layoout from custom field
$c[] = get_post_meta($post->ID , 'thm-layout', true);
Original comment by eugene.m...@gmail.com
on 1 Oct 2009 at 3:32
I reversed some abbreviations in the prev version... tested thouroughly and
all should be good now.
/* ---------------------------------------------------------------------
Thematic Body Class Based - Combined Layouts - Default is Two Col Fixed Right
--------------------------------------------------------------------- */
body {
min-width:960px;
}
body.two-c-l-f {
min-width:940px;
}
#header {
position:relative;
}
#branding {
width:940px;
margin:0 auto;
}
#access {
position:relative;
overflow:hidden;
}
.menu {
width:940px;
margin:0 auto;
}
#main {
width:960px;
margin:0 auto;
overflow:hidden;
position:relative;
}
.two-c-l-f #main {
width:940px;
}
#container {
float:left;
width: 620px;
}
.two-c-l-f #container {
float:right;
margin: 0 0 0 -310px;
}
.two-c-l-f #container, .three-c-f #container {
width:940px;
}
.three-c-r-f #container, .three-c-r-f-p #container {
width:540px;
}
.three-c-f #container, .three-c-r-f #container, .three-c-r-f-p #container {
margin: 0 0 0 10px;
}
#content {
overflow:hidden;
margin:0 0 0 10px;
width:540px;
}
.three-c-r-f #content, .three-c-r-f-p #content {
margin:0;
width:auto;
}
.two-c-l-f #content {
margin: 0 0 0 320px;
width:620px;
}
.three-c-f #content {
margin: 0 240px;
width:auto;
}
.hentry {
width:auto;
}
.two-c-l-f .hentry {
width:630px;
}
.main-aside {
width:300px;
position:relative;
float:right;
right:10px;
}
.three-c-f .main-aside, .three-c-r-f .main-aside, .three-c-r-f-p .main-aside {
width:auto;
position:static;
float:none;
}
.two-c-l-f .main-aside {
float:left;
right:0;
}
Original comment by eugene.m...@gmail.com
on 1 Oct 2009 at 4:45
First off, I want to apologize for being impetuous and littering a bunch of
crippled code thats not been well
tested, secondly for being a dork and pasting in half the document the second
go round. I'm pretty new to web
development and open source collaboration, so thanks for bearing with me while
I find my way here.
This go round I'll attach a well tested and complete document.
-Gene
Original comment by eugene.m...@gmail.com
on 5 Oct 2009 at 1:03
Attachments:
Original comment by eugene.m...@gmail.com
on 22 Apr 2010 at 4:00
Original issue reported on code.google.com by
eugene.m...@gmail.com
on 1 Oct 2009 at 3:20