public function __construct($name, $value, Pagemill_Tag $tag) { parent::__construct($name, $value, $tag); $tag->attachPreprocess(new Typeframe_TagPreprocessor_Method($value)); Typeframe_Tag_Scriptonce::Generate(TYPEF_WEB_DIR . '/files/static/jquery/jquery.js', 'text/javascript', $tag); Typeframe_Tag_Scriptonce::Generate(TYPEF_WEB_DIR . '/files/static/jquery/jquery.linkmethod.js', 'text/javascript', $tag); }
public function __construct($name, $value, \Pagemill_Tag $tag) { parent::__construct($name, $value, $tag); $tag->setAttribute('data-confirm', $value); Typeframe_Tag_Scriptonce::Generate(TYPEF_WEB_DIR . '/files/static/jquery/jquery.js', 'text/javascript', $tag); Typeframe_Tag_Scriptonce::Generate(TYPEF_WEB_DIR . '/files/static/jquery/jquery.linkmethod.js', 'text/javascript', $tag); }
public function __construct($name, $value, Pagemill_Tag $tag) { parent::__construct($name, $value, $tag); if (strtolower($this->value) != 'fixed' && strtolower($this->value) != 'ratio') { throw new Exception("Value of {$name} must be 'fixed' or 'ratio'"); } $ratio = strtolower($this->value) == 'ratio'; $tag->attachPreprocess(new Typeframe_TagPreprocessor_Thumb($ratio)); }
public function __construct($name, $value, Pagemill_Tag $tag) { if (!is_a($tag, 'Pagemill_Tag_Html_Select')) { throw new Exception("The {$name} attribute is only valid on select elements " . get_class($tag)); } parent::__construct($name, $value, $tag); $tag->attachPreprocess(new Pagemill_TagPreprocessor_SetSelectValue($value)); $selectvalue = new Pagemill_TagPreprocessor_SelectValue($tag); $this->_attachToOptions($tag, $selectvalue); }
public function __construct($name, $value, Pagemill_Tag $tag) { parent::__construct($name, $value, $tag); $attributes = array(); $parts = explode(' ', $value, 2); $attributes['name'] = $parts[0]; if (isset($parts[1])) { $attributes['as'] = $parts[1]; } $loop = new Pagemill_Tag_Loop('loop', $attributes, null, $tag->doctype()); if ($tag->parent()) { $tag->parent()->appendChild($loop); } $loop->appendChild($tag); }
public function __construct($name, $value, Pagemill_Tag $tag) { parent::__construct($name, $value, $tag); $tag->attachPreprocess(new Pagemill_TagPreprocessor_ContentReplace($value, true)); }
public function __construct($name, $value, \Pagemill_Tag $tag) { parent::__construct($name, $value, $tag); $tag->attachPreprocess(new Pagemill_TagPreprocessor_If($value)); }