Ejemplo n.º 1
0
 function __construct($provider, $fields)
 {
     parent::__construct($provider, $fields, 'scMeetupOembedTag');
     $this->name = "Embedded Resource";
     $this->className = 'sc_meetupoembed';
     $this->tagName = 'scmeetupoembed';
     $options = new JRegistry();
     $options->set('oembed_url', 'http://api.meetup.com/oembed');
     $options->set('url', $this->getParamValueEx('url', null, null, ''));
     $options->set('maxwidth', $this->getParamValueEx('maxwidth', null, null, '308'));
     $headers = array();
     $headers['Content-Type'] = 'application/json';
     $options->set('headers', $headers);
     $this->options = $options;
 }
Ejemplo n.º 2
0
 function __construct($provider, $fields)
 {
     parent::__construct($provider, $fields, 'scTwitterOembedTag');
     $this->name = "Embedded Tweets";
     $this->className = 'sc_twitteroembed';
     $this->tagName = 'sctwitteroembed';
     $options = new JRegistry();
     $options->set('oembed_url', 'https://api.twitter.com/1/statuses/oembed.json');
     $url = $this->getParamValueEx('url', null, null, '');
     if (!is_numeric($url) && !empty($url)) {
         $options->set('url', $url);
     }
     $options->set('maxwidth', $this->getParamValueEx('maxwidth', null, null, '550'));
     $headers = array();
     $headers['Content-Type'] = 'application/json';
     $options->set('headers', $headers);
     $this->options = $options;
 }