function Init($name = '', $settings = '') { $this->SetDefaultSettings(); $this->contents = array(); $params = unserialize_params($settings); $this->SetSettings(combine_arrays($this->GetSettings(), $params)); }
function stencil_formo($settings = '') { global $dd_form_stuff_included, $CORE; $CORE->AddScriptFile('dd_form.js'); $s = unserialize_params($settings); return '<div class="form"' . ($s['smb'] ? ' style="margin-bottom: 0;"' : '') . '><div id="title" class="title">' . $s['title'] . '</div><div class="content" id="content">'; }
function Init($tag, $params, $closeTag = false) { $this->SetDefaultSettings(); $this->tag = $tag; $this->closeTag = $closeTag; $this->SetSettings(unserialize_params($params)); }
function Init($name, $tags = array(), $settings = '') { $params = unserialize_params($settings); $this->SetSettings(combine_arrays($this->GetSettings(), $params)); $this->tags = $tags; $this->name = $name; }
function Init($name = '', $settings = '') { $params = unserialize_params($settings); $this->settings['name'] = $name; $this->SetSettings(combine_arrays($this->GetSettings(), $params)); if ($this->settings['urlprefix'] == '') { $this->settings['urlprefix'] = content_url_get_full(); } $s = $this->settings['urlprefix']; if (preg_match('/\\?/', $s)) { if (!preg_match('/\\?$/', $s)) { $s .= '&'; } } else { $s .= '?'; } $this->settings['urlprefix'] = $s; if ($this->settings['pageid'] == '') { $this->settings['pageid'] = 'page'; } $this->topStencil = $this->bottomStencil = $this->defaultStencil; if ($this->settings['perpage'] == '') { $this->settings['perpage'] = 1; } }
function Init($params, $innerHTML = '') { $this->SetDefaultSettings(); $this->closeTag = true; $this->innerHTML = $innerHTML; $this->SetClassName('script'); $this->SetSettings(unserialize_params($params)); }
function stencil_lblocko($p = array()) { $p = unserialize_params($p); if ($p['color'] != '') { $color = ' t' . $p['color']; } if ($p['bgcolor'] != '') { $bg = ' style="background-color: ' . $p['bgcolor'] . '"'; } return '<div class="lblock"><div class="title' . $color . '">' . htmlspecialchars($p['title']) . '</div><div class="content"' . $bg . '>'; }
function Init($name = '', $settings = '') { $params = unserialize_params($settings); $this->settings['name'] = $name; $this->SetSettings(combine_arrays($this->GetSettings(), $params)); if ($this->settings['caption'] == '') { $this->settings['caption'] = 'Сохранить'; } else { $this->settings['caption'] = htmlspecialchars($this->settings['caption']); } }
function Init($v = '') { $this->vars = array(); $this->SetDefaultSettings(); $this->metas = array(); $this->CSStyles = array(); $this->content = new CVCContent(); $params = unserialize_params($v); $this->topmenu = new CVCMenu(); $this->topmenu->Init('PageTopMenu', 'type=hor;transparent=1;align=right;small=1;'); $this->settings['favicon'] = ''; $this->SetSettings(combine_arrays($this->GetSettings(), $params)); }
function stencil_dd_formo($settings = '') { global $dd_form_stuff_included, $CORE; $CORE->AddScriptFile('dd_form.js'); $s = unserialize_params($settings); $onexpand = $s['onexpand']; if ($onexpand != '') { $onexpand = ' ' . $onexpand; } $onhide = $s['onhide']; if ($onhide != '') { $onhide = ' ' . $onhide; } $expanded = $s['expanded']; return '<div class="dd_form"><div id="title" class="dd_title">' . '<table><tr><td><img src="' . config_get('document-root') . '/pics/arrdown_green.gif" id="show" ' . 'onclick="dd_form_expand (this);' . $onexpand . '" alt="Развернуть" title="Развернуть" ' . ($expanded ? ' style="display: none;"' : '') . '>' . '<img src="' . config_get('document-root') . '/pics/arrup_red.gif" ' . ($expanded ? '' : 'style="display: none;"') . ' id="hide" ' . 'onclick="dd_form_hide (this);' . $onhide . '" alt="Свернуть" ' . 'title="Свернуть"></td><td>' . $s['title'] . '</td></tr>' . '</table></div><div class="dd_content" id="content"' . ($expanded ? ' style="display: block;"' : '') . '>'; }
function stencil_progress($settings = '') { $s = unserialize_params($settings); if ($s['width'] == '') { $s['width'] = 100; } $src = '<div class="progress" style="width: ' . $s['width'] . 'px; height: 6px;">'; if ($s['pos'] != '' && $s['pos'] != '0') { $src .= '<div class="progressStart"></div>'; $src .= '<div class="progressBar" style="width: ' . floor($s['pos'] / 100 * $s['width'] - 2) . 'px;"></div>'; $src .= '<div class="progressEnd"></div>'; } else { $src .= '<img src="pics/site/clear.gif">'; } $src .= '</div>'; return $src; }
function StartNewPage($params) { if ($this->pageStarted) { $this->FinishPage(); } $p = unserialize_params($params); if ($p['active']) { $this->active = count($this->pages); } $n = count($this->pageParams); $arr = array(); for ($i = 0; $i < $n; $i++) { $arr[$this->pageParams[$i]] = $p[$this->pageParams[$i]]; } $this->pages[] = $arr; $this->pageStarted = true; ob_start(); }
function stencil_contentsc($settings = '') { $s = unserialize_params($settings); return '</div></div>'; }
function Init($params) { $this->SetDefaultSettings(); $this->SetClassName('link'); $this->SetSettings(unserialize_params($params)); }
function stencil_tabc($settings = '') { $s = unserialize_params($settings); return tpl('back/stencil/tabc', $s); }
function Init($params) { $this->params = unserialize_params($params); }