Changeset 1627 for trunk/picture.php


Ignore:
Timestamp:
Dec 2, 2006, 5:46:15 PM (17 years ago)
Author:
chrisaga
Message:

improve page header : slightly prettier title and

first implementation of meta tags and rel links (see the wiki specs)
some code improvements are still need.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/picture.php

    r1612 r1627  
    458458  );
    459459}
    460 include(PHPWG_ROOT_PATH.'include/page_header.php');
    461460$template->set_filenames(array('picture'=>'picture.tpl'));
    462461
     
    591590
    592591//--------------------------------------------------------- picture information
     592$header_infos = array();        //for html header use
    593593// legend
    594594if (isset($picture['current']['comment'])
     
    600600      'COMMENT_IMG' => nl2br($picture['current']['comment'])
    601601      ));
     602  $header_infos['COMMENT'] = strip_tags($picture['current']['comment']);
    602603}
    603604
     
    616617//       .'">'.$picture['current']['author'].'</a>';
    617618    $picture['current']['author'];
     619  $header_infos['INFO_AUTHOR'] = $picture['current']['author'];
    618620}
    619621else
     
    703705{
    704706  $tags = array();
     707  $tag_names = array();
    705708
    706709  while ($row = mysql_fetch_array($result))
     
    721724      .'">'.$row['name'].'</a>'
    722725      );
     726    array_push( $tag_names, $row['name'] );
    723727  }
    724728
    725729  $infos['INFO_TAGS'] = implode(', ', $tags);
     730  $header_infos['INFO_TAGS'] = implode(', ', $tag_names);
    726731}
    727732else
     
    774779pwg_log('picture', $page['title'], $picture['current']['file']);
    775780
     781include(PHPWG_ROOT_PATH.'include/page_header.php');
    776782$template->parse('picture');
    777783include(PHPWG_ROOT_PATH.'include/page_tail.php');
Note: See TracChangeset for help on using the changeset viewer.