append('contests_'.$contest['status'], array( 'NAME' => trigger_event('render_CR_content', $contest['name']), 'VISIBLE' => $contest['visible'], 'DATE_BEGIN' => format_date($contest['date_begin']), 'DATE_END' => format_date($contest['date_end']), 'LOGO' => $contest['logo'], 'U_RESULTS' => CR_ADMIN . '-results&contest_id=' . $contest['id'], 'U_EDIT' => CR_ADMIN . '-edit&contest_id=' . $contest['id'], 'U_DELETE' => CR_ADMIN . '-manage&delete_contest=' . $contest['id'], 'URL' => CR_PUBLIC . $contest['id'] . '-' . str2url(trigger_event('render_CR_content', $contest['name'])), 'DAYS' => $contest['days'], )); } // +-----------------------------------------------------------------------+ // Template // +-----------------------------------------------------------------------+ $template->set_filenames(array('plugin_admin_content' => dirname(__FILE__).'/template/manage.tpl')); $template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content'); ?>