Guest User

Untitled

a guest
Jul 18th, 2018
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.05 KB | None | 0 0
  1. diff --git a/model/Form/SocialMediaButton/LinkedIn.php b/model/Form/SocialMediaButton/LinkedIn.php
  2. index d581691..174010b 100644
  3. --- a/model/Form/SocialMediaButton/LinkedIn.php
  4. +++ b/model/Form/SocialMediaButton/LinkedIn.php
  5. @@ -18,13 +18,31 @@ class Form_SocialMediaButton_LinkedIn extends Form_SocialMediaButton_Abstract
  6.          $this->addElement('hash', 'token');
  7.  
  8.          $e = $this->createElement('text', 'url');
  9. -        $e->setLabel('URL')->addValidator(new IP_Validate_Uri());
  10. +        $e->setLabel('URL')->addValidator(new IP_Validate_Uri())->setRequired();
  11. +        $e->setDescription("The URL of the share. LinkedIn limits this field to 1024 characters.");
  12. +        $e->addDecorators(array(
  13. +           array('Description', array(
  14. +               'tag' => 'div',
  15. +                'escape' => true,
  16. +                'class' => 'rightSideDescription',
  17. +                'placement' => Zend_Form_Decorator_Abstract::APPEND)),
  18. +           array('HtmlTag', array('tag' => 'div', 'class' => 'sbElement clearfix'))));
  19.          $this->addElement($e);
  20.  
  21.          $e = $this->createElement('select', 'countMode',array(
  22.              'multiOptions' => array("0" => self::COUNT_MODE_NO, "1" => self::COUNT_MODE_HORIZONTAL, "2" => self::COUNT_MODE_VERTICAL)));
  23. -        $e->setLabel('Count Mode');
  24. +        $e->setLabel('Count Mode')->setRequired();
  25. +        $e->setDescription("The options are \"No Count\" to exclude the count, \"Horizontal\" to show the count to the right of the button, and \"Vertical\" to show it above the button.");
  26. +        $e->addDecorators(array(
  27. +           array('Description', array(
  28. +               'tag' => 'div',
  29. +                'escape' => true,
  30. +                'class' => 'rightSideDescription',
  31. +                'placement' => Zend_Form_Decorator_Abstract::APPEND)),
  32. +           array('HtmlTag', array('tag' => 'div', 'class' => 'sbElement clearfix'))));
  33.          $this->addElement($e);
  34. +        
  35. +        $this->addDisplayGroup(array('url', 'countMode'), 'buttonOptions');
  36.          $this->addElement('submit', 'save', array('label' => 'Save'));
  37.          return $this;
  38.      }
Add Comment
Please, Sign In to add comment