Открываю: "module/poll/include/service/callback.class.php", нахожу метод getActivityFeed, где в массив
$return
добавляю строку:
'no_target_blank' => true,
Получается так:
$return = [
'feed_title' => $row['question'],
'feed_link' => phpfox::permalink('poll', $row['poll_id']),
'feed_content' => !empty($row['description']) ? $row['description'] : null,
'total_comment' => $row['total_comment'],
'feed_total_like' => $row['total_like'],
'feed_is_liked' => $row['is_liked'],
'feed_icon' => phpfox::getLib('image.helper')->display(['theme' => 'module/poll.png', 'return_url' => true]),
'time_stamp' => $row['time_stamp'],
'enable_like' => true,
'comment_type_id' => 'poll',
'like_type_id' => 'poll',
'no_target_blank' => true,
'feed_custom_html' => $tpl->getTemplate('poll.block.vote', true)
];
А в
$return['feed_image']
добавляю:
'thickbox'=> true
Получается так:
$return['feed_image'] = phpfox::getLib('image.helper')->display([
'server_id' => $row['server_id'],
'path' => 'poll.url_image',
'file' => $row['image_path'],
'suffix' => '_500',
'max_width' => 500,
'max_height' => 500,
'class' => 'photo_holder',
'thickbox' => true
]
);
Итог:
