Changeset 1825


Ignore:
Timestamp:
Feb 15, 2007, 10:20:52 PM (14 years ago)
Author:
plg
Message:

Code refactoring.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/picture.php

    r1820 r1825  
    606606      'favorite',
    607607      array(
    608         'FAVORITE_IMG'  => get_root_url().get_themeconf('icon_dir').'/favorite.png',
     608        'FAVORITE_IMG'  =>
     609          get_root_url().get_themeconf('icon_dir').'/favorite.png',
    609610        'FAVORITE_HINT' => $lang['add_favorites_hint'],
    610611        'FAVORITE_ALT'  => $lang['add_favorites_alt'],
    611612        'U_FAVORITE'    => add_url_params(
    612                               $url_self,
    613                               array('action'=>'add_to_favorites')
    614                            ),
     613          $url_self,
     614          array('action'=>'add_to_favorites')
     615          ),
    615616        )
    616617      );
     
    621622      'favorite',
    622623      array(
    623         'FAVORITE_IMG'  => get_root_url().get_themeconf('icon_dir').'/del_favorite.png',
     624        'FAVORITE_IMG'  =>
     625          get_root_url().get_themeconf('icon_dir').'/del_favorite.png',
    624626        'FAVORITE_HINT' => $lang['del_favorites_hint'],
    625627        'FAVORITE_ALT'  => $lang['del_favorites_alt'],
    626628        'U_FAVORITE'    => add_url_params(
    627                               $url_self,
    628                               array('action'=>'remove_from_favorites')
    629                            )
     629          $url_self,
     630          array('action'=>'remove_from_favorites')
     631          ),
    630632        )
    631633      );
     
    658660{
    659661  $infos['INFO_AUTHOR'] =
    660     // FIXME because of search engine partial rewrite, giving the author
    661     // name threw GET is not supported anymore. This feature should come
    662     // back later, with a better design
     662// FIXME because of search engine partial rewrite, giving the author
     663// name threw GET is not supported anymore. This feature should come
     664// back later, with a better design
    663665//     '<a href="'.
    664666//       PHPWG_ROOT_PATH.'category.php?cat=search'.
     
    678680  $val = format_date($picture['current']['date_creation']);
    679681  $url = make_index_url(
    680         array(
    681           'chronology_field'=>'created',
    682           'chronology_style'=>'monthly',
    683           'chronology_view'=>'list',
    684           'chronology_date' => explode('-', $picture['current']['date_creation'])
    685         )
    686       );
    687   $infos['INFO_CREATION_DATE'] = '<a href="'.$url.'" rel="nofollow">'.$val.'</a>';
     682    array(
     683      'chronology_field'=>'created',
     684      'chronology_style'=>'monthly',
     685      'chronology_view'=>'list',
     686      'chronology_date' => explode('-', $picture['current']['date_creation'])
     687      )
     688    );
     689  $infos['INFO_CREATION_DATE'] =
     690    '<a href="'.$url.'" rel="nofollow">'.$val.'</a>';
    688691}
    689692else
     
    695698$val = format_date($picture['current']['date_available'], 'mysql_datetime');
    696699$url = make_index_url(
    697       array(
    698         'chronology_field'=>'posted',
    699         'chronology_style'=>'monthly',
    700         'chronology_view'=>'list',
    701         'chronology_date'=>explode('-', substr($picture['current']['date_available'],0,10))
    702       )
    703     );
     700  array(
     701    'chronology_field'=>'posted',
     702    'chronology_style'=>'monthly',
     703    'chronology_view'=>'list',
     704    'chronology_date' => explode(
     705      '-',
     706      substr($picture['current']['date_available'], 0, 10)
     707      )
     708    )
     709  );
    704710$infos['INFO_POSTED_DATE'] = '<a href="'.$url.'" rel="nofollow">'.$val.'</a>';
    705711
Note: See TracChangeset for help on using the changeset viewer.