Ignore:
Timestamp:
08/24/10 03:42:34 (9 years ago)
Author:
mistic100
Message:

Fix tooltips according ExtendedDescription state.

Location:
extensions/ContestResults
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/ContestResults/language/en_UK/plugin.lang.php

    r6782 r6795  
    5252$lang['CR_menubar_block_number'] = 'Quantity of contests to display in the block'; 
    5353 
    54 $lang['CR_help_lang'] = ($ED['state'] == 'active') ? "<b>You can use HTML and multilanguage descriptions.</b>" : "<b>You can use HTML.</b>"; 
     54$lang['CR_help_lang'] = (CR_ED_state == 'active') ? "<b>You can use HTML and multilanguage descriptions.</b>" : "<b>You can use HTML.</b>"; 
    5555        // <span style='font-size:0.8em;'><br/><br/> 
    5656        // Multilanguage descriptions are placed between [lang=xx] and [/lang] tags, where xx is the language code (for example en, es, fr). There is also 2 special languages : [lang=default] and [lang=all]. 
  • extensions/ContestResults/language/fr_FR/plugin.lang.php

    r6782 r6795  
    5252$lang['CR_menubar_block_number'] = 'Nombre de concours à afficher dans le bloc'; 
    5353 
    54 $lang['CR_help_lang'] = ($ED['state'] == 'active') ? "<b>Vous pouvez utiliser du HTML et les descriptions multilingues.</b>" : "<b>Vous pouvez utiliser du HTML.</b>"; 
     54$lang['CR_help_lang'] = (CR_ED_state == 'active') ? "<b>Vous pouvez utiliser du HTML et les descriptions multilingues.</b>" : "<b>Vous pouvez utiliser du HTML.</b>"; 
    5555        // <span style='font-size:0.8em;'><br/><br/> 
    5656        // Les descriptions multilingues se font entre les balises [lang=xx] et [/lang], ou xx est le code de la langue (par exemple fr, en, es, it, etc....) Il existe également 2 balises spéciales: [lang=default] et [lang=all]. 
  • extensions/ContestResults/main.inc.php

    r6782 r6795  
    2525define('CR_PUBLIC', make_index_url(array('section' => 'contests')) . '/'); 
    2626 
     27$ED = pwg_db_fetch_assoc(pwg_query("SELECT state FROM " . PLUGINS_TABLE . " WHERE id = 'ExtendedDescription';")); 
     28define('CR_ED_state', $ED['state']); 
     29 
    2730 
    2831// +-----------------------------------------------------------------------+ 
     
    3437add_event_handler('loc_end_picture', 'CR_comment_picture', 10);         // Commentaire sur la page image 
    3538 
    36 $ED = pwg_db_fetch_assoc(pwg_query("SELECT state FROM " . PLUGINS_TABLE . " WHERE id = 'ExtendedDescription';")); 
    37 if($ED['state'] == 'active') add_event_handler('render_CR_content', 'get_user_language_desc');  // Textes multilangues 
     39if(CR_ED_state == 'active') add_event_handler('render_CR_content', 'get_user_language_desc');   // Textes multilangues 
    3840 
    3941// Langues 
Note: See TracChangeset for help on using the changeset viewer.