23 if ($part->content_type ==
"Code")
30 $imageStyle = $part->format(
'background-image: url(/action/image/show?image_id={image_id})');
31 $part->styles = ($part->styles) ?
"{$part->styles}; $imageStyle" : $imageStyle;
39 $part->content .= $part->format(
"<p id='inline_editing_{scroll_part_id}' class='inline_editor_toolbar'>".
40 "<a href='#' class='edit' onclick='ScrollPartManager.editPart({scroll_id}, {scroll_part_id}); return false;'>Edit</a>".
41 "{$versioningControls}</p>");
44 $out = $part->format($partTemplate);
45 $out = preg_replace(
"/\\[((?:include|position):.*?)\\]/i",
"{\$1}",
$out);
61 global $menu_identifier;
65 trace(
"Rendering part '{$part->title}' with '{$part->php_code_file}'", 3);
67 if ($part->php_code_file)
73 $codePath = explode(
",", $part->php_code_file);
74 if (count($codePath) == 2)
77 $php_code_file = $codePath[1];
84 include
$path.
"/{$php_code_file}";
97 include
$config[
'homedir'].
"/{$part->php_code_file}";
101 $output = trim(ob_get_contents());
static fireEvent($event, $parameter=null, $mustBeConsumed=false)
Fire an event to all subscribers as detailed in their manifests.
FakoliException is the base exception class for all Fakoli errors.
static coreTraceLevel()
Change to the configured trace level for Fakoli core code.
static getComponents()
Retrieve an array of all the currently enabled components, indexed by component name.
static applicationTraceLevel()
Change to the configured trace level for application code.
static getValue($component, $name)
Retrieve the value of the specified Setting.
static checkPermission($component, $name, $account=null)
Check whether a user has a specific permission.
static selectDisplayVersion($target, $param="version")
$method
Pull out a simple reference to the request method.