Changeset 2446


Ignore:
Timestamp:
Jul 22, 2008, 3:29:38 AM (16 years ago)
Author:
rvelices
Message:
  • remove admin :hover css rule (bouncing thumbnails in caddie FF)
  • move some code from notification.php to notification.tpl
  • remove some unused variables from picture.php
  • make random.php work even if top_number is a lot (some issues solved with url length)
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/template/yoga/theme/admin/theme.css

    r2438 r2446  
    6565  border-radius: 4px 4px;       /* round corners with CSS3 compliant browsers */
    6666}
    67 .content UL.thumbnails SPAN.wrap2:hover  {
    68   margin: 0 2px; width: auto; padding: 0; text-indent: 0;
    69   list-style: none; text-align: center; float: left; }
    70 
    7167label { cursor:pointer }
    7268.virtual_cat { background: #222 !important; }
  • trunk/notification.php

    r2299 r2446  
    6969$page['meta_robots']=array('noindex'=>1, 'nofollow'=>1);
    7070
    71 $template->append('head_elements',
    72     '<link rel="alternate" type="application/rss+xml" href="'.$feed_url.'">'
    73   );
    7471
    7572$template->set_filenames(array('notification'=>'notification.tpl'));
     
    8683// +-----------------------------------------------------------------------+
    8784include(PHPWG_ROOT_PATH.'include/page_header.php');
    88 $template->parse('notification');
     85$template->pparse('notification');
    8986include(PHPWG_ROOT_PATH.'include/page_tail.php');
    9087
  • trunk/picture.php

    r2430 r2446  
    4343{
    4444  $query = '
    45 SELECT id, file, level 
     45SELECT id, file, level
    4646  FROM '.IMAGES_TABLE.'
    4747  WHERE ';
     
    6969  {// the image can still be non accessible (filter/cat perm) and/or not in the set
    7070    global $filter;
    71     if ( !empty($filter['visible_images']) and 
     71    if ( !empty($filter['visible_images']) and
    7272      !in_array($page['image_id'], explode(',',$filter['visible_images']) ) )
    7373    {
     
    780780
    781781//--------------------------------------------------------- picture information
    782 $header_infos = array(); //for html header use
    783782// legend
    784783if (isset($picture['current']['comment'])
     
    790789          $picture['current']['comment'])
    791790      );
    792   $header_infos['COMMENT'] = strip_tags($picture['current']['comment']);
    793791}
    794792
     
    807805//       .'">'.$picture['current']['author'].'</a>';
    808806    $picture['current']['author'];
    809   $header_infos['INFO_AUTHOR'] = $picture['current']['author'];
    810807}
    811808
  • trunk/random.php

    r2342 r2446  
    5353  ).'
    5454  ORDER BY RAND(NOW())
    55   LIMIT 0, '.$conf['top_number'].'
     55  LIMIT 0, '.min(50, $conf['top_number'],$user['nb_image_page']).'
    5656;';
    5757
  • trunk/template/yoga/notification.tpl

    r2352 r2446  
    11{* $Id$ *}
     2{html_head}
     3<link rel="alternate" type="application/rss+xml" title="{'Image only RSS feed'|@translate}" href="{$U_FEED_IMAGE_ONLY}">
     4<link rel="alternate" type="application/rss+xml" title="{'Complete RSS feed'|@translate}" href="{$U_FEED}">
     5{/html_head}
    26<div id="content" class="content">
    37
Note: See TracChangeset for help on using the changeset viewer.