/[drupal]/contributions/modules/xmlsitemap/xmlsitemap.pages.inc
ViewVC logotype

Diff of /contributions/modules/xmlsitemap/xmlsitemap.pages.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.2.27, Fri Sep 25 20:06:32 2009 UTC revision 1.1.2.28, Sun Nov 1 16:11:34 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: xmlsitemap.pages.inc,v 1.1.2.26 2009/08/24 16:41:08 davereid Exp $  // $Id: xmlsitemap.pages.inc,v 1.1.2.27 2009/09/25 20:06:32 davereid Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 100  function xmlsitemap_file_transfer($sourc Line 100  function xmlsitemap_file_transfer($sourc
100   * Output an XML transformation file for the sitemap XML.   * Output an XML transformation file for the sitemap XML.
101   */   */
102  function xmlsitemap_output_xsl() {  function xmlsitemap_output_xsl() {
   module_load_include('inc', 'xmlsitemap');  
   
103    // Read the XSL content from the file.    // Read the XSL content from the file.
104    $module_path = drupal_get_path('module', 'xmlsitemap');    $module_path = drupal_get_path('module', 'xmlsitemap');
105    $xsl_content = file_get_contents($module_path . '/xsl/xmlsitemap.xsl');    $xsl_content = file_get_contents($module_path . '/xsl/xmlsitemap.xsl');
# Line 109  function xmlsitemap_output_xsl() { Line 107  function xmlsitemap_output_xsl() {
107    // Make sure the strings in the XSL content are translated properly.    // Make sure the strings in the XSL content are translated properly.
108    $replacements = array(    $replacements = array(
109      'Sitemap file' => t('Sitemap file'),      'Sitemap file' => t('Sitemap file'),
110      'Generated by the <a href="http://drupal.org/project/xmlsitemap">Drupal XML sitemap module</a>.' => t('Generated by the <a href="@link-xmlsitemap">Drupal XML sitemap module</a>.', array('@link-xmlsitemap' => 'http://drupal.org/project/xmlsitemap', '@version' => _xmlsitemap_get_version())),      'Generated by the <a href="http://drupal.org/project/xmlsitemap">Drupal XML sitemap module</a>.' => t('Generated by the <a href="@link-xmlsitemap">Drupal XML sitemap module</a>.', array('@link-xmlsitemap' => 'http://drupal.org/project/xmlsitemap')),
111      'Number of sitemaps in this index' => t('Number of sitemaps in this index'),      'Number of sitemaps in this index' => t('Number of sitemaps in this index'),
112      'Click on the table headers to change sorting.' => t('Click on the table headers to change sorting.'),      'Click on the table headers to change sorting.' => t('Click on the table headers to change sorting.'),
113      'Sitemap URL' => t('Sitemap URL'),      'Sitemap URL' => t('Sitemap URL'),

Legend:
Removed from v.1.1.2.27  
changed lines
  Added in v.1.1.2.28

  ViewVC Help
Powered by ViewVC 1.1.2