Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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 ?>" /
Add Comment
Please, Sign In to add comment