/** @see WP_Widget::widget */ function widget($args, $instance) { global $podPress, $wp_version; extract($args); $title = apply_filters('widget_title', $instance['title']); $feed_icon = '<img src="' . get_option('siteurl') . '/' . WPINC . '/images/rss.png" class="podpress_feed_icon" alt="" />'; echo $before_widget; echo $before_title . $title . $after_title; echo '<ul class="podpress_feed_buttons_list">' . "\n"; switch ($instance['buttons-or-text']) { default: case 'buttons': if ($instance['itunes']) { // for more info: http://www.apple.com/itunes/podcasts/specs.html#linking if ($instance['iprot']) { echo ' <li><a href="itpc://' . preg_replace('/^https?:\\/\\//i', '', $podPress->settings['podcastFeedURL']) . '"'; } else { echo ' <li><a href="http://www.itunes.com/podcast?id=' . $podPress->settings['iTunes']['FeedID'] . '"'; } if (FALSE == empty($instance['itunes_buttonurl'])) { echo ' title="' . __('Subscribe to the Podcast Feed with iTunes', 'podpress') . '"><img src="' . $instance['itunes_buttonurl'] . '" class="podpress_feed_buttons" alt="' . __('Subscribe with iTunes', 'podpress') . '" /></a></li>' . "\n"; } else { echo ' title="' . __('Subscribe to the Podcast Feed with iTunes', 'podpress') . '"><img src="' . podPress_url() . 'images/itunes.png" class="podpress_feed_buttons" alt="' . __('Subscribe with iTunes', 'podpress') . '" /></a></li>' . "\n"; } } // podPress feeds: if (is_array($instance['podpressfeeds']) and FALSE == empty($instance['podpressfeeds'])) { foreach ($instance['podpressfeeds'] as $feed_slug => $feed_options) { if ('yes' === $feed_options['use'] and is_array($podPress->settings['podpress_feeds'])) { foreach ($podPress->settings['podpress_feeds'] as $feed) { if ($feed_slug === $feed['slug'] and TRUE === $feed['use']) { if (FALSE == empty($feed_options['altfeedurl'])) { $feed_link = $feed_options['altfeedurl']; } else { $feed_link = get_feed_link($feed_slug); } if (FALSE == empty($feed['slug'])) { $descr = stripslashes($feed['descr']); } else { $descr = __('Subscribe to this Feed with any feed reader', 'podpress'); } if (FALSE == empty($feed_options['buttonurl'])) { echo ' <li><a href="' . $feed_link . '" title="' . esc_attr($descr) . '"><img src="' . $feed_options['buttonurl'] . '" class="podpress_feed_buttons" alt="' . esc_attr(stripslashes($feed['name'])) . '" /></a></li>' . "\n"; } else { echo ' <li><a href="' . $feed_link . '" title="' . esc_attr($descr) . '">' . $feed_icon . ' ' . stripslashes($feed['name']) . '</a></li>' . "\n"; } } } } } } if ($instance['posts']) { if (FALSE == empty($instance['posts_altfeedurl'])) { $feedlink = $instance['posts_altfeedurl']; } else { $feedlink = get_bloginfo('rss2_url'); } if (FALSE == empty($instance['posts_buttonurl'])) { echo ' <li><a href="' . $feedlink . '" title="' . __('Subscribe to the main RSS Feed with any feed reader', 'podpress') . '"><img src="' . $instance['posts_buttonurl'] . '" class="podpress_feed_buttons" alt="' . __('Subscribe to the RSS Feed', 'podpress') . '" /></a></li>' . "\n"; } else { echo ' <li><a href="' . $feedlink . '" title="' . __('Subscribe to the main RSS Feed with any feed reader', 'podpress') . '"><img src="' . podPress_url() . 'images/feed_button-rss-blog.png" class="podpress_feed_buttons" alt="' . __('Subscribe to the RSS Feed', 'podpress') . '" /></a></li>' . "\n"; } } if ($instance['comments']) { if (FALSE == empty($instance['comments_altfeedurl'])) { $feedlink = $instance['comments_altfeedurl']; } else { $feedlink = get_bloginfo('comments_rss2_url'); } if (FALSE == empty($instance['comments_buttonurl'])) { echo ' <li><a href="' . $feedlink . '" title="' . __('Subscribe to the comments RSS Feed with any feed reader', 'podpress') . '"><img src="' . $instance['comments_buttonurl'] . '" class="podpress_feed_buttons" alt="' . __('Subscribe to the comments RSS Feed', 'podpress') . '" /></a></li>' . "\n"; } else { echo ' <li><a href="' . $feedlink . '" title="' . __('Subscribe to the comments RSS Feed with any feed reader', 'podpress') . '"><img src="' . podPress_url() . 'images/feed_button-rss-comments.png" class="podpress_feed_buttons" alt="' . __('Subscribe to the comments RSS Feed', 'podpress') . '" /></a></li>' . "\n"; } } if ($instance['entries-atom']) { if (FALSE == empty($instance['entries-atom_altfeedurl'])) { $feedlink = $instance['entries-atom_altfeedurl']; } else { $feedlink = get_bloginfo('atom_url'); } if (FALSE == empty($instance['entries-atom_buttonurl'])) { echo ' <li><a href="' . $feedlink . '" title="' . __('Subscribe to the main ATOM Feed with any feed reader', 'podpress') . '"><img src="' . $instance['entries-atom_buttonurl'] . '" class="podpress_feed_buttons" alt="' . __('Subscribe to the ATOM Feed', 'podpress') . '" /></a></li>' . "\n"; } else { echo ' <li><a href="' . $feedlink . '" title="' . __('Subscribe to the main ATOM Feed with any feed reader', 'podpress') . '"><img src="' . podPress_url() . 'images/feed_button-atom-blog.png" class="podpress_feed_buttons" alt="' . __('Subscribe to the ATOM Feed', 'podpress') . '" /></a></li>' . "\n"; } } if ($instance['comments-atom']) { if (FALSE === empty($instance['comments-atom_altfeedurl'])) { $feedlink = $instance['comments-atom_altfeedurl']; } else { $feedlink = get_bloginfo('comments_atom_url'); } if (FALSE == empty($instance['comments-atom_buttonurl'])) { echo ' <li><a href="' . $feedlink . '" title="' . __('Subscribe to the comments ATOM Feed with any feed reader', 'podpress') . '"><img src="' . $instance['comments-atom_buttonurl'] . '" class="podpress_feed_buttons" alt="' . __('Subscribe to the comments ATOM Feed', 'podpress') . '" /></a></li>' . "\n"; } else { echo ' <li><a href="' . $feedlink . '" title="' . __('Subscribe to the comments ATOM Feed with any feed reader', 'podpress') . '"><img src="' . podPress_url() . 'images/feed_button-atom-comments.png" class="podpress_feed_buttons" alt="' . __('Subscribe to the comments ATOM Feed', 'podpress') . '" /></a></li>' . "\n"; } } if (is_array($instance['catcast']) and FALSE == empty($instance['catcast'])) { foreach ($instance['catcast'] as $cat_id => $catcast_options) { if ('yes' === $catcast_options['use']) { if (FALSE == empty($catcast_options['altfeedurl'])) { $cat_feed_link = $catcast_options['altfeedurl']; } else { if (TRUE == version_compare($wp_version, '2.9.3', '>')) { $cat_feed_link = get_term_feed_link($cat_id); } else { $cat_feed_link = get_category_feed_link($cat_id); } } if (FALSE == empty($catcast_options['buttonurl'])) { echo ' <li><a href="' . $cat_feed_link . '" title="' . __('Subscribe to this Category RSS Feed with any feed reader', 'podpress') . '"><img src="' . $catcast_options['buttonurl'] . '" class="podpress_feed_buttons" alt="' . esc_attr(sprintf(__('Category "%1$s" RSS Feed', 'podpress'), get_cat_name($cat_id))) . '" /></a></li>' . "\n"; } else { echo ' <li><a href="' . $cat_feed_link . '" title="' . __('Subscribe to this Category RSS Feed with any feed reader', 'podpress') . '">' . $feed_icon . ' ' . sprintf(__('Category "%1$s" RSS Feed', 'podpress'), get_cat_name($cat_id)) . '</a></li>' . "\n"; } } } } break; case 'text': if ($instance['itunes']) { // for more info: http://www.apple.com/itunes/podcasts/specs.html#linking if ($instance['iprot']) { echo ' <li><a href="itpc://' . preg_replace('/^https?:\\/\\//i', '', $podPress->settings['podcastFeedURL']) . '"'; } else { echo ' <li><a href="http://www.itunes.com/podcast?id=' . $podPress->settings['iTunes']['FeedID'] . '"'; } echo ' title="' . __('Subscribe to the Podcast Feed with iTunes', 'podpress') . '">' . $feed_icon . ' ' . __('Subscribe with iTunes', 'podpress') . '</a></li>' . "\n"; } // podPress feeds: if (is_array($instance['podpressfeeds']) and FALSE == empty($instance['podpressfeeds'])) { foreach ($instance['podpressfeeds'] as $feed_slug => $feed_options) { if ('yes' === $feed_options['use'] and is_array($podPress->settings['podpress_feeds'])) { foreach ($podPress->settings['podpress_feeds'] as $feed) { if ($feed_slug === $feed['slug'] and TRUE === $feed['use']) { if (FALSE == empty($feed_options['altfeedurl'])) { $feed_link = $feed_options['altfeedurl']; } else { $feed_link = get_feed_link($feed_slug); } if (FALSE == empty($feed['slug'])) { $descr = stripslashes($feed['descr']); } else { $descr = __('Subscribe to this Feed with any feed reader', 'podpress'); } echo ' <li><a href="' . $feed_link . '" title="' . esc_attr($descr) . '">' . $feed_icon . ' ' . stripslashes($feed['name']) . '</a></li>' . "\n"; } } } } } if ($instance['posts']) { if (FALSE == empty($instance['posts_altfeedurl'])) { $feedlink = $instance['posts_altfeedurl']; } else { $feedlink = get_bloginfo('rss2_url'); } echo ' <li><a href="' . $feedlink . '" title="' . __('Subscribe to the main RSS Feed with any feed reader', 'podpress') . '">' . $feed_icon . ' ' . __('Entries RSS Feed', 'podpress') . '</a></li>' . "\n"; } if ($instance['comments']) { if (FALSE == empty($instance['comments_altfeedurl'])) { $feedlink = $instance['comments_altfeedurl']; } else { $feedlink = get_bloginfo('comments_rss2_url'); } echo ' <li><a href="' . $feedlink . '" title="' . __('Subscribe to the comments RSS Feed with any feed reader', 'podpress') . '">' . $feed_icon . ' ' . __('Comments RSS Feed', 'podpress') . '</a></li>' . "\n"; } if ($instance['entries-atom']) { if (FALSE == empty($instance['entries-atom_altfeedurl'])) { $feedlink = $instance['entries-atom_altfeedurl']; } else { $feedlink = get_bloginfo('atom_url'); } echo ' <li><a href="' . $feedlink . '" title="' . __('Subscribe to the main ATOM Feed with any feed reader', 'podpress') . '">' . $feed_icon . ' ' . __('Entries ATOM Feed', 'podpress') . '</a></li>' . "\n"; } if ($instance['comments-atom']) { if (FALSE === empty($instance['comments-atom_altfeedurl'])) { $feedlink = $instance['comments-atom_altfeedurl']; } else { $feedlink = get_bloginfo('comments_atom_url'); } echo ' <li><a href="' . $feedlink . '" title="' . __('Subscribe to the comments ATOM Feed with any feed reader', 'podpress') . '">' . $feed_icon . ' ' . __('Comments ATOM Feed', 'podpress') . '</a></li>' . "\n"; } if (is_array($instance['catcast']) and FALSE == empty($instance['catcast'])) { foreach ($instance['catcast'] as $cat_id => $catcast_options) { if ('yes' === $catcast_options['use']) { if (FALSE == empty($catcast_options['altfeedurl'])) { $cat_feed_link = $catcast_options['altfeedurl']; } else { if (TRUE == version_compare($wp_version, '2.9.3', '>')) { $cat_feed_link = get_term_feed_link($cat_id); } else { $cat_feed_link = get_category_feed_link($cat_id); } } echo ' <li><a href="' . $cat_feed_link . '" title="' . __('Subscribe to this Category RSS Feed with any feed reader', 'podpress') . '">' . $feed_icon . ' ' . sprintf(__('Category "%1$s" RSS Feed', 'podpress'), get_cat_name($cat_id)) . '</a></li>' . "\n"; } } } break; } echo "</ul>\n"; echo $after_widget; }
function podPress_webContent($podPressTemplateData) { global $podPress, $post; $divider = ' | '; $podPressPlayBlockScripts = ''; $podPressContentAll = ''; if (TRUE === defined('PODPRESS_SHOW_SECTION_MARKERS') and TRUE === constant('PODPRESS_SHOW_SECTION_MARKERS')) { $podpress_section_begin = "<!-- Begin: podPress -->\n"; $podpress_section_end = "\n<!-- End: podPress -->\n"; $podpress_downloadlinks_section_begin = "<!-- Begin: podPress download link line -->\n"; $podpress_downloadlinks_section_end = "\n<!-- End: podPress download link line -->\n"; } else { $podpress_section_begin = ''; $podpress_section_end = ''; $podpress_downloadlinks_section_begin = ''; $podpress_downloadlinks_section_end = ''; } if (TRUE == isset($podPress->settings['do_not_use_the_target_attribute']) and TRUE === $podPress->settings['do_not_use_the_target_attribute']) { $target_attribute = ''; } else { $target_attribute = ' target="new"'; } foreach ($podPressTemplateData['files'] as $key => $val) { $podPressContent = ''; $podPressDownloadlinks = ''; $GLOBALS['podPressPlayer']++; if (empty($val['dimensionW'])) { $val['dimensionW'] = "''"; } if (empty($val['dimensionH'])) { $val['dimensionH'] = "''"; } $dividerNeeded = false; $podPressEpisodeTitle = stripslashes(htmlspecialchars_decode(__($val['title'], 'podpress'))); // if the title is not given by the author then it will be a defaultTitle (see podPress_defaultTitles) if ($val['enablePlayer']) { if ($podPressContent != '') { $podPressContent .= "<br />\n"; } if ($podPress->settings['contentAutoDisplayPlayer']) { $style = ' style="display:block;" '; $style_wrap_1pixelout = ' display:block;'; } else { $style = ' style="display:none;" '; $style_wrap_1pixelout = ' display:none;'; } if ('audio_mp3' == $val['type'] and TRUE == isset($podPress->settings['player']['listenWrapper']) and TRUE == $podPress->settings['player']['listenWrapper'] and FALSE == $podPress->settings['enablePodangoIntegration'] and TRUE == isset($podPress->settings['mp3Player']) and '1pixelout' == $podPress->settings['mp3Player']) { $podPressContent .= "\n" . '<div class="podpress_listenwrapper_container" id="podpress_lwc_' . $GLOBALS['podPressPlayer'] . '" style="background-image:url(' . PODPRESS_URL . '/images/listen_wrapper.gif);' . $style_wrap_1pixelout . '"><div class="podpress_mp3_borderleft"></div><div class="podpress_1pixelout_container"><div id="podPressPlayerSpace_' . $GLOBALS['podPressPlayer'] . '"><!-- podPress --></div></div></div>' . "\n"; } elseif ('audio_mp3' == $val['type'] and (False == isset($podPress->settings['player']['listenWrapper']) or FALSE == $podPress->settings['player']['listenWrapper']) and FALSE == $podPress->settings['enablePodangoIntegration'] and TRUE == isset($podPress->settings['mp3Player']) and '1pixelout' == $podPress->settings['mp3Player']) { $podPressContent .= "\n" . '<div class="podpress_playerspace podpress_mp3player"' . $style . '><div id="podPressPlayerSpace_' . $GLOBALS['podPressPlayer'] . '"><!-- podPress --></div></div>' . "\n"; } else { $podPressContent .= "\n" . '<div class="podpress_playerspace"><div id="podPressPlayerSpace_' . $GLOBALS['podPressPlayer'] . '"' . $style . '><!-- podPress --></div></div>' . "\n"; } } $podPressDownloadlinks .= $podpress_downloadlinks_section_begin . '<div class="podPress_downloadlinks podPress_downloadlinks_' . $val['type'] . '">'; if (isset($val['image'])) { if ($val['enableDownload'] && !empty($val['URI'])) { if (0 === strpos($val['type'], 'embed_')) { $podPressDownloadlinks .= '<a href="' . $val['URI'] . '"' . $target_attribute . ' title="' . attribute_escape(sprintf(__('Direct Link to %1$s', 'podpress'), $podPressEpisodeTitle)) . '" class="podpress_downloadimglink podpress_downloadimglink_' . $val['type'] . '">'; } else { $podPressDownloadlinks .= '<a href="' . $val['URI'] . '"' . $target_attribute . ' title="' . attribute_escape(sprintf(__('Download: %1$s', 'podpress'), $podPressEpisodeTitle)) . '" class="podpress_downloadimglink podpress_downloadimglink_' . $val['type'] . '">'; } } $podPressDownloadlinks .= '<img src="' . podPress_url() . 'images/' . $val['image'] . '" class="podPress_imgicon podpress_imgicon_' . $val['type'] . '" alt="" />'; if ($val['enableDownload'] && !empty($val['URI'])) { $podPressDownloadlinks .= '</a>'; } if (!$podPressTemplateData['showDownloadText'] == 'enabled') { $val['enableDownload'] = false; } } // ntm: this is not in use unless the option at the podPress general settings page will uncommented if (TRUE == isset($val['enableTorrentDownload']) and TRUE === $val['enableTorrentDownload']) { $podPressDownloadlinks .= '<a href="' . $val['URI_torrent'] . '"' . $target_attribute . ' title="' . attribute_escape(sprintf(__('Download: %1$s - .torrent file', 'podpress'), $podPressEpisodeTitle)) . '">'; if (strstr($val['image'], '_button')) { $torrentimg = 'misc_torrent_button.png'; } else { $torrentimg = 'misc_torrent_icon.png'; } $podPressDownloadlinks .= '<img src="' . podPress_url() . 'images/' . $torrentimg . '" class="podPress_imgicon" alt="" />'; $podPressDownloadlinks .= '</a>'; } $podPressDownloadlinks .= ' '; $podPressDownloadlinks .= '<span class="podpress_mediafile_title podpress_mediafile_title_' . $val['type'] . '">' . $podPressEpisodeTitle . '</span>'; if (isset($podPressTemplateData['showDuration']) and 'disabled' != $podPressTemplateData['showDuration'] and FALSE == empty($val['duration'])) { if (empty($podPressTemplateData['showDuration']) or 'enabled' == $podPressTemplateData['showDuration']) { $podPressTemplateData['showDuration'] = 'colon'; } if (isset($podPress->settings['contentDurationdivider'])) { $podPressDownloadlinks .= ' <span class="podpress_mediafile_dursize podpress_mediafile_dursize_' . $val['type'] . '">[ ' . $podPress->millisecondstostring($podPress->strtomilliseconds($val['duration']), 'h:m:s:ms', $podPress->settings['contentDurationdivider']); } else { $podPressDownloadlinks .= ' <span class="podpress_mediafile_dursize podpress_mediafile_dursize_' . $val['type'] . '">[ ' . $podPress->millisecondstostring($podPress->strtomilliseconds($val['duration']), 'h:m:s:ms'); } $durationfilesizeseparator = ' | '; } else { $durationfilesizeseparator = ' <span class="podpress_mediafile_dursize podpress_mediafile_dursize_' . $val['type'] . '">[ '; } if ('enabled' == $podPressTemplateData['showfilesize'] and FALSE == empty($val['size']) and FALSE === stristr($val['type'], 'embed_')) { $size_mb = round($val['size'] / 1048576, 2); if (0.01 > $size_mb) { $size_mb = 0.01; } $podPressDownloadlinks .= $durationfilesizeseparator . $size_mb . ' ' . __('MB', 'podpress') . ' ]</span>'; } else { if (' <span class="podpress_mediafile_dursize podpress_mediafile_dursize_' . $val['type'] . '">[ ' != $durationfilesizeseparator) { $podPressDownloadlinks .= ' ]</span>'; } } if ($val['enablePlayer'] || $val['enablePopup'] || $val['enableDownload'] || !$val['authorized']) { $podPressDownloadlinks .= ' '; } if (!$val['authorized']) { $podPressDownloadlinks .= ' <a href="' . get_option('siteurl') . '/wp-login.php" class="podpress_protected_link">' . __('(Protected Content)', 'podpress') . '</a><br/>' . "\n"; } else { if ($val['enablePlayer']) { if ($dividerNeeded) { $hideplayerplaynow_divider = $divider; } else { $hideplayerplaynow_divider = ''; } if (TRUE == isset($val['enableTorrentDownload']) and TRUE == $val['enableTorrentDownload'] or TRUE == isset($val['enableTorrentDownload']) and 'on' == $val['disablePreview']) { $previewVal = 'nopreview'; } else { $previewVal = 'false'; } if ($val['enablePlaylink']) { if ($podPress->settings['contentAutoDisplayPlayer']) { $podPressDownloadlinks .= '<a href="#podPressPlayerSpace_' . $GLOBALS['podPressPlayer'] . '" class="podpress_playlink podpress_playlink_' . $val['type'] . '" onclick="javascript:podPressShowHidePlayer(\'' . $GLOBALS['podPressPlayer'] . '\', \'' . js_escape($val['URI_Player']) . '\', ' . strval(intval($val['dimensionW'])) . ', ' . strval(intval($val['dimensionH'])) . ', \'' . $previewVal . '\', \'' . $val['previewImage'] . '\', \'' . js_escape($val['title']) . '\', \'' . js_escape($val['artist']) . '\'); return false;"><span id="podPressPlayerSpace_' . $GLOBALS['podPressPlayer'] . '_PlayLink" class="podPress_playerspace_playlink">' . $hideplayerplaynow_divider . __('Play Now', 'podpress') . '</span></a>'; } else { $podPressDownloadlinks .= '<a href="#podPressPlayerSpace_' . $GLOBALS['podPressPlayer'] . '" class="podpress_playlink podpress_playlink_' . $val['type'] . '" onclick="javascript:podPressShowHidePlayer(\'' . $GLOBALS['podPressPlayer'] . '\', \'' . js_escape($val['URI_Player']) . '\', ' . strval(intval($val['dimensionW'])) . ', ' . strval(intval($val['dimensionH'])) . ', \'force\', \'' . $val['previewImage'] . '\', \'' . js_escape($val['title']) . '\', \'' . js_escape($val['artist']) . '\'); return false;"><span id="podPressPlayerSpace_' . $GLOBALS['podPressPlayer'] . '_PlayLink" class="podPress_playerspace_playlink">' . $hideplayerplaynow_divider . __('Play Now', 'podpress') . '</span></a>'; } $dividerNeeded = true; } else { $podPressDownloadlinks .= '<span id="podPressPlayerSpace_' . $GLOBALS['podPressPlayer'] . '_PlayLink" style="display:none">' . $hideplayerplaynow_divider . __('Play Now', 'podpress') . '</span>'; $dividerNeeded = false; } $podPressDownloadlinks .= '<input type="hidden" id="podPressPlayerSpace_' . $GLOBALS['podPressPlayer'] . '_OrigURL" value="' . attribute_escape($podPress->convertPodcastFileNameToValidWebPath($val['URI_orig'])) . '" />'; if ($podPress->settings['contentAutoDisplayPlayer']) { $podPressPlayBlockScripts .= 'podPressShowHidePlayer(\'' . $GLOBALS['podPressPlayer'] . '\', \'' . js_escape($val['URI_Player']) . '\', ' . strval(intval($val['dimensionW'])) . ', ' . strval(intval($val['dimensionH'])) . ', \'' . $previewVal . '\', \'' . js_escape($val['previewImage']) . '\', \'' . js_escape($val['title']) . '\', \'' . js_escape($val['artist']) . '\');'; } } if ($val['enablePopup'] and FALSE === strpos($val['type'], 'ebook_')) { if ($dividerNeeded) { $podPressDownloadlinks .= $divider; } $podPressDownloadlinks .= '<a href="#podPressPlayerSpace_' . $GLOBALS['podPressPlayer'] . '" class="podpress_playinpopup podpress_playinpopup_' . $val['type'] . '" onclick="javascript:podPressPopupPlayer(\'' . $GLOBALS['podPressPlayer'] . '\', \'' . js_escape($val['URI_Player']) . '\', ' . strval(intval($val['dimensionW'])) . ', ' . strval(intval($val['dimensionH'])) . ', \'' . js_escape(get_bloginfo('name')) . '\', \'' . $post->ID . '\', \'' . js_escape($val['title']) . '\', \'' . js_escape($val['artist']) . '\'); return false;">' . __('Play in Popup', 'podpress') . '</a>'; $dividerNeeded = true; } if ($val['enableDownload'] && $podPressTemplateData['showDownloadText'] == 'enabled') { if ($dividerNeeded) { $podPressDownloadlinks .= $divider; } if (0 === strpos($val['type'], 'embed_')) { $podPressDownloadlinks .= '<a href="' . $val['URI'] . '"' . $target_attribute . ' class="podpress_downloadlink podpress_downloadlink_' . $val['type'] . '">' . __('Direct Link', 'podpress') . '</a>'; $val['stats'] = false; } else { $podPressDownloadlinks .= '<a href="' . $val['URI'] . '"' . $target_attribute . ' class="podpress_downloadlink podpress_downloadlink_' . $val['type'] . '">' . __('Download', 'podpress') . '</a>'; if ($val['stats'] && $podPressTemplateData['showDownloadStats'] == 'enabled') { $podPressDownloadlinks .= ' (' . $val['stats']['total'] . ')'; $val['stats'] = false; } } $dividerNeeded = true; } if ($val['stats'] && $podPressTemplateData['showDownloadStats'] == 'enabled') { if ($dividerNeeded) { $podPressDownloadlinks .= $divider; } $podPressDownloadlinks .= ' <span class="podpress_downloadnr podpress_downloadnr_' . $val['type'] . '">' . __('Downloads', 'podpress') . ' ' . $val['stats']['total'] . '</span>'; $dividerNeeded = true; } } $podPressDownloadlinks .= '</div>' . $podpress_downloadlinks_section_end; $podPressContentAll .= $podPressContent . apply_filters('podpress_downloadlinks', $podPressDownloadlinks); } if ($podPress->settings['contentAutoDisplayPlayer']) { if (TRUE === defined('PODPRESS_ADD_CDATA_SECTION_TO_POSTSCRIPT') and TRUE === constant('PODPRESS_ADD_CDATA_SECTION_TO_POSTSCRIPT')) { $cdata_section_begin = '/* <![CDATA[ */ '; $cdata_section_end = ' /* ]]> */'; } else { $cdata_section_begin = ''; $cdata_section_end = ''; } $podPressPlayBlockScripts = apply_filters('podpress_post_scriptblock', '<script type="text/javascript">' . $cdata_section_begin . $podPressPlayBlockScripts . $cdata_section_end . '</script>'); } return apply_filters('podpress_post_content', $podpress_section_begin . '<div class="podPress_content">' . $podPressContentAll . '</div>' . "\n" . $podPressPlayBlockScripts . $podpress_section_end); }
function post_form_wp25plus($entryType = 'post') { global $wp_version; $blog_charset = get_bloginfo('charset'); if (TRUE == version_compare($wp_version, '2.7', '>=') and TRUE == version_compare($wp_version, '2.8', '<')) { // for WP 2.7.x (because the plugins_url() worked differently in WP 2.7.x) $plugins_url = plugins_url('podpress', __FILE__); } else { $plugins_url = plugins_url('', __FILE__); } if (!is_object($GLOBALS['post']) && isset($GLOBALS['post_cache'][$GLOBALS['post']])) { $post = $GLOBALS['post_cache'][$GLOBALS['post']]; } else { $post = $GLOBALS['post']; } $post = $this->addPostData($post, true); if ($_GET['action'] == 'edit') { $post_id = $_GET['post']; if (!is_array($post->podPressMedia)) { $post->podPressMedia = array(); } } $files = array(); $mediaFilePath = stripslashes($this->settings['mediaFilePath']); if (@is_dir($mediaFilePath)) { $dh = opendir($mediaFilePath); while (false !== ($filename = readdir($dh))) { if ($filename != '.' && $filename != '..' && !is_dir($mediaFilePath . '/' . $filename) && !in_array(podPress_getFileExt($filename), array('php', 'html'))) { $files[] = $filename; } } natcasesort($files); } if ($this->settings['enablePodangoIntegration']) { if (!empty($post->podPressPostSpecific['PodangoEpisodeID'])) { if (empty($post->podPressPostSpecific['PodangoMediaFileID'])) { $x = $this->podangoapi->GetEpisode($post->podPressPostSpecific['PodangoEpisodeID']); $post->podPressPostSpecific['PodangoMediaFileID'] = $x['MediaFileId']; unset($x); } $podangoMediaFiles = $this->podangoapi->GetMediaFile($post->podPressPostSpecific['PodangoMediaFileID']); } else { $podangoMediaFiles = $this->podangoapi->GetMediaFiles(); } } if (FALSE == isset($this->settings['videoDefaultPlayerSize_x'])) { $this->settings['videoDefaultPlayerSize_x'] = 320; } if (FALSE == isset($this->settings['videoDefaultPlayerSize_y'])) { $this->settings['videoDefaultPlayerSize_y'] = 240; } echo '<input type="hidden" id="podpress_mediadefault_dimensionW" value="' . $this->settings['videoDefaultPlayerSize_x'] . '" />' . "\n"; echo '<input type="hidden" id="podpress_mediadefault_dimensionH" value="' . $this->settings['videoDefaultPlayerSize_y'] . '" />' . "\n"; echo '<script type="text/javascript">' . "\n"; echo "var podPressMaxMediaFiles = " . $this->settings['maxMediaFiles'] . ";\n"; $newMediaDefaults = array(); echo "var newMediaDefaults = new Array();\n"; $newMediaDefaults['URI'] = ''; echo "newMediaDefaults['URI'] = '" . $newMediaDefaults['URI'] . "';\n"; $newMediaDefaults['title'] = ''; echo "newMediaDefaults['title'] = '" . $newMediaDefaults['title'] . "';\n"; $newMediaDefaults['type'] = 'audio_mp3'; echo "newMediaDefaults['type'] = '" . $newMediaDefaults['type'] . "';\n"; $newMediaDefaults['size'] = ''; echo "newMediaDefaults['size'] = '" . $newMediaDefaults['size'] . "';\n"; $newMediaDefaults['duration'] = ''; echo "newMediaDefaults['duration'] = '" . $newMediaDefaults['duration'] . "';\n"; $newMediaDefaults['dimensionW'] = strval($this->settings['videoDefaultPlayerSize_x']); echo "newMediaDefaults['dimensionW'] = '" . $newMediaDefaults['dimensionW'] . "';\n"; $newMediaDefaults['dimensionH'] = strval($this->settings['videoDefaultPlayerSize_y']); echo "newMediaDefaults['dimensionH'] = '" . $newMediaDefaults['dimensionH'] . "';\n"; $newMediaDefaults['previewImage'] = podPress_url() . 'images/vpreview_center.png'; echo "newMediaDefaults['previewImage'] = '" . $newMediaDefaults['previewImage'] . "';\n"; $newMediaDefaults['rss'] = 'false'; echo "newMediaDefaults['rss'] = " . $newMediaDefaults['rss'] . ";\n"; $newMediaDefaults['atom'] = 'true'; echo "newMediaDefaults['atom'] = " . $newMediaDefaults['atom'] . ";\n"; $newMediaDefaults['feedonly'] = 'true'; echo "newMediaDefaults['feedonly'] = " . $newMediaDefaults['feedonly'] . ";\n"; $newMediaDefaults['disablePlayer'] = 'false'; echo "newMediaDefaults['disablePlayer'] = " . $newMediaDefaults['disablePlayer'] . ";\n"; $newMediaDefaults['disablePreview'] = 'false'; echo "newMediaDefaults['disablePreview'] = " . $newMediaDefaults['disablePreview'] . ";\n"; $newMediaDefaults['content_level'] = 'free'; echo "newMediaDefaults['content_level'] = '" . $newMediaDefaults['content_level'] . "';\n"; $newMediaDefaults['showme'] = 'false'; echo "newMediaDefaults['showme'] = " . $newMediaDefaults['showme'] . ";\n"; if (FALSE !== empty($post->podPressMedia)) { $num = 0; } else { $num = count($post->podPressMedia); $num = intval($num); if ($num > $this->settings['maxMediaFiles']) { $num = $this->settings['maxMediaFiles']; } } while ($num < $this->settings['maxMediaFiles']) { $post->podPressMedia[$num] = $newMediaDefaults; $num++; } $num = 0; while ($num < $this->settings['maxMediaFiles']) { if (!isset($post->podPressMedia[$num]['showme'])) { $post->podPressMedia[$num]['showme'] = 'true'; } if ($post->podPressMedia[$num]['showme'] == 'false') { $num++; continue; } if ($this->settings['enablePodangoIntegration']) { if ($podangoMediaFiles[$post->podPressPostSpecific['PodangoMediaFileID']]['Filename'] == basename($post->podPressMedia[$num]['URI'])) { $post->podPressMedia[$num]['URI'] = 'Podango:' . $podangoMediaFiles[$post->podPressPostSpecific['PodangoMediaFileID']]['Podcast'] . ':' . $podangoMediaFiles[$post->podPressPostSpecific['PodangoMediaFileID']]['ID'] . ':' . $podangoMediaFiles[$post->podPressPostSpecific['PodangoMediaFileID']]['EpisodeID'] . ':' . $podangoMediaFiles[$post->podPressPostSpecific['PodangoMediaFileID']]['Filename']; } } if ($post->podPressMedia[$num]['rss'] == 'on') { $post->podPressMedia[$num]['rss'] = 'true'; } else { $post->podPressMedia[$num]['rss'] = 'false'; } if ($post->podPressMedia[$num]['atom'] == 'on') { $post->podPressMedia[$num]['atom'] = 'true'; } else { $post->podPressMedia[$num]['atom'] = 'false'; } if ($post->podPressMedia[$num]['feedonly'] == 'on') { $post->podPressMedia[$num]['feedonly'] = 'true'; } else { $post->podPressMedia[$num]['feedonly'] = 'false'; } if (!isset($post->podPressMedia[$num]['disablePlayer']) || $post->podPressMedia[$num]['disablePlayer'] == false || $post->podPressMedia[$num]['disablePlayer'] == 'false') { $post->podPressMedia[$num]['disablePlayer'] = 'false'; } else { $post->podPressMedia[$num]['disablePlayer'] = 'true'; } if (!isset($post->podPressMedia[$num]['disablePreview']) || $post->podPressMedia[$num]['disablePreview'] == false || $post->podPressMedia[$num]['disablePreview'] == 'false') { $post->podPressMedia[$num]['disablePreview'] = 'false'; } else { $post->podPressMedia[$num]['disablePreview'] = 'true'; } if ($post->podPressMedia[$num]['premium_only'] == 'on' || $post->podPressMedia[$num]['premium_only'] == true) { $post->podPressMedia[$num]['content_level'] = 'premium_content'; } if (!isset($post->podPressMedia[$num]['content_level'])) { $post->podPressMedia[$num]['content_level'] = 'free'; } echo "\n"; echo "podPressAddMediaFile(" . $post->podPressMedia[$num]['showme'] . ", '" . js_escape($post->podPressMedia[$num]['URI']) . "', '" . js_escape($post->podPressMedia[$num]['URI_torrent']) . "', '" . js_escape($post->podPressMedia[$num]['title']) . "', '" . $post->podPressMedia[$num]['type'] . "', '" . $post->podPressMedia[$num]['size'] . "', '" . $post->podPressMedia[$num]['duration'] . "', '" . $post->podPressMedia[$num]['dimensionW'] . "', '" . $post->podPressMedia[$num]['dimensionH'] . "', '" . $post->podPressMedia[$num]['previewImage'] . "', " . $post->podPressMedia[$num]['rss'] . ", " . $post->podPressMedia[$num]['atom'] . ", " . $post->podPressMedia[$num]['feedonly'] . ", " . $post->podPressMedia[$num]['disablePlayer'] . ", '" . $post->podPressMedia[$num]['content_level'] . "');\n"; $num++; } echo '</script>' . "\n"; echo '<input type="hidden" id="podPressMedia_defaultpreviewImage" value="' . $plugins_url . '/images/vpreview_center.png" />' . "\n"; if (defined('NONCE_KEY') and is_string(constant('NONCE_KEY')) and '' != trim(constant('NONCE_KEY'))) { echo '<input type="hidden" id="podPress_AJAX_sec" value="' . wp_create_nonce(NONCE_KEY) . '" />' . "\n"; } else { echo '<input type="hidden" id="podPress_AJAX_sec" value="' . wp_create_nonce('Af|F07*wC7g-+OX$;|Z5;R@Pi]ZgoU|Zex8=`?mO-Mdvu+WC6l=6<O^2d~+~U3MM') . '" />' . "\n"; } echo '<p style="padding-bottom:1em;">' . sprintf(__('To control player location in your post, you may put %1$s where you want it to appear. You can choose the default postion on the general settings page of podPress.', 'podpress'), $this->podcasttag) . ' ' . __('File Uploading support is not part of podPress.', 'podpress') . '</p>' . "\n"; echo '<h4>' . __('Podcasting Files:', 'podpress') . '</h4>' . "\n"; $num = 0; while ($num < $this->settings['maxMediaFiles']) { if (!isset($post->podPressMedia[$num])) { $num++; continue; } $thisMedia = $post->podPressMedia[$num]; if ($thisMedia['showme'] == 'true') { $display_text = 'block'; } else { $display_text = 'none'; } echo ' <div id="podPressMediaFileContainer_' . $num . '" class="wrap" style="visibility: visible; display: ' . $display_text . ';">' . "\n"; echo ' <table class="podpress_editor_table">' . "\n"; echo ' <tr>' . "\n"; echo ' <th id="podpress_media_file_header"><em>' . __('Media File:', 'podpress') . '</em></th>'; echo ' <td id="podpress_media_file_buttons">'; echo ' <input type="button" value="' . __('Move Up', 'podpress') . '" onclick="podPressMoveFile(' . $num . ', \'up\'); podPressDisplayMediaFiles();"/>' . "\n"; echo ' <input type="button" value="' . __('Move Down', 'podpress') . '" onclick="podPressMoveFile(' . $num . ', \'down\'); podPressDisplayMediaFiles();"/>' . "\n"; echo ' <input type="button" name="podPressAddAnother" value="' . __('Remove File', 'podpress') . '" onclick="podPressRemoveFile(' . $num . '); podPressDisplayMediaFiles();"/>'; echo ' </td>'; echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; echo ' <th>' . "\n"; echo ' <label for="podPressMedia_' . $num . '_URI">' . __('Location', 'podpress') . '</label>: ' . "\n"; echo ' </th>' . "\n"; echo ' <td>' . "\n"; if (!empty($files) || $this->settings['enablePodangoIntegration']) { $fileOptionList = ''; echo ' <select name="podPressMedia[' . $num . '][URI]" id="podPressMedia_' . $num . '_URI" width="35" onchange="javascript: if(this.value==\'!\') { podPress_customSelectVal(this, \'Specifiy URL.\'); } podPressMediaFiles[' . $num . '][\'URI\'] = this.value; podPressDetectType(' . $num . ');">' . "\n"; echo ' <option value="!">' . __('Specify URL ...', 'podpress') . '</option>' . "\n"; $fileSelected = false; if ($this->settings['enablePodangoIntegration']) { $podangoOptGroup = ''; $podangoFirstOptGroup = true; foreach ($podangoMediaFiles as $podangoMediaFile) { if (!empty($podangoMediaFile['EpisodeID']) && $podangoMediaFile['EpisodeID'] != $post->podPressPostSpecific['PodangoEpisodeID'] && $post->post_title != $podangoMediaFile['EpisodeTitle']) { continue; } if ($podangoOptGroup != $podangoMediaFile['Podcast']) { $podangoOptGroup = $podangoMediaFile['Podcast']; if (!$podangoFirstOptGroup) { echo "\t\t\t\t\t\t\t</optgroup>\n"; } $x = $this->podangoapi->GetPodcast($podangoMediaFile['Podcast'], true); echo ' <optgroup name="PodangoOptGroup' . $podangoMediaFile['Podcast'] . '" label="Podango Podcast: ' . $x['Title'] . '">' . "\n"; unset($x); } $key = 'Podango:' . $podangoMediaFile['Podcast'] . ':' . $podangoMediaFile['ID'] . ':' . $podangoMediaFile['EpisodeID'] . ':' . $podangoMediaFile['Filename']; if ($key == $thisMedia['URI']) { $xSelected = ' selected="selected"'; $fileSelected = true; } else { $xSelected = ''; } echo ' <option value="' . $key . '"' . $xSelected . '>' . $podangoMediaFile['Filename'] . '</option>' . "\n"; } echo "\t\t\t\t\t\t\t</optgroup>\n"; echo ' <optgroup name="LocallyHosted" label="Locally Hosted">' . "\n"; } foreach ($files as $key => $val) { if (is_numeric($key)) { $key = $val; } if ($key == $thisMedia['URI']) { $xSelected = ' selected="selected"'; $fileSelected = true; } else { $xSelected = ''; } if (TRUE == version_compare(PHP_VERSION, '5.0', '<')) { // html_entity_decode can not handle the charset UTF-8 in most of the PHP 4 version $fileOptionList .= ' <option value="' . attribute_escape(htmlentities($key)) . '"' . $xSelected . '>' . htmlentities(podPress_stringLimiter($val, 100, true)) . '</option>' . "\n"; } else { if (FALSE === stristr(PHP_OS, 'WIN')) { $fileOptionList .= ' <option value="' . attribute_escape(htmlentities($key, ENT_COMPAT, $blog_charset)) . '"' . $xSelected . '>' . htmlentities(podPress_stringLimiter($val, 100, true), ENT_COMPAT, $blog_charset) . '</option>' . "\n"; } else { $fileOptionList .= ' <option value="' . attribute_escape(htmlentities($key)) . '"' . $xSelected . '>' . htmlentities(podPress_stringLimiter($val, 100, true)) . '</option>' . "\n"; } } } if (!$fileSelected) { if (TRUE == version_compare(PHP_VERSION, '5.0', '<')) { // html_entity_decode can not handle the charset UTF-8 in most of the PHP 4 version echo ' <option value="' . attribute_escape(htmlentities($thisMedia['URI'])) . '" selected="selected">' . htmlentities(podPress_stringLimiter($thisMedia['URI'], 100, true)) . '</option>' . "\n"; } else { if (FALSE === stristr(PHP_OS, 'WIN')) { echo ' <option value="' . attribute_escape(htmlentities($thisMedia['URI']), ENT_COMPAT, $blog_charset) . '" selected="selected">' . htmlentities(podPress_stringLimiter($thisMedia['URI'], 100, true), ENT_COMPAT, $blog_charset) . '</option>' . "\n"; } else { echo ' <option value="' . attribute_escape($thisMedia['URI']) . '" selected="selected">' . htmlentities(podPress_stringLimiter($thisMedia['URI'], 100, true), ENT_COMPAT, $blog_charset) . '</option>' . "\n"; } } } echo $fileOptionList; unset($fileOptionList); if ($this->settings['enablePodangoIntegration']) { echo "\t\t\t\t\t\t\t</optgroup>\n"; } echo ' </select>' . "\n"; echo ' <input type="hidden" id="podPressMedia_' . $num . '_cleanURI" value="no" />' . "\n"; } else { echo ' <input type="text" id="podPressMedia_' . $num . '_URI" name="podPressMedia[' . $num . '][URI]" class="podpress_wide_text_field" size="40" value="' . attribute_escape($thisMedia['URI']) . '" onchange="javascript: podPressMediaFiles[' . $num . '][\'URI\'] = this.value; podPressDetectType(' . $num . '); podPressCheckForNotSafeFilenameChr( ' . $num . ', this.value );" />' . "\n"; echo ' <span id="podPressMedia_' . $num . '_URI_chrWarning" class="podpress_notice podPressMedia_URI_chrWarning">' . sprintf(__('<strong>Notice:</strong> It is not recommended to use other than these characters: %1$s or whitespaces in file and folder names.', 'podpress'), 'abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789 .:/_-\\ ') . '</span>' . "\n"; echo ' <input type="hidden" id="podPressMedia_' . $num . '_cleanURI" value="yes" />' . "\n"; } echo ' </td>' . "\n"; echo ' </tr>' . "\n"; if ($this->settings['enableTorrentCasting']) { echo ' <tr>' . "\n"; echo ' <th>' . "\n"; echo ' <label for="podPressMedia_' . $num . '_URItorrent">' . __('.torrent Location', 'podpress') . '</label>: ' . "\n"; echo ' </th>' . "\n"; echo ' <td>' . "\n"; echo ' <input type="text" id="podPressMedia_' . $num . '_URItorrent" name="podPressMedia[' . $num . '][URI_torrent]" size="40" value="' . attribute_escape($thisMedia['URI_torrent']) . '" onchange="javascript: podPressMediaFiles[' . $num . '][\'URI_torrent\'] = this.value;" />' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; } echo ' <tr>' . "\n"; echo ' <th>' . "\n"; echo ' <label for="podPressMedia_' . $num . '_title">' . __('Title', 'podpress') . '</label>: ' . "\n"; echo ' </th>' . "\n"; echo ' <td>' . "\n"; echo ' <input type="text" id="podPressMedia_' . $num . '_title" name="podPressMedia[' . $num . '][title]" class="podpress_wide_text_field" size="40" value="' . attribute_escape($thisMedia['title']) . '" onchange="javascript: podPressMediaFiles[' . $num . '][\'title\'] = this.value;" />' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; echo ' <th>' . "\n"; echo ' <label for="podPressMedia_' . $num . '_type">' . __('Type', 'podpress') . '</label>: ' . "\n"; echo ' </th>' . "\n"; echo ' <td>' . "\n"; echo ' <select id="podPressMedia_' . $num . '_type" name="podPressMedia[' . $num . '][type]" onchange="javascript: podPressMediaFiles[' . $num . '][\'type\'] = this.value; podPressAdjustMediaFieldsBasedOnType(' . $num . ');" >' . "\n"; podPress_mediaOptions(); echo '</select>' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr id="podPressMediaSizeWrapper_' . $num . '" >' . "\n"; echo ' <th>' . "\n"; echo ' <label for="podPressMedia_' . $num . '_size">' . __('File Size', 'podpress') . '</label>: ' . "\n"; echo ' </th>' . "\n"; echo ' <td>' . "\n"; echo ' <input type="text" id="podPressMedia_' . $num . '_size" name="podPressMedia[' . $num . '][size]" size="10" value="' . $thisMedia['size'] . '" onchange="javascript: podPressMediaFiles[' . $num . '][\'size\'] = this.value;"/> ' . __('[in byte]', 'podpress') . ' <img src="' . $plugins_url . '/images/ajax-loader.gif" id="podPressMedia_' . $num . '_size_loadimg" class="podpress_ajax_loader_img" /><input type="button" id="podPressMedia_' . $num . '_size_detectbutton" value="' . __('Auto Detect', 'podpress') . '" onclick="podPress_getfileinfo(\'size\', ' . $num . ');" />' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr id="podPressMediaDurationWrapper_' . $num . '" style="display: none;">' . "\n"; echo ' <th>' . "\n"; echo ' <label for="podPressMedia_' . $num . '_duration">' . __('Duration', 'podpress') . '</label>: ' . "\n"; echo ' </th>' . "\n"; echo ' <td>' . "\n"; echo ' <input type="text" id="podPressMedia_' . $num . '_duration" name="podPressMedia[' . $num . '][duration]" size="10" value="' . $thisMedia['duration'] . '" onchange="javascript: podPressMediaFiles[' . $num . '][\'duration\'] = this.value;"/> <span class="podpress_abbr" title="' . __('hours:minutes:seconds - for example: 2:45:10 or 34:01 or 1:36 or 120:47 or 0:10', 'podpress') . '">' . __('[hh:mm:ss]', 'podpress') . '</span> <img src="' . $plugins_url . '/images/ajax-loader.gif" id="podPressMedia_' . $num . '_duration_loadimg" class="podpress_ajax_loader_img" /><input type="button" id="podPressMedia_' . $num . '_duration_detectbutton" value="' . __('Auto Detect', 'podpress') . '" onclick="podPress_getfileinfo(\'duration\', ' . $num . ');" /> (' . sprintf(__('This may take some time for remote files. %1$s', 'podpress'), '<span class="podpress_abbr" title="' . __('If the file is not on the same server as your blog then podPress will attempt to download the file in order to get this information with the help of getID3() which is only able to retrieve ID3 tags from local files. podPress removes the temporary download file at the end of this process. It is likely that this feature works only for relative small files because the download is probably limited by execution time and memory limits on the server of your blog.', 'podpress') . '">' . __('Because ...', 'podpress') . '</span>') . ')' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; if (empty($thisMedia['previewImage'])) { $thisMedia['previewImage'] = podPress_url() . 'images/vpreview_center.png'; } echo ' <tr id="podPressMediaPreviewImageWrapper_' . $num . '" style="display: none;">' . "\n"; echo ' <th>' . "\n"; echo ' <label for="podPressMedia_' . $num . '_previewImage">' . __('Preview Image URL', 'podpress') . '</label>: ' . "\n"; echo ' </th>' . "\n"; echo ' <td>' . "\n"; echo ' <input type="text" id="podPressMedia_' . $num . '_previewImage" name="podPressMedia[' . $num . '][previewImage]" class="podpress_wide_text_field" size="40" value="' . attribute_escape($thisMedia['previewImage']) . '" onchange="javascript: podPressPreviewImageOnChange(' . $num . ', this.value);" />' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr id="podPressMediaPreviewImageDisplayWrapper_' . $num . '" style="display: none;">' . "\n"; echo ' <th>' . "\n"; echo ' ' . __('Preview Image', 'podpress') . ': ' . "\n"; echo ' </th>' . "\n"; echo ' <td>' . "\n"; echo ' <div id="podPressPlayerSpace_' . $num . '"></div>' . "\n"; echo '<script type="text/javascript"><!--' . "\n"; //echo " document.getElementById('podPressPlayerSpace_".$num."').innerHTML = podPressGenerateVideoPreview (".$num.", '', , , document.getElementById('podPressMedia_".$num."_previewImage').value, true);\n"; echo "\tdocument.getElementById('podPressPlayerSpace_" . $num . "').innerHTML = podPressGenerateVideoPreview (" . $num . ", '', " . $thisMedia['dimensionW'] . ", " . $thisMedia['dimensionH'] . ", document.getElementById('podPressMedia_" . $num . "_previewImage').value, true);\n"; //echo " document.getElementById('podPressPlayerSpace_".$num."').innerHTML = podPressGenerateVideoPreview (".$num.", '', ".intval($thisMedia['dimensionW']).", ".intval($thisMedia['dimensionH']).", document.getElementById('podPressMedia_".$num."_previewImage').value, true);\n"; echo "--></script>\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr id="podPressMediaDimensionWrapper_' . $num . '">' . "\n"; echo ' <th>' . "\n"; echo ' ' . __('Dimensions', 'podpress') . ' (WxH): ' . "\n"; echo ' </th>' . "\n"; echo ' <td>' . "\n"; echo ' <input type="text" id="podPressMedia_' . $num . '_dimensionW" name="podPressMedia[' . $num . '][dimensionW]" size="5" value="' . $thisMedia['dimensionW'] . '" onchange="javascript: podPressMediaFiles[' . $num . '][\'dimensionW\'] = this.value; podPressUpdateDimensionList(\'' . $num . '\');" />x<input type="text" id="podPressMedia_' . $num . '_dimensionH" name="podPressMedia[' . $num . '][dimensionH]" size="5" value="' . $thisMedia['dimensionH'] . '" onchange="javascript: podPressMediaFiles[' . $num . '][\'dimensionH\'] = this.value; podPressUpdateDimensionList(\'' . $num . '\')" /> ' . "\n"; echo ' ' . __('or', 'podpress') . ' '; echo ' <select id="podPressMedia_' . $num . '_dimensionList" onchange="javascript: podPressUpdateDimensions(\'' . $num . '\', this.value);">' . "\n"; podPress_videoDimensionOptions($thisMedia['dimensionW'] . ':' . $thisMedia['dimensionH']); echo '</select>' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; if ($post->post_status == 'static') { echo ' <tr style="display: none;">' . "\n"; } else { echo ' <tr>' . "\n"; } echo ' <th>' . "\n"; echo ' ' . __('Included in', 'podpress') . ': ' . "\n"; echo ' </th>' . "\n"; echo ' <td>' . "\n"; echo ' <label for="podPressMedia_' . $num . '_rss">' . __('RSS2', 'podpress') . '</label> <input type="checkbox" id="podPressMedia_' . $num . '_rss" name="podPressMedia[' . $num . '][rss]" onchange="javascript: podPressMediaFiles[' . $num . '][\'rss\'] = this.checked; podPressSetSingleRSS(' . $num . ');" />' . "\n"; echo ' <label for="podPressMedia_' . $num . '_atom">' . __('ATOM', 'podpress') . '</label> <input type="checkbox" id="podPressMedia_' . $num . '_atom" name="podPressMedia[' . $num . '][atom]" onchange="javascript: podPressMediaFiles[' . $num . '][\'atom\'] = this.checked;" />' . "\n"; echo ' <label for="podPressMedia_' . $num . '_feedonly">' . __('Feed Only', 'podpress') . '</label> <input type="checkbox" id="podPressMedia_' . $num . '_feedonly" name="podPressMedia[' . $num . '][feedonly]" onchange="javascript: podPressMediaFiles[' . $num . '][\'feedonly\'] = this.checked;" />' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; if ($this->settings['enablePremiumContent']) { echo ' <tr>' . "\n"; echo ' <th>' . "\n"; echo ' <label for="podPressMedia_' . $num . '_content_level">' . __('Subscription', 'podpress') . '</label>:'; echo ' </th>' . "\n"; echo ' <td>' . "\n"; echo ' <select id="podPressMedia_' . $num . '_content_level" name="podPressMedia[' . $num . '][content_level]" onchange="javascript: podPressMediaFiles[' . $num . '][\'content_level\'] = this.value;">' . "\n"; echo ' <option value="free" '; if (empty($thisMedia['content_level']) || $thisMedia['content_level'] == 'free') { echo 'selected="selected"'; } echo '>' . __('Free', 'podpress') . '</option>' . "\n"; foreach (podPress_getCapList(true) as $cap) { if (substr($cap, -8, 8) == '_content') { echo ' <option value="' . $cap . '" '; if ($thisMedia['content_level'] == $cap) { echo 'selected="selected"'; } echo '>' . __(podPress_getCapName($cap), 'podpress') . '</option>' . "\n"; } } echo ' </select>' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; } echo ' <tr>' . "\n"; echo ' <th>' . "\n"; echo ' <label for="podPressMedia_' . $num . '_disablePlayer">' . __('Disable Player', 'podpress') . '</label>:' . "\n"; echo ' </th>' . "\n"; echo ' <td>' . "\n"; echo ' <input type="checkbox" id="podPressMedia_' . $num . '_disablePlayer" name="podPressMedia[' . $num . '][disablePlayer]"'; if ($thisMedia['disablePlayer'] != 'false') { echo 'checked="checked" '; } echo ' onchange="javascript: podPressMediaFiles[' . $num . '][\'disablePlayer\'] = this.checked;" />' . "\n"; echo ' ' . __('(Use if this media file is not compatible with one of the included players.)', 'podpress') . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; echo ' <th>' . "\n"; echo ' <label for="podPressMedia_' . $num . '_disablePreview">' . __('Disable Preview Player', 'podpress') . '</label>:' . "\n"; echo ' </th>' . "\n"; echo ' <td>' . "\n"; echo ' <input type="checkbox" id="podPressMedia_' . $num . '_disablePreview" name="podPressMedia[' . $num . '][disablePreview]"'; if ($thisMedia['disablePreview'] != 'false') { echo 'checked="checked" '; } echo ' onchange="javascript: podPressMediaFiles[' . $num . '][\'disablePreview\'] = this.checked;" />' . "\n"; echo ' ' . __('(Use this to disable the "Click to Play" preview player.)', 'podpress') . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; $actionMedia = $thisMedia; $actionMedia['num'] = $num; do_action('podPress_customMediaData', array($actionMedia)); echo ' <tr id="podPressMedia_' . $num . '_id3tags_details_row">' . "\n"; echo ' <th>' . "\n"; echo ' ' . __('ID3 Tag Info', 'podpress') . ":\n"; echo ' </th>' . "\n"; echo ' <td>' . "\n"; echo ' <img src="' . $plugins_url . '/images/ajax-loader.gif" id="podPressMedia_' . $num . '_id3tags_loadimg" class="podpress_ajax_loader_img" /><input type="button" id="podPressMedia_' . $num . '_id3tags_detectbutton" value="' . __('Show', 'podpress') . '" onclick="javascript: podPressShowHideID3Tags(' . $num . ');" /> (' . sprintf(__('This may take some time for remote files. %1$s', 'podpress'), '<span class="podpress_abbr" title="' . __('If the file is not on the same server as your blog then podPress will attempt to download the file in order to get this information with the help of getID3() which is only able to retrieve ID3 tags from local files. podPress removes the temporary download file at the end of this process. It is likely that this feature works only for relative small files because the download is probably limited by execution time and memory limits on the server of your blog.', 'podpress') . '">' . __('Because ...', 'podpress') . '</span>') . ')' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; echo ' <td colspan="2">' . "\n"; echo ' <div id="podPressMedia_' . $num . '_id3tags" style="display: none; vertical-align: top;">' . "\n"; echo ' </div>' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' </table>' . "\n"; echo ' </div> <!-- end: podPressMediaFileContainer_' . $num . ' -->' . "\n"; $num++; } echo ' <input type="button" name="podPressAddAnother" value="' . __('Add Media File', 'podpress') . '" onclick="javascript: podPressAddMediaFile(true, \'\', \'\', \'\', \'\', \'\', \'\', \'\', \'\', \'\', \'new\', true, false, false, \'free\'); podPressDisplayMediaFiles();"/>' . "\n"; if ($entryType != 'page') { echo ' <br/>' . "\n"; echo ' <h4>' . __('Post specific settings for iTunes:', 'podpress') . '</h4>' . "\n"; //echo ' <input type="button" name="iTunesSpecificSettings_button" id="iTunesSpecificSettings_button" value="Show" onclick="javascript: podPressShowHideDiv(\'iTunesSpecificSettings\');"/>'."\n"; echo ' <div class="wrap" id="iTunesSpecificSettings">' . "\n"; echo ' <table class="podpress_editor_table">' . "\n"; echo ' <tr>' . "\n"; echo ' <th>' . "\n"; echo ' <label for="iTunesSubtitleChoice">' . __('iTunes:Subtitle', 'podpress') . '</label> <a href="javascript:void(null);" onclick="javascript: podPressShowHideRow(\'iTunesSubtitleHelp\');">(?)</a>:' . "\n"; echo ' </th>' . "\n"; echo ' <td>' . "\n"; echo ' <select id="iTunesSubtitleChoice" name="iTunesSubtitleChoice" onchange="javascript: if(this.value == \'Custom\') { document.getElementById(\'iTunesSubtitleWrapper\').style.display=\'\'; } else { document.getElementById(\'iTunesSubtitleWrapper\').style.display=\'none\'; }">' . "\n"; echo ' <option value="PostExcerpt" '; if ($post->podPressPostSpecific['itunes:subtitle'] == '##PostExcerpt##') { echo 'selected="selected"'; } echo '>' . __('Use the excerpt', 'podpress') . '</option>' . "\n"; echo ' <option value="Custom" '; if ($post->podPressPostSpecific['itunes:subtitle'] != '##PostExcerpt##') { echo 'selected="selected"'; } echo '>' . __('Insert custom value', 'podpress') . '</option>' . "\n"; echo ' </select>' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr id="iTunesSubtitleHelp" style="display: none;">' . "\n"; echo ' <th> </th>' . "\n"; echo ' <td>' . sprintf(__('"%1$s" (default) podPress takes the first 255 characters from the excerpt of the excerpt and if there is none from the blog Post text.', 'podpress'), __('Use the excerpt', 'podpress')) . '</td>' . "\n"; echo ' </tr>' . "\n"; if ($post->podPressPostSpecific['itunes:subtitle'] == '##PostExcerpt##') { $tempShowMe = 'style="display: none;"'; $post->podPressPostSpecific['itunes:subtitle'] = ''; } else { $tempShowMe = ''; } echo ' <tr id="iTunesSubtitleWrapper" ' . $tempShowMe . '>' . "\n"; echo ' <th> </th>' . "\n"; echo ' <td>' . "\n"; echo ' <textarea name="iTunesSubtitle" class="podpress_wide_text_field" rows="4" cols="40">' . stripslashes($post->podPressPostSpecific['itunes:subtitle']) . '</textarea>' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; echo ' <th>' . "\n"; echo ' <label for="iTunesSummaryChoice">' . __('iTunes:Summary', 'podpress') . '</label> <a href="javascript:void(null);" onclick="javascript: podPressShowHideRow(\'iTunesSummaryHelp\');">(?)</a>:' . "\n"; echo ' </th>' . "\n"; echo ' <td>' . "\n"; echo ' <select id="iTunesSummaryChoice" name="iTunesSummaryChoice" onchange="javascript: if(this.value == \'Custom\') { document.getElementById(\'iTunesSummaryWrapper\').style.display=\'\'; } else { document.getElementById(\'iTunesSummaryWrapper\').style.display=\'none\'; }">' . "\n"; echo ' <option value="PostExcerpt" '; if ($post->podPressPostSpecific['itunes:summary'] == '##PostExcerpt##') { echo 'selected="selected"'; } echo '>' . __('Use the excerpt', 'podpress') . '</option>' . "\n"; echo ' <option value="PostContentShortened" '; if ($post->podPressPostSpecific['itunes:summary'] == '##PostContentShortened##') { echo 'selected="selected"'; } echo '>' . __('autom. excerpt of the post content', 'podpress') . '</option>' . "\n"; echo ' <option value="Global" '; if ($post->podPressPostSpecific['itunes:summary'] == '##Global##') { echo 'selected="selected"'; } echo '>' . __('Use Global', 'podpress') . '</option>' . "\n"; echo ' <option value="Custom" '; if ($post->podPressPostSpecific['itunes:summary'] != '##Global##' && $post->podPressPostSpecific['itunes:summary'] != '##PostExcerpt##' && $post->podPressPostSpecific['itunes:summary'] != '##PostContentShortened##') { echo 'selected="selected"'; } echo '>' . __('Insert custom value', 'podpress') . '</option>' . "\n"; echo ' </select>' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr id="iTunesSummaryHelp" style="display: none;">' . "\n"; echo ' <th> </th>' . "\n"; echo ' <td>' . sprintf(__('"%1$s" (default) podPress takes the excerpt. If you have not written an excerpt then it takes a part from the blog Post text.', 'podpress'), __('Use the excerpt', 'podpress')) . '</td>' . "\n"; echo ' </tr>' . "\n"; if ($post->podPressPostSpecific['itunes:summary'] == '##Global##' || $post->podPressPostSpecific['itunes:summary'] == '##PostExcerpt##' || $post->podPressPostSpecific['itunes:summary'] == '##PostContentShortened##') { $tempShowMe = 'style="display: none;"'; $post->podPressPostSpecific['itunes:summary'] = ''; } else { $tempShowMe = ''; } echo ' <tr id="iTunesSummaryWrapper" ' . $tempShowMe . '>' . "\n"; echo ' <th> </th>' . "\n"; echo ' <td>' . "\n"; echo ' <textarea name="iTunesSummary" class="podpress_wide_text_field" rows="4" cols="40">' . stripslashes($post->podPressPostSpecific['itunes:summary']) . '</textarea>' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; echo ' <th>' . "\n"; echo ' <label for="iTunesKeywordsChoice">' . __('iTunes:Keywords', 'podpress') . '</label> <a href="javascript:void(null);" onclick="javascript: podPressShowHideRow(\'iTunesKeywordsHelp\');">(?)</a>:' . "\n"; echo ' </th>' . "\n"; echo ' <td>' . "\n"; echo ' <select id="iTunesKeywordsChoice" name="iTunesKeywordsChoice" onchange="javascript: if(this.value == \'Custom\') { document.getElementById(\'iTunesKeywordsWrapper\').style.display=\'\'; } else { document.getElementById(\'iTunesKeywordsWrapper\').style.display=\'none\'; }">' . "\n"; echo ' <option value="WordPressCats" '; if ($post->podPressPostSpecific['itunes:keywords'] == '##WordPressCats##') { echo 'selected="selected"'; } echo '>' . __('Use WordPress Categories', 'podpress') . '</option>' . "\n"; echo ' <option value="post_tags" '; if ($post->podPressPostSpecific['itunes:keywords'] == '##post_tags##') { echo 'selected="selected"'; } echo '>' . __('Use the tags of the post', 'podpress') . '</option>' . "\n"; echo ' <option value="Global" '; if ($post->podPressPostSpecific['itunes:keywords'] == '##Global##') { echo 'selected="selected"'; } echo '>' . __('Use Global', 'podpress') . ' (' . podPress_stringLimiter(stripslashes($this->settings['iTunes']['keywords']), 40) . ')</option>' . "\n"; echo ' <option value="Custom" '; if ($post->podPressPostSpecific['itunes:keywords'] != '##Global##' and $post->podPressPostSpecific['itunes:keywords'] != '##WordPressCats##' and $post->podPressPostSpecific['itunes:keywords'] != '##post_tags##') { echo 'selected="selected"'; } echo '>' . __('Insert custom value', 'podpress') . '</option>' . "\n"; echo ' </select>' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr id="iTunesKeywordsHelp" style="display: none;">' . "\n"; echo ' <th> </th>' . "\n"; echo ' <td>' . __('Not visible in iTunes, but used for searches.', 'podpress') . '</td>' . "\n"; echo ' </tr>' . "\n"; if ($post->podPressPostSpecific['itunes:keywords'] == '##Global##' or $post->podPressPostSpecific['itunes:keywords'] == '##WordPressCats##' or $post->podPressPostSpecific['itunes:keywords'] == '##post_tags##') { $tempShowMe = 'style="display: none;"'; $post->podPressPostSpecific['itunes:keywords'] = ''; } else { $tempShowMe = ''; } echo ' <tr id="iTunesKeywordsWrapper" ' . $tempShowMe . '>' . "\n"; echo ' <th> </th>' . "\n"; echo ' <td>' . "\n"; echo ' ' . __('a list of max. 12 comma separated words', 'podpress') . '<br/><textarea name="iTunesKeywords" class="podpress_wide_text_field" rows="4" cols="40">' . stripslashes($post->podPressPostSpecific['itunes:keywords']) . '</textarea>' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; echo ' <th>' . "\n"; echo ' <label for="iTunesAuthorChoice">' . __('iTunes:Author', 'podpress') . '</label> <a href="javascript:void(null);" onclick="javascript: podPressShowHideRow(\'iTunesAuthorHelp\');">(?)</a>:' . "\n"; echo ' </th>' . "\n"; echo ' <td>' . "\n"; echo ' <select id="iTunesAuthorChoice" name="iTunesAuthorChoice" onchange="javascript: if(this.value == \'Custom\') { document.getElementById(\'iTunesAuthorWrapper\').style.display=\'\'; } else { document.getElementById(\'iTunesAuthorWrapper\').style.display=\'none\'; }">' . "\n"; echo ' <option value="Global" '; if ($post->podPressPostSpecific['itunes:author'] == '##Global##') { echo 'selected="selected"'; } echo '>' . __('Use Global', 'podpress') . ' (' . podPress_stringLimiter(ucfirst(stripslashes($this->settings['iTunes']['author'])), 40) . ')</option>' . "\n"; echo ' <option value="Custom" '; if ($post->podPressPostSpecific['itunes:author'] != '##Global##') { echo 'selected="selected"'; } echo '>' . __('Insert custom value', 'podpress') . '</option>' . "\n"; echo ' </select>' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr id="iTunesAuthorHelp" style="display: none;">' . "\n"; echo ' <th> </th>' . "\n"; echo ' <td>' . __('Used if this Author is different than the feeds author.', 'podpress') . '</td>' . "\n"; echo ' </tr>' . "\n"; if ($post->podPressPostSpecific['itunes:author'] == '##Global##') { $tempShowMe = 'style="display: none;"'; $post->podPressPostSpecific['itunes:author'] = ''; } else { $tempShowMe = ''; } echo ' <tr id="iTunesAuthorWrapper" ' . $tempShowMe . '>' . "\n"; echo ' <th> </th>' . "\n"; echo ' <td><input type="text" name="iTunesAuthor" class="podpress_wide_text_field" size="40" value="' . attribute_escape($post->podPressPostSpecific['itunes:author']) . '" /></td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; echo ' <th>' . "\n"; echo ' <label for="iTunesExplicit">' . __('iTunes:Explicit', 'podpress') . '</label> <a href="javascript:void(null);" onclick="javascript: podPressShowHideRow(\'iTunesExplicitHelp\');">(?)</a>:' . "\n"; echo ' </th>' . "\n"; echo ' <td>' . "\n"; echo ' <select id="iTunesExplicit" name="iTunesExplicit">' . "\n"; echo ' <option value="Default" '; if ($post->podPressPostSpecific['itunes:explicit'] == 'Default') { echo 'selected="selected"'; } echo '>' . __('Use Default', 'podpress') . ' (' . $this->settings['iTunes']['explicit'] . ')</option>' . "\n"; echo ' <option value="No" '; if ($post->podPressPostSpecific['itunes:explicit'] == 'No') { echo 'selected="selected"'; } echo '>' . __('No', 'podpress') . '</option>' . "\n"; echo ' <option value="Yes" '; if ($post->podPressPostSpecific['itunes:explicit'] == 'Yes') { echo 'selected="selected"'; } echo '>' . __('Yes', 'podpress') . '</option>' . "\n"; echo ' <option value="Clean" '; if ($post->podPressPostSpecific['itunes:explicit'] == 'Clean') { echo 'selected="selected"'; } echo '>' . __('Clean', 'podpress') . '</option>' . "\n"; echo ' </select>' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr id="iTunesExplicitHelp" style="display: none;">' . "\n"; echo ' <th> </th>' . "\n"; echo ' <td>' . __('Does your podcast contain explicit language or adult content? (If you choose "Yes" or "Clean" then a corresponding notice will show up in iTunes (Explicit resp. Clean). If you choose "No" then there will be special notice.)', 'podpress') . '</td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; echo ' <th>' . "\n"; echo ' <label for="iTunesBlock">' . __('iTunes:Block', 'podpress') . '</label> <a href="javascript:void(null);" onclick="javascript: podPressShowHideRow(\'itunesBlockHelp\');">(?)</a>:' . "\n"; echo ' </th>' . "\n"; echo ' <td>' . "\n"; echo ' <select id="iTunesBlock" name="iTunesBlock">' . "\n"; echo ' <option value="Default" '; if ($post->podPressPostSpecific['itunes:block'] == 'Default') { echo 'selected="selected"'; } echo '>' . __('Use Default', 'podpress') . ' (' . $this->settings['iTunes']['block'] . ')</option>' . "\n"; echo ' <option value="No" '; if ($post->podPressPostSpecific['itunes:block'] == 'No') { echo 'selected="selected"'; } echo '>' . __('No', 'podpress') . '</option>' . "\n"; echo ' <option value="Yes" '; if ($post->podPressPostSpecific['itunes:block'] == 'Yes') { echo 'selected="selected"'; } echo '>' . __('Yes', 'podpress') . '</option>' . "\n"; echo ' </select>' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr id="itunesBlockHelp" style="display: none;">' . "\n"; echo ' <th> </th>' . "\n"; echo ' <td>' . __('Prevent this episode or podcast from appearing in iTunes.', 'podpress') . '</td>' . "\n"; echo ' </tr>' . "\n"; echo ' </table>' . "\n"; echo ' </div> <!-- end: iTunesSpecificSettings -->' . "\n"; } if ($this->settings['enablePodangoIntegration']) { echo "\t\t\t<br/>\n"; echo ' <strong>Podango File Uploader</strong>'; if ($this->settings['podangoDefaultPodcast'] == '##ALL##') { $podangoPodcastList = $this->podangoapi->GetPodcasts(true); echo ' <strong>for: </strong><select name="podPressPodangoPodcastID" id="podPressPodangoPodcastID" onChange="javascript: document.getElementById(\'podangoUploadFrame\').src=\'' . $this->podangoapi->fileUploader . '?podcastId=\'+this.value">' . "\n"; foreach ($podangoPodcastList as $k => $v) { if (!isset($podangoPodcastID)) { $podangoPodcastID = $k; } echo ' <option value="' . $k . '">' . $v['Title'] . '</option>' . "\n"; } echo ' </select>' . "\n"; } else { $podangoPodcastID = $this->settings['podangoDefaultPodcast']; } echo '<br/>' . "\n"; echo ' <iframe src="' . $this->podangoapi->fileUploader . '?podcastId=' . $podangoPodcastID . '" id="podangoUploadFrame" title="Podango Upload" border="0" width="560" height="110"> </iframe>' . "\n"; } echo '<script type="text/javascript">podPressDisplayMediaFiles(); </script>' . "\n"; }
function convertPodcastFileNameToWebPath($postID, $mediaNum, $filename = '', $method = false) { global $wp_version; $url = $this->convertPodcastFileNameToValidWebPath($filename); if ($method != false) { if ($this->settings['enableStats']) { $filename_part = podPress_getFileName($url); if ($this->settings['statMethod'] == 'download.mp3') { $url = podPress_url() . 'download.mp3?' . $method . '=' . $postID . '/' . $mediaNum . '/' . $filename_part; } else { if (TRUE === version_compare($wp_version, '3.0', '<')) { $url = get_bloginfo('home') . '/podpress_trac/' . $method . '/' . $postID . '/' . $mediaNum . '/' . $filename_part; } else { $url = home_url() . '/podpress_trac/' . $method . '/' . $postID . '/' . $mediaNum . '/' . $filename_part; } } } elseif ($this->settings['enable3rdPartyStats'] == 'Podtrac') { $url = str_replace(array('ftp://', 'http://', 'https://'), '', $url); $url = $this->podtrac_url . $url; } elseif ($this->settings['enable3rdPartyStats'] == 'BluBrry' && !empty($this->settings['statBluBrryProgramKeyword'])) { $url = $this->blubrry_url . $this->settings['statBluBrryProgramKeyword'] . '/' . $url; } } $url = str_replace(' ', '%20', $url); return $url; }
function podPress_DirectoriesPreview($context) { echo ' <fieldset class="options">' . "\n"; echo ' <legend class="podpress_directorypreview_legend">' . __('Directory Preview', 'podpress') . '</legend> <a href="javascript:void(null);" id="podpress_showhide_directory_preview" class="podpress_showhide_element" onclick="podpress_showhide_adv(\'podpress_DirectoryPreviewDisplay\', true, this.id);">[ ' . __('Show', 'podpress') . ' ]</a>'; echo ' <div id="podpress_DirectoryPreviewDisplay" style="display:none;">' . "\n"; echo ' <a href="javascript:void(null);" onclick="javascript: podPressShowDirectoryPreview(\'iTunes\');"><img src="' . podPress_url() . 'images/directoryPreview_iTunes_logo.png" border="0" alt="iTunes preview" /></a> '; /// YAHOO! Podcast is shutdown since 2007 - see, http://en.wikipedia.org/wiki/Yahoo!_Podcasts //echo ' <a href="javascript:void(null);" onclick="javascript: podPressShowDirectoryPreview(\'Yahoo\');"><img src="'.podPress_url().'images/directoryPreview_yahoo_logo.png" border="0" alt="Yahoo preview" /></a> '; echo ' <a href="javascript:void(null);" onclick="javascript: podPressShowDirectoryPreview(\'PodcastAlley\');"><img src="' . podPress_url() . 'images/directoryPreview_PCA_logo.png" border="0" alt="PodcastAlley preview" /></a>'; echo ' <a href="javascript:void(null);" onclick="javascript: podPressShowDirectoryPreview(\'PodcastReady\');"><img src="' . podPress_url() . 'images/directoryPreview_PodcastReady_logo.png" border="0" alt="PodcastAlley preview" /></a>'; echo ' <a href="javascript:void(null);" onclick="javascript: podPressShowDirectoryPreview(\'Blubrry\');"><img src="' . podPress_url() . 'images/directoryPreview_Blubrry_logo.jpg" border="0" alt="Blubrry preview" /></a>'; echo ' ' . "\n"; echo ' <div id="iTunesPreviewDisplay" style="border: 0;">' . "\n"; echo ' <div style="width: 100%; text-align: center;"><a href="http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewGenre?id=26" target="_new">Visit this directory</a> / <a href="https://phobos.apple.com/WebObjects/MZFinance.woa/wa/publishPodcast" target="_new">Submit to this directory</a></div>' . "\n"; echo ' <table width="100%" cellspacing="2" cellpadding="5" class="editform" style="background-color:#8CA9CB;">' . "\n"; echo ' <tr valign="top">' . "\n"; echo ' <td colspan="3">' . "\n"; echo ' <b><font size="+1"><span id="iTunesBlognamePreview"></span></font></b><br/>' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr valign="top">' . "\n"; echo ' <td width="1%">' . "\n"; echo ' <img id="iTunesPreviewImage" width="175" height="175" alt="Podcast Image" src=""/>' . "\n"; echo ' </td>' . "\n"; echo ' <td align="left">' . "\n"; echo ' <span id="itunesAuthorPreview" style="font-weight: bold;"></span><br/><br/>' . "\n"; echo ' <span style="font-size: small;">' . "\n"; echo ' Category: <span id="itunesCategoryPreview"></span><br/>' . "\n"; echo ' Language: <span id="iTunesRssLanguagePreview">English</span><br/>' . "\n"; echo ' Total: n episodes<br/><br/>' . "\n"; echo ' <img src="' . podPress_url() . 'images/directoryPreview_iTunes_subscribebutton.png" border="0" alt="iTunesSubscriptions" /> ' . "\n"; echo ' </span>' . "\n"; echo ' </td>' . "\n"; echo ' <td rowspan="3" width="1%">' . "\n"; echo ' <img src="' . podPress_url() . 'images/directoryPreview_iTunes_seeallpodcasts.png" border="0" alt="iTunesSeeAllPodcasts" /> ' . "\n"; echo ' <br/><br/>' . "\n"; echo ' <img src="' . podPress_url() . 'images/directoryPreview_iTunes_alsosubcribedto.png" border="0" alt="iTunesAlsoSubscribeTo" /> ' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr valign="top">' . "\n"; echo ' <td colspan="2">' . "\n"; echo ' <b><font size="+1" color="#163B6A">Podcast Description</font></b><br/><br/>' . "\n"; echo ' <span id="itunesDescriptionPreview" style="font-size: small;"></span>' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr valign="top">' . "\n"; echo ' <td colspan="2" bgcolor="#8DAACC">' . "\n"; echo ' <table width="100%" bgcolor="#8DAACC">' . "\n"; echo ' <tr>' . "\n"; echo ' <td align="left">' . "\n"; echo ' <img src="' . podPress_url() . 'images/directoryPreview_iTunes_l_reviews.png" border="0" alt="iTunesReviews" /> ' . "\n"; echo ' </td>' . "\n"; echo ' <td align="right">' . "\n"; echo ' <img src="' . podPress_url() . 'images/directoryPreview_iTunes_r_reviews.png" border="0" alt="iTunesReviews" /> ' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' </table>' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' </table>' . "\n"; echo ' </div>' . "\n"; echo ' <div id="YahooPreviewDisplay" style="display: none;">' . "\n"; echo ' <div style="width: 100%; text-align: center;"><a href="http://podcasts.yahoo.com/" target="_new">Visit this directory</a> / <a href="http://podcasts.yahoo.com/publish" target="_new">Submit to this directory</a></div>' . "\n"; echo ' <div style="width: 100%; border: 1px solid grey;">' . "\n"; echo ' <table width="100%" border="0" cellspacing="0" cellpadding="0">' . "\n"; echo ' <tr valign="top">' . "\n"; echo ' <td colspan="3">' . "\n"; echo ' <b><font size="+1" color="#669900">Series Information: <span id="YahooBlognamePreview"></span></font></b><br/><br/>' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr valign="top">' . "\n"; echo ' <td width="1%" rowspan="2">' . "\n"; echo ' <img id="YahooPreviewImage" width="175" height="175" alt="Podcast Image" src=""/><br/><br/>' . "\n"; echo ' <img src="' . podPress_url() . 'images/directoryPreview_yahoo_buttons.png" border="0" alt="YahooButtons" /> ' . "\n"; echo ' </td>' . "\n"; echo ' <td colspan="2">' . "\n"; echo ' <span id="YahooDescriptionPreview" style="font-size: small;"></span>' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr valign="top">' . "\n"; echo ' <td align="left">' . "\n"; echo ' <font size="+1" color="#669900">Details</font><br/>' . "\n"; echo ' Episodes: N<br/>' . "\n"; echo ' Web Site: <font color="#2597D6">' . get_option('siteurl') . '</font><br/>' . "\n"; echo ' RSS: <span id="YahooFeedURLPreview" style="color: #2597D6;"></span><br/>' . "\n"; echo ' Author: <span id="YahooAuthorPreview"></span><br/>' . "\n"; echo ' Language: <span id="YahooRssLanguagePreview">English</span><br/>' . "\n"; echo ' Copyright: --<br/>' . "\n"; echo ' Published: whatever date<br/>' . "\n"; echo ' </td>' . "\n"; echo ' <td align="left">' . "\n"; echo ' <font size="+1" color="#669900">Ratings</font><br/>' . "\n"; echo ' Be the first to rate!<br/><br/>' . "\n"; echo ' <b>Rate it:</b><br/>' . "\n"; echo ' <img src="' . podPress_url() . 'images/directoryPreview_yahoo_stars.png" border="0" alt="YahooStars" /> ' . "\n"; echo ' <br/><font color="#2597D6">Write a Review</font><br/>' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' </table>' . "\n"; echo ' </div>' . "\n"; echo ' </div>' . "\n"; echo ' <div id="PodcastAlleyPreviewDisplay" style="display: none; border: 0;">' . "\n"; echo ' <div style="width: 100%; text-align: center;"><a href="http://www.podcastalley.com/" target="_new">Visit this directory</a> / <a href="http://www.podcastalley.com/add_a_podcast.php" target="_new">Submit to this directory</a></div>' . "\n"; echo ' <table width="100%" border="0" cellspacing="0" cellpadding="0" style="background-color:#FFFFFF;">' . "\n"; echo ' <tr valign="top">' . "\n"; echo ' <td width="5%">' . "\n"; echo ' <img src="' . podPress_url() . 'images/directoryPreview_PCA_left.png" border="0" alt="PCA Left" /> ' . "\n"; echo ' </td>' . "\n"; echo ' <td width="90%">' . "\n"; echo ' <table width="100%" border="0" cellspacing="0" cellpadding="0" style="background-color:#F2F2F2;">' . "\n"; echo ' <tr valign="top">' . "\n"; echo ' <td class="podPress_statscell" valign="top" width="140">' . "\n"; echo ' <table class="podPress_statstable" width="100%" border="0" cellspacing="0" cellpadding="0">' . "\n"; echo ' <tr>' . "\n"; echo ' <td class="podPress_statshead">Podcast Stats</td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; echo ' <td class="podPress_linkscell">' . "\n"; echo ' <p><span class="podPress_captionstats">GENRE: </span> <span id="PCACategoryPreview"></span><br/>' . "\n"; echo ' <span class="podPress_captionstats">COMMENTS:</span> 0<br/>' . "\n"; echo ' <span class="podPress_captionstats">MONTHLY VOTES:</span> 0<br/>' . "\n"; echo ' <span class="podPress_captionstats">OVERALL VOTES:</span> 0<br/>' . "\n"; echo ' <span class="podPress_captionstats">MEMBER: </span>1/2000<br/>' . "\n"; echo ' <span class="podPress_captionstats">MONTHLY RANK:</span><br/>Not Yet Ranked<br/>' . "\n"; echo ' <br/><img src="' . podPress_url() . 'images/directoryPreview_PCA_buttons.png" border="0" alt="PCAButtons" /> ' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' </table>' . "\n"; echo ' </td>' . "\n"; echo ' <td class="podPress_desccell" valign="top">' . "\n"; echo ' <font size="3" color="#666666"><b><span id="PCABlognamePreview"></span></b></font><br/>' . "\n"; echo ' <span style="color: #666666;" id="PCADescriptionPreview"></span>' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' </table>' . "\n"; echo ' </td>' . "\n"; echo ' <td width="5%">' . "\n"; echo ' <img src="' . podPress_url() . 'images/directoryPreview_PCA_right.png" border="0" alt="PCA Right" /> ' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' </table>' . "\n"; echo ' </div>' . "\n"; echo ' <div id="PodcastReadyPreviewDisplay" style="display: none;">' . "\n"; echo ' <div style="width: 100%; text-align: center;"><a href="http://www.podcastready.com/" target="_new">Visit this directory</a> / <a href="http://www.podcastready.com/channel.php?action=subscribe&feed" target="_new" id="PodcastReadyFeedURLPreview">Submit to this directory</a></div>' . "\n"; echo ' <table width="100%" border="0" cellspacing="0" cellpadding="0" style="background-color:#CDE4A9">' . "\n"; echo ' <tr valign="top">' . "\n"; echo ' <td width="200" align="center">' . "\n"; echo ' <br/><img id="PodcastReadyPreviewImage" width="175" height="175" alt="Podcast Image" src=""/><br/>' . "\n"; echo ' <img src="' . podPress_url() . 'images/directoryPreview_PodcastReady_buttons.png" border="0" alt="PodcastReadyButtons" /><br/>' . "\n"; echo ' </td>' . "\n"; echo ' <td>' . "\n"; echo ' <br/><b><font size="+1" color="#466B90">Detail for <span id="PodcastReadyBlognamePreview"></span></font></b><br/><br/>' . "\n"; echo ' <span id="PodcastReadyDescriptionPreview" style="font-size: small;"></span><br/>' . "\n"; echo ' <b>Filed Under:</b> <span id="PodcastReadyCategoryPreview" style="color: #466B90;"></span><br/>' . "\n"; echo ' <b>Media Type:</b> MP3<br/><br/>' . "\n"; echo ' <img src="' . podPress_url() . 'images/directoryPreview_PodcastReady_listeners.png" border="0" alt="PodcastReadyOtherPeople" /> ' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' </table>' . "\n"; echo ' </div>' . "\n"; echo ' <div id="BlubrryPreviewDisplay" style="display: none; border: 0;">' . "\n"; echo ' <div style="width: 100%; text-align: center; "><a href="http://www.blubrry.com" target="_new">Visit this community</a> / <a href="http://www.blubrry.com/accountsettings.php?page=addpodcast" target="_new">Join this community</a></div>' . "\n"; echo ' <table width="100%" style="background-color: #F2CCFF; color: #003366; font-size:14px; font-weight:bold;" border="0" cellpadding="2" cellspacing="0">' . "\n"; echo ' <tr>' . "\n"; echo ' <td style="font-size:16px; font-weight:bold;" id="BlubrryBlognamePreview">TITLE OF PODCAST HERE</td>' . "\n"; echo ' <td style="text-decoration:underline; text-align:right; font-weight:bold;">Visit Podcast Home Page</td>' . "\n"; echo ' </tr>' . "\n"; echo ' </table>' . "\n"; echo ' <table width="100%" style="background-color: #D2E9FF; color: #003366; font-size:12px;" border="0" cellpadding="2" cellspacing="0">' . "\n"; echo ' <tr>' . "\n"; echo ' <td valign="top" style="width:230px;">' . "\n"; echo ' <table width="220" border="0" cellspacing="0" cellpadding="0" style="padding-left: 6px; padding-top: 6px;">' . "\n"; echo ' <tr>' . "\n"; echo ' <td width="100" height="100" align="left" valign="top"><img id="BlubrryPreviewImage" width="90" height="90" alt="Podcast Image" src=""/></td>' . "\n"; echo ' <td width="120" valign="top"><div id="BlubrryAuthorPreview" style="font-weight: bold;">AUTHOR NAME</div>' . "\n"; echo ' <img src="' . podPress_url() . 'images/directoryPreview_Blubrry_buttons.png" width="64" height="52" /></td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; echo ' <td height="28" colspan="2" valign="top" style="font-size: 14px; font-weight: bold; text-decoration:underline;">Visit Podcast Home Page</td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; echo ' <td height="36" colspan="2" valign="top" style="font-size: 16px; font-weight: bold; color: black;">Current Episodes</td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; echo ' <td colspan="2"><div style="color:#9933D5; font-weight: bold; font-size: 14px;">Latest Podcast Post Title</div>' . "\n"; echo ' <div style="font-size: 12px;">The content of your post appears here. Wow your stuff looks good. Hey what if someone wants to listen, they can click on the button below.</div>' . "\n"; echo ' <img src="' . podPress_url() . 'images/directoryPreview_Blubrry_buttons_episode.png" />' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' </table>' . "\n"; echo ' </td>' . "\n"; echo ' <td valign="top" style="padding-left: 10px; padding-top: 10px;">' . "\n"; echo ' <div style="font-size: 18px; font-weight: bold; padding-bottom: 10px;">Description</div>' . "\n"; echo ' <div style="font-size: 12px; padding-bottom: 5px;" id="BlubrryDescriptionPreview">DESCRIPTION OF PODCAST</div>' . "\n"; echo ' <div style="text-align:right; padding-bottom: 10px;"><img src="' . podPress_url() . 'images/directoryPreview_Blubrry_syndication.png" /></div>' . "\n"; echo ' <div style="font-size: 18px; font-weight: bold; padding-bottom: 10px;">Tags</div>' . "\n"; echo ' <div style="padding-bottom: 10px;">mightyseek podpress awesome wordpress plugin</div>' . "\n"; echo ' <div style="font-size: 18px; font-weight: bold; padding-bottom: 10px;">Friends</div>' . "\n"; echo ' <div style="background-image:url(' . podPress_url() . 'images/directoryPreview_Blubrry_friends.jpg); background-repeat:no-repeat; background-position: top left; height:113px;"> </div>' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' </table>' . "\n"; echo ' </div>' . "\n"; echo ' </div><!-- End: podpress_DirectoryPreviewDisplay -->' . "\n"; echo '</fieldset>' . "\n"; }
function settings_players_edit() { global $wp_version; podPress_isAuthorized(); if (isset($_GET['updated']) && $_GET['updated'] == 'true') { echo '<div id="message" class="updated fade"><p>' . __('Settings Saved', 'podpress') . '</p></div>'; } elseif (isset($_GET['updated']) && $_GET['updated'] != 'true') { echo '<div id="message" class="error fade"><p>' . __('<strong>Error:</strong> Unable to save the settings', 'podpress') . '</p></div>'; } if ($this->settings['player']['bg'] == '') { $this->resetPlayerSettings(); } echo '<div class="wrap">' . "\n"; if (TRUE == version_compare($wp_version, '2.7', '>=')) { echo '<div id="podpress-icon" class="icon32"><br /></div>'; } if (TRUE == version_compare($wp_version, '2.8', '>=')) { echo ' <h2>' . __('Player Settings', 'podpress') . '</h2>' . "\n"; // get the plugins version information via the WP plugins version check if (TRUE == version_compare($wp_version, '2.9', '>=')) { $versioninfo = get_site_transient('update_plugins'); } else { $versioninfo = get_transient('update_plugins'); } // If there is a new version then there is a 'response'. This is the method from the plugins page. if (FALSE !== isset($versioninfo->response[plugin_basename(dirname(__FILE__) . '/podpress.php')]->new_version)) { echo '<div class="message updated"><p><a href="http://wordpress.org/extend/plugins/podpress/" target="_blank">' . __('a new podPress version is available', 'podpress') . '</a></p></div>'; } } else { echo ' <h2>' . __('Player Settings', 'podpress') . ' <a href="http://www.mightyseek.com/podpress/#download" target="_new"><img src="http://www.mightyseek.com/podpress_downloads/versioncheck.php?current=' . PODPRESS_VERSION . '" alt="' . __('Checking for updates... Failed.', 'podpress') . '" border="0" /></a></h2>' . "\n"; } echo ' <form method="post">' . "\n"; if (function_exists('wp_nonce_field')) { // since WP 2.0.4 wp_nonce_field('podPress_player_settings_nonce'); } $podPress_url = podPress_url(); echo ' <fieldset class="options">' . "\n"; echo ' <legend>' . __('MP3 Player', 'podpress') . '</legend>' . "\n"; echo ' <table class="editform podpress_settings_table">' . "\n"; echo ' <tr>' . "\n"; echo ' <th>' . __('Player', 'podpress') . ':</th>' . "\n"; echo ' <td colspan="2"><select name="mp3Player"><option value="1pixelout"'; if ($this->settings['mp3Player'] == '1pixelout') { echo ' selected="selected"'; } echo '>' . __('1PixelOut', 'podpress') . '</option><option value="podango"'; if ($this->settings['mp3Player'] == 'podango') { echo ' selected="selected"'; } echo '>' . __('Podango', 'podpress') . '</option></select></td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; echo ' <th>' . __('Colour map', 'podpress') . ':</th>' . "\n"; if ($this->settings['mp3Player'] == '1pixelout') { echo ' <td colspan="2"><img src="' . $podPress_url . 'images/colormap_1pixelout_numbers.png" alt="' . __('1PixelOut Player Color Map', 'podpress') . '" /></td>' . "\n"; } else { echo ' <td colspan="2"><img src="' . $podPress_url . 'images/colormap_podango_numbers.png" alt="' . __('Podango Player Color Map', 'podpress') . '" /></td>' . "\n"; } //~ if ($this->settings['mp3Player'] == '1pixelout') { //~ echo ' <td colspan="2"><img src="'.$podPress_url.'images/map.png" alt="1PixelOut Player Map" /></td>'."\n"; //~ } else { //~ echo ' <td colspan="2"><img src="'.$podPress_url.'images/map-podango.png" alt="Podango Player Map" /></td>'."\n"; //~ } echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; echo ' <th><label for="playerSettings_lefticon_">' . __('Left icon', 'podpress') . ' (1):</label></th>' . "\n"; echo ' <td class="podpress_player_color_cell">' . "\n"; echo ' <input type="text" id="playerSettings_lefticon_" name="playerSettings[lefticon]" size="40" value="' . $this->settings['player']['lefticon'] . '" style="background-color: ' . $this->settings['player']['lefticon'] . ';" onfocus="javascript: podPress_switchColorInputs(this.id);" onchange="javascript: this.style.background=this.value;" />' . "\n"; echo ' </td>' . "\n"; echo ' <td rowspan="16" class="podpress_player_color_cell_right_col">' . "\n"; echo ' <br/> ' . __('Pick the field you want to change the color for. Then mouse over the color selector, and you will see the color change for the field you chose. Click on the color selector to lock in your selection.', 'podpress') . '<br/><br/> <div id="podpress_color_picker_box"><!-- color picker box begin --> <div class="podpress_color_picker_row"> <span class="podpress_color_picker_field" style="background-color:#000000"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#000000\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#000033"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#000033\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#000066"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#000066\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#000099"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#000099\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#0000cc"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#0000cc\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#0000ff"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#0000ff\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#006600"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#006600\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#006633"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#006633\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#006666"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#006666\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#006699"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#006699\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#0066cc"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#0066cc\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#0066ff"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#0066ff\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#00cc00"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#00cc00\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#00cc33"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#00cc33\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#00cc66"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#00cc66\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#00cc99"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#00cc99\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#00cccc"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#00cccc\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#00ccff"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#00ccff\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> </div><!-- color picker row end --> <div class="podpress_color_picker_row"> <span class="podpress_color_picker_field" style="background-color:#003300"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#003300\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#003333"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#003333\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#003366"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#003366\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#003399"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#003399\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#0033cc"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#0033cc\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#0033ff"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#0033ff\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#009900"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#009900\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#009933"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#009933\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#009966"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#009966\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#009999"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#009999\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#0099cc"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#0099cc\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#0099ff"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#0099ff\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#00ff00"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#00ff00\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#00ff33"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#00ff33\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#00ff66"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#00ff66\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#00ff99"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#00ff99\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#00ffcc"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#00ffcc\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#00ffff"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#00ffff\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> </div><!-- color picker row end --> <div class="podpress_color_picker_row"> <span class="podpress_color_picker_field" style="background-color:#330000"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#330000\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#330033"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#330033\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#330066"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#330066\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#330099"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#330099\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#3300cc"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#3300cc\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#3300ff"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#3300ff\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#336600"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#336600\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#336633"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#336633\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#336666"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#336666\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#336699"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#336699\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#3366cc"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#3366cc\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#3366ff"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#3366ff\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#33cc00"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#33cc00\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#33cc33"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#33cc33\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#33cc66"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#33cc66\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#33cc99"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#33cc99\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#33cccc"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#33cccc\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#33ccff"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#33ccff\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> </div><!-- color picker row end --> <div class="podpress_color_picker_row"> <span class="podpress_color_picker_field" style="background-color:#333300"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#333300\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#333333"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#333333\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#333366"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#333366\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#333399"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#333399\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#3333cc"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#3333cc\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#3333ff"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#3333ff\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#339900"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#339900\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#339933"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#339933\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#339966"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#339966\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#339999"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#339999\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#3399cc"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#3399cc\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#3399ff"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#3399ff\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#33ff00"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#33ff00\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#33ff33"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#33ff33\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#33ff66"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#33ff66\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#33ff99"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#33ff99\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#33ffcc"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#33ffcc\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#33ffff"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#33ffff\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> </div><!-- color picker row end --> <div class="podpress_color_picker_row"> <span class="podpress_color_picker_field" style="background-color:#660000"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#660000\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#660033"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#660033\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#660066"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#660066\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#660099"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#660099\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#6600cc"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#6600cc\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#6600ff"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#6600ff\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#666600"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#666600\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#666633"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#666633\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#666666"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#666666\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#666699"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#666699\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#6666cc"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#6666cc\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#6666ff"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#6666ff\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#66cc00"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#66cc00\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#66cc33"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#66cc33\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#66cc66"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#66cc66\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#66cc99"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#66cc99\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#66cccc"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#66cccc\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#66ccff"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#66ccff\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> </div><!-- color picker row end --> <div class="podpress_color_picker_row"> <span class="podpress_color_picker_field" style="background-color:#663300"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#663300\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#663333"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#663333\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#663366"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#663366\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#663399"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#663399\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#6633cc"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#6633cc\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#6633ff"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#6633ff\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#669900"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#669900\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#669933"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#669933\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#669966"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#669966\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#669999"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#669999\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#6699cc"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#6699cc\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#6699ff"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#6699ff\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#66ff00"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#66ff00\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#66ff33"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#66ff33\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#66ff66"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#66ff66\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#66ff99"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#66ff99\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#66ffcc"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#66ffcc\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#66ffff"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#66ffff\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> </div><!-- color picker row end --> <div class="podpress_color_picker_row"> <span class="podpress_color_picker_field" style="background-color:#990000"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#990000\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#990033"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#990033\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#990066"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#990066\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#990099"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#990099\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#9900cc"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#9900cc\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#9900ff"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#9900ff\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#996600"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#996600\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#996633"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#996633\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#996666"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#996666\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#996699"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#996699\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#9966cc"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#9966cc\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#9966ff"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#9966ff\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#99cc00"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#99cc00\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#99cc33"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#99cc33\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#99cc66"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#99cc66\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#99cc99"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#99cc99\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#99cccc"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#99cccc\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#99ccff"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#99ccff\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> </div><!-- color picker row end --> <div class="podpress_color_picker_row"> <span class="podpress_color_picker_field" style="background-color:#993300"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#993300\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#993333"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#993333\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#993366"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#993366\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#993399"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#993399\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#9933cc"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#9933cc\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#9933ff"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#9933ff\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#999900"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#999900\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#999933"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#999933\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#999966"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#999966\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#999999"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#999999\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#9999cc"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#9999cc\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#9999ff"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#9999ff\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#99ff00"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#99ff00\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#99ff33"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#99ff33\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#99ff66"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#99ff66\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#99ff99"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#99ff99\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#99ffcc"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#99ffcc\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#99ffff"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#99ffff\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> </div><!-- color picker row end --> <div class="podpress_color_picker_row"> <span class="podpress_color_picker_field" style="background-color:#cc0000"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#cc0000\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#cc0033"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#cc0033\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#cc0066"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#cc0066\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#cc0099"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#cc0099\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#cc00cc"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#cc00cc\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#cc00ff"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#cc00ff\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#cc6600"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#cc6600\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#cc6633"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#cc6633\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#cc6666"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#cc6666\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#cc6699"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#cc6699\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#cc66cc"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#cc66cc\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#cc66ff"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#cc66ff\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#cccc00"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#cccc00\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#cccc33"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#cccc33\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#cccc66"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#cccc66\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#cccc99"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#cccc99\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#cccccc"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#cccccc\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#ccccff"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ccccff\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> </div><!-- color picker row end --> <div class="podpress_color_picker_row"> <span class="podpress_color_picker_field" style="background-color:#cc3300"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#cc3300\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#cc3333"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#cc3333\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#cc3366"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#cc3366\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#cc3399"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#cc3399\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#cc33cc"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#cc33cc\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#cc33ff"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#cc33ff\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#cc9900"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#cc9900\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#cc9933"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#cc9933\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#cc9966"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#cc9966\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#cc9999"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#cc9999\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#cc99cc"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#cc99cc\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#cc99ff"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#cc99ff\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#ccff00"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ccff00\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#ccff33"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ccff33\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#ccff66"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ccff66\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#ccff99"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ccff99\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#ccffcc"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ccffcc\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#ccffff"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ccffff\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> </div><!-- color picker row end --> <div class="podpress_color_picker_row"> <span class="podpress_color_picker_field" style="background-color:#ff0000"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ff0000\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#ff0033"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ff0033\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#ff0066"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ff0066\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#ff0099"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ff0099\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#ff00cc"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ff00cc\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#ff00ff"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ff00ff\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#ff6600"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ff6600\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#ff6633"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ff6633\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#ff6666"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ff6666\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#ff6699"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ff6699\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#ff66cc"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ff66cc\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#ff66ff"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ff66ff\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#ffcc00"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ffcc00\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#ffcc33"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ffcc33\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#ffcc66"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ffcc66\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#ffcc99"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ffcc99\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#ffcccc"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ffcccc\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#ffccff"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ffccff\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> </div><!-- color picker row end --> <div class="podpress_color_picker_row"> <span class="podpress_color_picker_field" style="background-color:#ff3300"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ff3300\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#ff3333"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ff3333\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#ff3366"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ff3366\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#ff3399"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ff3399\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#ff33cc"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ff33cc\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#ff33ff"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ff33ff\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#ff9900"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ff9900\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#ff9933"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ff9933\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#ff9966"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ff9966\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#ff9999"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ff9999\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#ff99cc"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ff99cc\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#ff99ff"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ff99ff\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#ffff00"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ffff00\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#ffff33"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ffff33\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#ffff66"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ffff66\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#ffff99"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ffff99\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#ffffcc"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ffffcc\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> <span class="podpress_color_picker_field" style="background-color:#ffffff"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#ffffff\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span> </div><!-- color picker row end --> ' . "\n"; $hex = array(0 => '0', 1 => '1', 2 => '2', 3 => '3', 4 => '4', 5 => '5', 6 => '6', 7 => '7', 8 => '8', 9 => '9', 10 => 'A', 11 => 'B', 12 => 'C', 13 => 'D', 14 => 'E', 15 => 'F'); // gray scale echo '<div class="podpress_color_picker_row">' . "\n"; for ($i = 0; $i < 16; $i++) { echo ' <span class="podpress_color_picker_field" style="background-color:#' . $hex[$i] . $hex[$i] . $hex[$i] . $hex[$i] . $hex[$i] . $hex[$i] . '"><a href="javascript: podPress_colorLock()" onmouseover="javascript: podPress_colorSet(\'#' . $hex[$i] . $hex[$i] . $hex[$i] . $hex[$i] . $hex[$i] . $hex[$i] . '\'); return true"><img src="' . $podPress_url . 'images/podpress_spacer.gif" alt="." /></a></span>' . "\n"; } echo '</div>' . "\n"; echo '</div><!-- color picker box end -->' . "\n"; echo '<br/>' . "\n"; echo '<input type="button" name="ResetColors" value="' . __('Reset Colors to Defaults', 'podpress') . '" onclick="javascript: podPress_colorReset();" />' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; echo ' <th><label for="playerSettings_leftbg_">' . __('Left background', 'podpress') . ' (2):</label></th>' . "\n"; echo ' <td class="podpress_player_color_cell">' . "\n"; echo ' <input type="text" id="playerSettings_leftbg_" name="playerSettings[leftbg]" size="40" value="' . $this->settings['player']['leftbg'] . '" style="background-color: ' . $this->settings['player']['leftbg'] . ';" onfocus="javascript: podPress_switchColorInputs(this.id);" onchange="javascript: this.style.background=this.value;" />' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; echo ' <th><label for="playerSettings_volslider_">' . __('Volume control slider', 'podpress') . ' (3):</label></th>' . "\n"; echo ' <td class="podpress_player_color_cell">' . "\n"; echo ' <input type="text" id="playerSettings_volslider_" name="playerSettings[volslider]" size="40" value="' . $this->settings['player']['volslider'] . '" style="background-color: ' . $this->settings['player']['volslider'] . ';" onfocus="javascript: podPress_switchColorInputs(this.id);" onchange="javascript: this.style.background=this.value;" />' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; echo ' <th><label for="playerSettings_voltrack_">' . __('Volume control track', 'podpress') . ' (4):</label></th>' . "\n"; echo ' <td class="podpress_player_color_cell">' . "\n"; echo ' <input type="text" id="playerSettings_voltrack_" name="playerSettings[voltrack]" size="40" value="' . $this->settings['player']['voltrack'] . '" style="background-color: ' . $this->settings['player']['voltrack'] . ';" onfocus="javascript: podPress_switchColorInputs(this.id);" onchange="javascript: this.style.background=this.value;" />' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; echo ' <th><label for="playerSettings_text_">' . __('Text', 'podpress') . ' (5):</label></th>' . "\n"; echo ' <td class="podpress_player_color_cell">' . "\n"; echo ' <input type="text" id="playerSettings_text_" name="playerSettings[text]" size="40" value="' . $this->settings['player']['text'] . '" style="background-color: ' . $this->settings['player']['text'] . ';" onfocus="javascript: podPress_switchColorInputs(this.id);" onchange="javascript: this.style.background=this.value;" />' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; echo ' <th><label for="playerSettings_tracker_">' . __('Progress bar', 'podpress') . ' (6):</label></th>' . "\n"; echo ' <td class="podpress_player_color_cell">' . "\n"; echo ' <input type="text" id="playerSettings_tracker_" name="playerSettings[tracker]" size="40" value="' . $this->settings['player']['tracker'] . '" style="background-color: ' . $this->settings['player']['tracker'] . ';" onfocus="javascript: podPress_switchColorInputs(this.id);" onchange="javascript: this.style.background=this.value;" />' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; echo ' <th><label for="playerSettings_slider_">' . __('Podango Progress bar track', 'podpress') . ' (6p):</label></th>' . "\n"; echo ' <td class="podpress_player_color_cell">' . "\n"; echo ' <input type="text" id="playerSettings_slider_" name="playerSettings[slider]" size="40" value="' . $this->settings['player']['slider'] . '" style="background-color: ' . $this->settings['player']['slider'] . ';" onfocus="javascript: podPress_switchColorInputs(this.id);" onchange="javascript: this.style.background=this.value;" /> (*)' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; echo ' <th><label for="playerSettings_loader_">' . __('Loading bar', 'podpress') . ' (7):</label></th>' . "\n"; echo ' <td class="podpress_player_color_cell">' . "\n"; echo ' <input type="text" id="playerSettings_loader_" name="playerSettings[loader]" size="40" value="' . $this->settings['player']['loader'] . '" style="background-color: ' . $this->settings['player']['loader'] . ';" onfocus="javascript: podPress_switchColorInputs(this.id);" onchange="javascript: this.style.background=this.value;" /> (*)' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; echo ' <th><label for="playerSettings_track_">' . __('Progress bar track', 'podpress') . ' (8):</label></th>' . "\n"; echo ' <td class="podpress_player_color_cell">' . "\n"; echo ' <input type="text" id="playerSettings_track_" name="playerSettings[track]" size="40" value="' . $this->settings['player']['track'] . '" style="background-color: ' . $this->settings['player']['track'] . ';" onfocus="javascript: podPress_switchColorInputs(this.id);" onchange="javascript: this.style.background=this.value;" />' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; echo ' <th><label for="playerSettings_border_">' . __('Progress bar border', 'podpress') . ' (9):</label></th>' . "\n"; echo ' <td class="podpress_player_color_cell">' . "\n"; echo ' <input type="text" id="playerSettings_border_" name="playerSettings[border]" size="40" value="' . $this->settings['player']['border'] . '" style="background-color: ' . $this->settings['player']['border'] . ';" onfocus="javascript: podPress_switchColorInputs(this.id);" onchange="javascript: this.style.background=this.value;" /> (*)' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; echo ' <th><label for="playerSettings_bg_">' . __('Background', 'podpress') . ' (10):</label></th>' . "\n"; echo ' <td class="podpress_player_color_cell">' . "\n"; echo ' <input type="text" id="playerSettings_bg_" name="playerSettings[bg]" size="40" value="' . $this->settings['player']['bg'] . '" style="background-color: ' . $this->settings['player']['bg'] . ';" onfocus="javascript: podPress_switchColorInputs(this.id);" onchange="javascript: this.style.background=this.value;" /> (*)<br />' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; echo ' <th><label for="playerSettings_skip_">' . __('Next / Previous buttons', 'podpress') . ' (11):</label></th>' . "\n"; echo ' <td class="podpress_player_color_cell">' . "\n"; echo ' <input type="text" id="playerSettings_skip_" name="playerSettings[skip]" size="40" value="' . $this->settings['player']['skip'] . '" style="background-color: ' . $this->settings['player']['skip'] . ';" onfocus="javascript: podPress_switchColorInputs(this.id);" onchange="javascript: this.style.background=this.value;" />' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; echo ' <th><label for="playerSettings_righticon_">' . __('Right icon', 'podpress') . ' (12):</label></th>' . "\n"; echo ' <td class="podpress_player_color_cell">' . "\n"; echo ' <input type="text" id="playerSettings_righticon_" name="playerSettings[righticon]" size="40" value="' . $this->settings['player']['righticon'] . '" style="background-color: ' . $this->settings['player']['righticon'] . ';" onfocus="javascript: podPress_switchColorInputs(this.id);" onchange="javascript: this.style.background=this.value;" /> (*)' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; echo ' <th><label for="playerSettings_righticonhover_">' . __('Right icon (hover)', 'podpress') . ':</label></th>' . "\n"; echo ' <td class="podpress_player_color_cell">' . "\n"; echo ' <input type="text" id="playerSettings_righticonhover_" name="playerSettings[righticonhover]" size="40" value="' . $this->settings['player']['righticonhover'] . '" style="background-color: ' . $this->settings['player']['righticonhover'] . ';" onfocus="javascript: podPress_switchColorInputs(this.id);" onchange="javascript: this.style.background=this.value;" /> (*)' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; echo ' <th><label for="playerSettings_rightbg_">' . __('Right background', 'podpress') . ' (13):</label></th>' . "\n"; echo ' <td class="podpress_player_color_cell">' . "\n"; echo ' <input type="text" id="playerSettings_rightbg_" name="playerSettings[rightbg]" size="40" value="' . $this->settings['player']['rightbg'] . '" style="background-color: ' . $this->settings['player']['rightbg'] . ';" onfocus="javascript: podPress_switchColorInputs(this.id);" onchange="javascript: this.style.background=this.value;" /> (*)' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; echo ' <th><label for="playerSettings_rightbghover_">' . __('Right background (hover)', 'podpress') . ':</label></th>' . "\n"; echo ' <td class="podpress_player_color_cell">' . "\n"; echo ' <input type="text" id="playerSettings_rightbghover_" name="playerSettings[rightbghover]" size="40" value="' . $this->settings['player']['rightbghover'] . '" style="background-color: ' . $this->settings['player']['rightbghover'] . ';" onfocus="javascript: podPress_switchColorInputs(this.id);" onchange="javascript: this.style.background=this.value;" /> (*)' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; echo ' <th> </th>' . "\n"; echo ' <td> </td>' . "\n"; echo ' <td class="podpress_player_color_cell_right_col">' . "\n"; echo ' ' . __('(*) is also a Podango Player option (all other options are for the 1PixelOut player only)', 'podpress') . "<br />\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; echo ' <th><label for="playerSettings_listenWrapper">' . __('Enable Listen Wrapper', 'podpress') . ':</label></th>' . "\n"; echo ' <td colspan="2">' . "\n"; if (FALSE == $this->settings['enablePodangoIntegration'] and TRUE == isset($this->settings['mp3Player']) and '1pixelout' == $this->settings['mp3Player']) { echo ' <input type="checkbox" name="playerSettings[listenWrapper]" id="playerSettings_listenWrapper" '; if ($this->settings['player']['listenWrapper']) { echo 'checked="checked"'; } echo ' onclick="javascript: if (this.checked == true) { document.getElementById(\'podpress_lwc_1\').style.backgroundImage = \'url(' . PODPRESS_URL . '/images/listen_wrapper.gif)\';} else { document.getElementById(\'podpress_lwc_1\').style.backgroundImage = \'\'; }" />' . "\n"; } else { echo ' <input type="checkbox" name="playerSettings[listenWrapper]" id="playerSettings_listenWrapper" '; if ($this->settings['player']['listenWrapper']) { echo 'checked="checked"'; } echo " onclick=\"javascript: podPressShowHideWrapper('podPressPlayerSpace_1', '" . PODPRESS_URL . '/images/listen_wrapper.gif' . "');\"/>\n"; } echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; echo ' <th> </th>' . "\n"; echo ' <td colspan="2">' . "\n"; if (FALSE == $this->settings['enablePodangoIntegration'] and TRUE == isset($this->settings['mp3Player']) and '1pixelout' == $this->settings['mp3Player']) { if (TRUE == isset($this->settings['player']['listenWrapper']) and TRUE == $this->settings['player']['listenWrapper']) { echo ' <div class="podpress_listenwrapper_container" id="podpress_lwc_1" style="background-image:url(' . PODPRESS_URL . '/images/listen_wrapper.gif);"><div class="podpress_mp3_borderleft"></div><div class="podpress_1pixelout_container"><div id="podPressPlayerSpace_1"></div></div></div>' . "\n"; } else { echo ' <div class="podpress_listenwrapper_container" id="podpress_lwc_1"><div class="podpress_mp3_borderleft"></div><div class="podpress_1pixelout_container"><div id="podPressPlayerSpace_1"></div></div></div>' . "\n"; } } else { echo ' <div id="podPressPlayerSpace_1"></div>' . "\n"; } echo ' <div id = "podPressPlayerSpace_1_PlayLink"></div>' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' </table>' . "\n"; echo ' </fieldset><br />' . "\n"; if (FALSE == $this->settings['enablePodangoIntegration'] and TRUE == isset($this->settings['mp3Player']) and '1pixelout' == $this->settings['mp3Player']) { echo ' <script type="text/javascript"><!--' . "\n"; echo ' podpressAudioPlayer.embed("podPressPlayerSpace_1", { soundFile: "sample.mp3", width: 290, height: 24, autostart: "no" });' . "\n"; // titles: "'.js_escape($val['artist']).'", artists: "'.js_escape($val['title']).'", echo ' --></script>' . "\n"; } else { echo '<script type="text/javascript"><!--' . "\n"; if (!$this->settings['player']['listenWrapper']) { echo ' podPressMP3PlayerWrapper = false;' . "\n"; } else { echo ' podPressMP3PlayerWrapper = true;' . "\n"; } echo "\tdocument.getElementById('podPressPlayerSpace_1').innerHTML = podPressGeneratePlayer(1, 'sample.mp3', '', '');\n"; echo "--></script>\n"; } echo ' <fieldset class="options">' . "\n"; echo ' <table class="editform podpress_settings_table">' . "\n"; echo ' <tr>' . "\n"; echo ' <th><label for="playerSettings_initialvolume_">' . __('Initial Volume Level', 'podpress') . ':</label></th>' . "\n"; echo ' <td class="podpress_player_narrowmiddle_col">' . "\n"; echo ' <select name="playerSettings[initialvolume]">' . "\n"; if (FALSE == isset($this->settings['player']['initialvolume'])) { $initialvolume = 70; } else { $initialvolume = intval($this->settings['player']['initialvolume']); } for ($i = 100; $i >= 0; $i--) { if ($i == $initialvolume) { $selected = ' selected="selected"'; } else { $selected = ''; } echo ' <option value="' . $i . '"' . $selected . '>' . $i . '</option>' . "\n"; } echo ' </select>' . "\n"; echo ' </td>' . "\n"; echo ' <td>' . __('(default: 70)', 'podpress') . '</td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; echo ' <th><label for="playerSettings_buffer_">' . __('Buffering Time', 'podpress') . ':</label></th>' . "\n"; echo ' <td class="podpress_player_narrowmiddle_col">' . "\n"; echo ' <select name="playerSettings[buffer]">' . "\n"; if (FALSE == isset($this->settings['player']['buffer'])) { $buffer = 5; } else { $buffer = intval($this->settings['player']['buffer']); } for ($i = 5; $i <= 60; $i++) { if ($i == $buffer) { $selected = ' selected="selected"'; } else { $selected = ''; } echo ' <option value="' . $i . '"' . $selected . '>' . $i . '</option>' . "\n"; } echo ' </select>' . "\n"; echo ' </td>' . "\n"; echo ' <td>' . __('It is the time span in seconds (default: 5) which the player uses to load a part of the mp3 before it starts to play the mp3 file.', 'podpress') . '</td>' . "\n"; echo ' </tr>' . "\n"; if (TRUE == isset($this->settings['player']['checkpolicy']) and 'yes' == $this->settings['player']['checkpolicy'] and (FALSE == isset($this->settings['player']['overwriteTitleandArtist']) or 'yes' !== $this->settings['player']['overwriteTitleandArtist'])) { $checked = ' checked="checked"'; } else { $checked = ''; } echo ' <tr>' . "\n"; echo ' <th><label for="playerSettings_checkpolicy_">' . __('Use a cross-domain policy file', 'podpress') . ':</label></th>' . "\n"; echo ' <td class="podpress_player_narrowmiddle_col">' . "\n"; echo ' <input type="checkbox" name="playerSettings[checkpolicy]" id="playerSettings_checkpolicy_"' . $checked . ' value="yes" onclick="podpress_checkonlyone( \'playerSettings_overwriteTitleandArtist_\', this.id );" />' . "\n"; echo ' </td>' . "\n"; echo ' <td class="podpress_player_description_cell">' . __('By default, the 1PixelOut player gets the track information from the <a href="http://en.wikipedia.org/wiki/Id3" target="_blank" title="en.Wikipedia: ID3 tags">ID3 tags</a> of a mp3 file. These tags are usually set by (resp. with the help of) the software which you use to create the file. If they are set correctly, you should see the artist and title in the player. But if your mp3 files are not located in one of the sub folders of your blog then the player won\'t be able to read the ID3 tags even if the file is located on a subdomain (e.g. your blog url is yourdomain.com and your files are on www.yourdomain.com). This is a security feature of the <a href="http://en.wikipedia.org/wiki/Adobe_Flash_Player" title="en.Wikipedia: Adobe Flash Player">Adobe Flash Player</a> of your web browser. The 1PixelOut player shows in such situations e.g. "<strong>Track #1</strong>" instead of the ID3 information.<br />But you can allow the player from certain domains the access to the ID3 tags with the help of a crossdomain policy file. A policy file is a simple <a href="http://en.wikipedia.org/wiki/XML" title="en.Wikipedia: XML">XML</a> file that you place in the root of the server where you host your mp3 files. Here is the syntax:', 'podpress'); echo ' <br /><code style="display:block;">'; echo ' <?xml version="1.0"?>' . "<br />\n"; echo ' <!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">' . "<br />\n"; echo ' <cross-domain-policy>' . "<br />\n"; echo ' <allow-access-from domain="www.yourdomain.com"/>' . "<br />\n"; echo ' </cross-domain-policy>'; echo ' </code>'; echo ' ' . __('Replace yourdomain.com with the domain on which your blog and the player is hosted. You can also use wildcards to allow access from any subdomain (*.yourdomain.com). But it is recommended to be as restrictive as possible. More information, read Adobe\'s full <a href="http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html" target="_blank">cross-domain policy file specification</a>. Name the policy file <em>crossdomain.xml</em>.<br />Enable this option only if all your mp3 files are located on a server with a policy file.<br />This option works only if you are not using the statistic features of podPress.', 'podpress') . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; if (TRUE == isset($this->settings['player']['overwriteTitleandArtist']) and 'yes' == $this->settings['player']['overwriteTitleandArtist'] and (FALSE == isset($this->settings['player']['checkpolicy']) or 'yes' !== $this->settings['player']['checkpolicy'])) { $checked = ' checked="checked"'; } else { $checked = ''; } echo ' <tr>' . "\n"; echo ' <th><label for="playerSettings_overwriteTitleandArtist_">' . __('Use custom values for titles and artists instead of the ID3 data', 'podpress') . ':</label></th>' . "\n"; echo ' <td class="podpress_player_narrowmiddle_col">' . "\n"; echo ' <input type="checkbox" name="playerSettings[overwriteTitleandArtist]" id="playerSettings_overwriteTitleandArtist_"' . $checked . ' value="yes" onclick="podpress_checkonlyone( \'playerSettings_checkpolicy_\', this.id );" />' . "\n"; echo ' </td>' . "\n"; echo ' <td class="podpress_player_description_cell">' . sprintf(__('With this option the displayed title and artist of a mp3 file will be overwritten by the custom title which you can insert for each file at the editor page and the post specific value of iTunes:Author. This helps in cases when the "%1$s" option is not helping e.g. if your media files are on a server or domain and you can not use a cross-domain policy file or if you are using the statistic features of podPress.', 'podpress'), __('Use a cross-domain policy file', 'podpress')) . '</td>' . "\n"; echo ' </tr>' . "\n"; echo ' </table>' . "\n"; echo ' </fieldset>' . "\n"; echo ' <fieldset class="options">' . "\n"; echo ' <legend>' . __('OGG/OGV Player Settings', 'podpress') . '</legend>' . "\n"; echo ' <table class="editform podpress_settings_table">' . "\n"; echo ' <tr>' . "\n"; echo ' <th>' . __('choose a player:', 'podpress') . '</th>' . "\n"; echo ' <td class="podpress_player_narrowmiddle_col" style="width:15%;">' . "\n"; if (!isset($this->settings['cortado_version']) or 'cortado_default' === $this->settings['cortado_version']) { $cortado_default = ' checked="checked"'; $cortado_signed = ''; } else { $cortado_default = ''; $cortado_signed = ' checked="checked"'; } echo ' <input type="radio" name="cortado_version" id="cortado_default" value="cortado_default"' . $cortado_default . ' /> <label for="cortado_default">' . __('default version', 'podpress') . '</label><br />' . "\n"; echo ' <input type="radio" name="cortado_version" id="cortado_signed" value="cortado_signed"' . $cortado_signed . ' /> <label for="cortado_signed">' . __('signed version', 'podpress') . '</label>' . "\n"; echo ' </td>' . "\n"; echo ' <td>' . __('If your media files are stored not under the same domain as your blog and the default player then use the signed version of the <a href="http://www.theora.org/cortado/" target="_blank" title="theora.org: more details about this player">Cortado player</a>. But users will be asked to approve the certificate.', 'podpress') . '</td>' . "\n"; echo ' </tr> ' . "\n"; echo ' </table>' . "\n"; echo ' </fieldset>' . "\n"; echo ' <fieldset class="options">' . "\n"; echo ' <legend>' . __('Video Player', 'podpress') . '</legend>' . "\n"; echo ' <table class="editform podpress_settings_table">' . "\n"; echo ' <tr>' . "\n"; echo ' <th><label for="disableVideoPreview">' . __('Disable Video Preview', 'podpress') . ':</label></th>' . "\n"; echo ' <td class="podpress_player_narrowmiddle_col">' . "\n"; echo ' <input type="checkbox" name="disableVideoPreview" id="disableVideoPreview" '; if ($this->settings['disableVideoPreview']) { echo 'checked="checked"'; } echo " onclick=\"javascript: podPressShowHideRow('videoPreviewImageWrapper'); podPressShowHideRow('videoPreviewPlayerWrapper');\"/>\n"; echo ' </td>' . "\n"; echo ' <td>' . __('When checked there will be no previews of the video players in all posts (and pages).', 'podpress') . '</td>' . "\n"; echo ' </tr> ' . "\n"; if ($this->settings['disableVideoPreview']) { $showVideoPreviewOptions = 'style="display: none;"'; } echo ' <tr id="videoPreviewImageWrapper" ' . $showVideoPreviewOptions . '>' . "\n"; echo ' <th><label for="videoPreviewImage">' . __('Preview Image URL', 'podpress') . ':</label></th>' . "\n"; echo ' <td colspan="2">' . "\n"; echo ' <input type="text" id="videoPreviewImage" name="videoPreviewImage" class="podpress_wide_text_field" size="40" value="' . attribute_escape($this->settings['videoPreviewImage']) . '" onchange="javascript: document.getElementById(\'podPress_previewImageIMG_2\').src = this.value;" />' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr id="videoPreviewPlayerWrapper" ' . $showVideoPreviewOptions . '>' . "\n"; echo ' <th><label for="videoPreviewImage">' . __('Preview Image', 'podpress') . ':</label></th>' . "\n"; echo ' <td colspan="2">' . "\n"; echo ' <div id="podPressPlayerSpace_2"></div>' . "\n"; echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' </table>' . "\n"; echo '<script type="text/javascript"><!--' . "\n"; echo "\tdocument.getElementById('podPressPlayerSpace_2').innerHTML = podPressGenerateVideoPreview(2, '', 320, 240, '" . $this->settings['videoPreviewImage'] . "', true);\n"; echo "--></script>\n"; echo ' </fieldset>' . "\n"; echo ' <fieldset class="options">' . "\n"; echo ' <legend>' . __('All Players', 'podpress') . '</legend>' . "\n"; echo ' <table class="editform podpress_settings_table">' . "\n"; echo ' <tr>' . "\n"; echo ' <th><label for="contentAutoDisplayPlayer">' . __('Display Player/Preview', 'podpress') . ':</label></th>' . "\n"; echo ' <td class="podpress_player_narrowmiddle_col">' . "\n"; echo ' <input type="checkbox" name="contentAutoDisplayPlayer" id="contentAutoDisplayPlayer" '; if ($this->settings['contentAutoDisplayPlayer']) { echo 'checked="checked"'; } echo "/>\n"; echo ' </td>' . "\n"; echo ' <td class="podpress_player_description_cell">' . __('When checked the player/preview will be visible by default.', 'podpress') . '</td>' . "\n"; echo ' </tr> ' . "\n"; echo ' <tr>' . "\n"; echo ' <th><label for="use_html5_media_tags">' . __('Use HTML5 tags', 'podpress') . ':</label></th>' . "\n"; echo ' <td class="podpress_player_narrowmiddle_col">' . "\n"; $showhtml5playeralways_disabled = ' disabled="disabled"'; if (TRUE == isset($this->settings['use_html5_media_tags']) and FALSE === $this->settings['use_html5_media_tags']) { echo ' <input type="checkbox" name="use_html5_media_tags" id="use_html5_media_tags" value="yes" onclick="podPress_show_HTML5_player_always(this.id, \'showhtml5playersonpageload\')" />' . "\n"; $this->settings['showhtml5playersonpageload'] = FALSE; } else { echo ' <input type="checkbox" name="use_html5_media_tags" id="use_html5_media_tags" checked="checked" value="yes" onclick="podPress_show_HTML5_player_always(this.id, \'showhtml5playersonpageload\')" />' . "\n"; $showhtml5playeralways_disabled = ''; } echo ' </td>' . "\n"; echo ' <td class="podpress_player_description_cell">' . __('If this option is active (recommended) then podPress will embed MP3, OGG and OGV media files by using HTML5 elements, but only if the visitor of your blog uses a web browser which supports this. Otherwise podPress will embed the files as before with Flash-based players (e.g. the 1PixelOut player) or as objects which require other browser plugins.<br />The Listen Wrapper background image for the MP3 players works only in combination with the Flash-based players.<br /><a href="http://en.wikipedia.org/wiki/Comparison_of_layout_engines_%28HTML5_Media%29#Audio_format_support" title="en.Wikipedia: Comparison of layout engines HTML5 (audio)">Some web browsers support the HTML5 <audio></a> and <a href="http://en.wikipedia.org/wiki/HTML5_video#Browser_support" title="en.Wikipedia: HTML5 (video)"><video></a> elements. These browsers show their native players instead of <a href="http://en.wikipedia.org/wiki/Adobe_Flash" title="en.Wikipedia: Adobe Flash">Flash</a>-based or other plugin players. Currently (03/2011) the browsers with the <a href="http://en.wikipedia.org/wiki/WebKit" title="en.Wikipedia: WebKit">WebKit</a> (>= 525) engine like Safari and Chrome or the Internet Explorer since version 9 support HTML5 <audio> and MP3. (The Safari browser on iPhones, iPads and iPod Touch supports especially the HTML5 <audio> and <video> elements but not Flash-based players.) Browsers with the <a href="http://en.wikipedia.org/wiki/Gecko_%28layout_engine%29" title="en.Wikipedia: Gecko layout engine">Gecko</a> (>= 1.9.1) or <a href="http://en.wikipedia.org/wiki/Presto_%28layout_engine%29" title="en.Wikipedia: Presto layout engine">Presto</a> (>= 2.5) engine like FireFox and Opera support HTML5 <audio>/<video> elements and OGG/OGV.', 'podpress') . '</p>' . "\n"; echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; echo ' <th><label for="showhtml5playersonpageload">' . __('show HTML5 players always on page load', 'podpress') . ':</label></th>' . "\n"; echo ' <td class="podpress_player_narrowmiddle_col">' . "\n"; if (TRUE == isset($this->settings['showhtml5playersonpageload']) and TRUE === $this->settings['showhtml5playersonpageload']) { echo ' <input type="checkbox" name="showhtml5playersonpageload" id="showhtml5playersonpageload" checked="checked" value="yes"' . $showhtml5playeralways_disabled . ' />' . "\n"; } else { echo ' <input type="checkbox" name="showhtml5playersonpageload" id="showhtml5playersonpageload" value="yes"' . $showhtml5playeralways_disabled . ' />' . "\n"; } echo ' </td>' . "\n"; echo ' <td class="podpress_player_description_cell">' . sprintf(__('Some of the web browsers (e.g. Safari and Chrome except Safari on iPhones, iPads, iPods) which support HTML5 <audio> (and <video>) elements start to download (to buffer) all media files which are embedded with HTML5 elements after the blog page is loaded. This may cause a lot of <a href="http://en.wikipedia.org/wiki/Web_traffic" title="en.Wikipedia: web traffic">traffic</a> which could lead to higher costs. Because of these possible consequences podPress shows by default a Play button and only a click on such a button activates the HTML5 player in those browsers. But if you activate this option then podPress will always show the HTML5 players directly. This option works only in combination with "%1$s". (default: not checked)', 'podpress'), __('Use HTML5 tags', 'podpress')) . '</p>' . "\n"; echo ' </tr>' . "\n"; echo ' </table>' . "\n"; echo ' </fieldset>' . "\n"; echo ' <input type="hidden" name="podPress_submitted" value="players" />' . "\n"; echo ' <p class="submit"> ' . "\n"; echo ' <input class="button-primary" type="submit" name="Submit" value="' . __('Update Options', 'podpress') . ' »" /> ' . "\n"; echo ' </p> ' . "\n"; echo ' </form> ' . "\n"; echo '</div>' . "\n"; }