public function registerExtraCSS() { $sc = is_at(); $this->register($sc); // year, month, date will used archive as sub stylesheets if ($sc == wpiSection::YEAR || $sc == wpiSection::MONTH || $sc == wpiSection::DAY) { $this->register(wpiSection::ARCHIVE); } if ($sc == wpiSection::PAGE || $sc == wpiSection::SINGLE) { $this->register('comments'); // attachment is inside single & page so it must be separated // from the above conditional } elseif ($sc == wpiSection::ATTACHMENT) { $this->register('comments'); } $selectors = str_rem('-foaf-Document', wpi_get_body_class()); $selectors = str_rem('archive', $selectors); $selectors = explode(" ", $selectors); foreach ($selectors as $tag) { $this->register($tag); } unset($selectors, $tag); $this->Avatar = new wpiGravatar(); $this->Avatar->filterCSS($sc); if (wpi_option('text_dir') == 'rtl') { $this->register('rtl'); } if (isset($this->section[$sc])) { foreach ($this->section[$sc] as $tag) { $this->register($tag); } } }
function wpi_body_class() { echo wpi_get_body_class(); }