本文整理汇总了PHP中Head::addCSS方法的典型用法代码示例。如果您正苦于以下问题:PHP Head::addCSS方法的具体用法?PHP Head::addCSS怎么用?PHP Head::addCSS使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Head
的用法示例。
在下文中一共展示了Head::addCSS方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Exception
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: Doc
<?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();