本文整理汇总了PHP中erLhcoreClassDesign::designCSS方法的典型用法代码示例。如果您正苦于以下问题:PHP erLhcoreClassDesign::designCSS方法的具体用法?PHP erLhcoreClassDesign::designCSS怎么用?PHP erLhcoreClassDesign::designCSS使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类erLhcoreClassDesign
的用法示例。
在下文中一共展示了erLhcoreClassDesign::designCSS方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<!DOCTYPE html>
<html lang="<?php
echo erConfigClassLhConfig::getInstance()->getOverrideValue('site', 'content_language');
?>
" dir="<?php
echo erConfigClassLhConfig::getInstance()->getOverrideValue('site', 'dir_language');
?>
">
<head>
<?php
include_once erLhcoreClassDesign::designtpl('pagelayouts/parts/page_head.tpl.php');
?>
<link rel="stylesheet" type="text/css" href="<?php
echo erLhcoreClassDesign::designCSS('css/print.css');
?>
" />
</head>
<body>
<?php
echo $Result['content'];
?>
<?php
if (erConfigClassLhConfig::getInstance()->getSetting('site', 'debug_output') == true) {
$debug = ezcDebug::getInstance();
echo $debug->generateOutput();
}
?>
<script>
示例2:
<!DOCTYPE html>
<html lang="<?php
echo erConfigClassLhConfig::getInstance()->getOverrideValue('site', 'content_language');
?>
" dir="<?php
echo erConfigClassLhConfig::getInstance()->getOverrideValue('site', 'dir_language');
?>
">
<head>
<?php
include_once erLhcoreClassDesign::designtpl('pagelayouts/parts/page_head_user.tpl.php');
?>
<link rel="stylesheet" type="text/css" href="<?php
echo erLhcoreClassDesign::designCSS('css/widget.css;css/widget_override.css');
?>
" />
<?php
if (isset($Result['theme']) && $Result['theme']->custom_widget_css != '') {
?>
<style type="text/css">
<?php
echo $Result['theme']->custom_widget_css;
?>
</style>
<?php
}
?>
</head>
示例3:
echo erLhcoreClassDesign::design('images/favicon.ico');
?>
">
<meta name="Keywords" content="" />
<meta name="Description" content="<?php
echo erConfigClassLhConfig::getInstance()->getOverrideValue('site', 'description');
?>
" />
<meta name="robots" content="noindex, nofollow">
<?php
include_once erLhcoreClassDesign::designtpl('pagelayouts/parts/copyright_meta.tpl.php');
?>
<link rel="stylesheet" type="text/css" href="<?php
echo erLhcoreClassDesign::designCSS('css/BookReader.css');
?>
" />
<script type="text/javascript" language="javascript" src="<?php
echo erLhcoreClassDesign::designJS('js/BookReader/jquery-1.4.2.min.js;js/BookReader/jquery-ui-1.8.5.custom.min.js;js/BookReader/dragscrollable.js;js/BookReader/jquery.colorbox-min.js;js/BookReader/jquery.ui.ipad.js;js/BookReader/jquery.bt.min.js;js/BookReader/BookReader.js');
?>
"></script>
</head>
<body<?php
isset($Result['pagelayout_css_append']) ? print ' class="' . $Result['pagelayout_css_append'] . '" ' : '';
?>
>
<div id="widget-layout">
<?php
示例4: isset
<?php
if (erConfigClassLhConfig::getInstance()->getDirLanguage('dir_language') == 'ltr' || erConfigClassLhConfig::getInstance()->getDirLanguage('dir_language') == '') {
?>
<link rel="stylesheet" type="text/css" href="<?php
echo erLhcoreClassDesign::designCSS('vendor/bootstrap/css/bootstrap.min.css;vendor/bootstrap/css/bootstrap-theme.min.css;css/app.css;css/override.css;css/fontello.css;css/datepicker.css');
?>
" />
<?php
} else {
?>
<link rel="stylesheet" type="text/css" href="<?php
echo erLhcoreClassDesign::designCSS('vendor/bootstrap/css/bootstrap.min.css;vendor/bootstrap/css/bootstrap-theme.min.css;css/bootstrap-rtl.min.css;css/app.css;css/app-rtl.css;css/override_rtl.css;css/fontello.css;css/datepicker.css');
?>
" />
<?php
}
echo isset($Result['additional_header_css']) ? $Result['additional_header_css'] : '';
示例5: fetch
/**
* Open, parse, and return the template file.
*
* @param $file string the template file name
*/
function fetch($fileTemplate = null)
{
$instance = erLhcoreClassSystem::instance();
$port = isset($_SERVER['SERVER_PORT']) ? $_SERVER['SERVER_PORT'] : 80;
if (!$fileTemplate) {
$fileTemplate = $this->file;
}
if ($this->cacheEnabled == true && key_exists(md5($fileTemplate . $instance->WWWDirLang . $instance->Language . $port), $this->cacheTemplates)) {
try {
return $this->fetchExecute($this->cacheTemplates[md5($fileTemplate . $instance->WWWDirLang . $instance->Language . $port)]);
} catch (Exception $e) {
}
}
$cfg = erConfigClassLhConfig::getInstance();
$file = erLhcoreClassDesign::designtpl($fileTemplate);
if ($this->templatecompile == true) {
$contentFile = php_strip_whitespace($file);
// Compile templates - 3 level of inclusions
for ($i = 0; $i < 9; $i++) {
$Matches = array();
preg_match_all('/<\\?php(\\s*)include_once\\(erLhcoreClassDesign::designtpl\\(\'([a-zA-Z0-9-\\.-\\/\\_]+)\'\\)\\)(.*?)\\?\\>/i', $contentFile, $Matches);
foreach ($Matches[2] as $key => $Match) {
$contentFile = str_replace($Matches[0][$key], php_strip_whitespace(erLhcoreClassDesign::designtpl($Match)), $contentFile);
}
//Compile templates inclusions first level.
$Matches = array();
preg_match_all('/<\\?php(\\s*)include\\(erLhcoreClassDesign::designtpl\\(\'([a-zA-Z0-9-\\.-\\/\\_]+)\'\\)\\)(.*?)\\?\\>/i', $contentFile, $Matches);
foreach ($Matches[2] as $key => $Match) {
$contentFile = str_replace($Matches[0][$key], php_strip_whitespace(erLhcoreClassDesign::designtpl($Match)), $contentFile);
}
}
//Compile image css paths. Etc..
$Matches = array();
preg_match_all('/<\\?php echo erLhcoreClassDesign::design\\(\'([a-zA-Z0-9-\\.-\\/\\_]+)\'\\)(.*?)\\?\\>/i', $contentFile, $Matches);
foreach ($Matches[1] as $key => $Match) {
$contentFile = str_replace($Matches[0][$key], erLhcoreClassDesign::design($Match), $contentFile);
}
//Compile translations, pure translations
$Matches = array();
preg_match_all('/<\\?php echo erTranslationClassLhTranslation::getInstance\\(\\)->getTranslation\\(\'(.*?)\',\'(.*?)\'\\)(.*?)\\?\\>/i', $contentFile, $Matches);
foreach ($Matches[1] as $key => $TranslateContent) {
$contentFile = str_replace($Matches[0][$key], erTranslationClassLhTranslation::getInstance()->getTranslation($TranslateContent, $Matches[2][$key]), $contentFile);
}
//Translations used in logical conditions
$Matches = array();
preg_match_all('/erTranslationClassLhTranslation::getInstance\\(\\)->getTranslation\\(\'(.*?)\',\'(.*?)\'\\)/i', $contentFile, $Matches);
foreach ($Matches[1] as $key => $TranslateContent) {
$contentFile = str_replace($Matches[0][$key], '\'' . erTranslationClassLhTranslation::getInstance()->getTranslation($TranslateContent, $Matches[2][$key]) . '\'', $contentFile);
}
// Compile url addresses
$Matches = array();
preg_match_all('/<\\?php echo erLhcoreClassDesign::baseurl\\((.*?)\\)(.*?)\\?\\>/i', $contentFile, $Matches);
foreach ($Matches[1] as $key => $UrlAddress) {
$contentFile = str_replace($Matches[0][$key], erLhcoreClassDesign::baseurl(trim($UrlAddress, '\'')), $contentFile);
}
// Compile url direct addresses
$Matches = array();
preg_match_all('/<\\?php echo erLhcoreClassDesign::baseurldirect\\((.*?)\\)(.*?)\\?\\>/i', $contentFile, $Matches);
foreach ($Matches[1] as $key => $UrlAddress) {
$contentFile = str_replace($Matches[0][$key], erLhcoreClassDesign::baseurldirect(trim($UrlAddress, '\'')), $contentFile);
}
// Compile url direct addresses
$Matches = array();
preg_match_all('/<\\?php echo erLhcoreClassDesign::baseurlsite\\(\\)(.*?)\\?\\>/i', $contentFile, $Matches);
foreach ($Matches[1] as $key => $UrlAddress) {
$contentFile = str_replace($Matches[0][$key], erLhcoreClassDesign::baseurlsite(), $contentFile);
}
// Compile css url addresses
$Matches = array();
preg_match_all('/<\\?php echo erLhcoreClassDesign::designCSS\\((.*?)\\)(.*?)\\?\\>/i', $contentFile, $Matches);
foreach ($Matches[1] as $key => $UrlAddress) {
$contentFile = str_replace($Matches[0][$key], erLhcoreClassDesign::designCSS(trim($UrlAddress, '\'')), $contentFile);
}
// Compile css url addresses
$Matches = array();
preg_match_all('/<\\?php echo erLhcoreClassDesign::designJS\\((.*?)\\)(.*?)\\?\\>/i', $contentFile, $Matches);
foreach ($Matches[1] as $key => $UrlAddress) {
$contentFile = str_replace($Matches[0][$key], erLhcoreClassDesign::designJS(trim($UrlAddress, '\'')), $contentFile);
}
// Compile url addresses in logical operations
$Matches = array();
preg_match_all('/erLhcoreClassDesign::baseurl\\((.*?)\\)/i', $contentFile, $Matches);
foreach ($Matches[1] as $key => $UrlAddress) {
$contentFile = str_replace($Matches[0][$key], '\'' . erLhcoreClassDesign::baseurl(trim($UrlAddress, '\'')) . '\'', $contentFile);
}
// Compile url addresses in logical operations
$Matches = array();
preg_match_all('/erLhcoreClassDesign::baseurldirect\\((.*?)\\)/i', $contentFile, $Matches);
foreach ($Matches[1] as $key => $UrlAddress) {
$contentFile = str_replace($Matches[0][$key], '\'' . erLhcoreClassDesign::baseurldirect(trim($UrlAddress, '\'')) . '\'', $contentFile);
}
// Compile config settings, direct output
$Matches = array();
preg_match_all('/<\\?php echo erConfigClassLhConfig::getInstance\\(\\)->getSetting\\((\\s?)\'([a-zA-Z0-9-\\.-\\/\\_]+)\'(\\s?),(\\s?)\'([a-zA-Z0-9-\\.-\\/\\_]+)\'(\\s?)\\)(.*?)\\?\\>/i', $contentFile, $Matches);
foreach ($Matches[1] as $key => $UrlAddress) {
//.........这里部分代码省略.........
示例6:
<!DOCTYPE html>
<html xmlns:ng="http://angularjs.org" ng-app lang="<?php
echo erConfigClassLhConfig::getInstance()->getOverrideValue('site', 'content_language');
?>
" dir="<?php
echo erConfigClassLhConfig::getInstance()->getOverrideValue('site', 'dir_language');
?>
">
<head>
<?php
include_once erLhcoreClassDesign::designtpl('pagelayouts/parts/page_head_user.tpl.php');
?>
<link rel="stylesheet" type="text/css" href="<?php
echo erLhcoreClassDesign::designCSS('css/jquery-ui-1.10.4.custom.css');
?>
" />
<script type="text/javascript" language="javascript" src="<?php
echo erLhcoreClassDesign::designJS('js/jquery-ui-1.10.4.custom.min.js');
?>
"></script>
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-xs-10">
<?php
include_once erLhcoreClassDesign::designtpl('pagelayouts/parts/page_head_logo.tpl.php');
?>
</div>
示例7:
<link rel="stylesheet" type="text/css" href="<?php
echo erLhcoreClassDesign::designCSS('css/sceditor.theme.css');
?>
" />
开发者ID:creativeprogramming,项目名称:livehelperchat-extensions,代码行数:4,代码来源:page_head_css_extension.tpl.php
示例8:
echo erConfigClassLhConfig::getInstance()->getOverrideValue('site', 'content_language');
?>
" dir="<?php
echo erConfigClassLhConfig::getInstance()->getOverrideValue('site', 'dir_language');
?>
">
<head>
<?php
include_once erLhcoreClassDesign::designtpl('pagelayouts/parts/page_head.tpl.php');
?>
<script type="text/javascript" src="<?php
echo erLhcoreClassDesign::designJS('js/cobrowse/compiled/cobrowse.operator.min.js');
?>
"></script>
<link rel="stylesheet" type="text/css" href="<?php
echo erLhcoreClassDesign::designCSS('css/cobrowse.css');
?>
" />
</head>
<body>
<?php
echo $Result['content'];
?>
<?php
if (erConfigClassLhConfig::getInstance()->getSetting('site', 'debug_output') == true) {
$debug = ezcDebug::getInstance();
echo $debug->generateOutput();
}
?>
示例9: array
<?php
$tpl = erLhcoreClassTemplate::getInstance('lhform/viewcollected.tpl.php');
$collected = erLhAbstractModelFormCollected::fetch((int) $Params['user_parameters']['collected_id']);
$object_trans = $collected->form->getModuleTranslations();
erLhcoreClassFormRenderer::setCollectedInformation($collected->content_array);
erLhcoreClassFormRenderer::setCollectedObject($collected);
$tpl->set('collected', $collected);
$tpl->set('form', $collected->form);
$tpl->set('content', $collected->form->content_rendered);
$Result['content'] = $tpl->fetch();
$Result['path'] = array();
$Result['path'][] = $object_trans['path'];
$Result['path'][] = array('url' => erLhcoreClassDesign::baseurl('abstract/list') . '/Form', 'title' => $object_trans['name']);
$Result['path'][] = array('url' => erLhcoreClassDesign::baseurl('form/collected') . '/' . $collected->form->id, 'title' => $collected->form);
$Result['path'][] = array('title' => erTranslationClassLhTranslation::getInstance()->getTranslation('form/viewcollected', 'Collected information'));
$Result['additional_header_css'] = '<link rel="stylesheet" type="text/css" href="' . erLhcoreClassDesign::designCSS('css/jquery-ui-1.10.4.custom.css') . '" />';
$Result['additional_header_js'] = '<script type="text/javascript" language="javascript" src="' . erLhcoreClassDesign::designJS('js/jquery-ui-1.10.4.custom.min.js') . '"></script>';
示例10: isset
<?php
if (erConfigClassLhConfig::getInstance()->getDirLanguage('dir_language') == 'ltr' || erConfigClassLhConfig::getInstance()->getDirLanguage('dir_language') == '') {
?>
<link rel="stylesheet" type="text/css" href="<?php
echo erLhcoreClassDesign::designCSS('css/normalize.css;css/foundation-ltr.css;css/app.css;css/colorbox.css;css/override.css;css/fontello.css;css/datepicker.css');
?>
" />
<?php
} else {
?>
<link rel="stylesheet" type="text/css" href="<?php
echo erLhcoreClassDesign::designCSS('css/normalize.css;css/foundation-rtl.css;css/app.css;css/app-rtl.css;css/colorbox.css;css/override_rtl.css;css/fontello.css;css/datepicker.css');
?>
" />
<?php
}
?>
<!--[if lt IE 9]>
<link rel="stylesheet" type="text/css" href="<?php
echo erLhcoreClassDesign::designCSS('css/ie8-and-down.css');
?>
" />
<![endif]-->
<?php
echo isset($Result['additional_header_css']) ? $Result['additional_header_css'] : '';