10) { $top_url = "{$vars['url']}action/admin/plugins/reorder?plugin={$plugin}&order=1&__elgg_token=$token&__elgg_ts=$ts"; $top_link = '' . elgg_echo('top') . ''; $order = $vars['order'] - 11; $up_url = "{$vars['url']}action/admin/plugins/reorder?plugin={$plugin}&order=$order&__elgg_token=$token&__elgg_ts=$ts"; $up_link = '' . elgg_echo('up') . ''; } if ($vars['order'] < $vars['maxorder']) { $order = $vars['order'] + 11; $down_url = "{$vars['url']}action/admin/plugins/reorder?plugin={$plugin}&order=$order&__elgg_token=$token&__elgg_ts=$ts"; $down_link = '' . elgg_echo('down') . ''; $order = $vars['maxorder'] + 11; $bottom_url = "{$vars['url']}action/admin/plugins/reorder?plugin={$plugin}&order=$order&__elgg_token=$token&__elgg_ts=$ts"; $bottom_link = '' . elgg_echo('bottom') . ''; } if ($active) { $url = "{$vars['url']}action/admin/plugins/disable?plugin=$plugin&__elgg_token=$token&__elgg_ts=$ts"; $enable_disable = '' . elgg_echo('disable') . ''; } else { $url = "{$vars['url']}action/admin/plugins/enable?plugin=$plugin&__elgg_token=$token&__elgg_ts=$ts"; $enable_disable = '' . elgg_echo('enable') . ''; } $categories_list = ''; if ($manifest['category']) { $categories_arr = array(); $base_url = "{$vars['url']}pg/admin/plugins?category="; foreach($manifest['category'] as $category) { $url = $base_url . urlencode($category); $categories_arr[] = "" . htmlspecialchars($category) . ''; } $categories_list = implode(', ', $categories_arr); } $screenshots = ''; if ($manifest['screenshot']) { $base_url = "{$vars['url']}mod/"; $limit = 4; foreach ($manifest['screenshot'] as $screenshot) { if ($limit <= 0) { break; } $screenshot_src = $base_url . $plugin . "/$screenshot"; $screenshots .= "