public static function renderStatusButtonsContent(Conversation $conversation)
 {
     $content = ZurmoHTML::radioButtonList(self::getRadioButtonListName($conversation->id), $conversation->resolveIsClosedForNull(), self::getDropDownArray(), array('separator' => '', 'template' => '<div class="switch-state clearfix">{input}{label}</div>'));
     return ZurmoHtml::tag('div', array('class' => 'switch'), $content);
 }
 protected function renderToggleSubscriptionSwitch($marketingListId, $subscribed)
 {
     $template = ZurmoHtml::tag('div', array('class' => 'switch-state clearfix'), '{input}{label}');
     $createNewActivity = false;
     if ($marketingListId == $this->sourceMarketingListId) {
         $createNewActivity = true;
     }
     $hash = EmailMessageActivityUtil::resolveHashForUnsubscribeAndManageSubscriptionsUrls($this->personId, $marketingListId, $this->modelId, $this->modelType, $createNewActivity);
     $subscribeUrl = $this->getSubscribeUrlByHash($hash);
     $unsubscribeUrl = $this->getUnsubscribeUrlByHash($hash);
     $checkedValue = $subscribeUrl;
     if (!$subscribed) {
         $checkedValue = $unsubscribeUrl;
     }
     $baseId = static::TOGGLE_UNSUBSCRIPTION_LINK_CLASS . '_' . $marketingListId;
     $content = ZurmoHTML::radioButtonList($baseId, $checkedValue, self::getDropDownArray($subscribeUrl, $unsubscribeUrl), array('separator' => '', 'template' => $template));
     return ZurmoHtml::tag('div', array('class' => 'switch'), $content);
 }