本文整理匯總了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();