This CMSimple template

 

Not much to say here other than Get It

 

(OK I guess there is something to say after all - I hacked wDir-XH to get alternating shades of color on the file download grid. Dunno if this will ever get to mainstream, so changes to wdir/classes/TableView.php shown below if you are interested:)

/**
* Renders the table body.
*
* @return string (X)HTML.
*/
protectedfunction renderBody()
{
        $rowStyle = "odd";
        $html = '<tbody>';
        foreach ($this->folder->getFiles() as $file) {
            $html .= $this->renderBodyRow($file, $rowStyle);
            if ($rowStyle == "odd")
                $rowStyle = "even";
            else
                $rowStyle = "odd";
        }
        $html .= '</tbody>';
        return $html;


}

/**
* Renders a table body row.
*
* @param Wdir_File $file A file.
*
* @return string (X)HTML.
*
* @global array The localization of the plugins.
*/


protected function renderBodyRow($file, $rowStyle)
{
        global $plugin_tx;

        $time = date(
            $plugin_tx['wdir']['format_date'], $file->getModificationTime()
        );
        return '<tr class=" . $rowStyle .">'
            . '<td id="wdir_name" data-wdir="' . $file->getName() . '">'
            . $this->renderFileIcon($file)
            . '<a href="' . $file->getPath() . '" target="_blank">'
            . $file->getName() . '</a>' . '</td>'
            . '<td id="wdir_size" data-wdir="' . $file->getSize() . '">'
            . $this->renderFileSize($file) . '</td>'
            . '<td id="wdir_modified" data-wdir="'
            . $file->getModificationTime() . '">' . $time . '</td>'
            . '</tr>';
}

 

Print viewSitemapMailform