Posts made by Urs Hunkler

Picture of Core developers

Tim,

I have written "Please don't forget, themes are for themers and not for programers." What is unclear with this sentence?

I have written several times about the designer's needs here in the forums. Themers or designers are skilled in XHTML. When we can set up the whole XHTML structure, we can much more flexible react on different needs. When Moodle outputs the header inclusively body tag we need to program to include changes.

Please try not to be restricted in your developer thinking. Try to understand designer thinking when you create a part of Moodle which is mainly used by designers.

And when you may decide to go your developer way please write a good and easy to understand documentation how we can override the Moodle core method creating the header to output the header as I posted. That would create more cost on our side to create the extra code but is better than the need to be forced to hack around in 2.0 as it is needed in 1.9 themes.

Picture of Core developers

@1 header.php is perfect.

@2 themes must be able to set up the complete XHTML structure. Core generates content which is echoed out into the XHTML structure. The following will be good to handle.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html<?php echo $direction ?>>
<head>
    <?php echo $meta ?>
    <meta name="keywords" content="moodle, <?php echo $title ?> " />
    <title><?php echo $title ?></title>
    <link rel="shortcut icon" href="<?php echo $CFG->httpsthemewww .'/'. current_theme() ?>/favicon.ico" />
    <?php echo $css ?>
    <?php echo $header_javascript ?>
</head>
<body id="<?php echo $pageid ?>" class="<?php echo $bodyclasses ?>" <?php if( !empty( $bodytags ) ) echo $bodytags ?>>

</body>
</html>

Please don't forget, themes are for themers and not for programers.

Average of ratings: Useful (1)
Picture of Core developers

Bob, on lab.unodo-design.com you may have a look at Moodle pages that will be possible with Moodle 2.0 when all goes well.

Not directly - the theme designer and developer will need to implement templates. But that should be possible without hacking Moodle.

On the start page the login data is described and you may read some information about the site.

Enjoy - and your feedback is welcome.

Picture of Core developers

As Tim describes the process you work with all templates/renderers. You need to know something about the content and then output the details in an adequate loop.

People working that way know how to handle the output properly. And with main changes in the content you need to update your CSS as now and the renderer.