About 881 results: "php link repo:sergiohzlz/reportaprod"
Page 8 of 45
Filter Results
Sources
Languages
Filter Results
Try Search On


















podpress_feed_functions.php in reportaprod https://bitbucket.org/sergiohzlz/reportaprod | 955 lines | PHP
  1. 		if ( TRUE === $is_podpress_feed ) {
  2. 			$data['podcastFeedURL'] = get_feed_link($feed['slug']);
  3. 			//echo '		<title>'.podPress_feedSafeContent(get_bloginfo('blogname')).'</title>'."\n";
  4. 			echo '		<link>'.get_option('siteurl').'</link>'."\n";
  5. 			echo '		<itunes:block>'.podPress_feedSafeContent(strtolower($post->podPressPostSpecific['itunes:block'])).'</itunes:block>'."\n";
  6. 			//echo '<comments>'. get_comments_link() .'</comments>'."\n";
  7. 		echo "\t".'<creator>'. podPress_feedSafeContent($creator). '</creator>'."\n";
  8. 		echo "\t".'<location>'.get_feed_link('playlist.xspf').'</location>'."\n";
  9. 								$result = "\t".'<rights>'.$license['podcast_episode_license_url'].'</rights>'."\n";
  10. 								$result .= "\t".'<link rel="license" type="text/html" href="'.$license['podcast_episode_license_url'].'" />'."\n";
  11. 						$post->podPressMedia[$key]['URI'] = $podPress->convertPodcastFileNameToWebPath($post->ID, $key, $post->podPressMedia[$key]['URI'], 'feed');
  12. 						$result .= '<link rel="enclosure" type="'.$post->podPressMedia[$key]['mimetype'].'" href="'.$post->podPressMedia[$key]['URI'].'" length="'.$post->podPressMedia[$key]['size'].'" />'."\n";
  13. 	// This function removes the enclosure tags off the feed of the enclosures which were not added with podPress
  14. 	// For instance modern WP versions adding an custom field with the name "enclosure" to posts with links to media files in their content. The value of such a custom field consists of the data for enclosure tag attributes.
  15. 							case 'atom' :
  16. 								echo apply_filters('nonpodpress_atom_enclosure', "\t\t".'<link href="' . $enclosure_url . '" rel="enclosure" length="' . trim($enclosure[1]) . '" type="' . $type . '" />' . "\n");


Back to Top