Book Image

concrete5 Beginner's Guide

Book Image

concrete5 Beginner's Guide

Overview of this book

Table of Contents (19 chapters)
concrete5
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Time for action – creating the concrete5 theme footer


Carry out the following steps:

  1. In the elements directory, create a new file named footer.php.

  2. From the original HTML file, copy everything starting at footer_line_top to the end of the file and insert it into the new file:

    <?php defined('C5_EXECUTE') or die(_("Access Denied.")); ?>
    <div id="footer_line_top"></div>   
    <div id="footer"></div>
    <div id="footer_line_bottom"></div>   
    </div>
    </div>
    
    <?php Loader::element('footer_required'); ?>
    </body>
    </html>
  3. There are only two lines we have to insert. The first one is again, just a protection to disallow direct calls to our file. The second one is a placeholder for a snippet you can specify in the concrete5 dashboard. This is often used for a JavaScript statistics tracking code.

  4. Save and close the file; there's nothing else to do in this file, as we're not having any dynamic content in this file.

What just happened?

We created...