<?php
$meta = array(
'title' => ucwords($data->name),
'description' => Io::trim($data->description),
'event' => $is,
'year' => date('Y'),
'month' => date('m'),
'day' => date('d')
);
$this->layout('layout-page', $meta);
<?php
$meta = array(
'title' => ucwords($data->name),
'description' => Io::trim($data->description),
'event' => $is,
'year' => date('Y'),
'month' => date('m'),
'day' => date('d')
);
$this->layout('layout-page', $meta);
unset($data);
extract($this->data);
ob_start();
if ($this->exists()) {
include $this->path();
} else {
throw new LogicException(
* Create a new template and render it.
* @param string $name
* @param array $data
* @return string
*/
public function render($name, array $data = array())
{
return $this->make($name)->render($data);
}
}
$assign['day'] = (is_null($day)) ? '' : $day;
if (($year)) {
if (!is_null($event)) {
$assign['is'] = $event;
$assign['data'] = custom_event($event);
echo $template->render('event-detail', $assign);
return;
} elseif (!is_null($day)) {
if (isset($data[$index+1]) && isset($data[$index+1][0]) && is_array($data[$index+1][0])) {
return trim(substr($match[0][0], 0, $data[$index+1][0][1] - $match[0][1]), '/');
} else {
return (isset($match[0][0]) ? trim($match[0][0], '/') : null);
}
}, $data, array_keys($data));
call_user_func_array($value['fn'], $parameter);
$i++;
public function run($callback = null) {
$this->method = $this->method();
if (isset($this->beforeroute[$this->method])) $this->handle($this->beforeroute[$this->method]);
$num = 0;
if (isset($this->route[$this->method])) $num = $this->handle($this->route[$this->method], true);
if ($num == 0) {
break;
}
echo $template->render($detect->call, $assign);
});
$route->run();
if ($route->segment(1) == ENGINE) {
$dips = ($site['whitelist']['status']['backend'] && !$legal['backend']) ? 'app/global/redirect' : 'engine';
} else {
$dips = ($site['whitelist']['status']['frontend'] && !$legal['frontend'] || $site['offline']['status'] && !$legal['frontend']) ? 'app/global/maintenance' : 'theme';
}
require_once $dips . '.php';
ob_end_flush();