function powerpressadmin_appearance($General = false, $Feed = false)
{
    if ($General === false) {
        $General = powerpress_get_settings('powerpress_general');
    }
    $General = powerpress_default_settings($General, 'appearance');
    if (!isset($General['player_function'])) {
        $General['player_function'] = 1;
    }
    if (!isset($General['player_aggressive'])) {
        $General['player_aggressive'] = 0;
    }
    if (!isset($General['new_window_width'])) {
        $General['new_window_width'] = '';
    }
    if (!isset($General['new_window_height'])) {
        $General['new_window_height'] = '';
    }
    if (!isset($General['player_width'])) {
        $General['player_width'] = '';
    }
    if (!isset($General['player_height'])) {
        $General['player_height'] = '';
    }
    if (!isset($General['player_width_audio'])) {
        $General['player_width_audio'] = '';
    }
    if (!isset($General['disable_appearance'])) {
        $General['disable_appearance'] = false;
    }
    if (!isset($General['subscribe_links'])) {
        $General['subscribe_links'] = true;
    }
    if (!isset($General['subscribe_label'])) {
        $General['subscribe_label'] = '';
    }
    /*
    $Players = array('podcast'=>__('Default Podcast (podcast)', 'powerpress') );
    if( isset($General['custom_feeds']) )
    {
    	while( list($podcast_slug, $podcast_title) = each($General['custom_feeds']) )
    	{
    		if( $podcast_slug == 'podcast' )
    			continue;
    		$Players[$podcast_slug] = sprintf('%s (%s)', $podcast_title, $podcast_slug);
    	}
    }
    */
    ?>

<!-- start advanced features -->
<?php 
    if (!empty($General['advanced_mode_2'])) {
        ?>
<h3><?php 
        echo __('Media Appearance Settings', 'powerpress');
        ?>
</h3>
<div id="enable_presentation_settings">
<table class="form-table">
<tr valign="top">
<th scope="row">&nbsp;	</th> 
<td>
	<ul>
		<li><p><label><input type="radio" name="General[disable_appearance]" value="0" <?php 
        if ($General['disable_appearance'] == 0) {
            echo 'checked';
        }
        ?>
 onclick="javascript: jQuery('#presentation_settings').css('display', (this.checked?'block':'none') );" /> <?php 
        echo __('Enable PowerPress Media Players and Links', 'powerpress');
        ?>
</label> (<?php 
        echo __('default', 'powerpress');
        ?>
)</p>
			<ul><li>
				<p class="description"><?php 
        echo __('PowerPress will add media players and links to your site.', 'powerpress');
        ?>
</p>
			</li></ul>
		</li>
		
		<li><p><label><input type="radio" name="General[disable_appearance]" value="1" <?php 
        if ($General['disable_appearance'] == 1) {
            echo 'checked';
        }
        ?>
 onclick="javascript: jQuery('#presentation_settings').css('display', (this.checked?'none':'block') );" /> <?php 
        echo __('Disable PowerPress Media Players and Links', 'powerpress');
        ?>
</label></p>
			<ul><li>
				<p class="description"><?php 
        echo __('PowerPress will <u>not</u> add any media players or media links to your site. PowerPress will only be used to add podcasting support to your feeds.', 'powerpress');
        ?>
</p>
			</li></ul>
		</li>
	</ul>
</td>
</tr>
</table>
</div>
<div id="presentation_settings"<?php 
        if ($General['disable_appearance']) {
            echo ' style="display: none;"';
        }
        ?>
>
<!-- start presentation settings -->
<!-- end advanced features -->
<?php 
    }
    ?>

<h3><?php 
    echo __('Blog Posts and Pages', 'powerpress');
    ?>
</h3>


<table class="form-table">
<tr valign="top">
<th scope="row"><?php 
    echo htmlspecialchars(__('Display Media & Links', 'powerpress'));
    ?>
</th> 
<td>
	<ul>
		<li><p><label><input type="radio" name="General[display_player]" value="1" <?php 
    if ($General['display_player'] == 1) {
        echo 'checked';
    }
    ?>
 /> <?php 
    echo __('Below page content', 'powerpress');
    ?>
</label> (<?php 
    echo __('default', 'powerpress');
    ?>
)</p>
				<ul><li>
					<p class="description"><?php 
    echo __('Player and media links will appear <u>below</u> your post and page content.', 'powerpress');
    ?>
<p>
				</li></ul>
		</li>
		<li><p><label><input type="radio" name="General[display_player]" value="2" <?php 
    if ($General['display_player'] == 2) {
        echo 'checked';
    }
    ?>
 /> <?php 
    echo __('Above page content', 'powerpress');
    ?>
</label></p>
			<ul><li>
				<p class="description"><?php 
    echo __('Player and media links will appear <u>above</u> your post and page content.', 'powerpress');
    ?>
</p>
			</li></ul>
		</li>
		<li>
			<p><label><input type="radio" name="General[display_player]" value="0" <?php 
    if ($General['display_player'] == 0) {
        echo 'checked';
    }
    ?>
 /> <?php 
    echo __('Disable', 'powerpress');
    ?>
</label></p>
			<ul><li>
				<p class="description"><?php 
    echo __('Player and media links will <u>NOT</u> appear in your post and page content. Media player and links can be added manually by using the <i>shortcode</i> below.', 'powerpress');
    ?>
</p>
			</li></ul>
		</li>
	</ul>
	<p><input name="General[display_player_excerpt]" type="checkbox" value="1" <?php 
    if (!empty($General['display_player_excerpt'])) {
        echo 'checked ';
    }
    ?>
/> <?php 
    echo __('Display media / links in:', 'powerpress');
    ?>
 <a href="http://codex.wordpress.org/Template_Tags/the_excerpt" title="<?php 
    echo __('WordPress Excerpts', 'powerpress');
    ?>
" target="_blank"><?php 
    echo __('WordPress Excerpts', 'powerpress');
    ?>
</a>  (<?php 
    echo __('e.g. search results', 'powerpress');
    ?>
)</p>
</td>
</tr>
</table>

<?php 
    if (!empty($General['advanced_mode_2'])) {
        ?>
<!-- start advanced features -->
<table class="form-table">
<tr valign="top">
<th scope="row">
<?php 
        echo __('Media Player', 'powerpress');
        ?>
</th>
<td>

<p><label><input type="checkbox" name="PlayerSettings[display_media_player]" value="2" <?php 
        if ($General['player_function'] == 1 || $General['player_function'] == 2) {
            echo 'checked ';
        }
        ?>
/> <?php 
        echo __('Display Player', 'powerpress');
        ?>
</label></p>
<?php 
        /* ?>
        <p style="margin-left: 35px;"><input type="checkbox" name="General[display_player_disable_mobile]" value="1" <?php if( !empty($General['display_player_disable_mobile']) ) echo 'checked '; ?>/> <?php echo __('Disable Media Player for known mobile devices.', 'powerpress'); ?></p>
        <?php */
        ?>
<p><?php 
        echo __('Detected mobile and tablet devices use an HTML5 player with a fallback link to download the media.', 'powerpress');
        ?>
</p>
</td>
</tr>
</table>




<table class="form-table">

<tr valign="top">
<th scope="row">

<?php 
        echo __('Media Links', 'powerpress');
        ?>
</th> 
<td>
	<p style="padding-top: 8px;"><label><input type="checkbox" name="PlayerSettings[display_pinw]" value="3" <?php 
        if ($General['player_function'] == 3 || $General['player_function'] == 1) {
            echo 'checked ';
        }
        ?>
/> <?php 
        echo __('Display Play in new Window Link', 'powerpress');
        ?>
</label></p>
	
	<p><label><input type="checkbox" name="PlayerSettings[display_download]" value="1" <?php 
        if ($General['podcast_link'] != 0) {
            echo 'checked ';
        }
        ?>
/> <?php 
        echo __('Display Download Link', 'powerpress');
        ?>
</label></p>
	
	<p style="margin-left: 35px;"><input type="checkbox" id="display_download_size" name="PlayerSettings[display_download_size]" value="1" <?php 
        if ($General['podcast_link'] == 2 || $General['podcast_link'] == 3) {
            echo 'checked';
        }
        ?>
 onclick="if( !this.checked ) { jQuery('#display_download_duration').removeAttr('checked'); }" /> <?php 
        echo __('Include file size', 'powerpress');
        ?>
	<input type="checkbox" style="margin-left: 30px;" id="display_download_duration" name="PlayerSettings[display_download_duration]" value="1" <?php 
        if ($General['podcast_link'] == 3) {
            echo 'checked';
        }
        ?>
 onclick="if( this.checked ) { jQuery('#display_download_size').attr('checked','checked'); }" /> <?php 
        echo __('Include file size and duration', 'powerpress');
        ?>
</p>
	
	<p><label><input type="checkbox" name="General[podcast_embed]" value="1" <?php 
        if (!empty($General['podcast_embed'])) {
            echo 'checked ';
        }
        ?>
/> <?php 
        echo __('Display Player Embed Link', 'powerpress');
        ?>
 </label></p>
	<p style="margin-left: 35px;">
		<input type="checkbox" name="General[podcast_embed_in_feed]" value="1" <?php 
        if (!empty($General['podcast_embed_in_feed'])) {
            echo 'checked';
        }
        ?>
  /> <?php 
        echo __('Include embed in feeds', 'powerpress');
        ?>
	</p>
	<p><?php 
        echo __('Embed option works with the MediaElement.js Media Player for audio and video, Flow Player Classic for audio and HTML5 Video player for video.', 'powerpress');
        ?>
</p>
</td>
</tr>
</table>

<table class="form-table">

<tr valign="top">
<th scope="row">
<?php 
        echo __('Subscribe Links', 'powerpress');
        ?>
 <?php 
        echo powerpressadmin_new();
        ?>
</th> 
<td>
	<p style="padding-top: 8px;"><label><input type="checkbox" name="General[subscribe_links]" value="1" <?php 
        if ($General['subscribe_links'] == 1) {
            echo 'checked ';
        }
        ?>
/> 
	<?php 
        echo __('Display subscribe links below player and media links.', 'powerpress');
        ?>
</label></p>
	<ul>
	<li><label for="subscribe_label">Subscribe label: <input type="text" id="subscribe_label" value="<?php 
        echo esc_attr($General['subscribe_label']);
        ?>
" name="General[subscribe_label]" placeholder="Subscribe:" /></label>
	<?php 
        echo __('(leave blank for default)', 'powerpress');
        ?>
	</li>
	</ul>

<p style="padding-top:10px;"><input type="checkbox" name="NULL[subscribe_feature_itunes]" value="1" checked disabled /> <label><?php 
        echo __('Subscribe on iTunes', 'powerpress');
        ?>
</label></p>
<div style="margin-left: 24px;">
	<p><?php 
        echo __('Link to your one click iTunes Subscription URL.', 'powerpress');
        ?>
</p>
	
	<p><a href="<?php 
        echo 'https://linkmaker.itunes.apple.com/?q=' . urlencode(get_bloginfo('name'));
        ?>
&amp;media=podcasts" target="_blank"><?php 
        echo __('Find your iTunes Subscription URL', 'powerpress');
        ?>
</a></p>
</div>

<p><input type="checkbox" name="NULL[subscribe_feature_android]" value="1" checked disabled /> <label><?php 
        echo __('Subscribe on Android', 'powerpress');
        ?>
</label> <?php 
        echo powerpressadmin_new();
        ?>
</p>
<div style="margin-left: 24px;">
	<p><?php 
        echo __('Link to your one click Subscribe on Android URL.', 'powerpress');
        ?>
</p>
	<p><a href="http://subscribeonandroid.com/podcasters/" target="_blank"><?php 
        echo __('Learn more about Subscribe on Android', 'powerpress');
        ?>
</a></p>
</div>

<p><input type="checkbox" name="NULL[subscribe_feature_rss]" value="1" checked disabled /> <label><?php 
        echo __('Subscribe via RSS', 'powerpress');
        ?>
</label></p>
<div style="margin-left: 24px;">
	<p><?php 
        echo __('Link to your podcast RSS feed.', 'powerpress');
        ?>
</p>
</div>

<p><input type="checkbox" id="subscribe_feature_email" name="General[subscribe_feature_email]" value="1" <?php 
        if (!empty($General['subscribe_feature_email'])) {
            echo 'checked ';
        }
        ?>
/> <label for="subscribe_feature_email"><?php 
        echo __('Subscribe By Email', 'powerpress');
        ?>
</label> <?php 
        echo powerpressadmin_new();
        ?>
</p>
<div style="margin-left: 24px;">
	<p><?php 
        echo __('Link to your one click Subscribe by Email URL.', 'powerpress');
        ?>
</p>
	<p>
	<?php 
        echo __('Subscribe By Email is a service that allows listeners to subscribe to their favorite podcasts by email.', 'powerpress');
        ?>
	</p>
	<p><a href="http://subscribebyemail.com/podcasters/" target="_blank"><?php 
        echo __('Learn more about Subscribe by Email', 'powerpress');
        ?>
</a></p>
	<p><?php 
        echo __('Note: Subscribe by Email does not replace newsletters or mailing lists. It is only for podcast syndication.', 'powerpress');
        ?>
	</p>
</div>
</td>
</tr>
</table>

<?php 
        powerpress_admin_appearance_common($Feed);
        ?>
<!-- end advanced features -->
<?php 
    }
    ?>


<table class="form-table">
<tr valign="top">
<th scope="row" style="background-image: url(../wp-includes/images/smilies/icon_exclaim.gif); background-position: 10px 10px; background-repeat: no-repeat; ">

<div style="margin-left: 24px;"><?php 
    echo __('Having Issues?', 'powerpress');
    ?>
</div></th>
<td>
	<select name="General[player_aggressive]" class="bpp_input_med">
<?php 
    $linkoptions = array(0 => __('No, everything is working', 'powerpress'), 1 => __('Yes, please try to fix', 'powerpress'), 2 => __('Yes, alternative fix', 'powerpress'), 3 => __('Yes, excluding excerpts', 'powerpress'));
    while (list($value, $desc) = each($linkoptions)) {
        echo "\t<option value=\"{$value}\"" . ($General['player_aggressive'] == $value ? ' selected' : '') . ">{$desc}</option>\n";
    }
    ?>
</select>
<p style="margin-top: 5px;">
	<?php 
    echo __('Use this option if you are having problems with the players not appearing on some or all of your pages.', 'powerpress');
    ?>
</p>
<?php 
    if (!empty($General['advanced_mode_2'])) {
        ?>
<p style="margin-top: 20px; margin-bottom:0;">
	<?php 
        echo __('If the above option fixes the player issues, then you most likely have a conflicting theme or plugin activated. You can verify your theme is not causing the problem by testing your site using the latest default WordPress theme (twentyfourteen). For plugins, disable them one by one until the player re-appears, which indicates the last plugin deactivated caused the conflict.', 'powerpress');
        ?>
</p>
<?php 
    }
    ?>
</td>
</tr>
</table>

<?php 
    if (!empty($General['advanced_mode_2'])) {
        ?>
<!-- start advanced features -->
<div id="new_window_settings" style="display: <?php 
        echo $General['player_function'] == 1 || $General['player_function'] == 3 ? 'block' : 'none';
        ?>
">
<h3><?php 
        echo __('Play in New Window Settings', 'powerpress');
        ?>
</h3>
<table class="form-table">

<tr valign="top">
<th scope="row">
<?php 
        echo __('New Window Width', 'powerpress');
        ?>
</th>
<td>
<input type="text" name="General[new_window_width]" style="width: 50px;" onkeyup="javascript:this.value=this.value.replace(/[^0-9]/g, '');" value="<?php 
        echo esc_attr($General['new_window_width']);
        ?>
" maxlength="4" />
<?php 
        echo __('Width of new window (leave blank for 420 default)', 'powerpress');
        ?>
</td>
</tr>

<tr valign="top">
<th scope="row">
<?php 
        echo __('New Window Height', 'powerpress');
        ?>
</th>
<td>
<input type="text" name="General[new_window_height]" style="width: 50px;" onkeyup="javascript:this.value=this.value.replace(/[^0-9]/g, '');" value="<?php 
        echo esc_attr($General['new_window_height']);
        ?>
" maxlength="4" />
<?php 
        echo __('Height of new window (leave blank for 240 default)', 'powerpress');
        ?>
</td>
</tr>

<tr valign="top">
<th scope="row">
&nbsp;
</th>
<td>

	<p style="margin: 8px 0 0 0;">
		<label><input type="checkbox" name="General[new_window_nofactor]" value="1" <?php 
        if (!empty($General['new_window_nofactor'])) {
            echo 'checked';
        }
        ?>
  /> <?php 
        echo __('Do not factor in scroll bars', 'powerpress');
        ?>
</label>
	</p>
	<div style="margin: 0 0 0 20px;"><?php 
        echo __('By default, PowerPress adds to the width and height above to compensate for possible vertical and horizontal scroll bars. Check this option if you do not want PowerPress to compensate for browser scroll bars.', 'powerpress');
        ?>
</div>
</td>

</table>
</div>


<h3><?php 
        echo __('Media Format Settings', 'powerpress');
        ?>
</h3>
<table class="form-table">

<tr valign="top">
<th scope="row">
<?php 
        echo __('AAC Audio (.m4a)', 'powerpress');
        ?>
</th>
<td>

	<p style="margin: 8px 0 0 0;">
		<label><input type="checkbox" name="General[m4a]" value="use_players" <?php 
        if (!empty($General['m4a']) && $General['m4a'] == 'use_players') {
            echo 'checked';
        }
        ?>
  /> <?php 
        echo __('Use Flow Player Classic / HTML5 Audio player', 'powerpress');
        ?>
</label>
	</p>
	<div style="margin-left: 20px;"><?php 
        echo __('Leave this option unchecked if you want m4a chapter markers, images and information displayed.', 'powerpress');
        ?>
</div>
	<div style="margin: 10px 0 0 20px;"><?php 
        echo __('When unchecked, m4a will be played with the quicktime video embed. Video player width/height settings apply.', 'powerpress');
        ?>
</div>

</td>
</tr>
</table>
</div>
<!-- end presentation settings -->
<!-- end advanced features -->
<?php 
    }
}
function powerpress_admin_editfeed($type = '', $type_value = '', $feed_slug = false)
{
    $SupportUploads = powerpressadmin_support_uploads();
    $General = powerpress_get_settings('powerpress_general');
    $FeedAttribs = array('type' => $type, 'feed_slug' => '', 'category_id' => 0, 'term_taxonomy_id' => 0, 'term_id' => 0, 'taxonomy_type' => '', 'post_type' => '');
    $cat_ID = false;
    $term_taxonomy_id = false;
    $FeedTitle = __('Feed Settings', 'powerpress');
    switch ($type) {
        case 'channel':
            $feed_slug = $type_value;
            $FeedAttribs['feed_slug'] = $type_value;
            $FeedSettings = powerpress_get_settings('powerpress_feed_' . $feed_slug);
            if (!$FeedSettings) {
                $FeedSettings = array();
                $FeedSettings['title'] = '';
                if (!empty($General['custom_feeds'][$feed_slug])) {
                    $FeedSettings['title'] = $General['custom_feeds'][$feed_slug];
                }
            }
            $FeedSettings = powerpress_default_settings($FeedSettings, 'editfeed_custom');
            if (!isset($General['custom_feeds'][$feed_slug])) {
                $General['custom_feeds'][$feed_slug] = __('Podcast (default)', 'powerpress');
            }
            $FeedTitle = sprintf('Podcast Settings for Channel: %s', htmlspecialchars($General['custom_feeds'][$feed_slug]));
            echo sprintf('<input type="hidden" name="feed_slug" value="%s" />', $feed_slug);
            echo '<input type="hidden" name="action" value="powerpress-save-channel" />';
            break;
        case 'category':
            $cat_ID = $type_value;
            $FeedAttribs['category_id'] = $type_value;
            $FeedSettings = powerpress_get_settings('powerpress_cat_feed_' . $cat_ID);
            $FeedSettings = powerpress_default_settings($FeedSettings, 'editfeed_custom');
            $category = get_category_to_edit($cat_ID);
            $FeedTitle = sprintf(__('Podcast Settings for Category: %s', 'powerpress'), htmlspecialchars($category->name));
            echo sprintf('<input type="hidden" name="cat" value="%s" />', $cat_ID);
            echo '<input type="hidden" name="action" value="powerpress-save-category" />';
            break;
        case 'ttid':
            $term_taxonomy_id = $type_value;
            $FeedAttribs['term_taxonomy_id'] = $type_value;
            $FeedSettings = powerpress_get_settings('powerpress_taxonomy_' . $term_taxonomy_id);
            $FeedSettings = powerpress_default_settings($FeedSettings, 'editfeed_custom');
            global $wpdb;
            $term_info = $wpdb->get_results("SELECT term_id, taxonomy FROM {$wpdb->term_taxonomy} WHERE term_taxonomy_id = {$term_taxonomy_id}", ARRAY_A);
            if (!empty($term_info[0]['term_id'])) {
                $term_ID = $term_info[0]['term_id'];
                $taxonomy_type = $term_info[0]['taxonomy'];
                $FeedAttribs['term_id'] = $term_ID;
                $FeedAttribs['taxonomy_type'] = $taxonomy_type;
                $term_object = get_term_to_edit($term_ID, $taxonomy_type);
                $FeedTitle = sprintf(__('Podcast Settings for Taxonomy Term: %s', 'powerpress'), htmlspecialchars($term_object->name));
            } else {
                $FeedTitle = sprintf(__('Podcast Settings for Taxonomy Term: %s', 'powerpress'), 'Term ID ' . htmlspecialchars($term_taxonomy_id));
            }
            echo sprintf('<input type="hidden" name="ttid" value="%s" />', $term_taxonomy_id);
            echo '<input type="hidden" name="action" value="powerpress-save-ttid" />';
            break;
        case 'post_type':
            $FeedAttribs['post_type'] = $type_value;
            $FeedAttribs['feed_slug'] = $feed_slug;
            $FeedSettingsArray = powerpress_get_settings('powerpress_posttype_' . $FeedAttribs['post_type']);
            if (!is_array($FeedSettingsArray[$feed_slug])) {
                $FeedSettingsArray[$feed_slug] = array();
            }
            $FeedSettings = powerpress_default_settings($FeedSettingsArray[$feed_slug], 'editfeed_custom');
            //$category = get_category_to_edit($cat_ID);
            $PostTypeTitle = $FeedAttribs['post_type'];
            // TODO: Get readable title of post type
            $FeedTitle = sprintf(__('Podcast Settings for Post Type %s with slug %s', 'powerpress'), htmlspecialchars($PostTypeTitle), htmlspecialchars($feed_slug));
            echo sprintf('<input type="hidden" name="podcast_post_type" value="%s" />', $FeedAttribs['post_type']);
            echo sprintf('<input type="hidden" name="feed_slug" value="%s" />', $feed_slug);
            echo '<input type="hidden" name="action" value="powerpress-save-post_type" />';
            break;
        default:
            $FeedSettings = powerpress_get_settings('powerpress_feed');
            $FeedSettings = powerpress_default_settings($FeedSettings, 'editfeed');
            echo '<input type="hidden" name="action" value="powerpress-save-settings" />';
            break;
    }
    echo '<h2>' . $FeedTitle . '</h2>';
    if ($cat_ID && (isset($_GET['from_categories']) || isset($_POST['from_categories']))) {
        echo '<input type="hidden" name="from_categories" value="1" />';
    }
    ?>
<div id="powerpress_settings_page" class="powerpress_tabbed_content"> 
  <ul class="powerpress_settings_tabs">
		<li><a href="#feed_tab_feed"><span><?php 
    echo htmlspecialchars(__('Feed Settings', 'powerpress'));
    ?>
</span></a></li>
		<li><a href="#feed_tab_itunes"><span><?php 
    echo htmlspecialchars(__('iTunes Settings', 'powerpress'));
    ?>
</span></a></li>
		<li><a href="#feed_tab_artwork"><span><?php 
    echo htmlspecialchars(__('Artwork', 'powerpress'));
    ?>
</span></a></li>
	<?php 
    if (in_array($FeedAttribs['type'], array('category', 'ttid', 'post_type', 'channel'))) {
        ?>
		<li><a href="#feed_tab_appearance"><span><?php 
        echo htmlspecialchars(__('Media Appearance', 'powerpress'));
        ?>
</span></a></li>
	<?php 
    }
    ?>
	<?php 
    if (in_array($FeedAttribs['type'], array('category', 'ttid', 'post_type', 'channel'))) {
        ?>
		<li><a href="#feed_tab_other"><span><?php 
        echo htmlspecialchars(__('Other Settings', 'powerpress'));
        ?>
</span></a></li> 
	<?php 
    }
    ?>
  </ul>
	
	
	<div id="feed_tab_feed" class="powerpress_tab">
		<?php 
    powerpressadmin_edit_feed_settings($FeedSettings, $General, $FeedAttribs);
    if (!empty($General['advanced_mode_2'])) {
        powerpressadmin_edit_tv($FeedSettings, $feed_slug);
    }
    ?>
	</div>
	
	<div id="feed_tab_itunes" class="powerpress_tab">
		<?php 
    if ($feed_slug != 'podcast') {
        powerpressadmin_edit_itunes_general($FeedSettings, $General, $FeedAttribs);
    }
    powerpressadmin_edit_itunes_feed($FeedSettings, $General, $FeedAttribs);
    ?>
	</div>
	
	<div id="feed_tab_artwork" class="powerpress_tab">
		<?php 
    powerpressadmin_edit_artwork($FeedSettings, $General);
    ?>
	</div>
	
	<?php 
    if ($feed_slug || $FeedAttribs['type'] == 'category' || $FeedAttribs['type'] == 'ttid') {
        ?>
	<div id="feed_tab_appearance" class="powerpress_tab">
		<?php 
        //powerpressadmin_appearance($General);
        if ($feed_slug) {
            powerpressadmin_edit_appearance_feed($General, $FeedSettings, $feed_slug, $FeedAttribs);
        }
        powerpress_admin_appearance_common($FeedSettings, $FeedAttribs);
        ?>
	</div>
	
	<div id="feed_tab_other" class="powerpress_tab">
		<?php 
        powerpressadmin_edit_basics_feed($General, $FeedSettings, $feed_slug, $cat_ID, $FeedAttribs);
        ?>
	</div>
	<?php 
    }
    ?>
	
</div>
<div class="clear"></div>
<?php 
}