Example #1
0
File: Timg.php Project: ssrsfs/blg
 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));
 }
Example #2
0
 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']));
 }
Example #3
0
 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));
 }
Example #4
0
 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);
 }
Example #5
0
File: Body.php Project: ssrsfs/blg
 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));
 }
Example #6
0
File: Html.php Project: ssrsfs/blg
 public function __construct($name, array $attributes = array(), Pagemill_Tag $parent = null, Pagemill_Doctype $doctype = null)
 {
     parent::__construct($name, $attributes, $parent, $doctype);
 }
Example #7
0
File: Body.php Project: ssrsfs/blg
 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());
 }