public function __construct($name, array $attributes = array(), \Pagemill_Tag $parent = null, \Pagemill_Doctype $doctype = null) { parent::__construct($name, $attributes, $parent, $doctype); $this->name = 'img'; $ratio = $this->hasAttribute('ratio'); $this->attachPreprocess(new Typeframe_TagPreprocessor_Thumb($ratio)); }
public function __construct($name, array $attributes = array(), \Pagemill_Tag $parent = null, \Pagemill_Doctype $doctype = null) { parent::__construct($name, $attributes, $parent, $doctype); $this->name = 'input'; $this->attributes['type'] = 'checkbox'; $this->attachPreprocess(new Pagemill_TagPreprocessor_CheckValue($this->attributes['checked'])); }
public function __construct($name, array $attributes = array(), Pagemill_Tag $parent = null, Pagemill_Doctype $doctype = null) { parent::__construct($name, $attributes, $parent, $doctype); if (is_null($this->parent())) { throw new Exception('Attribute element requires a parent'); } $this->parent()->attachPreprocess(new Pagemill_TagPreprocessor_AttributeTag($this)); }
public function __construct($name, array $attributes = array(), \Pagemill_Tag $parent = null, \Pagemill_Doctype $doctype = null) { parent::__construct($name, $attributes, $parent, $doctype); $this->name = 'a'; $this->setAttribute('data-confirm', $this->getAttribute('confirm')); $this->removeAttribute('confirm'); $this->attachPreprocess(new Typeframe_TagPreprocessor_Method('post')); //Typeframe_Tag_Scriptonce::Generate(TYPEF_WEB_DIR . '/files/static/jquery/jquery.js', 'text/javascript', $this); Typeframe_Tag_Scriptonce::Generate(TYPEF_WEB_DIR . '/files/static/jquery/jquery.linkmethod.js', 'text/javascript', $this); }
public function __construct($name, array $attributes = array(), Pagemill_Tag $parent = null, Pagemill_Doctype $doctype = null) { parent::__construct($name, $attributes, $parent, $doctype); $this->parent()->attachPreprocess(new Typeframe_TagPreprocessor_Export('body', $this)); }
public function __construct($name, array $attributes = array(), Pagemill_Tag $parent = null, Pagemill_Doctype $doctype = null) { parent::__construct($name, $attributes, $parent, $doctype); }
public function __construct($name, array $attributes = array(), \Pagemill_Tag $parent = null, \Pagemill_Doctype $doctype = null) { parent::__construct($name, $attributes, $parent, $doctype); $this->attachPreprocess(new Typeframe_TagPreprocessor_DebugInBody()); $this->attachPreprocess(new Typeframe_TagPreprocessor_BodyAttributes()); }