protected function _commandPin($command)
    {
        $entity = $this->getController()->getItem();

        $label = ($entity->pinned) ? AnTranslator::_('LIB-AN-ACTION-UNPIN') : AnTranslator::_('LIB-AN-ACTION-PIN');

        $command
        ->append(array('label' => $label))
        ->href($entity->getURL().'&action='.($entity->pinned ? 'unpin' : 'pin'))
        ->setAttribute('data-trigger', 'PostLink');
    }
protected function _commandPin($command)
    {
        $entity = $this->getController()->getItem();

        $label = ($entity->pinned) ? AnTranslator::_('LIB-AN-ACTION-UNPIN') : AnTranslator::_('LIB-AN-ACTION-PIN');

        $command
        ->append(array('label' => $label))
        ->href($entity->getURL().'&action='.($entity->pinned ? 'unpin' : 'pin'))
        ->setAttribute('data-trigger', 'PostLink');
    }
protected function _commandPin ( $ command ) { $ entity = $ this -> getController ( ) -> getItem ( ) ; $ label = ( $ entity -> pinned ) ? AnTranslator :: _ ( 'LIB-AN-ACTION-UNPIN' ) : AnTranslator :: _ ( 'LIB-AN-ACTION-PIN' ) ; $ command -> append ( array ( 'label' => $ label ) ) -> href ( $ entity -> getURL ( ) . '&action=' . ( $ entity -> pinned ? 'unpin' : 'pin' ) ) -> setAttribute ( 'data-trigger' , 'PostLink' ) ; }
Customize the sticky command.

@param LibBaseTemplateObject $command Command Object
Customize the sticky command .