function powerpressadmin_advanced_options($General)
{
    // Break the bottom section here out into it's own function
    $ChannelsCheckbox = '';
    if (!empty($General['custom_feeds'])) {
        $ChannelsCheckbox = ' onclick="alert(\'' . __('You must delete all of the Podcast Channels to disable this option.', 'powerpress') . '\');return false;"';
    }
    $CategoryCheckbox = '';
    //if( !empty($General['custom_cat_feeds']) ) // Decided ont to include this warning because it may imply that you have to delete the actual category, which is not true.
    //	$CategoryCheckbox = ' onclick="alert(\'You must remove podcasting from the categories to disable this option.\');return false;"';
    ?>
<div style="margin-left: 10px;">
	<h3><?php 
    echo __('Advanced Options', 'powerpress');
    ?>
</h3>
	<div style="margin-left: 50px;">
		<div>
			<input type="checkbox" name="NULL[player_options]" value="1" checked disabled /> 
			<strong><?php 
    echo __('Audio Player Options', 'powerpress');
    ?>
</strong> - 
			<?php 
    echo __('Select from 7 different web based audio players.', 'powerpress');
    ?>
 
			<span style="font-size: 85%;">(<a href="<?php 
    echo admin_url('admin.php?page=powerpress/powerpressadmin_player.php');
    ?>
"><?php 
    echo __('configure audio player', 'powerpress');
    ?>
</a>)</span>
			
			
		</div>
		<div>
			<input type="checkbox" name="NULL[video_player_options]" value="1" checked disabled /> 
			<strong><?php 
    echo __('Video Player Options', 'powerpress');
    ?>
</strong> - 
			<?php 
    echo __('Select from 4 different web based video players.', 'powerpress');
    ?>
 
			<span style="font-size: 85%;">(<a href="<?php 
    echo admin_url('admin.php?page=powerpress/powerpressadmin_videoplayer.php');
    ?>
"><?php 
    echo __('configure video player', 'powerpress');
    ?>
</a>)</span>
			
		</div>
		<div>
			<input type="hidden" name="General[channels]" value="0" />
			<input type="checkbox" name="General[channels]" value="1" <?php 
    echo !empty($General['channels']) ? ' checked' : '';
    echo $ChannelsCheckbox;
    ?>
 /> 
			<strong><?php 
    echo __('Custom Podcast Channels', 'powerpress');
    ?>
</strong> - 
			<?php 
    echo __('Manage multiple media files and/or formats to one blog post.', 'powerpress');
    ?>
 
			<?php 
    if (empty($General['channels'])) {
        ?>
			<span style="font-size: 85%;">(<?php 
        echo __('feature will appear in left menu when enabled', 'powerpress');
        ?>
)</span>
			<?php 
    } else {
        ?>
			<span style="font-size: 85%;">(<a href="<?php 
        echo admin_url('admin.php?page=powerpress/powerpressadmin_customfeeds.php');
        ?>
"><?php 
        echo __('configure podcast channels', 'powerpress');
        ?>
</a>)</span>
			<?php 
    }
    ?>
		</div>
		<div>
			<input type="hidden" name="General[cat_casting]" value="0" />
			<input type="checkbox" name="General[cat_casting]" value="1" <?php 
    echo !empty($General['cat_casting']) ? ' checked' : '';
    echo $CategoryCheckbox;
    ?>
 /> 
			<strong><?php 
    echo __('Category Podcasting', 'powerpress');
    ?>
</strong> - 
			<?php 
    echo __('Manage podcasting for specific categories.', 'powerpress');
    ?>
 
			<?php 
    if (empty($General['cat_casting'])) {
        ?>
			<span style="font-size: 85%;">(<?php 
        echo __('feature will appear in left menu when enabled', 'powerpress');
        ?>
)</span>
			<?php 
    } else {
        ?>
			<span style="font-size: 85%;">(<a href="<?php 
        echo admin_url('admin.php?page=powerpress/powerpressadmin_categoryfeeds.php');
        ?>
"><?php 
        echo __('configure podcast categories', 'powerpress');
        ?>
</a>)</span>
			<?php 
    }
    ?>
		</div>
		<div>
			<input type="checkbox" name="General[metamarks]" value="1" <?php 
    echo !empty($General['metamarks']) ? ' checked' : '';
    ?>
 /> 
			<strong><?php 
    echo __('Meta Marks', 'powerpress');
    ?>
</strong> - 
			<?php 
    echo __('Add additional meta information to your media for syndication.', 'powerpress');
    ?>
 
			<?php 
    echo powerpress_help_link('http://www.powerpresspodcast.com/metamarks/');
    ?>
 
			<span style="font-size: 85%;">(<?php 
    echo __('feature will appear in episode entry box', 'powerpress');
    ?>
)</span>
		</div>
		
		
		<div>
			<input type="hidden" name="General[taxonomy_podcasting]" value="0" />
			<input type="checkbox" name="General[taxonomy_podcasting]" value="1" <?php 
    echo !empty($General['taxonomy_podcasting']) ? ' checked' : '';
    ?>
 /> 
			<strong><?php 
    echo __('Taxonomy Podcasting', 'powerpress');
    ?>
</strong> 
			<span style="font-size: 14px;">(<?php 
    echo __('Feature sponsored by', 'powerpress');
    ?>
 <a href="http://afterbuzztv.com/" target="_blank">AfterBuzzTV.com</a>)</span> - 
			<?php 
    echo __('Manage podcasting for specific taxonomies.', 'powerpress');
    ?>
 
			<?php 
    if (empty($General['taxonomy_podcasting'])) {
        ?>
			<span style="font-size: 85%;">(<?php 
        echo __('feature will appear in left menu when enabled', 'powerpress');
        ?>
)</span>
			<?php 
    } else {
        ?>
			<span style="font-size: 85%;">(<a href="<?php 
        echo admin_url('admin.php?page=powerpress/powerpressadmin_taxonomyfeeds.php');
        ?>
"><?php 
        echo __('configure taxonomy podcasting', 'powerpress');
        ?>
</a>)</span>
			<?php 
    }
    ?>
		</div>
		<div>
			<input type="hidden" name="General[posttype_podcasting]" value="0" />
			<input type="checkbox" name="General[posttype_podcasting]" value="1" <?php 
    echo !empty($General['posttype_podcasting']) ? ' checked' : '';
    ?>
 /> 
			<strong><?php 
    echo __('Post Type Podcasting', 'powerpress');
    ?>
</strong> - 
			<?php 
    echo __('Manage multiple media files and/or formats to specific post types.', 'powerpress');
    ?>
 
			<?php 
    if (empty($General['posttype_podcasting'])) {
        ?>
			<span style="font-size: 85%;">(<?php 
        echo __('feature will appear in left menu when enabled', 'powerpress');
        ?>
)</span>
			<?php 
    } else {
        ?>
			<span style="font-size: 85%;">(<a href="<?php 
        echo admin_url('admin.php?page=powerpress/powerpressadmin_posttypefeeds.php');
        ?>
"><?php 
        echo __('configure post type podcasting', 'powerpress');
        ?>
</a>)</span>
			<?php 
    }
    ?>
		</div>
		<div>
			<input type="checkbox" name="General[playlist_player]" value="1" <?php 
    echo !empty($General['playlist_player']) ? ' checked' : '';
    ?>
 /> 
			<strong><?php 
    echo __('PowerPress Playlist Player', 'powerpress');
    ?>
</strong> <?php 
    echo powerpressadmin_new();
    ?>
 - 
			<?php 
    echo __('Create playlists for your podcasts.', 'powerpress');
    ?>
 
			<span style="font-size: 85%;">(<a href="http://create.blubrry.com/resources/powerpress/advanced-tools-and-options/powerpress-playlist-shortcode/" target="_blank"><?php 
    echo __('learn more', 'powerpress');
    ?>
</a>)</span>
		</div>
	</div>
</div>

<?php 
    $link_action_url = admin_url('admin.php?action=powerpress-jquery-account');
    $link_action = 'powerpress-jquery-account';
    ?>
<div style="margin-left: 10px;">
	<h3><?php 
    echo __('Link Blubrry Account', 'powerpress');
    ?>
</h3>
	<p style="font-size: 125%;">
		<strong><a class="button-primary thickbox" title="<?php 
    echo esc_attr(__('Blubrry Services Integration', 'powerpress'));
    ?>
" href="<?php 
    echo wp_nonce_url($link_action_url, $link_action);
    ?>
&amp;KeepThis=true&amp;TB_iframe=true&amp;width=600&amp;height=400&amp;modal=false" target="_blank"><?php 
    echo __('Click here to link Blubrry account', 'powerpress');
    ?>
</a></strong>
	</p>
	<p>
		<?php 
    echo __('Link your blubrry.com account if you have a Blubrry Podcast Hosting or Blubrry Podcast Statistics services.', 'powerpress');
    ?>
	</p>
</div>

<div style="margin-left: 10px;">
	<h3 style="margin-bottom: 5px;"><?php 
    echo __('Looking for Support, Consulting or Custom Development?', 'powerpress');
    ?>
</h3>
	<p style="margin: 0  0 0 50px; font-size: 115%;">
		<?php 
    echo __('Blubrry offers a variety of options, free and paid, to assist you with your podcasting and Internet media needs. Whether you need your theme customized for podcasting or you want consulting on what video format is best for your audience, we have the staff and knowledge to assist.', 'powerpress');
    ?>
	</p>
	<p style="margin: 5px 0 0 50px; font-size: 115%;">
	<strong><?php 
    echo '<a href="http://create.blubrry.com/support/" target="_blank">' . __('Learn More about Blubrry Support Options', 'powerpress') . '</a>';
    ?>
</strong>
	</p>
</div>

<div style="margin-left: 10px;">
	<h3 style="margin-bottom: 5px;"><?php 
    echo __('Want your own iOS and Android podcast apps?', 'powerpress');
    ?>
</h3>
	<p style="margin: 0  0 0 50px; font-size: 115%;">
		<?php 
    echo __('Blubrry has partnered with Reactor by AppPresser to provide iOS and Android apps for PowerPress powered podcasts. With Reactor, you are able to build, design and retain control of your app to highlight your podcast content, and provide access to value-add content from your website.', 'powerpress');
    ?>
	</p>
	<p style="margin: 5px 0 0 50px; font-size: 115%;">
		<strong><?php 
    echo '<a href="http://create.blubrry.com/resources/partners/reactor-ios-android-podcast-apps-powerpress/" target="_blank">' . __('Learn More about Reactor iOS and Android podcast apps for PowerPress', 'powerpress') . '</a>';
    ?>
</strong>
	</p>
</div>

<?php 
    if (isset($General['timestamp']) && $General['timestamp'] > 0 && $General['timestamp'] < time() - 60 * 60 * 24 * 14) {
        ?>
<div style="margin-left: 10px;">
	<h3 style="margin-bottom: 5px;"><?php 
        echo __('Like The Plugin?', 'powerpress');
        ?>
</h3>
	<p style="margin-top: 0;">
		<?php 
        echo __('This plugin is great, don\'t you think? If you like the plugin we\'d be ever so grateful if you\'d give it your support. Here\'s how:', 'powerpress');
        ?>
	</p>
	<ul id="powerpress_support">
		<li><?php 
        echo sprintf(__('Rate this plugin 5 stars in the %s.', 'powerpress'), '<a href="http://wordpress.org/extend/plugins/powerpress/" target="_blank">' . __('WordPress Plugins Directory', 'powerpress') . '</a>');
        ?>
		</li>
		<li><?php 
        echo __('Tell the world about PowerPress by writing about it on your blog', 'powerpress');
        ?>
, 
		<a href="http://twitter.com/home/?status=<?php 
        echo urlencode(__('I\'m podcasting with Blubrry PowerPress (http://blubrry.com/powerpress/) #powerpress #wordpress', 'powerpress'));
        ?>
" target="_blank"><?php 
        echo __('Twitter', 'powerpress');
        ?>
</a>, 
		<a href="http://www.facebook.com/share.php?u=<?php 
        echo urlencode('http://www.blubrry.com/powerpress');
        ?>
&amp;t=<?php 
        echo urlencode(__('I podcast with Blubrry PowerPress', 'powerpress'));
        ?>
" target="_blank"><?php 
        echo __('Facebook', 'powerpress');
        ?>
</a>,
		<a href="https://plus.google.com/share?url==<?php 
        echo urlencode('http://www.blubrry.com/powerpress');
        ?>
" target="_blank"><?php 
        echo __('Google+', 'powerpress');
        ?>
</a>,
		etc...</li>
		<li><a href="http://www.blubrry.com/contact.php" target="_blank"><?php 
        echo __('Send us feedback', 'powerpress');
        ?>
</a> (<?php 
        echo __('we love getting suggestions for new features!', 'powerpress');
        ?>
)</li>
	</ul>
</div>
<?php 
    }
    ?>
<div style="margin-left: 10px;">
	<h3 style="margin-bottom: 5px;"><?php 
    echo __('Become a PowerPress Patron!', 'powerpress');
    ?>
</h3>
	<p style="margin: 0; padding-left: 50px;">
		<?php 
    echo __('Help support your favorite podcasting plugin via Patreon.', 'powerpress');
    ?>
	</p>
	<p style="margin-top: 0; padding-left: 50px;"><?php 
    echo '<a href="https://www.patreon.com/blubrry?ty=h" target="_blank">' . __('Visit Blubrry\'s Patreon page', 'powerpress') . '</a>';
    ?>
	</p>
</div>
<?php 
}
Ejemplo n.º 2
0
function powerpressadmin_advanced_options($General)
{
    // Break the bottom section here out into it's own function
    $ChannelsCheckbox = '';
    if (!empty($General['custom_feeds'])) {
        $ChannelsCheckbox = ' onclick="alert(\'' . __('You must delete all of the Podcast Channels to disable this option.', 'powerpress') . '\');return false;"';
    }
    $CategoryCheckbox = '';
    //if( !empty($General['custom_cat_feeds']) ) // Decided ont to include this warning because it may imply that you have to delete the actual category, which is not true.
    //	$CategoryCheckbox = ' onclick="alert(\'You must remove podcasting from the categories to disable this option.\');return false;"';
    ?>
<div style="margin-left: 10px;">
	<h3><?php 
    echo __('Advanced Options', 'powerpress');
    ?>
</h3>
	<div style="margin-left: 50px;">
		<div>
			<input type="checkbox" name="NULL[player_options]" value="1" checked disabled /> 
			<strong><?php 
    echo __('Audio Player Options', 'powerpress');
    ?>
</strong> - 
			<?php 
    echo __('Select from 7 different web based audio players.', 'powerpress');
    ?>
 
			<span style="font-size: 85%;">(<a href="<?php 
    echo admin_url('admin.php?page=powerpress/powerpressadmin_player.php');
    ?>
"><?php 
    echo __('configure audio player', 'powerpress');
    ?>
</a>)</span>
			
			
		</div>
		<div>
			<input type="checkbox" name="NULL[video_player_options]" value="1" checked disabled /> 
			<strong><?php 
    echo __('Video Player Options', 'powerpress');
    ?>
</strong> - 
			<?php 
    echo __('Select from 4 different web based video players.', 'powerpress');
    ?>
 
			<span style="font-size: 85%;">(<a href="<?php 
    echo admin_url('admin.php?page=powerpress/powerpressadmin_videoplayer.php');
    ?>
"><?php 
    echo __('configure video player', 'powerpress');
    ?>
</a>)</span>
			
		</div>
		<div>
			<input type="checkbox" name="General[channels]" value="1" <?php 
    echo !empty($General['channels']) ? ' checked' : '';
    echo $ChannelsCheckbox;
    ?>
 /> 
			<strong><?php 
    echo __('Custom Podcast Channels', 'powerpress');
    ?>
</strong> - 
			<?php 
    echo __('Manage multiple media files and/or formats to one blog post.', 'powerpress');
    ?>
 
			<?php 
    if (empty($General['channels'])) {
        ?>
			<span style="font-size: 85%;">(<?php 
        echo __('feature will appear in left menu when enabled', 'powerpress');
        ?>
)</span>
			<?php 
    } else {
        ?>
			<span style="font-size: 85%;">(<a href="<?php 
        echo admin_url('admin.php?page=powerpress/powerpressadmin_customfeeds.php');
        ?>
"><?php 
        echo __('configure podcast channels', 'powerpress');
        ?>
</a>)</span>
			<?php 
    }
    ?>
		</div>
		<div>
			<input type="checkbox" name="General[cat_casting]" value="1" <?php 
    echo !empty($General['cat_casting']) ? ' checked' : '';
    echo $CategoryCheckbox;
    ?>
 /> 
			<strong><?php 
    echo __('Category Podcasting', 'powerpress');
    ?>
</strong> - 
			<?php 
    echo __('Manage podcasting for specific categories.', 'powerpress');
    ?>
 
			<?php 
    if (empty($General['cat_casting'])) {
        ?>
			<span style="font-size: 85%;">(<?php 
        echo __('feature will appear in left menu when enabled', 'powerpress');
        ?>
)</span>
			<?php 
    } else {
        ?>
			<span style="font-size: 85%;">(<a href="<?php 
        echo admin_url('admin.php?page=powerpress/powerpressadmin_categoryfeeds.php');
        ?>
"><?php 
        echo __('configure podcast categories', 'powerpress');
        ?>
</a>)</span>
			<?php 
    }
    ?>
		</div>
		<div>
			<input type="checkbox" name="General[metamarks]" value="1" <?php 
    echo !empty($General['metamarks']) ? ' checked' : '';
    ?>
 /> 
			<strong><?php 
    echo __('Meta Marks', 'powerpress');
    ?>
</strong> - 
			<?php 
    echo __('Add additional meta information to your media for syndication.', 'powerpress');
    ?>
 
			<?php 
    echo powerpress_help_link('http://www.powerpresspodcast.com/metamarks/');
    ?>
 
			<span style="font-size: 85%;">(<?php 
    echo __('feature will appear in episode entry box', 'powerpress');
    ?>
)</span>
		</div>
		
		
		<div>
			<input type="checkbox" name="General[taxonomy_podcasting]" value="1" <?php 
    echo !empty($General['taxonomy_podcasting']) ? ' checked' : '';
    ?>
 /> 
			<strong><?php 
    echo __('Taxonomy Podcasting', 'powerpress');
    ?>
</strong> <?php 
    echo powerpressadmin_new();
    ?>
 
			<span style="font-size: 14px;">(<?php 
    echo __('Feature sponsored by', 'powerpress');
    ?>
 <a href="http://afterbuzztv.com/" target="_blank">AfterBuzzTV.com</a>)</span> - 
			<?php 
    echo __('Manage podcasting for specific taxonomies.', 'powerpress');
    ?>
 
			<?php 
    if (empty($General['taxonomy_podcasting'])) {
        ?>
			<span style="font-size: 85%;">(<?php 
        echo __('feature will appear in left menu when enabled', 'powerpress');
        ?>
)</span>
			<?php 
    } else {
        ?>
			<span style="font-size: 85%;">(<a href="<?php 
        echo admin_url('admin.php?page=powerpress/powerpressadmin_taxonomyfeeds.php');
        ?>
"><?php 
        echo __('configure taxonomy podcasting', 'powerpress');
        ?>
</a>)</span>
			<?php 
    }
    ?>
		</div>
		<div>
			<input type="checkbox" name="General[posttype_podcasting]" value="1" <?php 
    echo !empty($General['posttype_podcasting']) ? ' checked' : '';
    ?>
 /> 
			<strong><?php 
    echo __('Post Type Podcasting', 'powerpress');
    ?>
</strong> <?php 
    echo powerpressadmin_new();
    ?>
 - 
			<?php 
    echo __('Manage multiple media files and/or formats to specific post types.', 'powerpress');
    ?>
 
			<?php 
    if (empty($General['posttype_podcasting'])) {
        ?>
			<span style="font-size: 85%;">(<?php 
        echo __('feature will appear in left menu when enabled', 'powerpress');
        ?>
)</span>
			<?php 
    } else {
        ?>
			<span style="font-size: 85%;">(<a href="<?php 
        echo admin_url('admin.php?page=powerpress/powerpressadmin_posttypefeeds.php');
        ?>
"><?php 
        echo __('configure post type podcasting', 'powerpress');
        ?>
</a>)</span>
			<?php 
    }
    ?>
		</div>
	</div>
</div>

<div style="margin-left: 10px;">
	<h3 style="margin-bottom: 5px;"><?php 
    echo __('Looking for Support, Consulting or Custom Development?', 'powerpress');
    ?>
</h3>
	<p style="margin: 0  0 0 50px; font-size: 115%;">
		<?php 
    echo __('Blubrry offers a variety of options, free and paid, to assist you with your podcasting and Internet media needs. Whether you need your theme customized for podcasting or you want consulting on what video format is best for your audience, we have the staff and knowledge to assist.', 'powerpress');
    ?>
	</p>
	<p style="margin: 5px 0 0 50px; font-size: 115%;">
	<strong><?php 
    echo '<a href="http://create.blubrry.com/support/" target="_blank">' . __('Learn More about Blubrry Support Options', 'powerpress') . '</a>';
    ?>
</strong>
	</p>
</div>

<?php 
    if (isset($General['timestamp']) && $General['timestamp'] > 0 && $General['timestamp'] < time() - 60 * 60 * 24 * 14) {
        ?>
<div style="margin-left: 10px;">
	<h3 style="margin-bottom: 5px;"><?php 
        echo __('Like The Plugin?', 'powerpress');
        ?>
</h3>
	<p style="margin-top: 0;">
		<?php 
        echo __('This plugin is great, don\'t you think? If you like the plugin we\'d be ever so grateful if you\'d give it your support. Here\'s how:', 'powerpress');
        ?>
	</p>
	<ul id="powerpress_support">
		<li><?php 
        echo sprintf(__('Rate this plugin 5 stars in the %s.', 'powerpress'), '<a href="http://wordpress.org/extend/plugins/powerpress/" target="_blank">' . __('WordPress Plugins Directory', 'powerpress') . '</a>');
        ?>
		</li>
		<li><?php 
        echo __('Tell the world about PowerPress by writing about it on your blog', 'powerpress');
        ?>
, 
		<a href="http://twitter.com/home/?status=<?php 
        echo urlencode(__('I\'m podcasting with Blubrry PowerPress (http://blubrry.com/powerpress/) #powerpress #wordpress', 'powerpress'));
        ?>
" target="_blank"><?php 
        echo __('Twitter', 'powerpress');
        ?>
</a>, 
		<a href="http://www.facebook.com/share.php?u=<?php 
        echo urlencode('http://create.blubrry.com/resources/powerpress/');
        ?>
&amp;t=<?php 
        echo urlencode(__('I podcast with Blubrry PowerPress', 'powerpress'));
        ?>
" target="_blank"><?php 
        echo __('Facebook', 'powerpress');
        ?>
</a>,
		<a href="http://digg.com/submit?phase=2&amp;url=<?php 
        echo urlencode('http://www.blubrry.com/powerpress');
        ?>
&amp;title=<?php 
        echo urlencode(__('Blubrry PowerPress Podcasting Plugin for WordPress', 'powerpress'));
        ?>
" target="_blank"><?php 
        echo __('Digg', 'powerpress');
        ?>
</a>,
		etc...</li>
		<li><a href="http://www.blubrry.com/contact.php" target="_blank"><?php 
        echo __('Send us feedback', 'powerpress');
        ?>
</a> (<?php 
        echo __('we love getting suggestions for new features!', 'powerpress');
        ?>
)</li>
	</ul>
</div>
<?php 
    }
}