function get_media_for_postid() { $postid = $_POST['post_id']; $page = $_POST['page']; $media_for_this_post = get_media_for_this_post($postid, $page); if (is_array($media_for_this_post) && count($media_for_this_post) > 0) { echo get_media_html($media_for_this_post, "small"); } else { echo "no_items"; } die; }
$html .= ' width="320" height="80">'; $html .= ' <param name="url" value="' . $url . '"/>'; $html .= ' <param name="duration" value="10"/>'; $html .= ' <param name="local" value="false"/>'; $html .= ' <param name="keepAspect" value="true"/>'; $html .= ' <param name="video" value="true"/>'; $html .= ' <param name="seekable" value="true"/>'; $html .= ' <param name="audio" value="true"/>'; $html .= ' <param name="bufferSize" value="200"/>'; $html .= '</applet>'; } } } } } return $html; } // R�cuperer une date au format XML 2.0 function podcast_date_format() { return date('D, d M Y H:i:s O'); } // R�cup�rer une date pour l'affichage html function podcast_date_format_html($lang) { $jour = date('D'); $mois = date('M'); switch ($jour) { case 'Mon': $jour = 'Lundi'; break; case 'Tue': $jour = 'Mardi'; break; case 'Wed': $jour = 'Mercredi'; break; case 'Thu': $jour = 'Jeudi'; break; case 'Fri': $jour = 'Vendredi'; break; case 'Sat': $jour = 'Samedi'; break; case 'Sun': $jour = 'Dimanche'; break; default: $jour = ''; break; } switch ($mois) { case 'Jan': $mois = 'Janvier';