daily pastebin goal
17%
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.   $myview = views_get_view( 'og_canales' ); ///< Your views ID or name here
  3.   $display = 'feed'; ///< Your feed name here, string used 2 times
  4.   $myview ->set_display( $display );
  5.   $args = array(arg(1), 'feed'); ///< You can provide view by some arguments
  6.   $myview ->set_arguments($args);
  7.   $url = $myview ->get_url();
  8.   $title = $myview ->display[ $display ]->display_options[ 'title' ];
  9.   print theme( 'feed_icon', check_url( url($url) ), $title );
  10. ?>
  11.  
  12. <link rel="alternate" type="application/rss+xml" title="<? print $title ?>" href="/<? print $url ?>" /
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top