original_string: public static function adminForumsPrepareContent($forum)
      {
          $actions = [];
          $actions[] = Html::button(Html::tag('span', '', ['class' => 'glyphicon glyphicon-eye-' . ($forum->visible ? 'open' : 'close')]), ['class' => 'btn btn-xs text-muted', 'data-toggle' => 'tooltip', 'data-placement' => 'top', 'title' => $forum->visible ? Yii::t('podium/view', 'Forum visible for guests (if category is visible)') : Yii::t('podium/view', 'Forum hidden for guests')]);
          $actions[] = Html::a(Html::tag('span', '', ['class' => 'glyphicon glyphicon-cog']), ['admin/edit-forum', 'id' => $forum->id, 'cid' => $forum->category_id], ['class' => 'btn btn-default btn-xs', 'data-toggle' => 'tooltip', 'data-placement' => 'top', 'title' => Yii::t('podium/view', 'Edit Forum')]);
          $actions[] = Html::tag('span', Html::button(Html::tag('span', '', ['class' => 'glyphicon glyphicon-trash']), ['class' => 'btn btn-danger btn-xs', 'data-url' => Url::to(['admin/delete-forum', 'id' => $forum->id, 'cid' => $forum->category_id]), 'data-toggle' => 'modal', 'data-target' => '#podiumModalDelete']), ['data-toggle' => 'tooltip', 'data-placement' => 'top', 'title' => Yii::t('podium/view', 'Delete Forum')]);
  
          return Html::tag('p', implode(' ', $actions), ['class' => 'pull-right']) . Html::tag('span', Html::encode($forum->name), ['class' => 'podium-forum', 'data-id' => $forum->id, 'data-category' => $forum->category_id]);
      }
code: public static function adminForumsPrepareContent($forum)
      {
          $actions = [];
          $actions[] = Html::button(Html::tag('span', '', ['class' => 'glyphicon glyphicon-eye-' . ($forum->visible ? 'open' : 'close')]), ['class' => 'btn btn-xs text-muted', 'data-toggle' => 'tooltip', 'data-placement' => 'top', 'title' => $forum->visible ? Yii::t('podium/view', 'Forum visible for guests (if category is visible)') : Yii::t('podium/view', 'Forum hidden for guests')]);
          $actions[] = Html::a(Html::tag('span', '', ['class' => 'glyphicon glyphicon-cog']), ['admin/edit-forum', 'id' => $forum->id, 'cid' => $forum->category_id], ['class' => 'btn btn-default btn-xs', 'data-toggle' => 'tooltip', 'data-placement' => 'top', 'title' => Yii::t('podium/view', 'Edit Forum')]);
          $actions[] = Html::tag('span', Html::button(Html::tag('span', '', ['class' => 'glyphicon glyphicon-trash']), ['class' => 'btn btn-danger btn-xs', 'data-url' => Url::to(['admin/delete-forum', 'id' => $forum->id, 'cid' => $forum->category_id]), 'data-toggle' => 'modal', 'data-target' => '#podiumModalDelete']), ['data-toggle' => 'tooltip', 'data-placement' => 'top', 'title' => Yii::t('podium/view', 'Delete Forum')]);
  
          return Html::tag('p', implode(' ', $actions), ['class' => 'pull-right']) . Html::tag('span', Html::encode($forum->name), ['class' => 'podium-forum', 'data-id' => $forum->id, 'data-category' => $forum->category_id]);
      }
code_tokens: public static function adminForumsPrepareContent ( $ forum ) { $ actions = [ ] ; $ actions [ ] = Html :: button ( Html :: tag ( 'span' , '' , [ 'class' => 'glyphicon glyphicon-eye-' . ( $ forum -> visible ? 'open' : 'close' ) ] ) , [ 'class' => 'btn btn-xs text-muted' , 'data-toggle' => 'tooltip' , 'data-placement' => 'top' , 'title' => $ forum -> visible ? Yii :: t ( 'podium/view' , 'Forum visible for guests (if category is visible)' ) : Yii :: t ( 'podium/view' , 'Forum hidden for guests' ) ] ) ; $ actions [ ] = Html :: a ( Html :: tag ( 'span' , '' , [ 'class' => 'glyphicon glyphicon-cog' ] ) , [ 'admin/edit-forum' , 'id' => $ forum -> id , 'cid' => $ forum -> category_id ] , [ 'class' => 'btn btn-default btn-xs' , 'data-toggle' => 'tooltip' , 'data-placement' => 'top' , 'title' => Yii :: t ( 'podium/view' , 'Edit Forum' ) ] ) ; $ actions [ ] = Html :: tag ( 'span' , Html :: button ( Html :: tag ( 'span' , '' , [ 'class' => 'glyphicon glyphicon-trash' ] ) , [ 'class' => 'btn btn-danger btn-xs' , 'data-url' => Url :: to ( [ 'admin/delete-forum' , 'id' => $ forum -> id , 'cid' => $ forum -> category_id ] ) , 'data-toggle' => 'modal' , 'data-target' => '#podiumModalDelete' ] ) , [ 'data-toggle' => 'tooltip' , 'data-placement' => 'top' , 'title' => Yii :: t ( 'podium/view' , 'Delete Forum' ) ] ) ; return Html :: tag ( 'p' , implode ( ' ' , $ actions ) , [ 'class' => 'pull-right' ] ) . Html :: tag ( 'span' , Html :: encode ( $ forum -> name ) , [ 'class' => 'podium-forum' , 'data-id' => $ forum -> id , 'data-category' => $ forum -> category_id ] ) ; }
docstring: Prepares content for forums administration.
  @param mixed $forum
  @return string
docstring_tokens: Prepares content for forums administration .