?> "> <label for="dipo-gen-show"><?php _e('Podcast Show', $this->textdomain); ?> </label> <label for="dipo-gen-type"><?php _e('Media Type', $this->textdomain); ?> </label> <div class="clear"></div> <?php \Dicentis\Podcast_Post_Type\Dipo_Podcast_Shows_Model::echo_select_shows(false); \Dicentis\Podcast_Post_Type\Dipo_Podcast_Post_Type::echo_select_mediatypes(); ?> <p><strong><?php _e('Podcast Feed', $this->textdomain); ?> </strong>: <code id="dipo-feed-link">Feed</code></p> </div> <ul class="hide-if-js"> <li><strong><?php _e('You can replace the <code>pod</code> at the end of a link with any file extension you use for you files. Example: <code>mp3</code> or <code>mp4</code>', $this->textdomain); ?> </strong></li> <?php foreach ($show_feeds as $show => $fields) {
?> _duration"><?php _e('Duration', $this->textdomain); ?> </label> <label class="dipo_media_size_label" name="dipo_mediafile<?php echo $mediafile['id']; ?> _size"><?php _e('Filesize', $this->textdomain); ?> </label> </div> <?php echo \Dicentis\Podcast_Post_Type\Dipo_Podcast_Post_Type::get_select_mediatypes($mediafile['id'], $mediafile['mediatype']); ?> <input id="dipo_mediafile<?php echo $mediafile['id']; ?> _duration" type="text" name="dipo_mediafile<?php echo $mediafile['id']; ?> _duration" value="<?php echo $mediafile['duration']; ?> " /> <input id="dipo_mediafile<?php echo $mediafile['id']; ?> _size" type="text" name="dipo_mediafile<?php
public static function get_select_mediatypes($mediafile_num = '1', $selected = 'mp3') { $mediatypes = Dipo_Podcast_Post_Type::get_mediatypes(); // prepare <select> mediatypes $select_mediatypes = "<select id='dipo_mediafile" . $mediafile_num . "_type' name='dipo_mediafile" . $mediafile_num . "_type'>"; foreach ($mediatypes as $file_type) { if ($selected == $file_type['mime_type']) { $select_mediatypes .= "<option value='" . $file_type['mime_type'] . "' selected>" . $file_type['extension'] . "</option>"; } else { $select_mediatypes .= "<option value='" . $file_type['mime_type'] . "'>" . $file_type['extension'] . "</option>"; } } $select_mediatypes .= "</select>"; return $select_mediatypes; }