[themes] I miss something or something goes wrong

reynierpm at gmail.com reynierpm at gmail.com
Sun Mar 25 21:38:39 UTC 2012


Hi every:
I'm trying to create my first theme and I want to use Twitter Bootstrap as
CSS framework. So I create my comvivem.info file and wrote this inside:

name = Comvivem
description = Comvivem theme using Twitter Bootstrap as CSS framework
version = 1.0
core = 6.x
engine = phptemplate
stylesheets[all][] = /bootstrap/css/bootstrap.min.css
stylesheets[all][] = style.css
stylesheets[all][] = /bootstrap/css/bootstrap-responsive.min.css
stylesheets[print][] = print.css

regions[sidebar_left] = Sidebar Left
regions[sidebar_right] = Sidebar Right
regions[header] = Header
regions[content] = Content
regions[footer] = Footer
regions[footer_col_1] = Footer Column 1
regions[footer_col_2] = Footer Column 2
regions[footer_col_3] = Footer Column 3
regions[footer_col_4] = Footer Column 4

Then after I create a page and call it page.tpl.php and wrote this inside:

<!DOCTYPE html>
<html lang="en">
    <head>
        <?print $head; ?>
        <title><?php print $head_title; ?></title>
        <meta name="viewport" content="width=device-width,
initial-scale=1.0">
        <?php print $styles; ?>
        <?php print $scripts; ?>

        <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
        <!--[if lt IE 9]>
          <script src="http://html5shim.googlecode.com/svn/trunk/html5.js
"></script>
        <![endif]-->
    </head>

    <body>

        <div id="header" class="container-fluid">
            <?php if ($header): ?>
                <?php print $header; ?>
            <?php endif; ?>
        </div> <!--./header-->

        <div id="page_content" class="container-fluid">
            <div class="row-fluid">
                <?php if ($sidebar_left && !$sidebar_right) { ?>
                    <div id="sidebar-left" class="span3">
                        <?php print $sidebar_left; ?>
                    </div><!--/sidebar left-->

                    <div id="content-center" class="span9">
                        <?php if (!drupal_is_front_page()): ?>
                            <?php echo $content; ?>
                        <?php endif; ?>
                    </div><!--/content-center-->

                <?php } elseif ($sidebar_left && $sidebar_right) { ?>
                    <div id="sidebar-left" class="span3">
                        <?php print $sidebar_left; ?>
                    </div><!--/sidebar left-->

                    <div id="content-center" class="span6">
                        <?php if (!drupal_is_front_page()): ?>
                            <?php echo $content; ?>
                        <?php endif; ?>
                    </div><!--/content-center-->

                    <div id="sidebar-right" class="span3">
                        <?php print $sidebar_right; ?>
                    </div><!--/sidebar right-->

                <?php } elseif (!$sidebar_left && $sidebar_right) { ?>

                    <div id="content-center" class="span6">
                        <?php if (!drupal_is_front_page()): ?>
                            <?php echo $content; ?>
                        <?php endif; ?>
                    </div><!--/content-center-->

                    <div id="sidebar-right" class="span3">
                        <?php print $sidebar_right; ?>
                    </div><!--/sidebar right-->

                <?php } ?>
            </div><!--/row-->
            <hr>
            <footer>
                <div class="row-fluid">
                    <?php if($footer_col_1): ?>
                    <div id="footer_col_1" class="span4">
                        <?php print $footer_col_1; ?>
                    </div><!--/footer_col_1-->
                    <?php endif; ?>
                    <?php if($footer_col_2): ?>
                    <div id="footer_col_2" class="span4">
                        <?php print $footer_col_2; ?>
                    </div><!--/footer_col_1-->
                    <?php endif; ?>
                    <?php if($footer_col_3): ?>
                    <div id="footer_col_3" class="span4">
                        <?php print $footer_col_3; ?>
                    </div><!--/footer_col_1-->
                    <?php endif; ?>
                    <?php if($footer_col_4): ?>
                    <div id="footer_col_4" class="span4">
                        <?php print $footer_col_4; ?>
                    </div><!--/footer_col_1-->
                    <?php endif; ?>
                </div>
            </footer> <!--./footer-->

        </div><!--/.page_content-->

        <?php print $closure; ?>
    </body>
</html>

But when I go to admin and activate the theme isn't working because for
example in the generated code I see this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

And this isn't in my template so my question is I doing something wrong or
what's happening?

Cheers and thanks in advance


Ing. Reynier Perez Mira
eMail: reynierpm at gmail.com, reynierpm at hotmail.com
Skype: reynierpm
Mobile: +58 424.180.5609
Site: http://reynierpm.site90.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/themes/attachments/20120325/d1a943ba/attachment.html 


More information about the themes mailing list