Example #1
0
 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);
 }
Example #2
0
 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);
 }
Example #3
0
File: Thumb.php Project: ssrsfs/blg
 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));
 }
Example #4
0
 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);
 }
Example #5
0
File: Loop.php Project: ssrsfs/blg
 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);
 }
Example #6
0
 public function __construct($name, $value, Pagemill_Tag $tag)
 {
     parent::__construct($name, $value, $tag);
     $tag->attachPreprocess(new Pagemill_TagPreprocessor_ContentReplace($value, true));
 }
Example #7
0
File: If.php Project: ssrsfs/blg
 public function __construct($name, $value, \Pagemill_Tag $tag)
 {
     parent::__construct($name, $value, $tag);
     $tag->attachPreprocess(new Pagemill_TagPreprocessor_If($value));
 }