Exemplo n.º 1
0
 public function init()
 {
     parent::init();
     if (!empty($this->href)) {
         $this->options['data-href'] = $this->href;
     }
     if (!empty($this->size)) {
         $this->options['data-size'] = $this->size;
     }
     if (!empty($this->count)) {
         $this->options['data-count'] = $this->count;
     }
     if (!isset($this->options['class'])) {
         $this->options['class'] = ' twitter-share-button';
     } else {
         $this->options['class'] .= ' twitter-share-button';
     }
 }
Exemplo n.º 2
0
 public function init()
 {
     parent::init();
     if (!empty($this->href)) {
         $this->options['data-href'] = $this->href;
     }
     if (!empty($this->send)) {
         $this->options['data-send'] = $this->send;
     }
     if (!empty($this->layout)) {
         $this->options['data-layout'] = $this->layout;
     }
     if (!empty($this->width)) {
         $this->options['data-width'] = $this->width;
     }
     if (!empty($this->show_faces)) {
         $this->options['data-show_faces'] = $this->show_faces;
     }
     if (!empty($this->action)) {
         $this->options['data-action'] = $this->action;
     }
     if (!empty($this->font)) {
         $this->options['data-font'] = $this->font;
     }
     if (!empty($this->colorscheme)) {
         $this->options['data-colorscheme'] = $this->colorscheme;
     }
     if (!empty($this->ref)) {
         $this->options['data-ref'] = $this->ref;
     }
     if (!empty($this->share)) {
         $this->options['data-share'] = $this->share;
     }
     if (!empty($this->kid_directed_site)) {
         $this->options['data-kid_directed_site'] = $this->kid_directed_site;
     }
     if (!isset($this->options['class'])) {
         $this->options['class'] = ' fb-like';
     } else {
         $this->options['class'] .= ' fb-like';
     }
 }
Exemplo n.º 3
0
 public function init()
 {
     parent::init();
     if (!empty($this->href)) {
         $this->options['data-href'] = $this->href;
     }
     if (!empty($this->size)) {
         $this->options['data-size'] = $this->size;
     }
     if (!empty($this->annotation)) {
         $this->options['data-annotation'] = $this->annotation;
     }
     if (!empty($this->width)) {
         $this->options['data-width'] = $this->width;
     }
     if (!empty($this->align)) {
         $this->options['data-align'] = $this->align;
     }
     if (!empty($this->expandTo)) {
         $this->options['data-expandTo'] = $this->expandTo;
     }
     if (!empty($this->callback)) {
         $this->options['data-callback'] = $this->callback;
     }
     if (!empty($this->onstartinteraction)) {
         $this->options['data-onstartinteraction'] = $this->onstartinteraction;
     }
     if (!empty($this->onendinteraction)) {
         $this->options['data-onendinteraction'] = $this->onendinteraction;
     }
     if (!empty($this->recommendations)) {
         $this->options['data-recommendations'] = $this->recommendations;
     }
     if (!isset($this->options['class'])) {
         $this->options['class'] = 'g-plusone';
     } else {
         $this->options['class'] .= ' g-plusone';
     }
 }