Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
4fee0bdb
Commit
4fee0bdb
authored
Mar 18, 2005
by
Steven Wittens
Browse files
-
#13550
: Prettier RSS discovery URLs for taxonomy pages.
parent
e17490b6
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/taxonomy.module
View file @
4fee0bdb
...
...
@@ -917,6 +917,9 @@ function taxonomy_term_page($str_tids = '', $depth = 0, $op = 'page') {
drupal_not_found
();
}
// Needed for '+' to show up in RSS discovery URLs
$rss_tids
=
urlencode
(
$str_tids
);
if
(
$tids
)
{
// Build title:
$result
=
db_query
(
'SELECT name FROM {term_data} WHERE tid IN (%s)'
,
implode
(
','
,
$tids
));
...
...
@@ -940,10 +943,10 @@ function taxonomy_term_page($str_tids = '', $depth = 0, $op = 'page') {
$breadcrumbs
=
array_reverse
(
$breadcrumbs
);
menu_set_location
(
$breadcrumbs
);
drupal_set_html_head
(
'<link rel="alternate" type="application/rss+xml" title="RSS - '
.
$title
.
'" href="'
.
url
(
'taxonomy/term/'
.
$
str
_tids
.
'/'
.
$depth
.
'/feed'
)
.
'" />'
);
drupal_set_html_head
(
'<link rel="alternate" type="application/rss+xml" title="RSS - '
.
$title
.
'" href="'
.
url
(
'taxonomy/term/'
.
$
rss
_tids
.
'/'
.
$depth
.
'/feed'
)
.
'" />'
);
$output
=
taxonomy_render_nodes
(
taxonomy_select_nodes
(
$tids
,
$operator
,
$depth
,
TRUE
));
$output
.
=
theme
(
'xml_icon'
,
url
(
"taxonomy/term/
$
str
_tids
/
$depth
/feed"
));
$output
.
=
theme
(
'xml_icon'
,
url
(
"taxonomy/term/
$
rss
_tids
/
$depth
/feed"
));
print
theme
(
'page'
,
$output
);
break
;
...
...
modules/taxonomy/taxonomy.module
View file @
4fee0bdb
...
...
@@ -917,6 +917,9 @@ function taxonomy_term_page($str_tids = '', $depth = 0, $op = 'page') {
drupal_not_found
();
}
// Needed for '+' to show up in RSS discovery URLs
$rss_tids
=
urlencode
(
$str_tids
);
if
(
$tids
)
{
// Build title:
$result
=
db_query
(
'SELECT name FROM {term_data} WHERE tid IN (%s)'
,
implode
(
','
,
$tids
));
...
...
@@ -940,10 +943,10 @@ function taxonomy_term_page($str_tids = '', $depth = 0, $op = 'page') {
$breadcrumbs
=
array_reverse
(
$breadcrumbs
);
menu_set_location
(
$breadcrumbs
);
drupal_set_html_head
(
'<link rel="alternate" type="application/rss+xml" title="RSS - '
.
$title
.
'" href="'
.
url
(
'taxonomy/term/'
.
$
str
_tids
.
'/'
.
$depth
.
'/feed'
)
.
'" />'
);
drupal_set_html_head
(
'<link rel="alternate" type="application/rss+xml" title="RSS - '
.
$title
.
'" href="'
.
url
(
'taxonomy/term/'
.
$
rss
_tids
.
'/'
.
$depth
.
'/feed'
)
.
'" />'
);
$output
=
taxonomy_render_nodes
(
taxonomy_select_nodes
(
$tids
,
$operator
,
$depth
,
TRUE
));
$output
.
=
theme
(
'xml_icon'
,
url
(
"taxonomy/term/
$
str
_tids
/
$depth
/feed"
));
$output
.
=
theme
(
'xml_icon'
,
url
(
"taxonomy/term/
$
rss
_tids
/
$depth
/feed"
));
print
theme
(
'page'
,
$output
);
break
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment