Changeset 1539


Ignore:
Timestamp:
Aug 17, 2006, 3:56:14 AM (18 years ago)
Author:
rvelices
Message:

ability to add content to html head elements

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/notification.php

    r1082 r1539  
    5252pwg_query($query);
    5353
     54$feed_url=PHPWG_ROOT_PATH.'feed.php?feed='.$page['feed'];
    5455// +-----------------------------------------------------------------------+
    5556// |                        template initialization                        |
     
    5859$title = l10n('Notification');
    5960$page['body_id'] = 'theNotificationPage';
     61$template->assign_block_vars('head_element',
     62    array(
     63      'CONTENT' => '<meta name="robots" content="noindex,nofollow">'
     64      )
     65  );
     66$template->assign_block_vars('head_element',
     67    array(
     68      'CONTENT' => '<link rel="alternate" type="application/rss+xml" href="'.$feed_url.'">'
     69      )
     70  );
     71
    6072include(PHPWG_ROOT_PATH.'include/page_header.php');
    6173$template->set_filenames(array('notification'=>'notification.tpl'));
     
    6375$template->assign_vars(
    6476  array(
    65     'FEED_URL' => PHPWG_ROOT_PATH.'feed.php?feed='.$page['feed'],
     77    'FEED_URL' => $feed_url,
    6678    'U_HOME' => make_index_url(),
    6779    )
  • trunk/template/yoga/header.tpl

    r1505 r1539  
    3535  <script type="text/javascript" src="{pwg_root}template-common/pngfix.js"></script>
    3636<![endif]-->
     37<!-- BEGIN head_element -->
     38{head_element.CONTENT}
     39<!-- END head_element -->
    3740</head>
    3841
Note: See TracChangeset for help on using the changeset viewer.