| 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 |
| 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'); |
| 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'), |