Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/model/Form/SocialMediaButton/LinkedIn.php b/model/Form/SocialMediaButton/LinkedIn.php
- index d581691..174010b 100644
- --- a/model/Form/SocialMediaButton/LinkedIn.php
- +++ b/model/Form/SocialMediaButton/LinkedIn.php
- @@ -18,13 +18,31 @@ class Form_SocialMediaButton_LinkedIn extends Form_SocialMediaButton_Abstract
- $this->addElement('hash', 'token');
- $e = $this->createElement('text', 'url');
- - $e->setLabel('URL')->addValidator(new IP_Validate_Uri());
- + $e->setLabel('URL')->addValidator(new IP_Validate_Uri())->setRequired();
- + $e->setDescription("The URL of the share. LinkedIn limits this field to 1024 characters.");
- + $e->addDecorators(array(
- + array('Description', array(
- + 'tag' => 'div',
- + 'escape' => true,
- + 'class' => 'rightSideDescription',
- + 'placement' => Zend_Form_Decorator_Abstract::APPEND)),
- + array('HtmlTag', array('tag' => 'div', 'class' => 'sbElement clearfix'))));
- $this->addElement($e);
- $e = $this->createElement('select', 'countMode',array(
- 'multiOptions' => array("0" => self::COUNT_MODE_NO, "1" => self::COUNT_MODE_HORIZONTAL, "2" => self::COUNT_MODE_VERTICAL)));
- - $e->setLabel('Count Mode');
- + $e->setLabel('Count Mode')->setRequired();
- + $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.");
- + $e->addDecorators(array(
- + array('Description', array(
- + 'tag' => 'div',
- + 'escape' => true,
- + 'class' => 'rightSideDescription',
- + 'placement' => Zend_Form_Decorator_Abstract::APPEND)),
- + array('HtmlTag', array('tag' => 'div', 'class' => 'sbElement clearfix'))));
- $this->addElement($e);
- +
- + $this->addDisplayGroup(array('url', 'countMode'), 'buttonOptions');
- $this->addElement('submit', 'save', array('label' => 'Save'));
- return $this;
- }
Add Comment
Please, Sign In to add comment