protected static function renderNotificationContent($notification, $index, $modal)
 {
     $cClipWidget = new CClipWidget();
     $cClipWidget->beginClip("ModalGameNotificationView");
     $cClipWidget->beginWidget('zii.widgets.jui.CJuiDialog', array('id' => 'ModalGameNotification' . $index, 'options' => array('autoOpen' => true, 'modal' => $modal, 'height' => 375, 'width' => 350, 'dialogClass' => 'ModalGameNotificationParent', 'position' => 'center', 'clearStyle' => true, 'open' => 'js:function(event, ui) {$(this).parent().children(".ui-dialog-titlebar").hide();}'), 'htmlOptions' => array('class' => 'ModalGameNotification')));
     $adapter = new GameNotificationToModalContentAdapter($notification);
     echo '<span class="badge-message">' . $adapter->getMessageContent() . '</span>' . '<div class="game-badge ' . $adapter->getIconCssName() . '"><div class="gloss"></div>' . '<strong class="badge-icon"></strong></div>';
     echo '<br />';
     echo static::resolveAndRenderPostingAndContinueLinksContent($notification, $index);
     $cClipWidget->endWidget('zii.widgets.jui.CJuiDialog');
     $cClipWidget->endClip();
     return $cClipWidget->getController()->clips['ModalGameNotificationView'];
 }