2013-02-19, 14:08:28
I'd also like to know what the best way is to get the root parent's slug, at the moment I'm just grabbing the document's parent. I'd imagine it uses menu_data().
PHP Code:
<?php // so the syntax is highlighted correctly ?>
<body
id="d-<?php get_page_slug(); ?>"
class="p-<?php echo (get_parent(false) != '') ? get_parent(false) : 'orphan' ?>">