Tableless Calendar
-
The default calendar script built into WordPress uses tables. Has anyone come up with a tableless version? If not, I want this to be my first “hack”. Hopefully no one else has done anything close to this already — I need something to do. I did some Google research and found this website. What do y’all think?
-
People without the ability to use CSS or at least a willingness to learn are going to find WP index.php makes no sense at all anyway:-)
well it looks fine to me.
accessibility is about getting the message across and without css wp pages do that pretty nicely.People without the ability to use CSS or at least a willingness to learn are going to find WP index.php makes no sense at all anyway:-)
Hmm…I’m not sure about that. There is far more PHP in INDEX.PHP than CSS. It just takes a willingness to read through it and do some minor exploring. Knowing CSS will help, of course.
Perhaps someone will do a write-up and annotate the INDEX.PHP file for the community.
Craig.Right…turn off CSS (easily done if you have the WebDeveloper extenstion in Moz/Firebird) and view your nice WP CSS site…it’s not “pretty” but it’s very readable and useable. (Looks similar on a cellphone/PDA) Now, put in your “CSS” calendar and do the same test…a total mess. Unreadable senseless garbage.
Personally, I’m getting a bit tired of this argument. Many others have said it, I’ve said it, and it’s just a *fact* – TABLES are NOT EVIL. They still serve a very legitimate purpose – for TABULAR DATA. The “noobs who don’t want to upgrade” have nothing to do with it. The only argument regarding tables and web standards/css has to do with USING TABLES FOR PAGE LAYOUT. It has nothing to do with using tables for data. Learn the freakin’ difference!!!!!!!!
(Sorry. Been a long day and I’m a bit cranky.)Oh heck the capitalisation has started. Slightly off topic guys but I know a lot of us use FF. Just noticed a mysterious phenomena. If I put two divs together one directly under the other with a border round both they sit immediately adjacent as they should. In fact they look a bit munged because the top and bottom borders are contigious. However without the borders a jog of about 5 pix occurs . It looks horribly reminiscent of the rendering of certain proprietary browsers. I have tried to register a bug report but Oh My ! there is a lot going on there I can tell you. My point and I hope it’s useful is if anyone new to css is beating their brains out on FF over the layout, bugs obviously can not be ruled out as a possible cause.
Sorry: Just been wondering if buttons are “tabular data” 😉
Heh, heh…don’t even go there 😉
are buttons even data?
they are functions! :OS)Whether or not a calendar is tabular data depends largely on the culture which produced it, and the duration being handled.
A one-month Gregorian calendar is most certainly tabular data. Culturally, the calendar has been divided into weeks, and the weeks into a repeating cycle of days. Each cycle is typically displayed stacked one atop the next, such that each day in the cycle forms a column, while each iteration of that cycle (a week) becomes a row.
Other calendars, on the other hand, might not be tabular. The Mayan Calendar would be almost impossible to display in a tabular form. The traditional Chinese calendar also has other forms which suit it better. God help us if the Time Cube Guy ever tried to devise a calendar for his site.
Tables have been abused to create non-semantic markup; of this there is no doubt. But that does not mean that tables are inherently non-semantic. Almost everything in the HTML standard has a place and time where it is semantically meaningful (the most famous exception to this being the FONT tag). Tables, too, have their place. The anti-table zealots need to learn this, otherwise (as with this hack) they risk destroying semantics in the name of semantics.Just when I was about to start coding my Mayan Calendar Hack, you go and dash my hopes and dreams 😉
Are you guys still going ?!!! 🙂
I’m still going to do the hack. I dunno when it’ll be completed though.
I’m a busy college student. 🙁alien: In the nicest way deiting your own css is scarcely a hack. The very first you link you pointed us to was Eric Meyer’s famous page. It is really about div or span layouts. I guess we will somehow have to struggle on with our calendars in tables till you get thru your studies.
You’re right, it’s not really a hack. Then again neither are the famous “archive” hacks because they all pretty much use functions built into WordPress and just present it all in a different way, and then use CSS to style-ize it.
The same thing I wanted to achieve with the calendar. I only posted Eric Meyer’s famous page as proof that such a thing could be done. In fact, if I were to do it myself, I’d do it slightly different but it doesn’t matter on the code, like we all pointed out; it’s how it displays in the browser with (or without) css handles it.
I want to figure out a way, when another (non-CSS-capable) browser reads it, can display it in such a manner that it makes sense without using tables.Since it was being asked for…
I’ve made my replacement for get_calendar available up on my website:
http://www.chait.net/my-plugins/cg-calendar.inc
You’ll also want the style guide:
http://www.chait.net/my-plugins/cg-newcal.css
I agree with BOTH sides of the arguments. I built this for my own learning purposes, and as I said I no longer use a calendar navigator for public consumption (it IS shown to admins on an inner page of the site).
It is not 100% equivalent to the table-based calendar, but I took it close enough for my use. 😉 I also just pulled this out of template-functions, so possible that there’s some dependency I’m missing…
-d
The topic ‘Tableless Calendar’ is closed to new replies.