function __construct() { $this->name = 'navigation'; $this->versioning = true; $this->base_view_dir = ROOT_DIR; parent::__construct(); }
function __construct() { $this->name = 'html_header'; $this->versioning = true; $this->base_view_dir = ROOT_DIR; parent::__construct(); }
function __construct() { $this->name = 'body_image'; $this->versioning = true; $this->base_view_dir = ROOT_DIR; parent::__construct(); }
function __construct() { $this->name = 'media_element'; $this->versioning = true; $this->base_view_dir = ROOT_DIR; parent::__construct(); }
function __construct() { $this->name = 'ck_upload'; $this->base_view_dir = ROOT_DIR; $this->login_required = array('image_upload', 'image_browse', 'media_upload', 'media_browse'); parent::__construct(); }
function __construct() { $this->name = 'rss'; $this->page_title = 'RSS Feeds'; $this->records = 50; $this->set('_SITE_NAME_', SITE_NAME); parent::__construct(); }
function __construct() { $this->name = 'redirect'; $this->versioning = true; $this->base_view_dir = ROOT_DIR; $this->redirect_delay = 3; parent::__construct(); }
function __construct() { $this->name = 'password'; $this->versioning = true; $this->password = null; $this->base_view_dir = ROOT_DIR; parent::__construct(); }
function __construct() { $this->name = 'stockquote'; $this->versioning = true; $this->base_view_dir = ROOT_DIR; $this->stock_format = "snl1d1t1cv"; /* Format below. */ $this->stock_symbol = "glc.v"; parent::__construct(); }
function __construct() { $this->name = 'poll'; $this->versioning = true; $this->base_view_dir = ROOT_DIR; $this->order_by = "active DESC, id ASC"; $this->login_required = array('create', 'edit', 'values', 'show', 'activate'); $this->auto_render = false; parent::__construct(); }
function render($options) { $in_nterchange = defined('IN_NTERCHANGE') ? constant('IN_NTERCHANGE') : false; $in_surftoedit = defined('IN_SURFTOEDIT') ? constant('IN_SURFTOEDIT') : false; if (!$in_nterchange || $in_surftoedit) { $model =& $this->getDefaultModel(); $content = $model->content; require_once 'vendor/JSON.php'; $json = new Services_JSON(); if ($code = $json->decode($content) && !empty($code)) { if (isset($code->controller) && isset($code->action)) { $this->getContent((array) $code, $model->dynamic); } } else { while (false !== ($pos = strpos($content, '{call'))) { $pos2 = strpos($content, '}', $pos) + 1; $str = substr($content, $pos, $pos2 - $pos); // clean up the string $str = trim(str_replace(array('{call ', '}'), '', $str)); // replace value $value = ''; // find matches preg_match_all('/\\s?([^=]+)=[\\"\']?([^\\"\'\\s$]+)[\\"\']?/', $str, $matches); // push the matches into an array if they exists if (isset($matches[0])) { $params = array(); for ($i = 0; $i < count($matches[0]); $i++) { $params[$matches[1][$i]] = $matches[2][$i]; } $value = $this->getContent($params, $model->dynamic); } $content = substr($content, 0, $pos) . $value . substr($content, $pos2 + 1); } } $model->content = $content; $this->set($model->toArray()); unset($json); } return parent::render($options); }
function __construct() { $this->name = 'version_check'; $this->base_view_dir = ROOT_DIR; parent::__construct(); }
protected function init() { // Call parent's init method parent::init(); }
protected function init() { // Call parent's init method parent::init(); //$this->after_filter('minify', 'compress'); }