nightowl: Detail of "Boreas" by J.W. Waterhouse.  (Default)
彌生 ([personal profile] nightowl) wrote in [community profile] style_system2009-07-24 03:01 pm

Subtitles in Transmogrified

Hi all,

Does anyone know how to get the Transmogrified theme to display the journal subtitle? I've been looking and looking for CSS that would do this, since I figured it'd be relatively simple, but apparently not? I would appreciate any help that is offered. Thanks so much!
foxfirefey: A wee rat holds a paw to its mouth. Oh, the shock! (myword)

[personal profile] foxfirefey 2009-07-24 07:32 pm (UTC)(link)
Oh wow, everybody is fast. The theme layer should be a bit like this:

layerinfo "type" = "theme";
layerinfo "name" = "Transmogrified Subtitled";

function Page::print()
{
    """
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>""";
        $this->print_head();
        $this->print_stylesheets();
        $this->print_head_title();    
    println "</head>";
    $this->print_wrapper_start();
    $this->print_control_strip();
    """
            <div id="container">
            <div id="header">
    """;
    """
                <a name="top">
    """;
    $this->print_global_title();
    $this->print_global_subtitle();
    """
                </a>
            </div>
    """;
    $this->print_module_section("one");
    """
            <div id="wrap">
            <div id="content">
    """;
    $this->print_body();
    """
            </div>
    """;
    $this->print_module_section("two"); 
    """
            </div><div style="clear:both;"></div>
        </div>
        <div id="footer">
    """;
    $this->print_module_section("three");
    """
        </div>
    """;
    $this->print_wrapper_end();
    """
    </html>
    """;
}


Or is it better in a user layer?
Edited 2009-07-24 19:33 (UTC)
foxfirefey: A fox colored like flame over an ornately framed globe (Default)

[personal profile] foxfirefey 2009-07-24 07:43 pm (UTC)(link)
I think [personal profile] branchandroot has the instructions about creating new layers. You can use mine as a complete copy paste, and then come back when it's created and I'll see if I can't give instructions on hooking it up to your current theme.
foxfirefey: A fox colored like flame over an ornately framed globe (Default)

[personal profile] foxfirefey 2009-07-24 08:58 pm (UTC)(link)
If you already have a custom theme, you can just add the function in the one I gave to your current one!
branchandroot: oak against sky (Default)

[personal profile] branchandroot 2009-07-24 07:39 pm (UTC)(link)
You know, that's a good question. I've always used a theme layer for it; I don't know whether a user layer will let you change this stuff!
foxfirefey: A fox colored like flame over an ornately framed globe (Default)

[personal profile] foxfirefey 2009-07-24 07:42 pm (UTC)(link)
I have no clue myself--I think it might not, but I haven't tried yet. I *think* theme layer is the proper place.
adalger: Earthrise as seen from the moon, captured on camera by the crew of Apollo 16 (Default)

[personal profile] adalger 2009-07-24 07:45 pm (UTC)(link)
I'm fairly sure theme is the right place. As I recall (though I can't find documentation at the moment), you simply can't put functions into a User layer.
snakeling: Statue of the Minoan Snake Goddess (Default)

[personal profile] snakeling 2009-07-24 10:03 pm (UTC)(link)
You can definitely put functions in a user layer, but it's a bad idea, as it would get rewritten the next time you use the wizard to modify something.
snakeling: Statue of the Minoan Snake Goddess (Default)

[personal profile] snakeling 2009-07-24 10:02 pm (UTC)(link)
It's always better to put it in a theme layer, because the next time you modify something using the wizard, the user layer is rewritten, losing all your modifications :)
foxfirefey: A fox colored like flame over an ornately framed globe (Default)

[personal profile] foxfirefey 2009-07-24 10:03 pm (UTC)(link)
Is there a good guide to this stuff? I really should get caught up, since I'm doing some styles work.
snakeling: Statue of the Minoan Snake Goddess (Default)

[personal profile] snakeling 2009-07-24 10:17 pm (UTC)(link)
Nothing official, alas. The S2 documentation is pathetic right now, though I know it's one of the goals of the Dreamwidth style team. That said, [livejournal.com profile] kentucka has done some great basic tutorials.