本文整理汇总了PHP中flexicontent_html::checkedLessCompile方法的典型用法代码示例。如果您正苦于以下问题:PHP flexicontent_html::checkedLessCompile方法的具体用法?PHP flexicontent_html::checkedLessCompile怎么用?PHP flexicontent_html::checkedLessCompile使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类flexicontent_html
的用法示例。
在下文中一共展示了flexicontent_html::checkedLessCompile方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: checkCompileLess
static function checkCompileLess($tmpls)
{
jimport('joomla.filesystem.path');
jimport('joomla.filesystem.file');
$templates_path = JPath::clean(JPATH_SITE . DS . 'components/com_flexicontent/templates/');
foreach ($tmpls as $tmpl_type => $tmpls) {
foreach ($tmpls as $tmpl) {
$tmpl_path = $templates_path . $tmpl->name . DS;
if (!empty($tmpl->less_files)) {
flexicontent_html::checkedLessCompile($tmpl->less_files, $tmpl_path, $tmpl_path . 'less/include/', $force = false);
}
}
}
}
示例2: microtime
}
// ******************************************************************
// (If needed) Compile LESS files as CSS (call the less proprocessor)
// ******************************************************************
if ($format == 'html') {
$start_microtime = microtime(true);
// Files in frontend assets folder
$path = JPATH_COMPONENT_SITE . DS . 'assets' . DS;
$inc_path = $path . 'less/include/';
$less_files = array('less/flexi_form_fields.less', 'less/flexi_filters.less', 'less/j3x.less', 'less/fcvote.less');
flexicontent_html::checkedLessCompile($less_files, $path, $inc_path, $force = false);
$less_files = array('less/flexi_form.less', 'less/flexi_containers.less', 'less/flexi_shared.less', 'less/flexi_frontend.less');
$stale_frontend = flexicontent_html::checkedLessCompile($less_files, $path, $inc_path, $force = false);
$force = $stale_frontend && count($stale_frontend);
$less_files = array('less/flexicontent.less');
flexicontent_html::checkedLessCompile($less_files, $path, $inc_path, $force);
if ($print_logging_info) {
@($fc_run_times['core_less_recompile'] += round(1000000 * 10 * (microtime(true) - $start_microtime)) / 10);
}
}
// ****************************
// Create a controller instance
// ****************************
$classname = 'FlexicontentController' . ucfirst($controller);
$controller = new $classname();
// **************************
// Perform the requested task
// **************************
$controller->execute($task);
// Redirect if set by the controller
$controller->redirect();