Created
September 15, 2010 08:13
-
-
Save karlosgliberal/580404 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$myview = views_get_view( 'og_canales' ); ///< Your views ID or name here | |
$display = 'feed'; ///< Your feed name here, string used 2 times | |
$myview ->set_display( $display ); | |
$args = array(arg(1), 'feed'); ///< You can provide view by some arguments | |
$myview ->set_arguments($args); | |
$url = $myview ->get_url(); | |
$title = $myview ->display[ $display ]->display_options[ 'title' ]; | |
print theme( 'feed_icon', check_url( url($url) ), $title ); | |
?> | |
<link rel="alternate" type="application/rss+xml" title="<? print $title ?>" href="/<? print $url ?>" / |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment