Creating Concrete5 Themes
上QQ阅读APP看书,第一时间看更新

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text are shown as follows: "The value of $pkg has to match the package directory and theme_book in PageTheme::add('theme_book', $pkg); has to match the name of the theme directory in themes."

A block of code is set as follows:

<?php
$mh = Loader::helper('mail');
$mh->setSubject('Hello lovely World');
$mh->setBody('Have a great day!');
$mh->to('the@world.org', 'The World');
$mh->from('me@switzerland.ch');
$mh->sendMail();

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

    <div class="span9">
            <?php
 $areaMain = new Area('Main');
 $areaMain->display($c);
            ?>                  
    </div>

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "There are some links such as Add Image which are concrete5 specific."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.