Changeset 9788
- Timestamp:
- 03/20/11 14:26:03 (2 years ago)
- Location:
- extensions/ContestResults
- Files:
-
- 5 modified
-
admin/manage.php (modified) (1 diff)
-
admin/template/config.tpl (modified) (1 diff)
-
admin/template/style.css (modified) (1 diff)
-
include/compatibility.inc.php (modified) (6 diffs)
-
include/cr_menubar.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
extensions/ContestResults/admin/manage.php
r9745 r9788 33 33 34 34 $template->append('contests_'.$contest['status'], array( 35 'NAME' => trigger_event('render_CR_content', $contest['name']),36 'VISIBLE' => $contest['visible'],35 'NAME' => trigger_event('render_CR_content', $contest['name']), 36 'VISIBLE' => $contest['visible'], 37 37 'DATE_BEGIN' => format_date($contest['date_begin']), 38 'DATE_END' => format_date($contest['date_end']),39 'LOGO' => $contest['logo'],40 'U_RESULTS' => CR_ADMIN . '-results&contest_id=' . $contest['id'],41 'U_EDIT' => CR_ADMIN . '-edit&contest_id=' . $contest['id'],42 'U_DELETE' => CR_ADMIN . '-manage&delete_contest=' . $contest['id'],43 'URL' => CR_PUBLIC . $contest['id'] . '-' . str2url(trigger_event('render_CR_content', $contest['name'])),44 'DAYS' => $contest['days'],38 'DATE_END' => format_date($contest['date_end']), 39 'LOGO' => $contest['logo'], 40 'U_RESULTS' => CR_ADMIN . '-results&contest_id=' . $contest['id'], 41 'U_EDIT' => CR_ADMIN . '-edit&contest_id=' . $contest['id'], 42 'U_DELETE' => CR_ADMIN . '-manage&delete_contest=' . $contest['id'], 43 'URL' => CR_PUBLIC . $contest['id'] . '-' . str2url(trigger_event('render_CR_content', $contest['name'])), 44 'DAYS' => $contest['days'], 45 45 )); 46 46 } -
extensions/ContestResults/admin/template/config.tpl
r9745 r9788 1 1 {combine_css path=$CR_PATH|@cat:'admin/template/style.css'} 2 2 3 {footer_script require= 'jquery'}3 {footer_script require="jquery"} 4 4 {literal} 5 5 function ToggleConfig(sel, section) { -
extensions/ContestResults/admin/template/style.css
r9745 r9788 30 30 vertical-align:top; 31 31 } 32 div.textareas span.title.cluetip{32 .textareas .title.cluetip{ 33 33 text-align:center; 34 34 margin:20px 0 -10px 0; 35 35 font-size:1.2em; 36 36 } 37 input.inputdate {37 .inputdate { 38 38 background-image:url('image/calendar.png'); 39 39 background-repeat:no-repeat; -
extensions/ContestResults/include/compatibility.inc.php
r9745 r9788 1 1 <?php 2 2 3 // compatibilit � avec les versions < 1.1 (ajout d'une entr�e de configuration)3 // compatibilité avec les versions < 1.1 (ajout d'une entrée de configuration) 4 4 if (!isset($conf['ContestResults'])) { 5 5 pwg_query("INSERT INTO " . CONFIG_TABLE . "(param,value,comment) VALUES('ContestResults', '" . default_config . "', 'Parametres du plugin ContestResults');"); 6 6 } 7 7 8 // compatibilit �avec les versions < 1.2 (suppression option d'affichage)8 // compatibilité avec les versions < 1.2 (suppression option d'affichage) 9 9 $field = pwg_query("SHOW COLUMNS FROM `" . $prefixeTable . "contests` LIKE 'presentation_display'"); 10 10 if (pwg_db_num_rows($field)) { … … 17 17 } 18 18 19 // compatibilit �avec les versions < 1.3.a (suppression option status, regroupement des champs de description)19 // compatibilité avec les versions < 1.3.a (suppression option status, regroupement des champs de description) 20 20 $field = pwg_query("SHOW COLUMNS FROM `" . $prefixeTable . "contests` LIKE 'status'"); 21 21 if (pwg_db_num_rows($field)) { … … 28 28 if (!empty($contest['presentation'])) { 29 29 $new_description[] = array( 30 'name' => 'Presentation[lang=fr]Pr �sentation[/lang][lang=es]Presentaci�n[/lang][lang=lv]Prezentacija[/lang]',30 'name' => 'Presentation[lang=fr]Présentation[/lang][lang=es]Presentación[/lang][lang=lv]Prezentacija[/lang]', 31 31 'content' => $contest['presentation'], 32 32 ); … … 34 34 if (!empty($contest['rules'])) { 35 35 $new_description[] = array( 36 'name' => 'Rules[lang=fr]R �gles[/lang][lang=es]Restricciones[/lang][lang=lv]Noteikumi[/lang]',36 'name' => 'Rules[lang=fr]Règles[/lang][lang=es]Restricciones[/lang][lang=lv]Noteikumi[/lang]', 37 37 'content' => $contest['rules'], 38 38 ); … … 46 46 if (!empty($contest['final'])) { 47 47 $new_description[] = array( 48 'name' => 'Conclusion[lang=fr]Conclusion[/lang][lang=es]Conclusi �n[/lang][lang=lv]Beigsana[/lang]',48 'name' => 'Conclusion[lang=fr]Conclusion[/lang][lang=es]Conclusión[/lang][lang=lv]Beigsana[/lang]', 49 49 'content' => $contest['final'], 50 50 ); … … 66 66 } 67 67 68 // compatibilit � avec les versions < 1.3.b (ajout d'un param�tre de config)68 // compatibilité avec les versions < 1.3.b (ajout d'un paramètre de config) 69 69 $conf['ContestResults'] = unserialize($conf['ContestResults']); 70 70 if (!isset($conf['ContestResults']['truncate_summary'])) { -
extensions/ContestResults/include/cr_menubar.php
r9745 r9788 24 24 function CR_menubar_apply($menu_ref_arr) { 25 25 global $template, $conf; 26 //$config = unserialize($conf['ContestResults']);27 26 $menu = &$menu_ref_arr[0]; 28 27
![(please configure the [header_logo] section in trac.ini)](http://piwigo.org/screenshots/piwigo_logo_on_white.png)