/
powerpressadmin-tools.php
177 lines (149 loc) · 9.29 KB
/
powerpressadmin-tools.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<?php
// powerpressadmin-tools.php
function powerpress_admin_tools()
{
$General = get_option('powerpress_general');
?>
<h2><?php echo __('PowerPress Tools', 'powerpress'); ?></h2>
<p style="margin-bottom: 0;"><?php echo __('Useful utilities and tools.', 'powerpress'); ?></p>
<table class="form-table">
<tr valign="top">
<th scope="row"><?php echo __('Podcasting Resources', 'powerpress'); ?></th>
<td>
<p style="margin-top: 5px;"><strong><a href="http://create.blubrry.com/manual/"><?php echo __('Podcasting Manual', 'powerpress'); ?></a></strong>
- <?php echo __('Everything you need to know about podcasting.', 'powerpress'); ?></p>
<p style="margin-top: 5px;"><strong><a href="http://create.blubrry.com/resources/"><?php echo __('Blubrry Resources', 'powerpress'); ?></a></strong>
- <?php echo __('Learn more about PowerPress and Blubrry services.', 'powerpress'); ?></p>
<p style="margin-top: 5px;"><strong><a href="http://create.blubrry.com/support/"><?php echo __('Blubrry Support', 'powerpress'); ?></a></strong>
- <?php echo __('Get support for your podcast!', 'powerpress'); ?></p>
<p style="margin-top: 5px;"><strong><a href="https://wordpress.org/support/plugin/powerpress"><?php echo __('Blubrry PowerPress Forum', 'powerpress'); ?></a></strong>
- <?php echo __('PowerPress support forum on WordPress.org.', 'powerpress'); ?></p>
</td>
</tr>
<!-- ping_sites -->
<tr valign="top">
<th scope="row"><?php echo __('Add Update Services', 'powerpress'); ?></th>
<td>
<p style="margin-top: 5px;"><strong><a href="<?php echo admin_url("admin.php?page=powerpress/powerpressadmin_tools.php&action=powerpress-ping-sites"); ?>"><?php echo __('Add Update Services / Ping Sites', 'powerpress'); ?></a></strong> <?php echo __('(notify podcast directories when you publish new episodes)', 'powerpress'); ?></p>
<p><?php echo __('Add Update Services / Ping Sites geared towards podcasting.', 'powerpress'); ?></p>
</td>
</tr>
<!-- find_replace -->
<tr valign="top">
<th scope="row"><?php echo __('Find and Replace Media', 'powerpress'); ?></th>
<td>
<p style="margin-top: 5px;"><strong><a href="<?php echo admin_url("admin.php?page=powerpress/powerpressadmin_tools.php&action=powerpress-find-replace"); ?>"><?php echo __('Find and Replace for Episode URLs', 'powerpress'); ?></a></strong></p>
<p>
<?php echo __('Find and replace complete or partial segments of media URLs. Useful if you move your media to a new web site or service.', 'powerpress'); ?>
</p>
</td>
</tr>
<!-- use_caps -->
<tr valign="top">
<th scope="row"><?php echo __('User Capabilities', 'powerpress'); ?></th>
<td>
<?php
if( !empty($General['use_caps']) )
{
?>
<p style="margin-top: 5px;"><strong><a href="<?php echo admin_url() . wp_nonce_url("admin.php?page=powerpress/powerpressadmin_tools.php&action=powerpress-remove-caps", 'powerpress-remove-caps'); ?>"><?php echo __('Remove PowerPress Podcasting Capabilities for User Role Management', 'powerpress'); ?></a></strong></p>
<p>
<?php echo __('Podcasting capability allows administrators, editors and authors access to create and configure podcast episodes.
Only administrators will be able to view media statistics from the WordPress Dashboard. Contributors, subscribers and other
custom users will not have access to create podcast episodes or view statistics from the dashboard. Due to this feature\'s
complexity, it is not supported by Blubrry.com.', 'powerpress'); ?>
</p>
<?php
}
else
{
?>
<p style="margin-top: 5px;"><strong><a href="<?php echo admin_url() . wp_nonce_url("admin.php?page=powerpress/powerpressadmin_tools.php&action=powerpress-add-caps", 'powerpress-add-caps'); ?>">
<?php echo __('Add PowerPress Podcasting Capabilities for User Role Management', 'powerpress'); ?></a></strong></p>
<p>
<?php echo __('Adding podcasting capability will allow administrators, editors and authors access to create and configure podcast episodes.
Only administrators will be able to view media statistics from the WordPress Dashboard. Contributors, subscribers and other
custom users will not have access to create podcast episodes or view statistics from the dashboard. Due to this feature\'s
complexity, it is not supported by Blubrry.com.', 'powerpress'); ?>
</p>
<?php
}
if( !empty($General['premium_caps']) )
{
?>
<p style="margin-top: 5px;"><strong><a href="<?php echo admin_url() . wp_nonce_url("admin.php?page=powerpress/powerpressadmin_tools.php&action=powerpress-remove-feed-caps", 'powerpress-remove-feed-caps'); ?>"><?php echo __('Remove Password Protection Capabilities for Control of Which Users can Access Your Podcasts', 'powerpress'); ?></a></strong> (<?php echo __('Also kown as Premium Content', 'powerpress'); ?>)</p>
<p>
<?php
echo sprintf( __("To use this feature, go to %s and create a new custom podcast channel. In the Edit Podcast Channel page, click the last tab labeled 'Other Settings'. Place a check in the box labled 'Protect Content' and then click 'Save Changes'.", 'powerpress'),
'<a href="'. admin_url("admin.php?page=powerpressadmin_customfeeds.php") .'" title="'. __('Podcast Channels', 'powerpress') .'">'. __('Podcast Channels', 'powerpress') .'</a>' );
?>
</p>
<p>
<?php echo __('Password protection capabilities for custom podcast channel feeds lets you control who can listen and view your
podcast. This feature allows you to password-protect custom podcast channels by adding a new role called "Premium
Subscriber." Only users with the "Premium Subscriber" role have access to your password protected custom podcast
channels. Due to this feature\'s complexity, it is not supported by Blubrry.com.', 'powerpress'); ?>
</p>
<?php
}
else
{
?>
<p style="margin-top: 5px;"><strong><a href="<?php echo admin_url() . wp_nonce_url("admin.php?page=powerpress/powerpressadmin_tools.php&action=powerpress-add-feed-caps", 'powerpress-add-feed-caps'); ?>"><?php echo __('Add Password Protection Capabilities for Control of Which Users can Access Your Podcasts', 'powerpress'); ?></a></strong> (<?php echo __('Also kown as Premium Content', 'powerpress'); ?>)</p>
<p>
<?php echo __('Adding password protection capabilities for custom podcast channel feeds lets you control who can listen and view your
podcast. This feature allows you to password-protect custom podcast channels by adding a new role called "Premium
Subscriber." Only users with the "Premium Subscriber" role have access to your password protected custom podcast
channels. Due to this feature\'s complexity, it is not supported by Blubrry.com.', 'powerpress'); ?>
</p>
<?php
}
?>
<p><strong><?php echo __('What are Roles and Capabilities?', 'powerpress'); ?></strong></p>
<p>
<?php
echo sprintf( __("The WordPress %s feature gives the blog owner the ability to control what users can and
cannot do in the blog. You will most likely need a roles and capabilities plugin such as %s, %s, or %s
to take advantage of these features. Due to this feature's complexity, it is not supported by Blubrry.com.", 'powerpress'),
'<a href="http://codex.wordpress.org/Roles_and_Capabilities" target="_blank">'. __('Roles and Capabilities', 'powerpress') .'</a>',
'<a href="http://www.im-web-gefunden.de/wordpress-plugins/role-manager/" target="_blank">'. __('Role Manager', 'powerpress') .'</a>',
'<a href="http://alkivia.org/wordpress/capsman/" target="_blank">'. __('Capability Manager', 'powerpress') .'</a>',
'<a href="http://agapetry.net/category/plugins/role-scoper/" target="_blank">'. __('Role Scoper', 'powerpress') .'</a>'
);
?>
</p>
</td>
</tr>
<tr valign="top">
<th scope="row"><?php echo __('Update Plugins Cache', 'powerpress'); ?></th>
<td>
<p style="margin-top: 5px;"><strong><a href="<?php echo admin_url() . wp_nonce_url("admin.php?page=powerpress/powerpressadmin_tools.php&action=powerpress-clear-update_plugins", 'powerpress-clear-update_plugins'); ?>"><?php echo __('Clear Plugins Update Cache', 'powerpress'); ?></a></strong></p>
<p>
<?php
echo sprintf( __('The list of plugins on the plugins page will cache the plugin version numbers for up to 24 hours. Click the link above to clear the cache to get the latest versions of plugins listed on your %s page.', 'powerpress'),
'<a href="'. admin_url(). 'plugins.php' .'" title="Plugins">'. __('plugins', 'powerpress') .'</a>');
?>
</p>
</td>
</tr>
<tr valign="top">
<th scope="row"><?php echo __('Translations', 'powerpress'); ?></th>
<td>
<p style="margin-top: 5px;"><strong>
<a href="http://create.blubrry.com/resources/powerpress/advanced-tools-and-options/translating-powerpress/" target="_blank"><?php echo __('Translate PowerPress to your language', 'powerpress'); ?></a>
</strong></p>
</td>
</tr>
<tr valign="top">
<th scope="row"><?php echo __('Diagnostics', 'powerpress'); ?></th>
<td>
<p style="margin-top: 5px;"><strong><a href="<?php echo admin_url("admin.php?page=powerpress/powerpressadmin_tools.php&action=powerpress-diagnostics"); ?>"><?php echo __('Diagnose Your PowerPress Installation', 'powerpress'); ?></a></strong></p>
<p>
<?php echo __('The Diagnostics page checks to see if your server is configured to support all of the available features in Blubrry PowerPress.', 'powerpress'); ?>
</p>
</td>
</tr>
</table>
<?php
}
?>