Changeset 30430


Ignore:
Timestamp:
Nov 11, 2014, 10:35:31 PM (9 years ago)
Author:
ddtddt
Message:

[extensions] - see_photos_by_user clean jquery

Location:
extensions/see_photos_by_user
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/see_photos_by_user/js/see.js

    r30429 r30430  
    22 
    33var textcolor;
    4 var outline;
    54var shapesee;
    6 $('.seepbu').each(function(){
    7    
    8     /*var weight = $(this).data('weight');
    9     if(weight>5){$(this).parent().addClass('color1').css('color:red !important')
    10     textcolor = '#ffffff';
    11     outline ='#ffffff';
    12     }else{
    13     textcolor = 'red';
    14     outline ='#ffffff';
    15     }*/
    16    
    17     var col=$("body").css('color');
    18     shapesee=$(this).data('shape');
    19        
    20     var color = $(this).data('color');
    21         if(color!=''){
    22             col=color
    23         }
    24     textcolor = col;
    25     outline =col;
    26    
     5$('#ulseepbu').each(function(){
     6    textcolor = $(this).data('color') ? $(this).data('color'):$("body").css('color');
     7    shapesee=$(this).data('shape') ? $(this).data('shape'):'sphere';
    278});
    28  
     9
    2910if( ! $('#myCanvas').tagcanvas({
    3011    shape: shapesee,
    3112    textColour: textcolor,
    32     outlineColour: outline,
     13    outlineColour: textcolor,
    3314    outlineThickness : 1,
    3415    textHeight: 16,
  • extensions/see_photos_by_user/pagespba.php

    r30429 r30430  
    8080                'USERSSPBYL' => $userslistecloud['username'],
    8181                'USERSSPBYLC' => $userslistecloud['PBU'],
    82                 'USERSSPBYCOLOR' => $conf['see_photos_by_user_color'],
    83                 'USERSSPBYSHAPE' => $conf['see_photos_by_user_shape'],
    8482                'USERSSPBYWEIGHT' => $wheight,
    8583            );
     
    9189   
    9290    $linkusersliste = get_root_url() . 'index.php?/user-';
    93     $template->assign('USERSSPBY', $linkusersliste);
     91    $template->assign(array(
     92        'USERSSPBY'=> $linkusersliste,
     93        'USERSSPBYCOLOR' => $conf['see_photos_by_user_color'],
     94        'USERSSPBYSHAPE' => $conf['see_photos_by_user_shape'],
     95            ));
    9496   
    9597   
  • extensions/see_photos_by_user/pagespba.tpl

    r30429 r30430  
    1515     
    1616 <canvas width="600" height="300" id="myCanvas">
    17    <ul>
     17   <ul id="ulseepbu" data-shape="{$USERSSPBYSHAPE}" data-color="{$USERSSPBYCOLOR}">
    1818    {foreach from=$userslistecloud1 item=userslistecloud}
    1919        <li>
    20             <a href = "{$USERSSPBY}{$userslistecloud.USERSSPBYLID}-{$userslistecloud.USERSSPBYL}">{$userslistecloud.USERSSPBYL} <span data-shape="{$userslistecloud.USERSSPBYSHAPE}" data-color="{$userslistecloud.USERSSPBYCOLOR}" data-weight="{$userslistecloud.USERSSPBYLC}" class="menuInfoCat seepbu">[{$userslistecloud.USERSSPBYLC}]</span></a><br>
     20            <a href = "{$USERSSPBY}{$userslistecloud.USERSSPBYLID}-{$userslistecloud.USERSSPBYL}">{$userslistecloud.USERSSPBYL} <span class="menuInfoCat seepbu">[{$userslistecloud.USERSSPBYLC}]</span></a><br>
    2121        </li>
    2222     {/foreach}
Note: See TracChangeset for help on using the changeset viewer.