Example #1
0
}
// end of the header panel
echo '</div>' . "\n";
// the main panel
echo '<div id="main_panel">' . "\n";
// display bread crumbs if not at the front page; if not defined, only the 'Home' link will be displayed
if ($context['skin_variant'] != 'home') {
    Page::bread_crumbs(0);
}
// display main content
Page::content();
// end of the main panel
echo '</div>' . "\n";
// the side panel
echo '<div id="side_panel">' . "\n";
// display side content
Page::side();
// end of the side panel
echo '</div>' . "\n";
// the footer panel comes after everything else
echo '<div id="footer_panel">';
// display standard footer
Page::footer();
// end of the footer panel
echo '</div>' . "\n";
// end of the wrapper
echo '</div>' . "\n";
// insert the dynamic footer, if any, including inline scripts
echo $context['page_footer'];
// end of page
echo '</body>' . "\n" . '</html>';
Example #2
0
 */
/**
 * Create a new Php object.
 */
$j = new Container();
/**
 * Create a new Page object and populate it
 */
$p = new Page('example-2');
$p->theme('b');
$p->title('Example 2');
$p->header()->addButton('Example 1', 'example-1.php', 'a', 'arrow-l');
$p->header()->addButton('Example 3', 'example-3.php', 'b', 'arrow-r');
$p->header()->theme('a');
$p->addContent('<h1>Adding Pages</h1>');
$p->addContent('<p>In this example we create a Page,');
$p->addContent(' add content and Buttons to the Header.');
$p->addContent(' After we add the page to Container object.</p>');
$p->addContent('<a href="index.php" data-role="button" data-theme="a">Home</a>');
$p->addContent('<a href="example-3.php" data-role="button">Example 3</a>');
$p->footer()->title('Example 2 Footer');
$p->footer()->position('fixed');
$p->footer()->theme('a');
/**
 * Add the page to Container object.
 */
$j->addPage($p);
/**
 * Have the container generate the HTML code.
 */
echo $j;
Example #3
0
$p = new Page('example-4');
$p->theme('b')->title('Example 4');
$p->header()->theme('a')->add(new Button('', array(new Attribute('data-iconpos', 'notext')), array(), 'a', 'index.php', '', 'home'));
/**
 * Create and config a new navbar object and add items.
 */
$nav = $p->header()->add(new Navbar(), true);
$nav->add(new Button('', array(), array(), 'a', 'example-1.php', 'EX1', '', false));
$nav->add(new Button('', array(), array(), 'a', 'example-2.php', 'Ex2', '', false));
$nav->add(new Button('', array(), array(), 'a', 'example-3.php', 'EX3', '', false));
$nav->add(new Button('', array(), array(), 'a', '#', 'EX4', '', true));
$nav->add(new Button('', array(), array(), 'a', 'example-5.php', 'EX5', '', false));
/**
 * Configure page footer (Footer).
 */
$p->footer()->addButton('EX1', 'example-1.php', '', 'arrow-l');
$p->footer()->addButton('EX2', 'example-2.php', '', 'arrow-l');
$p->footer()->addButton('EX3', 'example-3.php', '', 'arrow-l');
$p->footer()->addButton('EX4', '#', '', 'check', true);
$p->footer()->addButton('EX5', 'example-5.php', '', 'arrow-r');
$p->footer()->group(true)->uiBar(true)->theme('a');
/**
 * Create and config a new form object and add items.
 */
$p->content()->add('<h1>Adding Form Elements</h1>');
$form = $p->addContent(new Form(), true);
$form->action('example-4.php?rand=' . rand(0, 9999))->method('POST');
/**
 * Add some input objects.
 */
$form->add('<h3>Text Inputs</h3>');
Example #4
0
// display bread crumbs if not at the front page; if not defined, only the 'Home' link will be displayed
if ($context['skin_variant'] != 'home') {
    Page::bread_crumbs(0);
}
// display main content
Page::content();
// ensure we have some content
echo '<br style="clear: left;" />&nbsp;' . "\n";
// end of the main panel
echo '</div>' . "\n";
// display complementary information, if any
Page::extra_panel();
// the footer panel
echo '<div id="footer_panel">';
// page footer --we have been validated
Page::footer('<a href="http://validator.w3.org/check?uri=referer"><img src="' . $context['url_to_root'] . $context['skin'] . '/images/buttons_xhtmlw3c.gif" alt="XHTML 1.0!" height="15" width="80" /></a><br />');
// end of the footer panel
echo '</div>' . "\n";
// end of the wrapper
echo '</div>' . "\n";
// navigation information
echo '<div id="side_panel">' . "\n";
// display side content
Page::side();
// link to yacs if we are at the front page
if ($context['skin_variant'] == 'home' && is_callable(array('i18n', 's'))) {
    echo Skin::build_box(NULL, '<p>' . sprintf(i18n::s('Powered by %s'), Skin::build_link(i18n::s('http://www.yacs.fr/'), 'Yacs', 'external')) . '</p>', 'extra');
}
// end of the side panel
echo '</div>' . "\n";
// insert the dynamic footer, if any, including inline scripts