Changeset 1135


Ignore:
Timestamp:
Apr 8, 2006, 9:42:11 PM (18 years ago)
Author:
rvelices
Message:

merge -r1134 from branches/branch-1_6 into trunk

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/category_subcats.inc.php

    r1132 r1135  
    133133      get_thumbnail_src($row['path'], @$row['tn_ext']);
    134134  }
    135  
     135
    136136  if ($conf['subcatify'])
    137137  {
     
    143143
    144144    $template->assign_block_vars('categories', array());
    145    
     145
    146146    foreach ($categories as $category)
    147147    {
     
    153153          'TITLE' => $lang['hint_category'],
    154154          'ICON'  => get_icon(@$category['date_last']),
    155          
     155
    156156          'URL' => make_index_url(
    157157            array(
     
    166166        );
    167167    }
    168  
     168
    169169    $template->assign_var_from_handle('CATEGORIES', 'mainpage_categories');
    170170  }
     
    176176    // current row displayed
    177177    $row_number = 0;
    178    
     178
    179179    foreach ($categories as $category)
    180180    {
     
    186186          'IMAGE_TITLE' => $lang['hint_category'],
    187187          'IMAGE_TS'    => get_icon(@$category['date_last']),
    188          
     188
    189189          'U_IMG_LINK'  => make_index_url(
    190190            array(
    191191              'category' => $category['category'],
     192              'cat_name' => $category['name'],
    192193              )
    193194            ),
     
    202203          )
    203204        );
    204      
     205
    205206      // create a new line ?
    206207      if (++$row_number == $user['nb_image_line'])
  • trunk/include/functions_tag.inc.php

    r1119 r1135  
    5555;';
    5656    $image_ids = array_from_query($images_query, 'image_id');
    57 
     57    if ( empty($image_ids) )
     58    {
     59      return array();
     60    }
    5861    $tags_query.= '
    5962  WHERE image_id IN ('.
     
    6467        ).')';
    6568  }
    66  
     69
    6770  $tags_query.= '
    6871  GROUP BY tag_id
     
    7073
    7174  $result = pwg_query($tags_query);
    72  
     75
    7376  $tags = array();
    7477
     
    9497;';
    9598  $result = pwg_query($query);
    96  
     99
    97100  $tags = array();
    98101
     
    124127    return $tags;
    125128  }
    126  
     129
    127130  $total_count = 0;
    128131
     
    147150  {
    148151    $tags[$k]['level'] = 1;
    149    
     152
    150153    // based on threshold, determine current tag level
    151154    for ($i = $conf['tags_levels'] - 1; $i >= 1; $i--)
     
    178181      // strategy is to list images associated to each tag
    179182      $tag_images = array();
    180      
     183
    181184      foreach ($tag_ids as $tag_id)
    182185      {
  • trunk/picture.php

    r1128 r1135  
    631631        )
    632632      );
    633   $infos['INFO_CREATION_DATE'] = '<a href="'.$url.'">'.$val.'</a>';
     633  $infos['INFO_CREATION_DATE'] = '<a href="'.$url.'" rel="nofollow">'.$val.'</a>';
    634634}
    635635else
     
    648648      )
    649649    );
    650 $infos['INFO_POSTED_DATE'] = '<a href="'.$url.'">'.$val.'</a>';
     650$infos['INFO_POSTED_DATE'] = '<a href="'.$url.'" rel="nofollow">'.$val.'</a>';
    651651
    652652// size in pixels
     
    700700{
    701701  $tags = array();
    702  
     702
    703703  while ($row = mysql_fetch_array($result))
    704704  {
  • trunk/template/yoga/index.tpl

    r1132 r1135  
    109109        </p>
    110110    <ul class="actions">
    111       <li><a href="{U_LOST_PASSWORD}" title="{lang:Forgot your password?}"><img src="{pwg_root}{themeconf:icon_dir}/lost_password.png" class="button" alt="{lang:Forgot your password?}"></a></li>
    112       <li><a href="{U_REGISTER}" title="{lang:Create a new account}"><img src="{pwg_root}{themeconf:icon_dir}/register.png" class="button" alt="{lang:register}"/></a></li>
     111      <li><a href="{U_LOST_PASSWORD}" title="{lang:Forgot your password?}" rel="nofollow"><img src="{pwg_root}{themeconf:icon_dir}/lost_password.png" class="button" alt="{lang:Forgot your password?}"></a></li>
     112      <li><a href="{U_REGISTER}" title="{lang:Create a new account}" rel="nofollow"><img src="{pwg_root}{themeconf:icon_dir}/register.png" class="button" alt="{lang:register}"/></a></li>
    113113    </ul>
    114114
     
    152152      <!-- END mode_normal -->
    153153      <!-- BEGIN mode_posted -->
    154       <li><a href="{mode_posted.URL}" title="{lang:mode_posted_hint}"><img src="{pwg_root}{themeconf:icon_dir}/calendar.png" class="button" alt="{lang:mode_posted_hint}"></a></li>
     154      <li><a href="{mode_posted.URL}" title="{lang:mode_posted_hint}" rel="nofollow"><img src="{pwg_root}{themeconf:icon_dir}/calendar.png" class="button" alt="{lang:mode_posted_hint}"></a></li>
    155155      <!-- END mode_posted -->
    156156      <!-- BEGIN mode_created -->
    157       <li><a href="{mode_created.URL}" title="{lang:mode_created_hint}"><img src="{pwg_root}{themeconf:icon_dir}/calendar_created.png" class="button" alt="{lang:mode_created_hint}"></a></li>
     157      <li><a href="{mode_created.URL}" title="{lang:mode_created_hint}" rel="nofollow"><img src="{pwg_root}{themeconf:icon_dir}/calendar_created.png" class="button" alt="{lang:mode_created_hint}"></a></li>
    158158      <!-- END mode_created -->
    159159    </ul>
Note: See TracChangeset for help on using the changeset viewer.