Changeset 7944 for extensions/cl_conflit


Ignore:
Timestamp:
Nov 30, 2010, 9:28:28 AM (13 years ago)
Author:
cljosse
Message:

[cl_conflit] fix bug cl_conflit/autosize

Location:
extensions/cl_conflit
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/cl_conflit/conflit.inc.php

    r7914 r7944  
    3939                $template->set_filenames(array('cl_conflit_init'=>$my_path. "template/conflit.tpl" ) );
    4040                $debug = isset($conf['debug']) ? $conf['debug'] : false ;
    41                 $cl_conflit =  isset($conf['cl_conflit']) ? $conf['cl_conflit'] : 'true' ;                     
     41$cl_conflit_parametres =         cl_conflit_Get_Options() ;
     42
     43                       
    4244                $theme=$user['theme'];
    4345               
    4446                $template->assign(
    4547                                                array(
     48                                                'cl_conflit_parametres' => $cl_conflit_parametres ,
     49                                                'cl_plugins' => $cl_plugin ,
    4650                                                'cl_version' => $cl_plugin['version'] ,
    4751                                                'name' => $cl_plugin['name'] ,
    48                                                 'cl_conflit' => $cl_conflit  ,
     52                                                 
    4953                                                'theme' => $theme  ,
    5054                                                'DEBUG' => $debug   ,
     
    6670                        $my_path = dirname(__FILE__).'/';
    6771                        $debug = isset($conf['debug']) ? $conf['debug'] : false ;
    68                         $cl_conflit =  isset($conf['cl_conflit']) ? $conf['cl_conflit'] : 'true' ;
     72                         
    6973                        $theme=$user['theme'];
    7074
     
    7478                                                'name' => $cl_plugin['name'] ,
    7579                                                'ma_page' =>    $page['body_id'],
    76                                                 'cl_conflit' => $cl_conflit  ,
     80                                                 
    7781                                                'theme' => $theme  ,
    7882                                                'DEBUG' => $debug   ,
     
    102106                        $my_path = dirname(__FILE__).'/';
    103107                        $debug = isset($conf['debug']) ? $conf['debug'] : false ;
    104                         $cl_conflit =  isset($conf['cl_conflit']) ? $conf['cl_conflit'] : 'true' ;
     108                         
    105109                        $theme=$user['theme'];
    106110
     
    153157  global $cl_conflit_parametres;
    154158//=============================================================================
    155 $cl_conflit_parametres->query =(isset($_POST['query'])) ? $_POST['query'] : ((isset($cl_conflit_parametres->query )) ? $cl_conflit_parametres->query : '' ) ;
    156 $cl_conflit_parametres->type=(isset($_POST['type']))? $_POST['type']: ((isset($cl_conflit_parametres->type)) ? $cl_conflit_parametres->type:  '') ;
     159$cl_conflit_parametres->query =(isset($_POST['query'])) ? $_POST['query'] : ((isset($cl_conflit_parametres->query )) ? $cl_conflit_parametres->query : 'Qt' ) ;
     160$cl_conflit_parametres->type=(isset($_POST['type']))? $_POST['type']: ((isset($cl_conflit_parametres->type)) ? $cl_conflit_parametres->type:  'Ty') ;
    157161
    158162 
  • extensions/cl_conflit/include/affiche.php

    r7914 r7944  
    44
    55$visible=(isset($visible))?$visible:false;
    6 $cl_version=isset($cl_version)?$cl_version:"";
    76$theme=$user['theme'];
    87 
     
    109        $template->assign(
    1110                                        array(
    12                                         'cl_version' => $cl_version,
    13                                         'cl_plugin' => $cl_plugin,
    1411                    'CONFLIT_PATH' => CONFLIT_PATH,
    1512                    'theme' => $theme,
  • extensions/cl_conflit/js/conflit.js

    r7932 r7944  
    118118
    119119    } else if (retour.match(RegExp("luciano", "gi"))) {
    120         $1 = $_;
     120         
    121121
    122122        ret_element = jQuery().$Luciano(element, nc);
     
    412412            }
    413413            //======================
     414            //? bubble 
     415            Expression = new RegExp("\\$", "gi")
     416            if (fn.match(Expression)) {
     417                if (fn.match(RegExp("rateForm", "gi"))) {
     418
     419                    states.push('Luciano');
     420                    break;
     421                }
     422            }
     423            // "window.fireEvent('domready')"
     424            Expression = new RegExp("window.fireEvent", "gi")
     425            if (fn.match(Expression)) {  //luciano
     426                // "window.fireEvent('domready')"
     427                Expression = new RegExp("window.fireEvent..domready..", "gi")
     428                if (fn.match(Expression)) {
     429                    states.push('Luciano');
     430                    break;
     431                }
     432            }
     433            if (fn.match(RegExp("(splat|buildFrameWork|photoNext)", "gi"))) {  //luciano
     434
     435                states.push('Luciano');
     436                break;
     437            }
     438            //======================
    414439            if (fn.match(RegExp("_footer|ie_ready|makeDraggable|droppables", "gi"))) {
    415440
     
    439464                break;
    440465            }
    441             //? bubble 
    442             Expression = new RegExp("\\$", "gi")
    443             if (fn.match(Expression)) {
    444                 if (fn.match(RegExp("rateForm", "gi"))) {
    445 
    446                     states.push('Luciano');
    447                     break;
    448                 }
    449             }
    450             // "window.fireEvent('domready')"
    451             Expression = new RegExp("window.fireEvent", "gi")
    452             if (fn.match(Expression)) {  //luciano
    453                 // "window.fireEvent('domready')"
    454                 Expression = new RegExp("window.fireEvent..domready..", "gi")
    455                 if (fn.match(Expression)) {
    456                     states.push('Luciano');
    457                     break;
    458                 }
    459             }
    460             if (fn.match(RegExp("(splat|buildFrameWork|photoNext)", "gi"))) {  //luciano
    461 
    462                 states.push('Luciano');
    463                 break;
    464             }
     466
    465467
    466468            if (all_functions.length > 50)
     
    556558})(jQuery);
    557559
    558 
     560 
     561 
     562$_0= $;
    559563function $(element, nc0) {
    560564    a = conflit(element, nc0);
     
    586590
    587591}
     592 
     593
    588594$_ = $;
    589595function save_framework(page) {
     
    594600    }
    595601   
    596     $_ = $;
     602    $_2 = $;
    597603    return
    598604
  • extensions/cl_conflit/template/conflit.tpl

    r7914 r7944  
    1010    var cl_version = '{$cl_version}';
    1111    var cl_plugin = '{$name}';
     12    var cl_query = '{$cl_conflit_parametres->query}';
     13    var cl_type = '{$cl_conflit_parametres->type}';
     14    var cl_plugins=new Array();
     15{if $DEBUG}
     16 {if not empty($cl_plugins )}
     17   {foreach from=$cl_plugins item=cl_plug }
     18        value='{$cl_plug}';cl_plugins.push(value);           
     19    {/foreach}
     20 {/if}
     21{/if}
    1222</script>
Note: See TracChangeset for help on using the changeset viewer.