Пример #1
0
if (empty($config)) {
    throw new Exception("Global Config Object not setup!");
}
Head::addCSS('css/themes/inquisition/jquery-ui-1.8.9.custom.css', Head::STANDALONE);
Head::addCSS('css/theme-override.css');
Head::addCSS('css/jquery.qtip.css');
Head::addCSS('css/mapWidget.css');
if (!empty($config->tools['map'])) {
    Head::addCSS('css/jquery.svg.css');
    Head::addCSS('css/interactiveMap.css');
    Head::addCSS('css/inqtools-map.css');
}
if (!empty($config->tools['trainer'])) {
    Head::addCSS('css/inqtools-trainer.css');
}
Head::addCSS('css/main.css');
Head::addJS('js/jquery-1.4.4.min.js', Head::STANDALONE);
Head::addJS('js/jquery-ui-1.8.9.custom.min.js', Head::STANDALONE);
if (!empty($config->tools['map'])) {
    Head::addJS('js/jquery.svg.min.js', Head::STANDALONE);
    Head::addJS('js/jquery.svgfilter.min.js', Head::STANDALONE);
    Head::addJS('js/jquery.svganim.min.js', Head::STANDALONE);
}
Head::addJS('js/jquery.qtip.min.js', Head::STANDALONE);
Head::addJS('js/jquery.mousewheel.min.js', Head::NO_MINIFY);
Head::addJS('js/jquery.json.min.js', Head::NO_MINIFY);
Head::addJS('js/jquery.timers-1.2.min.js', Head::NO_MINIFY);
if (!empty($config->tools['trainer'])) {
    Head::addJS('js/Trainer.js');
    Head::addJS('js/inqtools-trainer.js');
}
Пример #2
0
<?php

include "doc.php";
include "elements.php";
include "head.php";
$doc = new Doc();
$doc->start();
$head = new Head();
$head->start("Chris");
$head->addCSS("main.css");
$head->close();
$doc->body();
$ele = new Element();
$ele->addText("h1", "chris");
$ele->addWrapper("div", "round");
$ele->addTextLink("p", "chris", "https://www.e-shop.gr/print_order.phtml", false);
$ele->closeWrapper();
$doc->bodyClose();
$doc->close();