/**
  * site_url - is a function which should provide backwards compatibility if podPress is used with WP older than 2.6. (site_url() was new in WP 2.6.
  *
  * @package podPress
  * @since 8.8.10.14
  *
  * @return str $siteurl - the site URL or an empty string
  */
 function site_url()
 {
     $siteurl = get_option('siteurl');
     if (FALSE !== $siteurl) {
         return podpress_siteurl_is_ssl($siteurl);
     } else {
         return '';
     }
 }
 function podPress_webContent($podPressTemplateData)
 {
     global $podPress, $post, $wp_version;
     $divider = ' | ';
     $podPressPlayBlockScripts = '';
     $podPressContentAll = '';
     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 (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;
         $val['image'] = podpress_siteurl_is_ssl($val['image']);
         $val['URI'] = podpress_siteurl_is_ssl($val['URI']);
         $val['URI_Player'] = podpress_siteurl_is_ssl($val['URI_Player']);
         $val['previewImage'] = podpress_siteurl_is_ssl($val['previewImage']);
         $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 == isset($podPress->settings['enablePodangoIntegration']) or 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(' . $plugins_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 == isset($podPress->settings['enablePodangoIntegration']) or FALSE == $podPress->settings['enablePodangoIntegration']) and TRUE == isset($podPress->settings['mp3Player']) and '1pixelout' == $podPress->settings['mp3Player']) {
                 $podPressContent .= "\n" . '<div class="podpress_playerspace podpress_playerspace_' . $val['type'] . ' podpress_mp3player"' . $style . '><div id="podPressPlayerSpace_' . $GLOBALS['podPressPlayer'] . '"><!-- podPress --></div></div>' . "\n";
             } else {
                 $podPressContent .= "\n" . '<div class="podpress_playerspace podpress_playerspace_' . $val['type'] . '"><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="' . $plugins_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="' . $plugins_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="' . site_url() . '/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 . '\', \'' . js_escape($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\', \'' . js_escape($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 podPress_content_' . $val['type'] . '">' . $podPressContentAll . '</div>' . "\n" . $podPressPlayBlockScripts . $podpress_section_end);
 }
 /** @see WP_Widget::widget */
 function widget($args, $instance)
 {
     global $podPress, $blog_id, $wp_version;
     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__);
     }
     extract($args);
     if (!isset($instance['title'])) {
         $instance['title'] = __('Podcast Player', 'podpress');
     } else {
         $instance['title'] = stripslashes($instance['title']);
     }
     $title = apply_filters('widget_title', $instance['title']);
     if (!isset($instance['useSlimPlayer'])) {
         $instance['useSlimPlayer'] = false;
     }
     if (150 > intval($instance['PlayerWidth'])) {
         $instance['PlayerWidth'] = 150;
         // min width
     }
     // save the current (the first) XSPF player widget ID (of a page) in the db
     $isset_podpress_xspf_widget_temp = get_option('podpress_xspf_widget_temp');
     if (FALSE === $isset_podpress_xspf_widget_temp) {
         update_option('podpress_xspf_widget_temp', $widget_id);
     }
     // podpress_xspf_widget_temp is going to be deleted from the db after the playlist has been loaded. (The XSPF loads the skin file before the playlist.)
     $skin_variables_url = podpress_siteurl_is_ssl(PODPRESS_OPTIONS_URL . '/xspf_options/variables');
     $skin_variables_dir = PODPRESS_OPTIONS_DIR . '/xspf_options/variables';
     $skin_file = $plugins_url . '/podpress_xspfskinfile.php';
     echo $before_widget . "\n";
     echo $before_title . $title . $after_title . "\n";
     if (defined('PODPRESS_ONE_XSPF_IS_ACTIVE')) {
         echo '<div class="podpress_error"><p>' . __('Please use this widget only once per page.', 'podpress') . '</p></div>';
     } else {
         define('PODPRESS_ONE_XSPF_IS_ACTIVE', TRUE);
         if (TRUE === $instance['useSlimPlayer']) {
             if (30 > intval($instance['SlimPlayerHeight'])) {
                 $instance['SlimPlayerHeight'] = 30;
                 // min height slim
             }
             if (TRUE == defined('PODPRESS_XSPF_PLAYER_USE_CUSTOM_SKINFILE_' . $blog_id) and TRUE == defined('PODPRESS_XSPF_SLIM_SKIN_URL_' . $blog_id) and TRUE == defined('PODPRESS_XSPF_SLIM_SKIN_DIR_' . $blog_id) and TRUE == is_readable(constant('PODPRESS_XSPF_SLIM_SKIN_DIR_' . $blog_id) . '/skin_' . $blog_id . '_' . $instance['PlayerWidth'] . 'x' . $instance['SlimPlayerHeight'] . '.xml')) {
                 $skin_file = podpress_siteurl_is_ssl(constant('PODPRESS_XSPF_SLIM_SKIN_URL_' . $blog_id)) . '/skin_' . $blog_id . '_' . $instance['PlayerWidth'] . 'x' . $instance['SlimPlayerHeight'] . '.xml';
             }
             $skin_variables_url .= '_slim';
             $skin_variables_dir .= '_slim';
             if (TRUE === defined('PODPRESS_XSPF_SLIM_USE_CUSTOM_VARIABLES_' . $blog_id) and TRUE === constant('PODPRESS_XSPF_SLIM_USE_CUSTOM_VARIABLES_' . $blog_id) and TRUE == is_readable($skin_variables_dir . '/variables_' . $blog_id . '.txt')) {
                 $variables = '&skin_url=' . $skin_file . '&loadurl=' . $skin_variables_url . '/variables_' . $blog_id . '.txt';
             } else {
                 if (FALSE == isset($instance['trackinfoformat']) or TRUE == isset($instance['trackinfoformat']) and '-creator : -title' == $instance['trackinfoformat']) {
                     $variables = '&skin_url=' . $skin_file . '&autoload=true&autoplay=false&loaded=true';
                 } else {
                     $variables = '&skin_url=' . $skin_file . '&autoload=true&autoplay=false&loaded=true&format=' . $instance['trackinfoformat'];
                 }
             }
             $data_string = $plugins_url . '/players/xspf_jukebox/xspf_jukebox.swf?playlist_url=' . ($plugins_url . '/podpress_xspfplaylist.php') . $variables;
             $data_string = htmlspecialchars($data_string);
             echo '<object type="application/x-shockwave-flash" classid="CLSID:D27CDB6E-AE6D-11cf-96B8-444553540000" width="' . $instance['PlayerWidth'] . '" height="' . $instance['SlimPlayerHeight'] . '" id="podpress_xspf_player_slim">' . "\n";
             $height = $instance['SlimPlayerHeight'];
         } else {
             if (100 > intval($instance['PlayerHeight'])) {
                 $instance['PlayerHeight'] = 100;
                 // min height
             }
             if (TRUE == defined('PODPRESS_XSPF_PLAYER_USE_CUSTOM_SKINFILE_' . $blog_id) and TRUE == defined('PODPRESS_XSPF_SKIN_URL_' . $blog_id) and TRUE == defined('PODPRESS_XSPF_SKIN_DIR_' . $blog_id) and TRUE == is_readable(constant('PODPRESS_XSPF_SKIN_DIR_' . $blog_id) . '/skin_' . $blog_id . '_' . $instance['PlayerWidth'] . 'x' . $instance['PlayerHeight'] . '.xml')) {
                 $skin_file = podpress_siteurl_is_ssl(constant('PODPRESS_XSPF_SKIN_URL_' . $blog_id)) . '/skin_' . $blog_id . '_' . $instance['PlayerWidth'] . 'x' . $instance['PlayerHeight'] . '.xml';
             }
             if (TRUE === defined('PODPRESS_XSPF_USE_CUSTOM_VARIABLES_' . $blog_id) and TRUE === constant('PODPRESS_XSPF_USE_CUSTOM_VARIABLES_' . $blog_id) and TRUE == is_readable($skin_variables_dir . '/variables_' . $blog_id . '.txt')) {
                 $variables = '&skin_url=' . $skin_file . '&loadurl=' . $skin_variables_url . '/variables_' . $blog_id . '.txt';
             } else {
                 if (FALSE == isset($instance['trackinfoformat']) or TRUE == isset($instance['trackinfoformat']) and '-creator : -title' == $instance['trackinfoformat']) {
                     $variables = '&skin_url=' . $skin_file . '&autoload=true&autoplay=false&loaded=true';
                 } else {
                     $variables = '&skin_url=' . $skin_file . '&autoload=true&autoplay=false&loaded=true&format=' . $instance['trackinfoformat'];
                 }
             }
             $data_string = $plugins_url . '/players/xspf_jukebox/xspf_jukebox.swf?playlist_url=' . ($plugins_url . '/podpress_xspfplaylist.php') . $variables;
             $data_string = htmlspecialchars($data_string);
             echo '<object type="application/x-shockwave-flash" classid="CLSID:D27CDB6E-AE6D-11cf-96B8-444553540000" width="' . $instance['PlayerWidth'] . '" height="' . $instance['PlayerHeight'] . '" id="podpress_xspf_player">' . "\n";
             $height = $instance['PlayerHeight'];
         }
         echo '	<param name="movie" value="' . $data_string . '" />' . "\n";
         if (defined('PODPRESS_XSPF_BACKGROUND_COLOR_' . $blog_id) and '' !== constant('PODPRESS_XSPF_BACKGROUND_COLOR_' . $blog_id)) {
             echo '	<param name="bgcolor" value="#' . constant('PODPRESS_XSPF_BACKGROUND_COLOR_' . $blog_id) . '" />' . "\n";
         } else {
             echo '	<param name="bgcolor" value="#FFFFFF" />' . "\n";
         }
         echo '	<param name="menu" value="true" />' . "\n";
         echo '	<param name="wmode" value="transparent" />' . "\n";
         echo '	<param name="quality" value="high" />' . "\n";
         echo '	<embed src="' . $data_string . '" type="application/x-shockwave-flash" width="' . $instance['PlayerWidth'] . '" height="' . $height . '" wmode="transparent" quality="high" />' . "\n";
         echo '</object>' . "\n";
     }
     echo $after_widget;
 }
Beispiel #4
0
function podpress_print_js_vars()
{
    global $podPress, $wp_version;
    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__);
    }
    // Set the player settings which are not part of $podPress->settings['player']. This is important after an podPress resp. 1PixelOut player update (if there are new settings)
    foreach ($podPress->PlayerDefaultSettings() as $key => $value) {
        if (FALSE === isset($podPress->settings['player'][$key])) {
            $podPress->settings['player'][$key] = $value;
        }
    }
    $playerOptions = '';
    if ((TRUE === isset($podPress->settings['enablePodangoIntegration']) and TRUE == $podPress->settings['enablePodangoIntegration']) || (TRUE == isset($podPress->settings['mp3Player']) and 'podango' == $podPress->settings['mp3Player'])) {
        $mp3playerswffile = 'var podPressPlayerFile = "podango_player.swf";' . "\n";
        // create the parameter string for the mp3 player
        foreach ($podPress->settings['player'] as $key => $val) {
            if ('listenWrapper' !== $key and 'overwriteTitleandArtist' !== $key) {
                $val = str_replace('#', '0x', $val);
                $playerOptions .= '&amp;' . $key . '=' . rawurlencode($val);
            }
        }
        $mp3playerOptionsStr = 'var podPressMP3PlayerOptions = "' . $playerOptions . '&amp;";' . "\n";
    } else {
        $mp3playerswffile = '';
        $mp3playerOptionsStr = '';
        $podpupplayerOptions = '';
        // create the parameter string for the mp3 player
        foreach ($podPress->settings['player'] as $key => $val) {
            if ('listenWrapper' !== $key and 'overwriteTitleandArtist' !== $key) {
                $val = str_replace('#', '', $val);
                $playerOptions .= $key . ':"' . rawurlencode($val) . '", ';
                $podpupplayerOptions .= '	podPressPopupPlayerOpt["' . $key . '"] = "' . rawurlencode($val) . '";' . "\n";
            }
        }
        echo '<script type="text/javascript" src="' . $plugins_url . '/players/1pixelout/1pixelout_audio-player.js"></script>' . "\n";
        echo '<script type="text/javascript">//<![CDATA[' . "\n";
        echo '	var podPressPlayerFile = "1pixelout_player.swf";' . "\n";
        // this is for the Play in Popup function, too!
        echo '	var podPressPopupPlayerOpt = new Object();' . "\n";
        echo $podpupplayerOptions;
        echo '	podpressAudioPlayer.setup("' . $plugins_url . '/players/1pixelout/" + podPressPlayerFile, {' . $playerOptions . ' pagebg:"FFFFFF", transparentpagebg:"yes", encode: "no"} );' . "\n";
        echo '//]]></script>' . "\n";
    }
    echo '<script type="text/javascript">//<![CDATA[' . "\n";
    echo 'var podPressBlogURL = "' . site_url() . '/";' . "\n";
    echo 'var podPressBackendURL = "' . $plugins_url . '/";' . "\n";
    if (FALSE == isset($podPress->settings['videoPreviewImage']) or empty($podPress->settings['videoPreviewImage'])) {
        echo 'var podPressDefaultPreviewImage = podPressBackendURL+"images/vpreview_center.png";' . "\n";
    } else {
        echo 'var podPressDefaultPreviewImage = "' . podpress_siteurl_is_ssl($podPress->settings['videoPreviewImage']) . '";' . "\n";
    }
    echo $mp3playerswffile;
    echo $mp3playerOptionsStr;
    if (TRUE == isset($podPress->settings['player']['listenWrapper']) and TRUE == $podPress->settings['player']['listenWrapper']) {
        echo 'var podPressMP3PlayerWrapper = true;' . "\n";
    } else {
        echo 'var podPressMP3PlayerWrapper = false;' . "\n";
    }
    if (TRUE == isset($podPress->settings['cortado_version']) and 'cortado_signed' == $podPress->settings['cortado_version']) {
        echo 'var podPress_cortado_signed = true;' . "\n";
    } else {
        echo 'var podPress_cortado_signed = false;' . "\n";
    }
    if ('yes' == $podPress->settings['player']['overwriteTitleandArtist']) {
        // should the 1Pixelout player try to show the ID3 data or the custom values
        echo 'var podPressOverwriteTitleandArtist = true;' . "\n";
    } else {
        echo 'var podPressOverwriteTitleandArtist = false;' . "\n";
    }
    if (TRUE == isset($podPress->settings['use_html5_media_tags']) and FALSE === $podPress->settings['use_html5_media_tags']) {
        echo 'var podPressHTML5 = false;' . "\n";
    } else {
        echo 'var podPressHTML5 = true;' . "\n";
        if (TRUE === $podPress->settings['enableStats']) {
            wp_enqueue_script('jquery');
            if (defined('NONCE_KEY') and is_string(constant('NONCE_KEY')) and '' != trim(constant('NONCE_KEY'))) {
                $nonce_key = constant('NONCE_KEY');
            } else {
                $nonce_key = 'Af|F07*wC7g-+OX$;|Z5;R@Pi]ZgoU|Zex8=`?mO-Mdvu+WC6l=6<O^2d~+~U3MM';
            }
            echo 'var podPressHTML5sec = "' . wp_create_nonce($nonce_key) . '";' . "\n";
            if ($podPress->settings['enable3rdPartyStats'] == 'PodTrac') {
                echo 'var podPressPT = true;' . "\n";
            } elseif ($podPress->settings['enable3rdPartyStats'] == 'Blubrry' and FALSE == empty($podPress->settings['statBluBrryProgramKeyword'])) {
                echo 'var podPressBK = "' . js_escape($podPress->settings['statBluBrryProgramKeyword']) . '";' . "\n";
            }
        }
    }
    if (TRUE == isset($podPress->settings['showhtml5playersonpageload']) and TRUE === $podPress->settings['showhtml5playersonpageload']) {
        echo 'var podPressHTML5_showplayersdirectly = true;' . "\n";
    } else {
        echo 'var podPressHTML5_showplayersdirectly = false;' . "\n";
    }
    echo 'var podPressText_PlayNow = "' . __('Play Now', 'podpress') . '";' . "\n";
    echo 'var podPressText_HidePlayer = "' . __('Hide Player', 'podpress') . '";' . "\n";
    echo '//]]></script>' . "\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') . '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<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');
        }
        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__);
        }
        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="' . $plugins_url . '/images/colormap_1pixelout_numbers.png" alt="' . __('1PixelOut Player Color Map', 'podpress') . '" /></td>' . "\n";
        } else {
            echo '				<td colspan="2"><img src="' . $plugins_url . '/images/colormap_podango_numbers.png" alt="' . __('Podango Player Color Map', 'podpress') . '" /></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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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="' . $plugins_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>&nbsp;</th>' . "\n";
        echo '				<td>&nbsp;</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(' . $plugins_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', '" . $plugins_url . '/images/listen_wrapper.gif' . "');\"/>\n";
        }
        echo '				</td>' . "\n";
        echo '			</tr>' . "\n";
        echo '			<tr>' . "\n";
        echo '				<th>&nbsp;</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(' . $plugins_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 '				&lt;?xml version="1.0"?&gt;' . "<br />\n";
        echo '				&lt;!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd"&gt;' . "<br />\n";
        echo '				&lt;cross-domain-policy&gt;' . "<br />\n";
        echo '					&lt;allow-access-from domain="www.yourdomain.com"/&gt;' . "<br />\n";
        echo '				&lt;/cross-domain-policy&gt;';
        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";
        if (TRUE == isset($this->settings['player']['animation']) and 'no' == $this->settings['player']['animation']) {
            $checked = ' checked="checked"';
        } else {
            $checked = '';
        }
        echo '			<tr>' . "\n";
        echo '				<th><label for="playerSettings_animation_">' . __('1Pixelout Player always open', 'podpress') . ':</label></th>' . "\n";
        echo '				<td class="podpress_player_narrowmiddle_col">' . "\n";
        echo '					<input type="checkbox" name="playerSettings[animation]" id="playerSettings_animation_"' . $checked . ' value="yes" />' . "\n";
        echo '				</td>' . "\n";
        echo '				<td class="podpress_player_description_cell">' . __('The player is always open.', 'podpress') . '</td>' . "\n";
        echo '			</tr>' . "\n";
        if (TRUE == isset($this->settings['player']['remaining']) and 'yes' == $this->settings['player']['remaining']) {
            $checked = ' checked="checked"';
        } else {
            $checked = '';
        }
        echo '			<tr>' . "\n";
        echo '				<th><label for="playerSettings_remaining_">' . __('1Pixelout Player shows remaining time', 'podpress') . ':</label></th>' . "\n";
        echo '				<td class="podpress_player_narrowmiddle_col">' . "\n";
        echo '					<input type="checkbox" name="playerSettings[remaining]" id="playerSettings_remaining_"' . $checked . ' value="yes" />' . "\n";
        echo '				</td>' . "\n";
        echo '				<td class="podpress_player_description_cell">' . __('The player shows the remaining track time rather than the ellapsed time.', '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.replace(/http:/gi, window.location.protocol);" />' . "\n";
        echo '				</td>' . "\n";
        echo '			</tr>' . "\n";
        echo '			<tr id="videoPreviewPlayerWrapper" ' . $showVideoPreviewOptions . '>' . "\n";
        echo '				<th><label for="videoPreview">' . __('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 '			<tr id="videoDefaultPlayerSizeWrapper" ' . $showVideoPreviewOptions . '>' . "\n";
        echo '				<th><label for="videoDefaultPlayerSize">' . __('Default (preview) player size', 'podpress') . ':</label></th>' . "\n";
        echo '				<td colspan="2">' . "\n";
        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 "\t\t\t\t\t" . sprintf(__('width %1$s px (default: 320 px)', 'podpress'), '<input type="text" id="videoDefaultPlayerSize_x" name="videoDefaultPlayerSize_x" size="5" value="' . attribute_escape($this->settings['videoDefaultPlayerSize_x']) . '" />') . "<br />\n";
        echo "\t\t\t\t\t" . sprintf(__('height %1$s px (default: 240 px)', 'podpress'), '<input type="text" id="videoDefaultPlayerSize_y" name="videoDefaultPlayerSize_y" size="5" value="' . attribute_escape($this->settings['videoDefaultPlayerSize_y']) . '" />') . "\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, '" . podpress_siteurl_is_ssl($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 &lt;audio&gt;</a> and <a href="http://en.wikipedia.org/wiki/HTML5_video#Browser_support" title="en.Wikipedia: HTML5 (video)">&lt;video&gt;</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 &lt;audio&gt; and MP3. (The Safari browser on iPhones, iPads and iPod Touch supports especially the HTML5 &lt;audio&gt; and &lt;video&gt; 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 &lt;audio&gt;/&lt;video&gt; 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 &lt;audio&gt; (and &lt;video&gt;) 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') . ' &raquo;" /> ' . "\n";
        echo '	</p> ' . "\n";
        echo '	</form> ' . "\n";
        echo '</div>' . "\n";
    }
 function settings_feed_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>';
     }
     $blog_charset = get_bloginfo('charset');
     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>' . __('Feed/iTunes 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>' . __('Feed/iTunes Settings', 'podpress') . '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<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_feed_settings_nonce');
     }
     podPress_DirectoriesPreview('feed_edit');
     echo '	<fieldset class="options">' . "\n";
     echo '		<legend>' . __('Settings for the default Feeds', 'podpress') . '</legend>' . "\n";
     echo '		<p>' . sprintf(__('podPress adds automatically additional elements (e.g. <a href="http://www.apple.com/itunes/podcasts/specs.html#rss" target="_blank">iTunes RSS tags</a>) to the default RSS Feeds of your weblog. But it uses the RSS image, the copyright name, the license URL and the News Feed language also for the ATOM Feeds. You can configure these elements in the following section. But podPress adds also new Feeds to your weblog (see <a href="#podpressfeeds">%1$s</a> below).', 'podpress'), __('podPress Feeds', 'podpress')) . '</p>' . "\n";
     echo '		<h3>' . __('iTunes Settings', 'podpress') . '</h3>' . "\n";
     echo '		<p>' . __('These settings are for the <a href="http://www.apple.com/itunes/podcasts/specs.html#rss" target="_blank">iTunes RSS tags</a>.', 'podpress') . '</p>' . "\n";
     echo '		<table class="podpress_feed_gensettings">' . "\n";
     echo '			<tr>' . "\n";
     echo '				<th>' . "\n";
     echo '					<label for="iTunesSubtitle">' . __('iTunes:Subtitle', 'podpress') . '</label>';
     echo '				</th>' . "\n";
     echo '				<td colspan="2">' . "\n";
     echo '					<textarea name="iTunes[subtitle]" id="iTunesSubtitle" class="podpress_wide_text_field" rows="2" cols="40">' . stripslashes($this->settings['iTunes']['subtitle']) . '</textarea>';
     echo '					<br/>' . __('A few words which describe the feed title a little bit more (max. 255 characters).', 'podpress') . "\n";
     echo '				</td>' . "\n";
     echo '			</tr>' . "\n";
     echo '			<tr>' . "\n";
     echo '				<th>' . "\n";
     echo '					<label for="iTunesSummary">' . __('iTunes:Summary', 'podpress') . '</label>';
     echo '				</th>' . "\n";
     echo '				<td colspan="2">' . "\n";
     echo '					<textarea id="iTunesSummary" name="iTunes[summary]" class="podpress_wide_text_field" rows="6" cols="40" onchange="podPress_updateFeedSettings();">' . stripslashes($this->settings['iTunes']['summary']) . '</textarea>';
     echo '					<br />' . __('The description of the podcast.', 'podpress') . "\n";
     echo '				</td>' . "\n";
     echo '			</tr>' . "\n";
     echo '			<tr>' . "\n";
     echo '				<th>' . "\n";
     echo '					<label for="iTunesImage">' . __('iTunes:Image', 'podpress') . '</label>';
     echo '				</th>' . "\n";
     $itunes_image_url = $this->settings['iTunes']['image'];
     echo '				<td colspan="2">' . "\n";
     echo '					' . __('The iTunes image should be a square image with <a href="http://www.apple.com/itunes/podcasts/specs.html#image" target="_blank">at least 1400 x 1400 pixels</a> as Apple writes in "<a href="http://www.apple.com/itunes/podcasts/specs.html" target="_blank">Making a Podcast</a>" of their own Podcasting Resources. iTunes supports JPEG and PNG images (the file name extensions should ".jpg" or ".png").', 'podpress') . "\n";
     echo '					<br/>';
     echo '					<input type="text" id="iTunesImage" name="iTunes[image]" class="podpress_wide_text_field" value="' . attribute_escape($itunes_image_url) . '" size="40" onchange="podPress_updateFeedSettings();"/>' . "\n";
     echo '					<br />';
     echo '					<img id="iTunesImagePreview" style="width:300px; height:300px;" alt="' . __('Podcast Image - Big (If you can not see an image then the URL is wrong.)', 'podpress') . '" src="" />' . "<br />\n";
     echo '					<em>' . __('(This image is only a preview which is limited to 300 x 300 pixels.) ', 'podpress') . '</em>';
     echo '				</td>' . "\n";
     echo '			</tr>' . "\n";
     echo '			<tr>' . "\n";
     echo '				<th>' . "\n";
     echo '					<label for="iTunesAuthor">' . __('iTunes:Author/Owner', 'podpress') . '</label>';
     echo '				</th>' . "\n";
     echo '				<td colspan="2">' . "\n";
     echo '					<input type="text" name="iTunes[author]" id="iTunesAuthor" class="podpress_wide_text_field" value="' . attribute_escape(stripslashes($this->settings['iTunes']['author'])) . '" size="40" onchange="podPress_updateFeedSettings();"/>';
     echo '				</td>' . "\n";
     echo '			</tr>' . "\n";
     echo '			<tr>' . "\n";
     echo '				<th>' . "\n";
     echo '					<label for="iTunesKeywords">' . __('iTunes:Keywords', 'podpress') . '</label>';
     echo '				</th>' . "\n";
     echo '				<td colspan="2">' . "\n";
     echo '					<textarea name="iTunes[keywords]" id="iTunesKeywords" class="podpress_wide_text_field" rows="4" cols="40">' . stripslashes($this->settings['iTunes']['keywords']) . '</textarea>';
     echo '					<br/>(' . __('a list of max. 12 comma separated words', 'podpress') . ')';
     echo '				</td>' . "\n";
     echo '			</tr>' . "\n";
     echo '			<tr>' . "\n";
     echo '				<th>' . "\n";
     echo '					<label for="iTunesCategory_0">' . __('iTunes:Categories', 'podpress') . '</label>';
     echo '				</th>' . "\n";
     echo '				<td colspan="2">' . "\n";
     echo '					<select id="iTunesCategory_0" name="iTunes[category][0]" onchange="podPress_updateFeedSettings();">' . "\n";
     echo '						<optgroup label="' . __('Select Primary', 'podpress') . '">' . "\n";
     podPress_itunesCategoryOptions(stripslashes($this->settings['iTunes']['category'][0]));
     echo '						</optgroup>' . "\n";
     echo '					</select><br />' . "\n";
     echo '					<select name="iTunes[category][1]">' . "\n";
     echo '						<optgroup label="' . __('Select Second', 'podpress') . '">' . "\n";
     podPress_itunesCategoryOptions(stripslashes($this->settings['iTunes']['category'][1]));
     echo '						</optgroup>' . "\n";
     echo '					</select><br />' . "\n";
     echo '					<select name="iTunes[category][2]">' . "\n";
     echo '						<optgroup label="' . __('Select Third', 'podpress') . '">' . "\n";
     podPress_itunesCategoryOptions(stripslashes($this->settings['iTunes']['category'][2]));
     echo '						</optgroup>' . "\n";
     echo '					</select>' . "\n";
     echo '				</td>' . "\n";
     echo '			</tr>' . "\n";
     echo '			<tr>' . "\n";
     echo '				<th>' . "\n";
     echo '					<label for="iTunesExplicit">' . __('iTunes:Explicit', 'podpress') . '</label>';
     echo '				</th>' . "\n";
     echo '				<td>' . "\n";
     echo '					<select name="iTunes[explicit]" id="iTunesExplicit">' . "\n";
     echo '						<option value="No" ';
     if ($this->settings['iTunes']['explicit'] == 'No') {
         echo 'selected="selected"';
     }
     echo '>' . __('No', 'podpress') . '</option>' . "\n";
     echo '						<option value="Yes" ';
     if ($this->settings['iTunes']['explicit'] == 'Yes') {
         echo 'selected="selected"';
     }
     echo '>' . __('Yes', 'podpress') . '</option>' . "\n";
     echo '						<option value="Clean" ';
     if ($this->settings['iTunes']['explicit'] == 'Clean') {
         echo 'selected="selected"';
     }
     echo '>' . __('Clean', 'podpress') . '</option>' . "\n";
     echo '					</select>' . "\n";
     echo '				</td>' . "\n";
     echo '				<td>' . "\n";
     echo '					' . __('Setting to indicate (in iTunes) whether or not your podcast contains explicit language or content which is not suitable for non-adult persons.', 'podpress') . "\n";
     echo '					<br/>' . __('"No" (default) - no indicator will show up', 'podpress') . "\n";
     echo '					<br/>' . __('"Yes" - an "EXPLICIT" parental advisory graphic will appear next to your podcast artwork or name in iTunes', 'podpress') . "\n";
     echo '					<br/>' . __('"Clean" - means that you are sure that no explicit language or adult content is included any of the episodes, and a "CLEAN" graphic will appear', 'podpress') . "\n";
     echo '					<p>' . __('You have also the possibility to adjust this option for each post or page with at least one podcast episode (in the post/page editor).', 'podpress') . '</p>' . "\n";
     echo '				</td>' . "\n";
     echo '			</tr>' . "\n";
     echo '			<tr>' . "\n";
     echo '				<th>' . "\n";
     echo '					<label for="iTunesBlock">' . __('iTunes:Block', 'podpress') . '</label>';
     echo '				</th>' . "\n";
     echo '				<td>' . "\n";
     echo '					<select name="iTunes[block]" id="iTunesBlock">' . "\n";
     echo '						<option value="No" ';
     if ($this->settings['iTunes']['block'] != 'Yes') {
         echo 'selected="selected"';
     }
     echo '>' . __('No', 'podpress') . '</option>' . "\n";
     echo '						<option value="Yes" ';
     if ($this->settings['iTunes']['block'] == 'Yes') {
         echo 'selected="selected"';
     }
     echo '>' . __('Yes', 'podpress') . '</option>' . "\n";
     echo '					</select>' . "\n";
     echo '				</td>' . "\n";
     echo '				<td>' . "\n";
     echo '					' . __('Use this if you are no longer creating a podcast and you want it removed from iTunes.', 'podpress') . "\n";
     echo '					<br/>' . __('"No" (default) - the podcast appears in the iTunes Podcast directory', 'podpress') . "\n";
     echo '					<br/>' . __('"Yes" - prevent the entire podcast from appearing in the iTunes Podcast directory', 'podpress') . "\n";
     echo '					<p>' . __('You can also use such an option for each of your podcast episodes (in the post/page editor).', 'podpress') . '</p>' . "\n";
     echo '				</td>' . "\n";
     echo '			</tr>' . "\n";
     echo '			<tr>' . "\n";
     echo '				<th>' . "\n";
     echo '					<label for="iTunesFeedID">' . __('iTunes:FeedID', 'podpress') . '</label>';
     echo '				</th>' . "\n";
     echo '				<td>' . "\n";
     echo '					<input name="iTunes[FeedID]" id="iTunesFeedID" type="text" value="' . $this->settings['iTunes']['FeedID'] . '" size="10" />';
     echo '				</td>' . "\n";
     echo '				<td>' . "\n";
     echo '					' . __('(Only relevant for the podPress Feed Buttons widget)', 'podpress');
     echo '				</td>' . "\n";
     echo '			</tr>' . "\n";
     echo '			<tr>' . "\n";
     echo '				<th>' . "\n";
     echo '					<label for="iTunesNewFeedURL">' . __('iTunes:New-Feed-Url', 'podpress') . '</label>';
     echo '				</th>' . "\n";
     echo '				<td>' . "\n";
     echo '					<select name="iTunes[new-feed-url]" id="iTunesNewFeedURL">' . "\n";
     echo '						<option value="Disable" ';
     if ($this->settings['iTunes']['new-feed-url'] != 'Enable') {
         echo 'selected="selected"';
     }
     echo '>' . __('Disable', 'podpress') . '</option>' . "\n";
     echo '						<option value="Enable" ';
     if ($this->settings['iTunes']['new-feed-url'] == 'Enable') {
         echo 'selected="selected"';
     }
     echo '>' . __('Enable', 'podpress') . '</option>' . "\n";
     echo '					</select>' . "\n";
     echo '				</td>' . "\n";
     echo '				<td>' . "\n";
     echo '					' . __('If you want to change the URL of your podcast feed which you have used in the iTunes Store then change the "Podcast Feed URL" and set this option to "Enable" until the iTunes Store recognizes the new URL. This may take several days. "Enable" will add the <code>&lt;itunes:new-feed-url&gt;</code> tag to the RSS feeds and set the "Podcast Feed URL" as the new URL. For further information about "<a href="http://www.apple.com/itunes/podcasts/specs.html#changing" title="iTunes Podcasting Resources: Changing Your Feed URL" target="_blank">Changing Your Feed URL</a>" read on in the <a href="http://www.apple.com/itunes/podcasts/specs.html" target="_blank" title="iTunes Podcasting Resources: Making a Podcast">iTunes Podcasting Resources</a>.', 'podpress');
     echo '					<p><label for="podcastFeedURL"><strong>' . __('the new Feed URL', 'podpress') . '</strong></label>';
     echo '					<br/>';
     echo '					<input type="text" id="podcastFeedURL" class="podpress_wide_text_field" name="podcastFeedURL" size="40" value="' . attribute_escape($this->settings['podcastFeedURL']) . '" onchange="podPress_updateFeedSettings();" /><br />' . __('The URL of your Podcast Feed. If you want to register your podcast at the iTunes Store or if your podcast is already listed there then this input field should contain the same URL as in the iTunes Store settings. If you want change the URL at the iTunes Store then please read first the help text of the iTunes:New-Feed-Url option.', 'podpress');
     echo '					<br /><input type="button" value="' . __('Validate your Feed', 'podpress') . '" onclick="javascript: if(document.getElementById(\'podcastFeedURL\').value != \'\') { window.open(\'http://www.feedvalidator.org/check.cgi?url=\'+document.getElementById(\'podcastFeedURL\').value); }"/>' . "\n";
     echo '					</p>';
     echo '				</td>' . "\n";
     echo '			</tr>' . "\n";
     echo '		</table>' . "\n";
     if (function_exists('get_admin_url')) {
         $adminurl = get_admin_url();
         // since WP 3.0
     } elseif (function_exists('admin_url')) {
         $adminurl = admin_url();
         // since WP 2.6
     } else {
         $adminurl = site_url() . '/wp-admin';
     }
     echo '		<h3>' . __('General Feed Settings', 'podpress') . '</h3>' . "\n";
     echo '		<p>' . __('These settings are blog settings.', 'podpress') . '</p>' . "\n";
     echo '		<table class="podpress_feed_gensettings">' . "\n";
     echo '			<tr>' . "\n";
     echo '				<td class="podpress_th_full_width" colspan="3">' . "\n";
     echo '					' . sprintf(__('You can modify the following %2$s options on the %1$s page of this blog.', 'podpress'), '<a href="' . trailingslashit($adminurl) . 'options-general.php' . '">' . __('General Settings') . '</a>', __('three', 'podpress'));
     echo '				</td>' . "\n";
     echo '			</tr>' . "\n";
     echo '			<tr>' . "\n";
     echo '				<th>' . "\n";
     echo '					<label for="blogname">' . __('Blog/Podcast title', 'podpress') . '</label>';
     echo '				</th>' . "\n";
     echo '				<td colspan="2">' . "\n";
     echo '					<em class="podpress_static_feed_settings" id="blogname">' . stripslashes(get_option('blogname')) . '</em><br />' . __('Used as the Feed title', 'podpress');
     echo '				</td>' . "\n";
     echo '			</tr>' . "\n";
     echo '			<tr>' . "\n";
     echo '				<th>' . "\n";
     echo '					<label for="blogdescription">' . __('Blog Tagline', 'podpress') . '</label>';
     echo '				</th>' . "\n";
     echo '				<td colspan="2">' . "\n";
     echo '					<em class="podpress_static_feed_settings" id="blogdescription">' . stripslashes(get_option('blogdescription')) . '</em><br />' . __('used as the Feed description', 'podpress') . "\n";
     echo '				</td>' . "\n";
     echo '			</tr>' . "\n";
     echo '			<tr>' . "\n";
     echo '				<th>' . "\n";
     echo '					<label for="admin_email">' . __('Owner E-mail address', 'podpress') . '</label>';
     echo '				</th>' . "\n";
     echo '				<td colspan="2">' . "\n";
     echo '					<em class="podpress_static_feed_settings">' . stripslashes(get_option('admin_email')) . '</em><br />' . __('used besides the itunes:author value in the &lt;managingEditor&gt; and the &lt;webMaster&gt; elements of the RSS Feeds', 'podpress');
     echo '				</td>' . "\n";
     echo '			</tr>' . "\n";
     echo '			<tr>' . "\n";
     echo '				<td class="podpress_th_full_width" colspan="3">' . "\n";
     echo '					' . sprintf(__('You can modify the following %2$s options on the %1$s page of this blog.', 'podpress'), '<a href="' . trailingslashit($adminurl) . 'options-reading.php' . '">' . __('Reading Settings') . '</a>', __('two', 'podpress'));
     echo '				</td>' . "\n";
     echo '			</tr>' . "\n";
     echo '			<tr>' . "\n";
     echo '				<th>' . "\n";
     echo '					<label for="posts_per_rss">' . __('Syndication feeds show the most recent', 'podpress') . '</label>';
     echo '				</th>' . "\n";
     echo '				<td colspan="2">' . "\n";
     echo '					<em class="podpress_static_feed_settings">' . get_option('posts_per_rss') . '</em> ' . __('posts', 'podpress');
     echo '				</td>' . "\n";
     echo '			</tr>' . "\n";
     echo '			<tr>' . "\n";
     echo '				<th>' . "\n";
     echo '					<label for="blog_charset">' . __('Encoding for pages and feeds') . '</label>';
     echo '				</th>' . "\n";
     echo '				<td colspan="2">' . "\n";
     echo '					<em class="podpress_static_feed_settings">' . $blog_charset . '</em><br />' . __('The <a href="http://codex.wordpress.org/Glossary#Character_set">character encoding</a> of your site  (UTF-8 is <a href="http://www.apple.com/itunes/podcasts/specs.html#encoding" target="_blank" title="iTunes Podcast Resources - Making a Podcast">recommended</a>)', 'podpress');
     echo '				</td>' . "\n";
     echo '			</tr>' . "\n";
     echo '			<tr>' . "\n";
     echo '				<th>' . "\n";
     echo '					<label for="rss_ttl">' . __('TTL', 'podpress') . ' (' . __('time-to-live', 'podpress') . ')</label>';
     echo '				</th>' . "\n";
     echo '				<td>' . "\n";
     $data['rss_ttl'] = get_option('rss_ttl');
     if (!empty($data['rss_ttl']) && $data['rss_ttl'] < 1440) {
         $data['rss_ttl'] = 1440;
     }
     echo '					<input name="rss_ttl" id="rss_ttl" type="text" value="';
     if ($data['rss_ttl']) {
         echo $data['rss_ttl'];
     } else {
         echo '1440';
     }
     echo '" size="4" />';
     echo '				</td>' . "\n";
     echo '				<td>' . "\n";
     echo '					' . __('minutes', 'podpress') . ' - ' . __('Minimum is 24 hours which is 1440 minutes.', 'podpress') . ' <a href="http://cyber.law.harvard.edu/rss/rss.html#ltttlgtSubelementOfLtchannelgt" title="RSS 2.0 Specification - TTL">' . __('More about TTL ...', 'podpress') . '</a>' . "\n";
     echo '				</td>' . "\n";
     echo '			</tr>' . "\n";
     echo '			<tr>' . "\n";
     echo '				<th>' . "\n";
     echo '					<label for="rss_image">' . __('Blog/RSS Image (144 x 144 pixels)', 'podpress') . '</label>' . "\n";
     echo '				</th>' . "\n";
     $rss_image = get_option('rss_image');
     echo '				<td colspan="2">' . "\n";
     echo '					<input type="text" id="rss_image" name="rss_image" class="podpress_wide_text_field" value="' . attribute_escape($rss_image) . '" size="40" onchange="podPress_updateFeedSettings();"/>' . "\n";
     echo '					<br />';
     echo '					<img id="rss_imagePreview" style="width:144px; height:144px;" alt="' . __('Podcast Image - Small (If you can not see an image then the URL is wrong.)', 'podpress') . '" src="" />' . "\n";
     echo '				</td>' . "\n";
     echo '			</tr>' . "\n";
     echo '			<tr>' . "\n";
     echo '				<th>' . "\n";
     echo '					<label for="rss_language">' . __('Language of the News Feed content', 'podpress') . '</label>';
     echo '				</th>' . "\n";
     echo '				<td colspan="2">' . "\n";
     $rss_language = get_option('rss_language');
     echo '					<select id="rss_language" name="rss_language" onchange="podPress_updateFeedSettings();">' . "\n";
     echo '						<optgroup label="' . __('Select Language', 'podpress') . '">' . "\n";
     podPress_itunesLanguageOptions($rss_language);
     echo '						</optgroup>' . "\n";
     echo '					</select>' . "\n";
     //~ echo '<br /><em class="podpress_error">'.sprintf(__('Changes here will affect %1$s!', 'podpress'),__('the language of the main feeds of this blog', 'podpress')).'</em> <em>'.__('(This select box is not the only but probably the most comfortable way to change this option. So change it back if you do not want to use this plugin anymore.)', 'podpress').'</em>';
     echo '				</td>' . "\n";
     echo '			</tr>' . "\n";
     echo '		</table>' . "\n";
     echo '		<h3>' . __('Further Feed Settings', 'podpress') . '</h3>' . "\n";
     echo '		<table class="podpress_feed_gensettings">' . "\n";
     echo '			<tr>' . "\n";
     echo '				<th>' . "\n";
     echo '					<label for="rss_category">' . __('RSS Category', 'podpress') . '</label>';
     echo '				</th>' . "\n";
     echo '				<td colspan="2">' . "\n";
     echo '					<input type="text" name="rss_category" id="rss_category" class="podpress_wide_text_field" value="' . attribute_escape(stripslashes($this->settings['rss_category'])) . '" size="45" />' . "\n";
     echo '					<br />' . __('A category for your RSS feeds. (This is for everyone except iTunes).', 'podpress') . "\n";
     echo '				</td>' . "\n";
     echo '			</tr>' . "\n";
     echo '			<tr>' . "\n";
     echo '				<th>' . "\n";
     echo '					<label for="rss_copyright">' . __('Feed Copyright / license name', 'podpress') . '</label>';
     echo '				</th>' . "\n";
     echo '				<td colspan="2">' . "\n";
     echo '					<input type="text" name="rss_copyright" id="rss_copyright" class="podpress_wide_text_field" value="' . attribute_escape(stripslashes($this->settings['rss_copyright'])) . '" size="65" />' . "\n";
     echo '					<br />' . __('Enter the copyright string or license name. For example: Copyright &#169 by Jon Doe, 2009 OR <a href="http://creativecommons.org/licenses/by-nc-sa/2.5/" target="_blank">CreativeCommons Attribution-Noncommercial-Share Alike 2.5</a>', 'podpress') . "\n";
     echo '					<br /><br />' . "\n";
     echo '				</td>' . "\n";
     echo '			</tr>' . "\n";
     echo '			<tr>' . "\n";
     echo '				<th>' . "\n";
     echo '					<label for="rss_license_url">' . __('URL to the full Copyright / license text', 'podpress') . '</label>';
     echo '				</th>' . "\n";
     echo '				<td colspan="2">' . "\n";
     echo '					<input type="text" name="rss_license_url" id="rss_license_url" class="podpress_wide_text_field podpress_wide_text_input_field" value="' . attribute_escape($this->settings['rss_license_url']) . '" size="65" />' . "\n";
     echo '					<br />' . __('If you use a special license like a <a href="http://creativecommons.org/licenses" target="_blank" title="Creative Commons">Creative Commons</a> License for your news feeds then enter the complete URL (e.g. <a href="http://creativecommons.org/licenses/by-nc-sa/2.5/" target="_blank">http://creativecommons.org/licenses/by-nc-sa/2.5/</a>) to the full text of this particular license here.', 'podpress') . "<br />\n";
     echo '					<p>' . __('Notice: You can set post specific license URLs and names by defining two custom fields per post. One with the name <strong>podcast_episode_license_name</strong> and one custom field with the name <strong>podcast_episode_license_url</strong>. If you want to set post specific values then it is necessary to define at least the custom field with the URL. If the license name is not defined then the name will be the URL.', 'podpress') . '</p>';
     echo '				</td>' . "\n";
     echo '			</tr>' . "\n";
     echo '			<tr>' . "\n";
     echo '				<th>' . "\n";
     echo '					<label for="print_podpress_in_contentencoded">' . sprintf(__('Print podPress elements into the %1$s tags', 'podpress'), '<code>&lt;content:encoded&gt;</code>') . '</label>';
     echo '				</th>' . "\n";
     echo '				<td class="pp_2ndcol">' . "\n";
     if (TRUE === isset($this->settings['print_podpress_in_contentencoded']) and TRUE == $this->settings['print_podpress_in_contentencoded']) {
         echo '					<input type="radio" name="print_podpress_in_contentencoded" id="print_podpress_in_contentencoded_yes" value="yes" checked="checked" /><label for="print_podpress_in_contentencoded_yes">' . __('yes', 'podpress') . '</label><br />' . "\n";
         echo '					<input type="radio" name="print_podpress_in_contentencoded" id="print_podpress_in_contentencoded_no" value="no" /><label for="print_podpress_in_contentencoded_no">' . __('no', 'podpress') . '</label>' . "\n";
     } else {
         echo '					<input type="radio" name="print_podpress_in_contentencoded" id="print_podpress_in_contentencoded_yes" value="yes" /><label for="print_podpress_in_contentencoded_yes">' . __('yes', 'podpress') . '</label><br />' . "\n";
         echo '					<input type="radio" name="print_podpress_in_contentencoded" id="print_podpress_in_contentencoded_no" value="no" checked="checked" /><label for="print_podpress_in_contentencoded_no">' . __('no', 'podpress') . '</label>' . "\n";
     }
     echo '				</td>' . "\n";
     echo '				<td>' . "\n";
     echo '					' . sprintf(__('Print the podPress elements to the %1$s section of the %2$s of the RSS feeds. BETA version: This option inlfuences all feeds of the blog and not only the default feeds. (later version of podPress will probably contain such an option for each podPress Feed and the default feeds.)', 'podpress'), '<code>&lt;content:encoded&gt;</code>', '<code>&lt;item&gt;</code>') . "<br />\n";
     echo '				</td>' . "\n";
     echo '			</tr>' . "\n";
     //~ echo '			<tr>'."\n";
     //~ echo '				<th>'."\n";
     //~ echo '					<label for="protectFeed">'.__('Aggressively Protect the news feeds', 'podpress').'</label>';
     //~ echo '				</th>'."\n";
     //~ echo '				<td>'."\n";
     //~ echo '					<select name="protectFeed" id="protectFeed">'."\n";
     //~ echo '						<option value="No" '; if($this->settings['protectFeed'] != 'Yes') { echo 'selected="selected"'; } echo '>'.__('No', 'podpress').'</option>'."\n";
     //~ echo '						<option value="Yes" '; if($this->settings['protectFeed'] == 'Yes') { echo 'selected="selected"'; } echo '>'.__('Yes', 'podpress').'</option>'."\n";
     //~ echo '					</select>'."\n";
     //~ echo '				</td>'."\n";
     //~ echo '				<td>'."\n";
     //~ echo '					'.__('"No" (default) will convert only ampersand, less-than, greater-than, apostrophe and quotation signs to their numeric character references.', 'podpress')."\n";
     //~ echo '					<br/>'.__('"Yes" will convert any invalid characters to their numeric character references in the feeds.', 'podpress')."\n";
     //~ echo '				</td>'."\n";
     //~ echo '			</tr>'."\n";
     // this section is deactivated since 8.8.5 and since 8.8.10.8 the upgrade_class will remove the value during the upgrade process. (the only encoded content section is the <description> on <item> level and podPress does touch this value)
     //~ echo '			<tr>'."\n";
     //~ echo '				<th>'."\n";
     //~ echo '					<label for="rss_showlinks">'.__('Show Download Links in RSS Encoded Content', 'podpress').'</label>';
     //~ echo '				</th>'."\n";
     //~ echo '				<td>'."\n";
     //~ echo '					<select name="rss_showlinks" id="rss_showlinks">'."\n";
     //~ echo '						<option value="yes" '; if($this->settings['rss_showlinks'] == 'yes') { echo 'selected="selected"'; } echo '>'.__('Yes', 'podpress').'</option>'."\n";
     //~ echo '						<option value="no" '; if($this->settings['rss_showlinks'] != 'yes') { echo 'selected="selected"'; }  echo '>'.__('No', 'podpress').'</option>'."\n";
     //~ echo '					</select>'."\n";
     //~ echo '				</td>'."\n";
     //~ echo '				<td>'."\n";
     //~ echo '					'.__('Yes will put download links in the RSS encoded content. That means users can download from any site displaying the link.', 'podpress')."\n";
     //~ echo '				</td>'."\n";
     //~ echo '			</tr>'."\n";
     echo '		</table>' . "\n";
     echo '	</fieldset>' . "\n";
     echo '	<fieldset class="options">' . "\n";
     echo '		<a name="podpressfeeds" id="podpressfeeds"></a><legend>' . __('podPress Feeds', 'podpress') . '</legend>' . "\n";
     $permalinksettingsurl = trailingslashit($adminurl) . 'options-permalink.php';
     $widgetsettingsurl = trailingslashit($adminurl) . 'widgets.php';
     $generalsettingspodpressurl = trailingslashit($adminurl) . 'admin.php?page=podpress/podpress_general.php';
     echo '		<p>' . sprintf(__('podPress is capable of creating additional Feeds for your blog. These Feeds are RSS or ATOM Feeds. The content of such a Feed may consist of all posts, posts with podPress attachment, posts of one more categories or posts with podPress attachments of certain file types. For instance you can create a Feed which contains only posts with audio files and one which contains only posts with video files. Furthermore the following section contains diverse options to customize these additional Feeds.<br />It is also possible to activate or deactivate these Feeds separately.<br /><strong>It is necessary to update the podPress Feed Buttons <a href="%1$s">widget settings</a> after the slug name of one of these Feeds has been modified.</strong>', 'podpress'), $widgetsettingsurl) . '</p>' . "\n";
     //~ echo '		<p class="podpress_notice">'.__('<strong>Notice:</strong> After an upgrade from podPress v8.8.6.3 or older version to the current version, you need to control the following forms (and fill out empty fields eventually) of the Feeds you like to keep on using. You may copy and paste the meta information from the input fields above. But you could also use the new section below to customize these information for each Feed. The additional Feeds like the one with the slug name "podcast" do not automatically share those meta information any longer with the default Feeds of the blog.', 'podpress').'</p>'."\n";
     echo '		<div id="podpress_accordion">' . "\n";
     $filetypes = podPress_filetypes();
     $allcategories = get_categories(array('orderby' => 'name', 'order' => 'ASC'));
     $i = 0;
     $posts_per_feed_default = get_option('posts_per_rss', 10);
     if (is_array($this->settings['podpress_feeds'])) {
         foreach ($this->settings['podpress_feeds'] as $feed) {
             $selected_filetypes = $feed['FileTypes'];
             if (FALSE === is_array($feed['FileTypes'])) {
                 $selected_filetypes = array();
             }
             $selected_categories = $feed['inclCategories'];
             if (FALSE === is_array($selected_categories)) {
                 $selected_categories = array();
             }
             if (FALSE == empty($feed['slug'])) {
                 $ftitle = $feed['slug'];
             } else {
                 $ftitle = $i;
             }
             echo '			<h4><a href="">' . __('Feed', 'podpress') . ' ' . $ftitle . '</a></h4>' . "\n";
             echo '			<div>' . "\n";
             echo '				<div class="podpress_feed_settings_left_col">' . "\n";
             if (TRUE === $feed['use']) {
                 echo '					<input type="checkbox" name="podpress_feeds[' . $i . '][use]" id="podpress_feed_' . $i . '_use" value="yes" checked="checked" /> <label for="podpress_feed_' . $i . '_use">' . __('Activate Feed', 'podpress') . '</label>' . "\n";
             } else {
                 echo '					<input type="checkbox" name="podpress_feeds[' . $i . '][use]" id="podpress_feed_' . $i . '_use" value="yes" /> <label for="podpress_feed_' . $i . '_use">' . __('Activate Feed', 'podpress') . '</label>' . "\n";
             }
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_right_col">' . "\n";
             if (FALSE == defined('PODPRESS_DEACTIVATE_PREMIUM') or FALSE === constant('PODPRESS_DEACTIVATE_PREMIUM')) {
                 if (TRUE === $feed['premium']) {
                     echo '					<input type="checkbox" name="podpress_feeds[' . $i . '][premium]" id="podpress_feed_' . $i . '_premium" value="yes" checked="checked" /> <label for="podpress_feed_' . $i . '_premium">' . __('Premium Feed', 'podpress') . '</label>' . "\n";
                 } else {
                     echo '					<input type="checkbox" name="podpress_feeds[' . $i . '][premium]" id="podpress_feed_' . $i . '_premium" value="yes" /> <label for="podpress_feed_' . $i . '_premium">' . __('Premium Feed', 'podpress') . '</label>' . "\n";
                 }
                 if (FALSE == isset($this->settings['enablePremiumContent']) or TRUE !== $this->settings['enablePremiumContent']) {
                     echo '					<br /><span class="podpress_description">' . sprintf(__('If this Feed should be a Premium Feed then you need to activate the Premium Content feature at the <a href="%1$s">general settings page of podPress</a>.', 'podpress'), $generalsettingspodpressurl) . '</span>';
                 }
             }
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_left_col">' . "\n";
             echo '					<label for="podpress_feed_' . $i . '_name">' . __('Feed Name', 'podpress') . '</label><br /><input type="text" name="podpress_feeds[' . $i . '][name]" id="podpress_feed_' . $i . '_name" class="podpress_feeds_text_field" value="' . attribute_escape(stripslashes($feed['name'])) . '" /><br /><span class="podpress_description">' . __('(Leave the Feed Name field empty to delete this Feeds settings.)', 'podpress') . '</span><br />' . "\n";
             switch ($feed['feedtitle']) {
                 default:
                 case 'append':
                     $selected_append = ' selected="selected"';
                     $selected_blognameastitle = '';
                     $selected_feednameastitle = '';
                     break;
                 case 'blognameastitle':
                     $selected_append = '';
                     $selected_blognameastitle = ' selected="selected"';
                     $selected_feednameastitle = '';
                     break;
                 case 'feednameastitle':
                     $selected_append = '';
                     $selected_blognameastitle = '';
                     $selected_feednameastitle = ' selected="selected"';
                     break;
             }
             echo '					<label for="podpress_feed_' . $i . '_feedtitle">' . __('How-to build the Feed title:', 'podpress') . '</label> ';
             echo '					<select  id="podpress_feed_' . $i . '_feedtitle" name="podpress_feeds[' . $i . '][feedtitle]">' . "\n";
             echo '						<option value="append"' . $selected_append . '>' . __('use the blog name and append the Feed Name', 'podpress') . '</option>' . "\n";
             echo '						<option value="blognameastitle"' . $selected_blognameastitle . '>' . __('use only the blog name as the title', 'podpress') . '</option>' . "\n";
             echo '						<option value="feednameastitle"' . $selected_feednameastitle . '>' . __('use the Feed Name as the title', 'podpress') . '</option>' . "\n";
             echo '					</select>' . "\n";
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_right_col">' . "\n";
             echo '					<label for="podpress_feed_' . $i . '_slug">' . __('Slug Name', 'podpress') . '</label> <span class="podpress_description">' . __('- the name for this Feed in the URL', 'podpress') . '</span><br /><input type="text" name="podpress_feeds[' . $i . '][slug]" id="podpress_feed_' . $i . '_slug" class="podpress_feeds_text_field" value="' . attribute_escape(stripslashes($feed['slug'])) . '" /><br /><span class="podpress_description">' . __('Please, use only these characters: a-z, 0-9, underscore and hiphen.', 'podpress') . '</span>' . "\n";
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_fullwidth_col">' . "\n";
             echo '					<label for="podpress_feed_' . $i . '_feedurl">' . __('current Feed URL', 'podpress') . '</label><br /><span id="podpress_feed_' . $i . '_feedurl">' . get_feed_link($feed['slug']) . '</span>' . "\n";
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_left_col">' . "\n";
             echo '					<label for="podpress_feed_' . $i . '_subtitle">' . __('iTunes:Subtitle', 'podpress') . '</label><br /><input type="text" name="podpress_feeds[' . $i . '][subtitle]" id="podpress_feed_' . $i . '_subtitle" class="podpress_feeds_text_field" value="' . attribute_escape(stripslashes($feed['subtitle'])) . '" />' . "\n";
             echo '					<br /><br />' . "\n";
             echo '					<label for="podpress_feed_' . $i . '_rss_category">' . __('RSS Category', 'podpress') . '</label><br /><input type="text" name="podpress_feeds[' . $i . '][rss_category]" id="podpress_feed_' . $i . '_rss_category" class="podpress_feeds_text_field" value="' . attribute_escape(stripslashes($feed['rss_category'])) . '" size="40" />' . "\n";
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_right_col">' . "\n";
             echo '					<label for="podpress_feed_' . $i . '_descr">' . __('Description (RSS) / Subtitle (ATOM) / iTunes:Summary', 'podpress') . '</label><br /><textarea name="podpress_feeds[' . $i . '][descr]" id="podpress_feed_' . $i . '_descr" class="podpress_feeds_text_field" rows="4" cols="40">' . stripslashes(stripslashes($feed['descr'])) . '</textarea>' . "\n";
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_left_col">' . "\n";
             echo '					<label for="podpress_feed_' . $i . '_iTunesCategory_0">' . __('iTunes:Categories', 'podpress') . '</label><br />' . "\n";
             echo '					<select id="podpress_feed_' . $i . '_iTunesCategory_0" name="podpress_feeds[' . $i . '][itunes-category][0]">' . "\n";
             echo '						<optgroup label="' . __('Select Primary', 'podpress') . '">' . "\n";
             podPress_itunesCategoryOptions(stripslashes($feed['itunes-category'][0]));
             echo '						</optgroup>' . "\n";
             echo '					</select><br />' . "\n";
             echo '					<select name="podpress_feeds[' . $i . '][itunes-category][1]">' . "\n";
             echo '						<optgroup label="' . __('Select Second', 'podpress') . '">' . "\n";
             podPress_itunesCategoryOptions(stripslashes($feed['itunes-category'][1]));
             echo '						</optgroup>' . "\n";
             echo '					</select><br />' . "\n";
             echo '					<select name="podpress_feeds[' . $i . '][itunes-category][2]">' . "\n";
             echo '						<optgroup label="' . __('Select Third', 'podpress') . '">' . "\n";
             podPress_itunesCategoryOptions(stripslashes($feed['itunes-category'][2]));
             echo '						</optgroup>' . "\n";
             echo '					</select>' . "\n";
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_right_col">' . "\n";
             echo '					<label for="podpress_feed_' . $i . '_iTunesKeywords">' . __('iTunes:Keywords', 'podpress') . '</label><br /><textarea name="podpress_feeds[' . $i . '][itunes-keywords]" id="podpress_feed_' . $i . '_iTunesKeywords" class="podpress_feeds_text_field" rows="4" cols="40">' . stripslashes(stripslashes($feed['itunes-keywords'])) . '</textarea><br /><span class="podpress_description">' . __('a list of max. 12 comma separated words', 'podpress') . '</span>' . "\n";
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_left_col">' . "\n";
             echo '					<label for="podpress_feed_' . $i . '_iTunesAuthor">' . __('iTunes:Author/Owner', 'podpress') . '</label><br /><input type="text" name="podpress_feeds[' . $i . '][itunes-author]" id="podpress_feed_' . $i . '_iTunesAuthor" class="podpress_feeds_text_field" value="' . attribute_escape(stripslashes($feed['itunes-author'])) . '" size="40" />' . "\n";
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_right_col">' . "\n";
             echo '					<label for="podpress_feed_' . $i . '_email">' . __('Owner E-mail address', 'podpress') . '</label><br /><input type="text" name="podpress_feeds[' . $i . '][email]" id="podpress_feed_' . $i . '_email" class="podpress_feeds_text_field" value="' . attribute_escape(stripslashes($feed['email'])) . '" size="40" />' . "\n";
             echo '				</div>' . "\n";
             if (FALSE == isset($feed['itunes-image']) or empty($feed['itunes-image'])) {
                 $feed['itunes-image'] = $this->settings['iTunes']['image'];
             }
             echo '				<div class="podpress_feed_settings_left_col">' . "\n";
             echo '					<label for="podpress_feed_' . $i . '_iTunesImage">' . __('iTunes:Image', 'podpress') . '</label> <a href="" class="podpress_image_preview_link" title="' . __('Feed', 'podpress') . ' ' . $feed['slug'] . ' - ' . __('iTunes:Image', 'podpress') . '" onclick="podPress_jQuery(\'#podpress-itunesimage-preview-' . $i . '\').dialog(\'open\'); return false;">' . __('Preview', 'podpress') . '</a><br /><input type="text" name="podpress_feeds[' . $i . '][itunes-image]" id="podpress_feed_' . $i . '_iTunesImage" class="podpress_feeds_text_field" value="' . attribute_escape($feed['itunes-image']) . '" size="40" />' . "\n";
             echo '					<div id="podpress-itunesimage-preview-' . $i . '" title="' . attribute_escape(__('Feed', 'podpress') . ' ' . $feed['slug'] . ' - ' . __('iTunes:Image', 'podpress')) . '" class="podpress_itunesimage_preview">' . "\n";
             echo '						<img src="' . podpress_siteurl_is_ssl($feed['itunes-image']) . '" />' . "\n";
             echo '					</div>' . "\n";
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_right_col">' . "\n";
             echo '					<label for="podpress_feed_' . $i . '_copyright">' . __('Feed Copyright / license name', 'podpress') . '</label><br /><input type="text" name="podpress_feeds[' . $i . '][copyright]" id="podpress_feed_' . $i . '_copyright" class="podpress_feeds_text_field" value="' . attribute_escape(stripslashes($feed['copyright'])) . '" size="40" />' . "\n";
             echo '				</div>' . "\n";
             if (FALSE == isset($feed['rss_image']) or empty($feed['rss_image'])) {
                 $feed['rss_image'] = $rss_image;
             }
             echo '				<div class="podpress_feed_settings_left_col">' . "\n";
             echo '					<label for="podpress_feed_' . $i . '_rss_image">' . __('RSS Image (144 x 144 pixels)', 'podpress') . '</label> <a href="" class="podpress_image_preview_link" title="' . __('Feed', 'podpress') . ' ' . $feed['slug'] . ' - ' . __('RSS Image', 'podpress') . '" onclick="podPress_jQuery(\'#podpress-rssimage-preview-' . $i . '\').dialog(\'open\'); return false;">' . __('Preview', 'podpress') . '</a><br /><input type="text" name="podpress_feeds[' . $i . '][rss_image]" id="podpress_feed_' . $i . '_rss_image" class="podpress_feeds_text_field" value="' . attribute_escape($feed['rss_image']) . '" size="40" />' . "\n";
             echo '					<div id="podpress-rssimage-preview-' . $i . '" title="' . attribute_escape(__('Feed', 'podpress') . ' ' . $feed['slug'] . ' - ' . __('RSS Image', 'podpress')) . '" class="podpress_rssimage_preview">' . "\n";
             echo '						<img src="' . podpress_siteurl_is_ssl($feed['rss_image']) . '" />' . "\n";
             echo '					</div>' . "\n";
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_right_col">' . "\n";
             echo '					<label for="podpress_feed_' . $i . '_license_url">' . __('URL to the full Copyright / license text', 'podpress') . '</label><br /><input type="text" name="podpress_feeds[' . $i . '][license_url]" id="podpress_feed_' . $i . '_license_url" class="podpress_feeds_text_field" value="' . attribute_escape($feed['license_url']) . '" size="40" />' . "\n";
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_left_col">' . "\n";
             echo '					<label for="podpress_feed_' . $i . '_language">' . __('Language of this Feed', 'podpress') . '</label><br />' . "\n";
             if (FALSE == isset($feed['language']) or empty($feed['language'])) {
                 $feed['language'] = $rss_language;
             }
             echo '					<select id="podpress_feed_' . $i . '_language" name="podpress_feeds[' . $i . '][language]">' . "\n";
             echo '						<optgroup label="' . __('Select a language', 'podpress') . '">' . "\n";
             podPress_itunesLanguageOptions($feed['language']);
             echo '						</optgroup>' . "\n";
             echo '					</select>' . "\n";
             echo '					<br />' . "\n";
             echo '					<br />' . "\n";
             if (FALSE == isset($feed['charset']) or empty($feed['charset'])) {
                 $feed['charset'] = $blog_charset;
             }
             echo '					<label for="podpress_feed_' . $i . '_blog_charset">' . __('Encoding for this Feed') . '</label><br /><input type="text" name="podpress_feeds[' . $i . '][charset]" id="podpress_feed_' . $i . '_blog_charset" size="20" value="' . attribute_escape($feed['charset']) . '" />' . "\n";
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_right_col">';
             echo '					<label for="podpress_feed_' . $i . '_posttypefilter">' . __('Post Type Filter', 'podpress') . '</label><br />' . "\n";
             if (TRUE == version_compare($wp_version, '2.9', '>=')) {
                 $selected_posttypes = $feed['PostTypes'];
                 if (FALSE === is_array($selected_posttypes)) {
                     $selected_posttypes = array();
                 }
                 $args = array('public' => true, '_builtin' => false);
                 $output = 'objects';
                 // names or objects
                 $post_types = get_post_types($args, $output);
                 if (TRUE == is_array($post_types) and FALSE == empty($post_types)) {
                     echo '					<select id="podpress_feed_' . $i . '_posttypefilter" name="podpress_feeds[' . $i . '][PostTypes][]" size="5" multiple="multiple" class="podpress_posttypefilter_select">' . "\n";
                     echo '					<optgroup label="' . attribute_escape(__('Select post types', 'podpress')) . '">' . "\n";
                     if (TRUE == in_array('post', $selected_posttypes)) {
                         $selected = ' selected="selected"';
                     } else {
                         $selected = '';
                     }
                     echo '				<option value="post"' . $selected . '>' . __('Standard Posts', '') . ' (post)</option>';
                     foreach ($post_types as $post_type) {
                         if (TRUE == in_array($post_type->name, $selected_posttypes)) {
                             $selected = ' selected="selected"';
                         } else {
                             $selected = '';
                         }
                         echo '				<option value="' . $post_type->name . '"' . $selected . '>' . $post_type->label . ' (' . $post_type->name . ')</option>';
                     }
                     echo '					</optgroup>' . "\n";
                     echo '					</select>' . "\n";
                     echo '					<span class="podpress_description">' . __('Select one or more custom post types if this Feed should contain only posts of these post types. If the Feed should contain only posts of no custom type then do not select a type.', 'podpress') . '</span>';
                     echo '					<br /><span class="podpress_description">' . __('Hold the key [SHIFT] or [CTRL] and use the left mouse button to select more than one value.<br />Hold [CTRL] and use the left mouse button to deselect values.', 'podpress') . '</span>';
                 } else {
                     echo '				<em class="nonessential">(' . __('Currently are no custom post types defined.', 'podpress') . ')</em>' . "\n";
                 }
             } else {
                 echo '				<em class="nonessential">(' . sprintf(__('This feature is only available if you use WP %1$s or newer.', 'podpress'), '2.9') . ')</em>' . "\n";
             }
             echo '				</div>' . "\n";
             switch ($feed['itunes-explicit']) {
                 default:
                 case 'No':
                     $selected_no = ' selected="selected"';
                     $selected_yes = '';
                     $selected_clean = '';
                     break;
                 case 'Yes':
                     $selected_no = '';
                     $selected_yes = ' selected="selected"';
                     $selected_clean = '';
                     break;
                 case 'Clean':
                     $selected_no = '';
                     $selected_yes = '';
                     $selected_clean = ' selected="selected"';
                     break;
             }
             echo '				<div class="podpress_feed_settings_left_col">';
             echo '					<label for="podpress_feed_' . $i . '_iTunesExplicit">' . __('iTunes:Explicit', 'podpress') . '</label><br/>';
             echo '					<select  id="podpress_feed_' . $i . '_iTunesExplicit" name="podpress_feeds[' . $i . '][itunes-explicit]">' . "\n";
             echo '						<option value="No"' . $selected_no . '>' . __('No', 'podpress') . '</option>' . "\n";
             echo '						<option value="Yes"' . $selected_yes . '>' . __('Yes', 'podpress') . '</option>' . "\n";
             echo '						<option value="Clean"' . $selected_clean . '>' . __('Clean', 'podpress') . '</option>' . "\n";
             echo '					</select>' . "\n";
             echo '					<br />' . "\n";
             echo '					<br />' . "\n";
             echo '					<label for="podpress_feed_' . $i . '_iTunesBlock">' . __('iTunes:Block', 'podpress') . '</label><br />' . "\n";
             if ('Yes' == $feed['itunes-block']) {
                 $no_selected = '';
                 $yes_selected = ' selected="selected"';
             } else {
                 $no_selected = ' selected="selected"';
                 $yes_selected = '';
             }
             echo '					<select name="podpress_feeds[' . $i . '][itunes-block]" id="podpress_feed_' . $i . '_iTunesBlock">' . "\n";
             echo '						<option value="No"' . $no_selected . '>' . __('No', 'podpress') . '</option>' . "\n";
             echo '						<option value="Yes"' . $yes_selected . '>' . __('Yes', 'podpress') . '</option>' . "\n";
             echo '					</select>' . "\n";
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_right_col">' . "\n";
             echo '					<label for="podpress_feed_' . $i . '_filetypefilter">' . __('File Type Filter', 'podpress') . '</label><br />' . "\n";
             echo '					<select id="podpress_feed_' . $i . '_filetypefilter" name="podpress_feeds[' . $i . '][FileTypes][]" size="5" multiple="multiple" class="podpress_filetypefilter_select">' . "\n";
             echo '					<optgroup label="' . attribute_escape(__('Select file types', 'podpress')) . '">' . "\n";
             foreach ($filetypes as $key => $value) {
                 if (TRUE == in_array($key, $selected_filetypes)) {
                     $selected = ' selected="selected"';
                 } else {
                     $selected = '';
                 }
                 if ($key !== 'audio_mp4') {
                     echo '						<option value="' . $key . '"' . $selected . '>' . $value . '</option>' . "\n";
                 }
             }
             echo '					</optgroup>' . "\n";
             echo '					</select>' . "\n";
             echo '					<span class="podpress_description">' . __('Select one or more file types to include in this Feed only posts which have attached media files of these file types. (This filter bypasses the "Included in:" selection.)', 'podpress') . '</span>';
             echo '					<br /><span class="podpress_description">' . __('Hold the key [SHIFT] or [CTRL] and use the left mouse button to select more than one value.<br />Hold [CTRL] and use the left mouse button to deselect values.', 'podpress') . '</span>';
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_left_col">';
             echo '					<label for="podpress_feed_' . $i . '_iTunesNewFeedURL">' . __('iTunes:New-Feed-Url', 'podpress') . '</label><br/>' . "\n";
             if ('Enable' == $feed['itunes-newfeedurl']) {
                 $disable_selected = '';
                 $enable_selected = ' selected="selected"';
             } else {
                 $disable_selected = ' selected="selected"';
                 $enable_selected = '';
             }
             echo '					<select name="podpress_feeds[' . $i . '][itunes-newfeedurl]" id="podpress_feed_' . $i . '_iTunesNewFeedURL">' . "\n";
             echo '						<option value="Disable"' . $disable_selected . '>' . __('Disable', 'podpress') . '</option>' . "\n";
             echo '						<option value="Enable"' . $enable_selected . '>' . __('Enable', 'podpress') . '</option>' . "\n";
             echo '					</select>' . "\n";
             echo '					<br />' . "\n";
             echo '					<br />' . "\n";
             echo '					<label for="podpress_feed_' . $i . '_newfeedurl">' . __('iTunes:New-Feed-Url', 'podpress') . ' - ' . __('the new Feed URL', 'podpress') . '</label><br /><input type="text" name="podpress_feeds[' . $i . '][newfeedurl]" id="podpress_feed_' . $i . '_newfeedurl" class="podpress_feeds_text_field" value="' . attribute_escape($feed['newfeedurl']) . '" />' . "\n";
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_right_col">';
             echo '					<label for="podpress_feed_' . $i . '_categoryfilter">' . __('Category Filter', 'podpress') . '</label><br />' . "\n";
             echo '					<select id="podpress_feed_' . $i . '_categoryfilter" name="podpress_feeds[' . $i . '][inclCategories][]" size="5" multiple="multiple" class="podpress_categoryfilter_select">' . "\n";
             echo '					<optgroup label="' . attribute_escape(__('Select categories', 'podpress')) . '">' . "\n";
             foreach ($allcategories as $category) {
                 if (TRUE == in_array($category->term_id, $selected_categories)) {
                     $selected = ' selected="selected"';
                 } else {
                     $selected = '';
                 }
                 echo '						<option value="' . $category->term_id . '"' . $selected . '>' . $category->name . '</option>' . "\n";
             }
             echo '					</optgroup>' . "\n";
             echo '					</select>' . "\n";
             echo '					<span class="podpress_description">' . __('Select one or more categories if this Feed should contain only posts of these categories. If the Feed should contain posts of all categories select none.', 'podpress') . '</span>';
             echo '					<br /><span class="podpress_description">' . __('Hold the key [SHIFT] or [CTRL] and use the left mouse button to select more than one value.<br />Hold [CTRL] and use the left mouse button to deselect values.', 'podpress') . '</span>';
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_left_col">' . "\n";
             echo '					<label for="podpress_feed_' . $i . '_iTunesFeedID">' . __('iTunes:FeedID', 'podpress') . '</label><br /><input type="text" name="podpress_feeds[' . $i . '][itunes-feedid]" id="podpress_feed_' . $i . '_iTunesFeedID" value="' . $feed['itunes-feedid'] . '" size="10" />' . "\n";
             echo '					<br />' . "\n";
             echo '					<br />' . "\n";
             //~ echo '				<div class="podpress_feed_settings_left_col">'.__('Feed Type:', 'podpress').'<br />'."\n";
             echo '				' . __('Feed Type:', 'podpress') . '<br />' . "\n";
             if ('atom' === $feed['feedtype']) {
                 echo '					<input type="radio" name="podpress_feeds[' . $i . '][feedtype]" id="podpress_feed_' . $i . '_feedtype_rss" value="rss" /> <label for="podpress_feed_' . $i . '_feedtype_rss">' . __('RSS', 'podpress') . '</label><br />' . "\n";
                 echo '					<input type="radio" name="podpress_feeds[' . $i . '][feedtype]" id="podpress_feed_' . $i . '_feedtype_atom" value="atom" checked="checked" /> <label for="podpress_feed_' . $i . '_feedtype_atom">' . __('ATOM', 'podpress') . '</label>' . "\n";
             } else {
                 echo '					<input type="radio" name="podpress_feeds[' . $i . '][feedtype]" id="podpress_feed_' . $i . '_feedtype_rss" value="rss" checked="checked" /> <label for="podpress_feed_' . $i . '_feedtype_rss">' . __('RSS', 'podpress') . '</label><br />' . "\n";
                 echo '					<input type="radio" name="podpress_feeds[' . $i . '][feedtype]" id="podpress_feed_' . $i . '_feedtype_atom" value="atom" /> <label for="podpress_feed_' . $i . '_feedtype_atom">' . __('ATOM', 'podpress') . '</label>' . "\n";
             }
             if (FALSE == isset($feed['ttl']) or !empty($feed['ttl']) and $feed['ttl'] < 1440) {
                 $feed['ttl'] = 1440;
             }
             echo '					<br />' . "\n";
             echo '					<br />' . "\n";
             echo '					<label for="podpress_feed_' . $i . '_rss_ttl">' . __('TTL (time-to-live)', 'podpress') . '</label><br /><input type="text" name="podpress_feeds[' . $i . '][ttl]" id="podpress_feed_' . $i . '_rss_ttl" value="' . $feed['ttl'] . '" size="4" />' . "\n";
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_right_col">' . "\n";
             if (TRUE == isset($feed['show_only_podPress_podcasts']) and FALSE === $feed['show_only_podPress_podcasts']) {
                 echo '					<input type="checkbox" name="podpress_feeds[' . $i . '][show_only_podPress_podcasts]" id="podpress_feed_' . $i . '_show_only_podPress_podcasts" value="yes" /> <label for="podpress_feed_' . $i . '_show_only_podPress_podcasts">' . __('Include only posts with podPress attachments in this Feed', 'podpress') . '</label> <span class="podpress_description">' . __('- while the File Type and Category Filters are not in use.', 'podpress') . '</span>' . "\n";
             } else {
                 echo '					<input type="checkbox" name="podpress_feeds[' . $i . '][show_only_podPress_podcasts]" id="podpress_feed_' . $i . '_show_only_podPress_podcasts" value="yes" checked="checked" /> <label for="podpress_feed_' . $i . '_show_only_podPress_podcasts">' . __('Include only posts with podPress attachments in this Feed', 'podpress') . '</label> <span class="podpress_description">' . __('- while the File Type and Category Filters are not in use.', 'podpress') . '</span>' . "\n";
             }
             echo '					<br />' . "\n";
             echo '					<br />' . "\n";
             if (TRUE == isset($feed['bypass_incl_selection']) and TRUE === $feed['bypass_incl_selection']) {
                 echo '					<input type="checkbox" name="podpress_feeds[' . $i . '][bypass_incl_selection]" id="podpress_feed_' . $i . '_bypass_incl_selection" value="yes" checked="checked" /> <label for="podpress_feed_' . $i . '_bypass_incl_selection">' . __('Bypass the "Included in:" selection for this Feed', 'podpress') . '</label> <span class="podpress_description">' . __('- If this option is selected then the first media file of the right file type will be the enclosure of a post in this Feed - if it is a RSS Feed. Posts in ATOM Feeds will contain all of their media files as enclosures (and not the ones you have marked while editing a post).', 'podpress') . '</span>' . "\n";
             } else {
                 echo '					<input type="checkbox" name="podpress_feeds[' . $i . '][bypass_incl_selection]" id="podpress_feed_' . $i . '_bypass_incl_selection" value="yes" /> <label for="podpress_feed_' . $i . '_bypass_incl_selection">' . __('Bypass the "Included in:" selection for this Feed', 'podpress') . '</label> <span class="podpress_description">' . __('- If this option is selected then the first media file of the right file type will be the enclosure of a post in this Feed - if it is a RSS Feed. Posts in ATOM Feeds will contain all of their media files as enclosures (and not the ones you have marked while editing a post).', 'podpress') . '</span>' . "\n";
             }
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_right_col">' . "\n";
             if (FALSE === isset($feed['posts_per_feed']) or TRUE === empty($feed['posts_per_feed'])) {
                 $feed['posts_per_feed'] = $posts_per_feed_default;
             }
             echo '					<label for="podpress_feed_' . $i . '_posts_per_feed">' . __('max. amount of posts per feed: ', 'podpress') . '</label><br /><input type="text" name="podpress_feeds[' . $i . '][posts_per_feed]" id="podpress_feed_' . $i . '_posts_per_feed" value="' . $feed['posts_per_feed'] . '" size="4" /> <span class="podpress_description">' . sprintf(__('default: %1$s', 'podpress'), $posts_per_feed_default) . '</span>' . "\n";
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_fullwidth_col">' . "\n";
             if (TRUE === $feed['use_headerlink']) {
                 echo '					<input type="checkbox" name="podpress_feeds[' . $i . '][use_headerlink]" id="podpress_feed_' . $i . '_use_headerlink" value="yes" checked="checked" /> <label for="podpress_feed_' . $i . '_use_headerlink">' . __('add Feed link to the blog header', 'podpress') . '</label> <span class="podpress_description">' . __('(into &lt;head&gt;)', 'podpress') . '</span>' . "\n";
             } else {
                 echo '					<input type="checkbox" name="podpress_feeds[' . $i . '][use_headerlink]" id="podpress_feed_' . $i . '_use_headerlink" value="yes" /> <label for="podpress_feed_' . $i . '_use_headerlink">' . __('add Feed link to the blog header', 'podpress') . '</label> <span class="podpress_description">' . __('(into &lt;head&gt;)', 'podpress') . '</span>' . "\n";
             }
             echo '				</div>' . "\n";
             echo '			</div><!-- end accordion element -->' . "\n";
             $i++;
         }
     }
     if ($i < PODPRESS_FEEDS_MAX_NUMBER) {
         for ($j = $i; $j < PODPRESS_FEEDS_MAX_NUMBER; $j++) {
             echo '			<h4><a href="">' . __('Feed', 'podpress') . ' ...</a></h4>' . "\n";
             echo '			<div>' . "\n";
             echo '				<div class="podpress_feed_settings_left_col">' . "\n";
             echo '					<input type="checkbox" name="podpress_feeds[' . $j . '][use]" id="podpress_feed_' . $j . '_use" value="yes" /> <label for="podpress_feed_' . $j . '_use">' . __('Activate Feed', 'podpress') . '</label>' . "\n";
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_right_col">' . "\n";
             if (FALSE == defined('PODPRESS_DEACTIVATE_PREMIUM') or FALSE === constant('PODPRESS_DEACTIVATE_PREMIUM')) {
                 echo '					<input type="checkbox" name="podpress_feeds[' . $j . '][premium]" id="podpress_feed_' . $j . '_premium" value="yes" /> <label for="podpress_feed_' . $j . '_premium">' . __('Premium Feed', 'podpress') . '</label>' . "\n";
                 if (FALSE == isset($this->settings['enablePremiumContent']) or TRUE !== $this->settings['enablePremiumContent']) {
                     echo '					<br /><span class="podpress_description">' . sprintf(__('If this Feed should be a Premium Feed then you need to activate the Premium Content feature at the <a href="%1$s">general settings page of podPress</a>.', 'podpress'), $generalsettingspodpressurl) . '</span>';
                 }
             }
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_left_col">' . "\n";
             echo '					<label for="podpress_feed_' . $j . '_name">' . __('Feed Name', 'podpress') . '</label><br /><input type="text" name="podpress_feeds[' . $j . '][name]" id="podpress_feed_' . $j . '_name" class="podpress_feeds_text_field" value="" />' . "\n";
             echo '					<br/><label for="podpress_feed_' . $j . '_feedtitle">' . __('How-to build the Feed title:', 'podpress') . '</label> ';
             echo '					<select  id="podpress_feed_' . $j . '_feedtitle" name="podpress_feeds[' . $j . '][feedtitle]">' . "\n";
             echo '						<option value="No" selected="selected">' . __('use the blog name and append the Feed Name', 'podpress') . '</option>' . "\n";
             echo '						<option value="Yes">' . __('use only the blog name as the title', 'podpress') . '</option>' . "\n";
             echo '						<option value="Clean">' . __('use the Feed Name as the title', 'podpress') . '</option>' . "\n";
             echo '					</select>' . "\n";
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_right_col">' . "\n";
             echo '					<label for="podpress_feed_' . $j . '_slug">' . __('Slug Name', 'podpress') . '</label> <span class="podpress_description">' . __('- the name for this Feed in the URL', 'podpress') . '</span><br /><input type="text" name="podpress_feeds[' . $j . '][slug]" id="podpress_feed_' . $j . '_slug" class="podpress_feeds_text_field" value="" /><br /><span class="podpress_description">' . __('Please, use only these characters: a-z, 0-9, underscore and hiphen.', 'podpress') . '</span>' . "\n";
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_fullwidth_col">' . "\n";
             echo '					<label for="podpress_feed_' . $j . '_feedurl">' . __('Feed URL', 'podpress') . '</label><br /><span id="podpress_feed_' . $j . '_feedurl">' . __('http://', 'podpress') . '</span>' . "\n";
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_left_col">' . "\n";
             echo '					<label for="podpress_feed_' . $j . '_subtitle">' . __('iTunes:Subtitle', 'podpress') . '</label><br /><input type="text" name="podpress_feeds[' . $j . '][subtitle]" id="podpress_feed_' . $j . '_subtitle" class="podpress_feeds_text_field" value="" />' . "\n";
             echo '					<br /><br />' . "\n";
             echo '					<label for="podpress_feed_' . $j . '_rss_category">' . __('RSS Category', 'podpress') . '</label><br /><input type="text" name="podpress_feeds[' . $j . '][rss_category]" id="podpress_feed_' . $j . '_rss_category" class="podpress_feeds_text_field" value="" size="40" />' . "\n";
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_right_col">' . "\n";
             echo '					<label for="podpress_feed_' . $j . '_descr">' . __('Description (RSS) / Subtitle (ATOM) / iTunes:Summary', 'podpress') . '</label><br /><textarea name="podpress_feeds[' . $j . '][descr]" id="podpress_feed_' . $j . '_descr" class="podpress_feeds_text_field" rows="4" cols="40"></textarea>' . "\n";
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_left_col">';
             echo '					<label for="podpress_feed_' . $j . '_iTunesCategory_0">' . __('iTunes:Categories', 'podpress') . '</label><br/>' . "\n";
             echo '					<select id="podpress_feed_' . $j . '_iTunesCategory_0" name="podpress_feeds[' . $j . '][itunes-category][0]">' . "\n";
             echo '						<optgroup label="' . __('Select Primary', 'podpress') . '">' . "\n";
             podPress_itunesCategoryOptions();
             echo '						</optgroup>' . "\n";
             echo '					</select><br />' . "\n";
             echo '					<select name="podpress_feeds[' . $j . '][itunes-category][1]">' . "\n";
             echo '						<optgroup label="' . __('Select Second', 'podpress') . '">' . "\n";
             podPress_itunesCategoryOptions();
             echo '						</optgroup>' . "\n";
             echo '					</select><br />' . "\n";
             echo '					<select name="podpress_feeds[' . $j . '][itunes-category][2]">' . "\n";
             echo '						<optgroup label="' . __('Select Third', 'podpress') . '">' . "\n";
             podPress_itunesCategoryOptions();
             echo '						</optgroup>' . "\n";
             echo '					</select>' . "\n";
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_right_col">' . "\n";
             echo '					<label for="podpress_feed_' . $j . '_iTunesKeywords">' . __('iTunes:Keywords', 'podpress') . '</label><br /><textarea name="podpress_feeds[' . $j . '][itunes-keywords]" id="podpress_feed_' . $j . '_iTunesKeywords" class="podpress_feeds_text_field" rows="4" cols="40"></textarea><br /><span class="podpress_description">' . __('a list of max. 12 comma separated words', 'podpress') . '</span>' . "\n";
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_left_col">' . "\n";
             echo '					<label for="podpress_feed_' . $j . '_iTunesAuthor">' . __('iTunes:Author/Owner', 'podpress') . '</label><br /><input type="text" name="podpress_feeds[' . $j . '][itunes-author]" id="podpress_feed_' . $j . '_iTunesAuthor" class="podpress_feeds_text_field" value="" size="40" />' . "\n";
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_right_col">' . "\n";
             echo '					<label for="podpress_feed_' . $j . '_email">' . __('Owner E-mail address', 'podpress') . '</label><br /><input type="text" name="podpress_feeds[' . $j . '][email]" id="podpress_feed_' . $j . '_email" class="podpress_feeds_text_field" value="" size="40" />' . "\n";
             echo '				</div>' . "\n";
             $itunesimageurl = attribute_escape($itunes_image_url);
             echo '				<div class="podpress_feed_settings_left_col">' . "\n";
             echo '					<label for="podpress_feed_' . $j . '_iTunesImage">' . __('iTunes:Image', 'podpress') . '</label> <a href="" class="podpress_image_preview_link" title="' . __('Feed', 'podpress') . ' ' . $j . ' - ' . __('iTunes:Image', 'podpress') . '" onclick="podPress_jQuery(\'#podpress-itunesimage-preview-' . $j . '\').dialog(\'open\'); return false;">' . __('Preview', 'podpress') . '</a><br /><input type="text" name="podpress_feeds[' . $j . '][itunes-image]" id="podpress_feed_' . $j . '_iTunesImage" class="podpress_feeds_text_field" value="' . $itunesimageurl . '" size="40" />' . "\n";
             echo '					<div id="podpress-itunesimage-preview-' . $j . '" title="' . attribute_escape(__('iTunes:Image', 'podpress')) . '" class="podpress_itunesimage_preview">' . "\n";
             echo '						<img src="' . podpress_siteurl_is_ssl($itunesimageurl) . '" />' . "\n";
             echo '					</div>' . "\n";
             echo '				</div>' . "\n";
             $rssimageurl = attribute_escape($rss_image);
             echo '				<div class="podpress_feed_settings_right_col">' . "\n";
             echo '					<label for="podpress_feed_' . $j . '_copyright">' . __('Feed Copyright / license name', 'podpress') . '</label><br /><input type="text" name="podpress_feeds[' . $j . '][copyright]" id="podpress_feed_' . $j . '_copyright" class="podpress_feeds_text_field" value="" size="40" />' . "\n";
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_left_col">' . "\n";
             echo '					<label for="podpress_feed_' . $j . '_rss_image">' . __('RSS Image (144 x 144 pixels)', 'podpress') . '</label> <a href="" class="podpress_image_preview_link" title="' . __('Feed', 'podpress') . ' ' . $j . ' - ' . __('RSS Image', 'podpress') . '" onclick="podPress_jQuery(\'#podpress-rssimage-preview-' . $j . '\').dialog(\'open\'); return false;">' . __('Preview', 'podpress') . '</a><br /><input type="text" name="podpress_feeds[' . $j . '][rss_image]" id="podpress_feed_' . $j . '_rss_image" class="podpress_feeds_text_field" value="' . $rssimageurl . '" size="40" />' . "\n";
             echo '					<div id="podpress-rssimage-preview-' . $j . '" title="' . attribute_escape(__('RSS Image', 'podpress')) . '" class="podpress_rssimage_preview">' . "\n";
             echo '						<img src="' . podpress_siteurl_is_ssl($rssimageurl) . '" />' . "\n";
             echo '					</div>' . "\n";
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_right_col">' . "\n";
             echo '					<label for="podpress_feed_' . $j . '_license_url">' . __('URL to the full Copyright / license text', 'podpress') . '</label><br /><input type="text" name="podpress_feeds[' . $j . '][license_url]" id="podpress_feed_' . $j . '_license_url" class="podpress_feeds_text_field" value="" size="40" />' . "\n";
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_left_col">' . "\n";
             echo '					<label for="podpress_feed_' . $j . '_language">' . __('Language of this Feed', 'podpress') . '</label><br />';
             echo '					<select id="podpress_feed_' . $j . '_language" name="podpress_feeds[' . $j . '][language]">' . "\n";
             echo '						<optgroup label="' . __('Select a language', 'podpress') . '">' . "\n";
             podPress_itunesLanguageOptions();
             echo '						</optgroup>' . "\n";
             echo '					</select>' . "\n";
             echo '					<br />' . "\n";
             echo '					<br />' . "\n";
             echo '					<label for="podpress_feed_' . $j . '_blog_charset">' . __('Encoding for this Feed') . '</label><br /><input type="text" name="podpress_feeds[' . $j . '][charset]" id="podpress_feed_' . $j . '_blog_charset" size="20" value="' . attribute_escape($blog_charset) . '" />' . "\n";
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_right_col">';
             echo '					<label for="podpress_feed_' . $i . '_posttypefilter">' . __('Post Type Filter', 'podpress') . '</label><br />' . "\n";
             if (TRUE == version_compare($wp_version, '2.9', '>=')) {
                 $args = array('public' => true, '_builtin' => false);
                 $output = 'objects';
                 // names or objects
                 $post_types = get_post_types($args, $output);
                 if (TRUE == is_array($post_types) and FALSE == empty($post_types)) {
                     echo '					<select id="podpress_feed_' . $j . '_posttypefilter" name="podpress_feeds[' . $j . '][PostTypes][]" size="5" multiple="multiple" class="podpress_posttypefilter_select">' . "\n";
                     echo '					<optgroup label="' . attribute_escape(__('Select post types', 'podpress')) . '">' . "\n";
                     echo '						<option value="post">' . __('Standard Posts', '') . ' (post)</option>';
                     foreach ($post_types as $post_type) {
                         echo '						<option value="' . $post_type->name . '">' . $post_type->label . ' (' . $post_type->name . ')</option>';
                     }
                     echo '					</optgroup>' . "\n";
                     echo '					</select>' . "\n";
                     echo '					<span class="podpress_description">' . __('Select one or more custom post types if this Feed should contain only posts of these post types. If the Feed should contain only posts of no custom type then do not select a type.', 'podpress') . '</span>';
                     echo '					<br /><span class="podpress_description">' . __('Hold the key [SHIFT] or [CTRL] and use the left mouse button to select more than one value.<br />Hold [CTRL] and use the left mouse button to deselect values.', 'podpress') . '</span>';
                 } else {
                     echo '				<em class="nonessential">(' . __('Currently are no custom post types defined.', 'podpress') . ')</em>' . "\n";
                 }
             } else {
                 echo '				<em class="nonessential">(' . sprintf(__('This feature is only available if you use WP %1$s or newer.', 'podpress'), '2.9') . ')</em>' . "\n";
             }
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_left_col">';
             echo '					<label for="podpress_feed_' . $j . '_iTunesExplicit">' . __('iTunes:Explicit', 'podpress') . '</label><br/>';
             echo '					<select  id="podpress_feed_' . $j . '_iTunesExplicit" name="podpress_feeds[' . $j . '][itunes-explicit]">' . "\n";
             echo '						<option value="No" selected="selected">' . __('No', 'podpress') . '</option>' . "\n";
             echo '						<option value="Yes">' . __('Yes', 'podpress') . '</option>' . "\n";
             echo '						<option value="Clean">' . __('Clean', 'podpress') . '</option>' . "\n";
             echo '					</select>' . "\n";
             echo '					<br />' . "\n";
             echo '					<br />' . "\n";
             echo '					<label for="podpress_feed_' . $j . '_iTunesBlock">' . __('iTunes:Block', 'podpress') . '</label><br />' . "\n";
             echo '					<select name="podpress_feeds[' . $j . '][itunes-block]" id="podpress_feed_' . $j . '_iTunesBlock">' . "\n";
             echo '						<option value="No" selected="selected">' . __('No', 'podpress') . '</option>' . "\n";
             echo '						<option value="Yes">' . __('Yes', 'podpress') . '</option>' . "\n";
             echo '					</select>' . "\n";
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_right_col">' . "\n";
             echo '					<label for="podpress_feed_' . $j . '_filetypefilter">' . __('File Type Filter', 'podpress') . '</label><br />' . "\n";
             echo '					<select id="podpress_feed_' . $j . '_filetypefilter" name="podpress_feeds[' . $j . '][FileTypes][]" size="5" multiple="multiple" class="podpress_filetypefilter_select">' . "\n";
             echo '					<optgroup label="' . attribute_escape(__('Select file types', 'podpress')) . '">' . "\n";
             foreach ($filetypes as $key => $value) {
                 if ($key !== 'audio_mp4') {
                     echo '						<option value="' . $key . '">' . $value . '</option>' . "\n";
                 }
             }
             echo '					</optgroup>' . "\n";
             echo '					</select>' . "\n";
             echo '					<span class="podpress_description">' . __('Select one or more file types to include in this Feed only posts which have attached media files of these file types. (This filter bypasses the "Included in:" selection.)', 'podpress') . '</span>';
             echo '					<br /><span class="podpress_description">' . __('Hold the key [SHIFT] or [CTRL] and use the left mouse button to select more than one value.<br />Hold [CTRL] and use the left mouse button to deselect values.', 'podpress') . '</span>';
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_left_col">' . "\n";
             echo '					<label for="podpress_feed_' . $j . '_iTunesNewFeedURL">' . __('iTunes:New-Feed-Url', 'podpress') . '</label><br />' . "\n";
             echo '					<select name="podpress_feeds[' . $j . '][itunes-newfeedurl]" id="podpress_feed_' . $j . '_iTunesNewFeedURL">' . "\n";
             echo '						<option value="Disable" selected="selected">' . __('Disable', 'podpress') . '</option>' . "\n";
             echo '						<option value="Enable">' . __('Enable', 'podpress') . '</option>' . "\n";
             echo '					</select>' . "\n";
             echo '					<br />' . "\n";
             echo '					<br />' . "\n";
             echo '					<label for="podpress_feed_' . $j . '_newfeedurl">' . __('iTunes:New-Feed-Url - the new Feed URL', 'podpress') . '</label><br /><input type="text" name="podpress_feeds[' . $j . '][newfeedurl]" id="podpress_feed_' . $j . '_newfeedurl" class="podpress_feeds_text_field" value="" />' . "\n";
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_right_col">';
             echo '					<label for="podpress_feed_' . $j . '_categoryfilter">' . __('Category Filter', 'podpress') . '</label><br />' . "\n";
             echo '					<select id="podpress_feed_' . $j . '_categoryfilter" name="podpress_feeds[' . $j . '][inclCategories][]" size="5" multiple="multiple" class="podpress_categoryfilter_select">' . "\n";
             echo '					<optgroup label="' . attribute_escape(__('Select categories', 'podpress')) . '">' . "\n";
             foreach ($allcategories as $category) {
                 echo '						<option value="' . $category->term_id . '">' . $category->name . '</option>' . "\n";
             }
             echo '					</optgroup>' . "\n";
             echo '					</select>' . "\n";
             echo '					<span class="podpress_description">' . __('Select one or more categories if this Feed should contain only posts of these categories. If the Feed should contain posts of all categories select none.', 'podpress') . '</span>';
             echo '					<span class="podpress_description">' . __('Hold the key [SHIFT] or [CTRL] and use the left mouse button to select more than one value.<br />Hold [CTRL] and use the left mouse button to deselect values.', 'podpress') . '</span>';
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_left_col">' . "\n";
             echo '					<label for="podpress_feed_' . $j . '_iTunesFeedID">' . __('iTunes:FeedID', 'podpress') . '</label><br /><input type="text" name="podpress_feeds[' . $j . '][itunes-feedid]" id="podpress_feed_' . $j . '_iTunesFeedID" value="" size="10" />' . "\n";
             echo '					<br />' . "\n";
             echo '					<br />' . "\n";
             echo '					' . __('Feed Type:', 'podpress') . '<br />' . "\n";
             echo '					<input type="radio" name="podpress_feeds[' . $j . '][feedtype]" id="podpress_feed_' . $j . '_feedtype_rss" value="rss" checked="checked" /> <label for="podpress_feed_' . $j . '_feedtype_rss">' . __('RSS', 'podpress') . '</label><br />' . "\n";
             echo '					<input type="radio" name="podpress_feeds[' . $j . '][feedtype]" id="podpress_feed_' . $j . '_feedtype_atom" value="atom" /> <label for="podpress_feed_' . $j . '_feedtype_atom">' . __('ATOM', 'podpress') . '</label>' . "\n";
             echo '					<br />' . "\n";
             echo '					<br />' . "\n";
             echo '					<label for="podpress_feed_' . $j . '_rss_ttl">' . __('TTL (time-to-live)', 'podpress') . '</label><br /><input type="text" name="podpress_feeds[' . $j . '][ttl]" id="podpress_feed_' . $j . '_rss_ttl" value="1440" size="4" />' . "\n";
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_right_col">' . "\n";
             echo '					<input type="checkbox" name="podpress_feeds[' . $j . '][show_only_podPress_podcasts]" id="podpress_feed_' . $j . '_show_only_podPress_podcasts" value="yes" checked="checked" /> <label for="podpress_feed_' . $j . '_show_only_podPress_podcasts">' . __('Include only posts with podPress attachments in this Feed', 'podpress') . '</label> <span class="podpress_description">' . __('- while the File Type and Category Filters are not in use.', 'podpress') . '</span>' . "\n";
             echo '					<br />' . "\n";
             echo '					<br />' . "\n";
             echo '					<input type="checkbox" name="podpress_feeds[' . $j . '][bypass_incl_selection]" id="podpress_feed_' . $j . '_bypass_incl_selection" value="yes" /> <label for="podpress_feed_' . $j . '_bypass_incl_selection">' . __('Bypass the "Included in:" selection for this Feed', 'podpress') . '</label> <span class="podpress_description">' . __('- If this option is selected then the first media file of the right file type will be the enclosure of a post in this Feed - if it is a RSS Feed. Posts in ATOM Feeds will contain all of their media files as enclosures (and not the ones you have marked while editing a post).', 'podpress') . '</span>' . "\n";
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_right_col">' . "\n";
             echo '					<label for="podpress_feed_' . $j . '_posts_per_feed">' . __('max. amount of posts per feed: ', 'podpress') . '</label><br /><input type="text" name="podpress_feeds[' . $j . '][posts_per_feed]" id="podpress_feed_' . $j . '_posts_per_feed" value="' . $posts_per_feed_default . '" size="4" /> <span class="podpress_description">' . sprintf(__('default: %1$s', 'podpress'), $posts_per_feed_default) . '</span>' . "\n";
             echo '				</div>' . "\n";
             echo '				<div class="podpress_feed_settings_fullwidth_col">' . "\n";
             echo '					<input type="checkbox" name="podpress_feeds[' . $j . '][use_headerlink]" id="podpress_feed_' . $j . '_use_headerlink" value="yes" /> <label for="podpress_feed_' . $j . '_use_headerlink">' . __('add Feed link to the blog header', 'podpress') . '</label> <span class="podpress_description">' . __('(into &lt;head&gt;)', 'podpress') . '</span>' . "\n";
             echo '				</div>' . "\n";
             echo '			</div><!-- end accordion element -->' . "\n";
         }
     }
     echo '		</div><!-- end accordion -->' . "\n";
     echo '		<p class="submit"> ' . "\n";
     echo '			<input class="button-primary" type="submit" name="Submit" value="' . __('Update Options', 'podpress') . ' &raquo;" /> ' . "\n";
     echo '		</p> ' . "\n";
     echo '	</fieldset>' . "\n";
     echo '	<script type="text/javascript">' . " podPress_updateFeedSettings();</script>";
     echo '	<input type="hidden" name="podPress_submitted" value="feed" />' . "\n";
     echo '	</form> ' . "\n";
     echo '</div>' . "\n";
 }
 function graphByPost()
 {
     // ntm: stat logging: Counts Only
     if ($this->checkWritableTempFileDir() && $this->checkFontFile()) {
         $chronometry1 = getmicrotime();
         $start = isset($_GET['start']) ? $this->podSafeDigit($_GET['start']) : 0;
         $limit = 20;
         $image_width = 1200;
         $image_height = 470;
         $col_width = 25;
         $col_space = 15;
         $filename = 'graph-by-post.jpg';
         $file = $this->tempfilesystempath . '/' . $filename;
         $sidemargin = 20;
         $baseline = $image_height - 90;
         $topmargin = 60;
         $maxheight = $baseline - $topmargin;
         $timelimit = time() - 5 * 7 * 86400;
         ini_set('memory_limit', '120M');
         ini_set('max_execution_time', '60');
         $start_memory = memory_get_usage();
         /* get data */
         $total = $this->wpdb->get_var('SELECT COUNT(postID) FROM ' . $this->wpdb->prefix . "podpress_statcounts WHERE postID != 0;");
         $query = 'SELECT post_title AS title, total, feed, web, play, UNIX_TIMESTAMP(post_date) AS post_date ' . 'FROM ' . $this->wpdb->prefix . 'podpress_statcounts, ' . $this->wpdb->prefix . 'posts ' . 'WHERE ' . $this->wpdb->prefix . 'posts.ID = ' . $this->wpdb->prefix . 'podpress_statcounts.postID ' . 'AND postID !=0 GROUP BY postID ORDER BY post_date DESC LIMIT ' . $start . ', ' . $limit . ';';
         $data = $this->wpdb->get_results($query);
         $cnt_data = count($data);
         $first_post = $data[$cnt_data - 1]->post_date;
         $last_post = $data[0]->post_date;
         $stats = array();
         foreach ($data as $idata) {
             $stats[$idata->day][$idata->method]++;
             $stats[$idata->day]['total']++;
             $stats_total[$idata->method]++;
             $stats_total['total']++;
         }
         /* get min an max values */
         $value_min = 0;
         $value_max = 0;
         $stats_total = array();
         foreach ($data as $idata) {
             if ($value_min == 0) {
                 $value_min = $idata->total;
             } elseif ($idata->total < $value_min) {
                 $value_min = $idata->total;
             }
             if ($idata->total > $value_max) {
                 $value_max = $idata->total;
             }
             $stats_total['feed'] = $stats_total['feed'] + $idata->feed;
             $stats_total['web'] = $stats_total['web'] + $idata->web;
             $stats_total['play'] = $stats_total['play'] + $idata->play;
             $stats_total['total'] = $stats_total['total'] + $idata->total;
         }
         /* Do we have enough data? */
         if (intval($value_max) > 0) {
             $h_cscale = $maxheight / $value_max;
             $h_vscale = $maxheight / $value_min / 4;
             $w_scale = intval($image_width - 2 * $sidemargin + intval(($image_width - 2 * $sidemargin) / $limit / 4)) / $limit;
             /* create image */
             $chronometry2 = getmicrotime();
             $image = imagecreatetruecolor($image_width, $image_height);
             if (function_exists('imageantialias')) {
                 imageantialias($image, 1);
             }
             $colors = array('background' => imagecolorallocate($image, 51, 51, 51), 'line' => imagecolorallocate($image, 79, 79, 79), 'text' => imagecolorallocate($image, 255, 255, 255), 'copytext' => imagecolorallocate($image, 79, 79, 79), 'total' => imagecolorallocate($image, 0, 0, 0), 'feed' => imagecolorallocate($image, 143, 53, 53), 'web' => imagecolorallocate($image, 71, 143, 88), 'play' => imagecolorallocate($image, 142, 143, 71));
             imagefill($image, 0, 0, $colors['background']);
             /* draw background-lines and scale-text */
             $step = 0;
             $h = ($baseline - $topmargin) / 10;
             while ($step <= 10) {
                 $pos_y = $topmargin + $h * $step;
                 imageline($image, 0, $topmargin + $h * $step, $image_width, $topmargin + $h * $step, $colors['line']);
                 imagettftext($image, 8, 0, $sidemargin, $pos_y + 13, $colors['line'], $this->fontface, number_format(($baseline - $pos_y) / $h_cscale, 0, $this->local_settings['numbers'][0], $this->local_settings['numbers'][1]));
                 $step++;
             }
             /* create the legend */
             imagettftext($image, 14, 0, $sidemargin, 25, $colors['text'], $this->fontface, get_option('blogname'));
             imagettftext($image, 8, 0, $sidemargin, 42, $colors['text'], $this->fontface, __('Posts', 'podpress') . ' &#187; ' . strftime('%d.%m.%Y', $first_post) . ' - ' . strftime('%d.%m.%Y', $last_post));
             $text_total = number_format($stats_total['total'], 0, $this->local_settings['numbers'][0], $this->local_settings['numbers'][1]);
             $text_feed = number_format($stats_total['feed'], 0, $this->local_settings['numbers'][0], $this->local_settings['numbers'][1]) . ' (' . number_format($stats_total['feed'] * 100 / $stats_total['total'], 1, $this->local_settings['numbers'][0], $this->local_settings['numbers'][1]) . '%)';
             $text_web = number_format($stats_total['web'], 0, $this->local_settings['numbers'][0], $this->local_settings['numbers'][1]) . ' (' . number_format($stats_total['web'] * 100 / $stats_total['total'], 1, $this->local_settings['numbers'][0], $this->local_settings['numbers'][1]) . '%)';
             $text_play = number_format($stats_total['play'], 0, $this->local_settings['numbers'][0], $this->local_settings['numbers'][1]) . ' (' . number_format($stats_total['play'] * 100 / $stats_total['total'], 1, $this->local_settings['numbers'][0], $this->local_settings['numbers'][1]) . '%)';
             $text_total = __('Total stats from displayed posts', 'podpress') . ':  ' . $text_total . '  /  ' . __('Feed', 'podpress') . ': ' . $text_feed . '  /  ' . __('Download', 'podpress') . ': ' . $text_web . '  /  ' . __('Play', 'podpress') . ': ' . $text_play . ' ';
             imagettftext($image, 8, 0, $sidemargin, $image_height - 15, $colors['text'], $this->fontface, $text_total);
             $pos_y = $image_height - 32;
             imagefilledrectangle($image, $sidemargin + 0, $pos_y - 10, $sidemargin + 10, $pos_y, $colors['feed']);
             imagettftext($image, 8, 0, $sidemargin + 15, $pos_y, $colors['text'], $this->fontface, __('Feed', 'podpress'));
             imagefilledrectangle($image, $sidemargin + 50, $pos_y - 10, $sidemargin + 60, $pos_y, $colors['web']);
             imagettftext($image, 8, 0, $sidemargin + 65, $pos_y, $colors['text'], $this->fontface, __('Download', 'podpress'));
             imagefilledrectangle($image, $sidemargin + 125, $pos_y - 10, $sidemargin + 135, $pos_y, $colors['play']);
             imagettftext($image, 8, 0, $sidemargin + 140, $pos_y, $colors['text'], $this->fontface, __('Play', 'podpress'));
             imagettftext($image, 23, 0, $image_width - 128, 30, $colors['copytext'], $this->fontface, 'podPress');
             imagettftext($image, 8, 0, $image_width - 115, 43, $colors['copytext'], $this->fontface, __('Plugin for WordPress', 'podpress'));
             imagettftext($image, 6, 90, $image_width - 15, $image_height - 10, $colors['copytext'], $this->fontface, strftime($this->local_settings['creation_date'], time()) . ' (' . PODPRESS_VERSION . ')');
             $pos_x = $image_width - $sidemargin - 15;
             /* draw the posts */
             foreach ($data as $idata) {
                 /* Total stats */
                 $col_total_height = $idata->total * $h_cscale;
                 imageline($image, $pos_x - 2, $baseline, $pos_x - 2, $baseline - $col_total_height, $colors['total']);
                 imagettftext($image, 8, 0, $pos_x - $col_width - 3, $baseline - 3 - $idata->total * $h_cscale, $colors['text'], $this->fontface, $idata->total);
                 /* Feeds */
                 $perc_feed = number_format($idata->feed * 100 / $idata->total, 0, $this->local_settings['numbers'][0], $this->local_settings['numbers'][1]);
                 $col_feed_height = $idata->feed * $h_cscale;
                 if ($col_feed_height < 0) {
                     imagefilledrectangle($image, $pos_x - $col_width - 3, $baseline, $pos_x - 3, $baseline - $col_feed_height, $colors['feed']);
                 } else {
                     imagefilledrectangle($image, $pos_x - $col_width - 3, $baseline - $col_feed_height, $pos_x - 3, $baseline, $colors['feed']);
                 }
                 if ($col_feed_height > 11) {
                     imagettftext($image, 8, 0, $pos_x - $col_width - 2, $baseline - $idata->feed * $h_cscale + 11, $colors['text'], $this->fontface, $perc_feed . '%');
                 }
                 /* Web */
                 $perc_web = number_format($idata->web * 100 / $idata->total, 0, $this->local_settings['numbers'][0], $this->local_settings['numbers'][1]);
                 $col_web_height = $idata->web * $h_cscale;
                 if ($col_web_height < 0) {
                     imagefilledrectangle($image, $pos_x - $col_width - 3, $baseline - $col_feed_height, $pos_x - 3, $baseline - $col_web_height - $col_feed_height, $colors['web']);
                 } else {
                     imagefilledrectangle($image, $pos_x - $col_width - 3, $baseline - $col_web_height - $col_feed_height, $pos_x - 3, $baseline - $col_feed_height, $colors['web']);
                 }
                 if ($col_web_height > 11) {
                     imagettftext($image, 8, 0, $pos_x - $col_width - 2, $baseline - $col_web_height - $col_feed_height + 11, $colors['text'], $this->fontface, $perc_web . '%');
                 }
                 /* Play */
                 $perc_play = number_format($idata->play * 100 / $idata->total, 0, $this->local_settings['numbers'][0], $this->local_settings['numbers'][1]);
                 $col_play_height = $idata->play * $h_cscale;
                 if ($col_play_height < 0) {
                     imagefilledrectangle($image, $pos_x - $col_width - 3, $baseline - $col_feed_height - $col_web_height, $pos_x - 3, $baseline - $col_play_height - $col_web_height - $col_feed_height, $colors['play']);
                 } else {
                     imagefilledrectangle($image, $pos_x - $col_width - 3, $baseline - $col_play_height - $col_web_height - $col_feed_height, $pos_x - 3, $baseline - $col_feed_height - $col_web_height, $colors['play']);
                 }
                 if ($col_play_height > 11) {
                     imagettftext($image, 8, 0, $pos_x - $col_width - 2, $baseline - $col_play_height - $col_web_height - $col_feed_height + 11, $colors['text'], $this->fontface, $perc_play . '%');
                 }
                 /* Set Date and Title */
                 $title = strlen($idata->title) > 70 ? substr($idata->title, 0, 70) . '...' : $idata->title;
                 imagettftext($image, 8, 90, $pos_x + 10, $baseline, $colors['text'], $this->fontface, $title);
                 imagettftext($image, 8, 0, $pos_x - $col_width - 3, $baseline + 14, $colors['text'], $this->fontface, strftime($this->local_settings['short_date'], $idata->post_date));
                 $pos_x = $pos_x - $col_width - $col_space - 15;
             }
             imagejpeg($image, $file, 100);
             $chronometry_end = getmicrotime();
             $chronometry1 = $chronometry_end - $chronometry1;
             $chronometry2 = $chronometry_end - $chronometry2;
             imagedestroy($image);
             $end_memory = memory_get_usage();
             $memory_used = podPress_bytes($end_memory - $start_memory);
             echo '<div id="podPress_graph" style="width: ' . $image_width . 'px;">' . "\n";
             echo '    <p style="padding-top: 0;"><img src="' . podpress_siteurl_is_ssl($this->tempfileurlpath) . '/' . $filename . '" width="' . $image_width . '" height="' . $image_height . '" alt="podPress-Statistics" /></p>' . "\n";
             echo $this->paging($start, $limit, $total, 'Posts');
             echo '    <div class="clear"></div>' . "\n";
             echo "</div>\n";
             echo '<p>' . __('Time to generate the graph', 'podpress') . ': ' . number_format($chronometry1, 3, $this->local_settings['numbers'][0], $this->local_settings['numbers'][1]) . ' seconds (image: ' . number_format($chronometry2, 3, $this->local_settings['numbers'][0], $this->local_settings['numbers'][1]) . " seconds).\n";
             echo '<br/>' . __('Memory to generate the graph', 'podpress') . ': ' . $memory_used . ".</p>\n";
         } else {
             echo '<p>' . __('We\'re sorry. At the moment we don\'t have enough data collected to display the graph.', 'podpress') . "</p>\n";
         }
     }
 }