PageRenderTime 54ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/blog/wp-content/plugins/podpress/podpress_admin_general_class.php

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 1011 lines | 807 code | 63 blank | 141 comment | 142 complexity | 70d33e8b83396d49595a38630ad8babb MD5 | raw file
Possible License(s): GPL-2.0, GPL-3.0, AGPL-1.0, LGPL-2.1

Large files files are truncated, but you can click here to view the full file

  1. <?php
  2. /*
  3. License:
  4. ==============================================================================
  5. Copyright 2006 Dan Kuykendall (email : dan@kuykendall.org)
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2 of the License, or
  9. (at your option) any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. You should have received a copy of the GNU General Public License
  15. along with this program; if not, write to the Free Software
  16. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-107 USA
  17. */
  18. class podPressAdmin_class extends podPress_class
  19. {
  20. function podPressAdmin_class() {
  21. $this->podPress_class();
  22. return;
  23. }
  24. /*************************************************************/
  25. /* Functions for editing and saving posts */
  26. /*************************************************************/
  27. function settings_general_edit() {
  28. GLOBAL $wpdb, $wp_rewrite, $wp_version;
  29. podPress_isAuthorized();
  30. if (isset($_GET['updated']) && $_GET['updated'] == 'true') {
  31. echo '<div id="message" class="updated fade"><p>'. __('Settings Saved', 'podpress').'</p></div>';
  32. } elseif (isset($_GET['updated']) && $_GET['updated'] != 'true') {
  33. echo '<div id="message" class="error fade"><p>'. __('<strong>Error:</strong> Unable to save the settings', 'podpress').'</p></div>';
  34. }
  35. // ntm: where is the check? some times this message appears despite the fact that the theme has the necessary functions and hooks
  36. // Because it is not a hundred percent reliable I deactivate it for now
  37. //~ if(!$this->settings['compatibilityChecks']['wp_head'] || !$this->settings['compatibilityChecks']['wp_footer']) {
  38. //~ echo '<div class="wrap">'."\n";
  39. //~ if($this->settings['compatibilityChecks']['themeTested']) {
  40. //~ echo ' <h2>'.__('Theme Compatibility Problem', 'podpress').'</h2>'."\n";
  41. //~ } else {
  42. //~ echo ' <h2>'.__('Theme Compatibility Check Required', 'podpress').'</h2>'."\n";
  43. //~ }
  44. //~ echo ' <fieldset class="options">'."\n";
  45. //~ if($this->settings['compatibilityChecks']['themeTested']) {
  46. //~ echo ' <legend>'.__('Current Theme is not compliant', 'podpress').'</legend>'."\n";
  47. //~ } else {
  48. //~ echo ' <legend>'.__('Current Theme needs to be tested', 'podpress').'</legend>'."\n";
  49. //~ }
  50. //~ echo ' <table width="100%" cellspacing="2" cellpadding="5" class="editform">'."\n";
  51. //~ echo ' <tr>'."\n";
  52. //~ echo ' <td>'."\n";
  53. //~ if($this->settings['compatibilityChecks']['themeTested']) {
  54. //~ echo ' podPress has found the "'.get_current_theme().'" theme fails to meet important requirements.<br /><br />'."\n";
  55. //~ } else {
  56. //~ echo ' podPress has not yet detected the "'.get_current_theme().'" theme to be compliant. Please visit your <a href="'.podPress_siteurl().'">main blog page</a> for podPress to re-check.<br /><br />'."\n";
  57. //~ }
  58. //~ if(!$this->settings['compatibilityChecks']['wp_head']) {
  59. //~ echo ' The header.php in your theme needs to be calling wp_head(); before the closing head tag.<br />'."\n";
  60. //~ echo ' Change this:<br />'."\n";
  61. //~ echo ' <code>&lt;head&gt;</code><br />'."\n";
  62. //~ echo ' To this:<br />'."\n";
  63. //~ echo ' <code>&lt;?php wp_head(); ?&gt;'."<br />\n".'&lt;head&gt;</code><br />'."\n";
  64. //~ echo ' <br />'."\n";
  65. //~ }
  66. //~ if(!$this->settings['compatibilityChecks']['wp_footer']) {
  67. //~ echo ' The footer.php in your theme needs to be calling wp_footer(); before the closing body tag.<br />'."\n";
  68. //~ echo ' Change this:<br />'."\n";
  69. //~ echo ' <code>&lt;/body&gt;</code><br />'."\n";
  70. //~ echo ' To this:<br />'."\n";
  71. //~ echo ' <code>&lt;?php wp_footer(); ?&gt;'."<br />\n".'&lt;/body&gt;</code><br />'."\n";
  72. //~ }
  73. //~ echo ' Look at the default theme files for example.<br />'."\n";
  74. //~ echo ' </td>'."\n";
  75. //~ echo ' </tr> '."\n";
  76. //~ echo ' </table>'."\n";
  77. //~ echo ' </fieldset>'."\n";
  78. //~ echo '</div>'."\n";
  79. //~ }
  80. echo '<div class="wrap">'."\n";
  81. if ( TRUE == version_compare($wp_version, '2.7', '>=') ) {
  82. echo '<div id="podpress-icon" class="icon32"><br /></div>';
  83. }
  84. if ( TRUE == version_compare($wp_version, '2.8', '>=') ) {
  85. echo ' <h2>'.__('General Settings', 'podpress').'</h2>'."\n";
  86. // get the plugins version information via the WP plugins version check
  87. if ( TRUE == version_compare($wp_version, '2.9', '>=') ) {
  88. $versioninfo = get_site_transient( 'update_plugins' );
  89. } else {
  90. $versioninfo = get_transient( 'update_plugins' );
  91. }
  92. // If there is a new version then there is a 'response'. This is the method from the plugins page.
  93. if ( FALSE !== isset($versioninfo->response[plugin_basename(dirname(__FILE__).'/podpress.php')]->new_version) ) {
  94. 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>';
  95. }
  96. } else {
  97. echo ' <h2>'.__('General 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";
  98. }
  99. echo ' <form method="post">'."\n";
  100. if ( function_exists('wp_nonce_field') ) { // since WP 2.0.4
  101. wp_nonce_field('podPress_general_options_nonce');
  102. }
  103. echo ' <fieldset class="options">'."\n";
  104. echo ' <legend>'.__('Location of the Media Files', 'podpress').'</legend>'."\n";
  105. echo ' <table class="editform podpress_settings_table">'."\n";
  106. echo ' <tr>'."\n";
  107. echo ' <th><label for="mediaWebPath">'.__('URL of the media files directory', 'podpress').'</label> <a href="javascript:void(null);" onclick="javascript: podPressShowHideRow(\'mediaWebPathHelp\');">(?)</a>:</th>'."\n";
  108. echo ' <td>'."\n";
  109. echo ' <input type="text" id="mediaWebPath" name="mediaWebPath" class="podpress_wide_text_field" size="40" value="'.attribute_escape(stripslashes($this->settings['mediaWebPath'])).'" /><br />'."\n";
  110. if(!isset($this->settings['mediaWebPath']) || empty($this->settings['mediaWebPath'])){
  111. echo "<br />\n";
  112. echo __('Suggested', 'podpress').': <code>'.$this->uploadURL.'</code>'."\n";
  113. }
  114. echo ' </td>'."\n";
  115. echo ' </tr>'."\n";
  116. echo ' <tr id="mediaWebPathHelp" style="display: none;">'."\n";
  117. echo ' <th>&nbsp;</th>'."\n";
  118. echo ' <td>';
  119. echo ' '.sprintf(__('Point this to the full URL where you put your media files. It can be an URL to a local or remote location. The default value is the URL of the upload folder of this blog for example: <code>%1$s</code>', 'podpress'), $this->uploadURL)."\n";
  120. echo ' </td>'."\n";
  121. echo ' </tr> '."\n";
  122. echo ' <tr>'."\n";
  123. echo ' <th><label for="mediaFilePath">'.__('Absolute path of the media files directory (optional)', 'podpress').'</label> <a href="javascript:void(null);" onclick="javascript: podPressShowHideRow(\'mediaFilePathHelp\');">(?)</a>:</th>'."\n";
  124. echo ' <td>'."\n";
  125. echo ' <input type="text" id="mediaFilePath" name="mediaFilePath" class="podpress_wide_text_field" size="40" value="'.attribute_escape(stripslashes($this->settings['mediaFilePath'])).'" /><br />'."\n";
  126. $this->checkLocalPathToMediaFiles();
  127. if(!empty($this->settings['autoDetectedMediaFilePath']) AND !empty($this->settings['mediaFilePath'])){
  128. echo __('This directory is not valid or not accessible.', 'podpress').'<br /> '.__('Suggested', 'podpress').': <code>'.$this->settings['autoDetectedMediaFilePath'].'</code>'."\n";
  129. } elseif (empty($this->settings['mediaFilePath'])) {
  130. echo __('e.g.', 'podpress').': <code>'.$this->settings['autoDetectedMediaFilePath'].'</code>'."\n";
  131. }
  132. echo ' </td>'."\n";
  133. echo ' </tr> '."\n";
  134. echo ' <tr id="mediaFilePathHelp" style="display: none;">'."\n";
  135. echo ' <th>&nbsp;</th>'."\n";
  136. echo ' <td>';
  137. echo ' '.sprintf(__('This is an optional feature which is used to speed up the time/duration detection process, and is only possible if you host the media files on the same server as your website. Instead of having to go download a file, it can read e.g. the ID3 information of a media file directly.<br />Insert the full path name of the folder which includes the media files. The URL and this path needs to point to the same directory. This path name could look like <code>/home/yoursite/http/wp-content/files/</code> or can be the path of the upload folder of this blog: <code>%1$s</code>.', 'podpress'), $this->uploadPath)."\n";
  138. echo ' </td>'."\n";
  139. echo ' </tr> '."\n";
  140. echo ' </table>'."\n";
  141. echo ' </fieldset>'."\n";
  142. $home_path = get_home_path();
  143. $trac_folder_exists = is_dir(ABSPATH.'podpress_trac');
  144. $trac_htaccess_exists = file_exists(ABSPATH.'podpress_trac/.htaccess');
  145. $trac_index_exists = file_exists(ABSPATH.'podpress_trac/index.php');
  146. if ( TRUE == $trac_htaccess_exists AND TRUE == $trac_htaccess_exists AND TRUE == $trac_htaccess_exists ) {
  147. $podpress_trac_in_place = TRUE;
  148. $podpress_trac_str = '<input type="hidden" id="podpress_trac_folder_in_place" value="true" />';
  149. } else {
  150. $podpress_trac_in_place = FALSE;
  151. $podpress_trac_str = '<input type="hidden" id="podpress_trac_folder_in_place" value="false" />'."\n";
  152. $podpress_trac_str .= "\t\t\t\t\t".'<input type="hidden" id="podpress_trac_folder_exists" value="'.var_export($trac_folder_exists, TRUE).'" />'."\n";
  153. $podpress_trac_str .= "\t\t\t\t\t".'<input type="hidden" id="podpress_trac_index_exists" value="'.var_export($trac_index_exists, TRUE).'" />'."\n";
  154. $podpress_trac_str .= "\t\t\t\t\t".'<input type="hidden" id="podpress_trac_htaccess_exists" value="'.var_export($trac_htaccess_exists, TRUE).'" />';
  155. }
  156. if (FALSE === $podpress_trac_in_place AND $this->settings['statMethod'] == 'podpress_trac_dir') {
  157. $showpodpress_tracWarning = 'style="display: block;"';
  158. } else {
  159. $showpodpress_tracWarning = 'style="display: none;"';
  160. }
  161. $permalink_structure = get_option('permalink_structure');
  162. if ( FALSE === empty($permalink_structure) ) {
  163. $usingpi = TRUE;
  164. $usingpi_str = '<input type="hidden" id="podpress_usingpermalinks" value="true" />';
  165. } else {
  166. $usingpi = FALSE;
  167. $usingpi_str = '<input type="hidden" id="podpress_usingpermalinks" value="false" />';
  168. }
  169. //if (!$usingpi && !$hasHtaccess && $this->settings['statMethod'] == 'permalinks') {
  170. if (!$usingpi && $this->settings['statMethod'] == 'permalinks') {
  171. $showPermalinksWarning = 'style="display: block;"';
  172. } else {
  173. $showPermalinksWarning = 'style="display: none;"';
  174. }
  175. if ( function_exists('get_admin_url') ) {
  176. $adminurl = get_admin_url(); // since WP 3.0
  177. } elseif ( function_exists('admin_url') ) {
  178. $adminurl = admin_url(); // since WP 2.6
  179. } else {
  180. $adminurl = get_option( 'siteurl' ) . '/wp-admin';
  181. }
  182. $permalinksettingsurl = trailingslashit($adminurl).'options-permalink.php';
  183. if(!$this->settings['enableStats']){
  184. $showStatsOptions = 'style="display: none;"';
  185. }
  186. if ( TRUE == defined('MULTISITE') AND TRUE === constant('MULTISITE') AND function_exists('get_blog_count') ) { // get_blog_count exists only if it is a multi site installation
  187. $multisite_permalink_msg = '<p class="message updated">'.sprintf(__('<strong>Notice:</strong> This blog is part of a multi site blog installation. It might be possible that the method "Use WP Permalinks" works without changing the permalink setting of this particular blog to something other than the default setting. Use the stats method test and control whether it is possible to download and play the media files in your posts. If those tests are not successful then adjust the <a href="%1$s">Permalink Settings of this blog</a>.', 'podpress'), $permalinksettingsurl).'</p>';
  188. $podpress_trac_msg = '<p class="message updated">'.__('<strong>Notice:</strong> This blog is part of a multi site blog installation. It might be possible that the method "Optional Files podpress_trac directory" works without copying the podpress_trac folder and its files. Use the stats method test and control whether it is possible to download and play the media files in your posts. If those tests are not successful then follow the explanation of this method (see below).', 'podpress').'</p>';
  189. } else {
  190. $multisite_permalink_msg = '';
  191. $podpress_trac_msg = '';
  192. }
  193. echo ' <fieldset class="options">'."\n";
  194. echo ' <legend>'.__('Download Statistics', 'podpress').'</legend>'."\n";
  195. echo ' <table class="editform podpress_settings_table">'."\n";
  196. echo ' <tr>'."\n";
  197. echo ' <th><label for="enableStats">'.__('Enable Statistics', 'podpress').':</label></th>'."\n";
  198. echo ' <td class="podpress_settings_narrow_col">'."\n";
  199. echo ' <input type="checkbox" name="enableStats" id="enableStats" '; if($this->settings['enableStats']) { echo 'checked="checked"'; } echo " onclick=\"javascript: podPressShowHideRow('statWarning'); podPressShowHideRow('statMethodWrapper'); podPressShowHideRow('statMethodHelp'); podPressShowHideRow('statsmethodtest'); podPressShowHideRow('statsmethodtesthelp'); podPressShowHideRow('statLoggingWrapper'); podPressShowHideRow('statLoggingHelp'); podPressShowHideRow('3rdpartyinfo'); podPressShowHideRow('podtracrow'); podPressShowHideRow('blubrryrow'); podPressShowHideRow('statBluBrryWrapper'); podPressShowHideRow('3rdpartystatsrow'); podPressShowHideRow('3rdpartystatsnoticerow'); podPressShowHideRow('disabledashboardwidgetrow'); \"/>\n";
  200. echo ' '.$usingpi_str."\n";
  201. echo ' '.$podpress_trac_str."\n";
  202. echo ' </td>'."\n";
  203. echo ' <td>'.__('This will enable the podPress statistics features and give possibility to use the statistics from <a href="http://www.blubrry.com/podpress/" target="_blank">blubrry</a> or <a href="http://www.podtrac.com/" target="_blank">Podtrac</a> the included stats support in podPress.', 'podpress').' '.$perm.'</td>'."\n";
  204. echo ' </tr> '."\n";
  205. echo ' <tr id="statWarning" '.$showStatsOptions.'>'."\n";
  206. echo ' <th>&nbsp;</th>'."\n";
  207. echo ' <td colspan="2">'."\n";
  208. echo ' <div id="permalinksWarning" '.$showPermalinksWarning.'>'."\n";
  209. echo ' <p class="message error">'.sprintf(__('<strong>Warning:</strong> It appears you are not using WordPress permalinks or at least not a non-default permalink setting. If you want to use this statistic method, you need to choose a permalink structure which is different to the default setting. Go to the <a href="%1$s">Permalink Settings of your blog</a> and change that first. Otherwise enabling this statistics feature will most likely cause downloads of media files which were added with podPress to fail.', 'podpress'), $permalinksettingsurl).'</p>'."\n";
  210. echo ' '.$multisite_permalink_msg."\n";
  211. echo ' </div>'."\n";
  212. echo ' <div id="podpress_trac_dirWarning" '.$showpodpress_tracWarning.'>'."\n";
  213. echo ' <p class="message error">'.__('<strong>Warning:</strong> The "Optional Files podpress_trac directory" statistic method will not work. Because the podpress_trac folder or the files are not in the right place:', 'podpress');
  214. echo ' <br />'.__('- podpress_trac folder exists at the right place:', 'podpress');
  215. if (TRUE === $trac_folder_exists) { echo ' '.__('true', 'podpress')."\n"; } else { echo ' <strong>'.__('false', 'podpress').'</strong>'."\n"; }
  216. echo ' <br />'.__('- the .htacces file in the podpress_trac folder exists:', 'podpress');
  217. if (TRUE === $trac_htaccess_exists) { echo ' '.__('true', 'podpress')."\n"; } else { echo ' <strong>'.__('false', 'podpress').'</strong>'."\n"; }
  218. echo ' <br />'.__('- the index.php file in the podpress_trac folder exists:', 'podpress');
  219. if (TRUE === $trac_index_exists) { echo ' '.__('true', 'podpress')."\n"; } else { echo ' <strong>'.__('false', 'podpress').'</strong>'."\n"; }
  220. echo ' </p>'."\n";
  221. echo ' '.$podpress_trac_msg."\n";
  222. echo ' </div>'."\n";
  223. echo ' </td>'."\n";
  224. echo ' </tr> '."\n";
  225. echo ' <tr id="statMethodWrapper" '.$showStatsOptions.'>'."\n";
  226. echo ' <th><label for="statMethod">'.__('Stat Method', 'podpress').':</label></th>'."\n";
  227. echo ' <td colspan="2">';
  228. echo ' <select name="statMethod" id="statMethod" onchange="podpress_check_method_requirements(this.value);">'."\n";
  229. echo ' <option value="permalinks" '; if($this->settings['statMethod'] == 'permalinks') { echo 'selected="selected"'; } echo '>'.__('Use WP Permalinks', 'podpress').'</option>'."\n";
  230. echo ' <option value="podpress_trac_dir" '; if($this->settings['statMethod'] == 'podpress_trac_dir') { echo 'selected="selected"'; } echo '>'.__('Optional Files podpress_trac directory', 'podpress').'</option>'."\n";
  231. echo ' <option value="download.mp3" '; if($this->settings['statMethod'] == 'download.mp3') { echo 'selected="selected"'; } echo '>'.__('Use download.mp3', 'podpress').'</option>'."\n";
  232. echo ' </select>'."\n";
  233. echo ' </td>'."\n";
  234. echo ' </tr> '."\n";
  235. echo ' <tr id="statMethodHelp" '.$showStatsOptions.'>'."\n";
  236. echo ' <th>&nbsp;</th>'."\n";
  237. echo ' <td colspan="2" class="podpress_settings_description_cell">';
  238. echo ' <ul>'."\n";
  239. echo ' <li>'.sprintf(__('"Use WP Permalinks" - (recommended) Requires a non-default permalink structure (go to <a href="%1$s">Settings > Permalinks</a>). Activating any non-default permalink setting in Wordpress will create an <a href="http://en.wikipedia.org/wiki/.htaccess" target="_blank" title="en.Wikipedia: .htaccess">.htaccess</a> file (or <a href="http://en.wikipedia.org/wiki/Web.config" target="_blank" title="en.Wikipedia: Web.config">web.config</a> file on some web-servers) in the base directory of your blog which podpress needs to support tracking statistics. If enabling permalinks in Wordpress breaks your download links or results in a "File not found" error when using the media player, then you should look into using one of the other methods for tracking statistics.', 'podpress'), $permalinksettingsurl).'</li>';
  240. echo ' <li>'.__('"Optional Files podpress_trac directory" - If you cannot use WP permalinks and you run <a href="http://en.wikipedia.org/wiki/Apache_HTTP_Server" target="_blank" title="en.Wikipedia: Apache HTTP Server">Apache</a>, this option may work (depending on the webserver configuration - see details below*). If you choose this option then you need to copy the folder podpress_trac/ including the two files (index.php and .htaccess) to the root folder of your blog. After copying these files the root folder should contain wp-config.php and four subdirectories; wp-admin, wp-content, wp-includes and podpress_trac. The podpress_trac folder contains an .htaccess file and an index.php file which enable podpress to resolve URLs of the media files which will be tracked by the statistics features in podPress. The copied folder and the files should be given the same filesystem permissions as the other folders and files in your WordPress install.<br />*If this method fails after copying the required files and setting the permissions it could be that your server is configured to ignore directory-level .htaccess files. Shared hosting users may need to contact their support to allow these files. If you are configuring your own Apache server the podpress_trac folder needs to have <code>AllowOverride FileInfo Options</code> or <code>AllowOverride All</code>. You can find the necessary configuration details here: <a href="http://httpd.apache.org/docs/2.0/mod/core.html#allowoverride" target="_blank">http://httpd.apache.org/docs/2.0/mod/core.html#allowoverride</a>.', 'podpress').'</li>';
  241. echo ' <li>'.__('"Use download.mp3" - This is an alternative to using an .htaccess file. This is provided for sites which run webservers that do not use the .htaccess file for configuration, such as Microsoft Internet Information Server (IIS).<br />To use this option, you will need to configure your web server to process .mp3 files the same way it does .php files. This is only necessary for the podPress directory, so that the download.mp3 file will be processed as a .php file.<br />If you do not know the type or version of the webserver you are using you can retrieve the information by using WP plugins like <a href="http://wordpress.org/extend/plugins/wp-system-health/" target="_blank">WP System Health</a> or <a href="http://wordpress.org/extend/plugins/system-information/" target="_blank">System information</a>.', 'podpress').'</li>';
  242. echo ' <ul>'."\n";
  243. echo ' </td>'."\n";
  244. echo ' </tr> '."\n";
  245. echo ' <tr id="statsmethodtest" '.$showStatsOptions.'>'."\n";
  246. echo ' <th><label for="statsmethodtest">'.__('Test the stat method', 'podpress').':</label></th>'."\n";
  247. echo ' <td colspan="2">'."\n";
  248. echo ' <input type="button" name="statTest" value="'.__('start the test', 'podpress').'" onclick="podPressTestStats(\''.get_bloginfo('home').'/podpress_trac/web/0/0/podPressStatTest.txt\')"/>'."\n"; // WP 3.0 compatible
  249. echo ' <input type="text" name="statTestResult" id="statTestResult" size="30" value="" readonly="readonly" />'."\n";
  250. echo ' </td>'."\n";
  251. echo ' </tr> '."\n";
  252. echo ' <tr id="statsmethodtesthelp" '.$showStatsOptions.'>'."\n";
  253. echo ' <th>&nbsp;</th>'."\n";
  254. echo ' <td colspan="2" class="podpress_settings_description_cell">';
  255. echo ' '.__('This test can help you to determine whether your podPress statistics method setting will work under the current circumstances or not.', 'podpress')."\n";
  256. echo ' </td>'."\n";
  257. echo ' </tr> '."\n";
  258. echo ' <tr id="statLoggingWrapper" '.$showStatsOptions.'>'."\n";
  259. echo ' <th><label for="statLogging">'.__('Stat Logging', 'podpress').':</label></th>'."\n";
  260. echo ' <td colspan="2">';
  261. echo ' <select name="statLogging" id="statLogging">'."\n";
  262. echo ' <option value="Counts" '; if($this->settings['statLogging'] == 'Counts') { echo 'selected="selected"'; } echo '>'.__('Counts Only', 'podpress').'</option>'."\n";
  263. echo ' <option value="Full" '; if($this->settings['statLogging'] == 'Full') { echo 'selected="selected"'; } echo '>'.__('Full', 'podpress').'</option>'."\n";
  264. echo ' <option value="FullPlus" '; if($this->settings['statLogging'] == 'FullPlus') { echo 'selected="selected"'; } echo '>'.__('Full+', 'podpress').'</option>'."\n";
  265. echo ' </select>'."\n";
  266. unset($x);
  267. echo ' </td>'."\n";
  268. echo ' </tr> '."\n";
  269. echo ' <tr id="statLoggingHelp" '.$showStatsOptions.'>'."\n";
  270. echo ' <th>&nbsp;</th>'."\n";
  271. echo ' <td colspan="2" class="podpress_settings_description_cell">';
  272. echo ' <ul>'."\n";
  273. echo ' <li>'.__('"Counts Only" - podPress counts only how many times a media was downloaded from the website, the feeds and how often the player of this file was started. Your media files should have unique file names. (The db table name is e.g. wp_podpress_statcounts.)', 'podpress').'</li>';
  274. echo ' <li>'.__('"Full" - With this option podPress will log how many times a media was downloaded from the website, the feeds and how often the player of this file was started. It will also log on each download the ID of the post (or page), the IP address, the referrer, the browser type (User Agent) and the time of the download. Furthermore podPress parses the referer and user agent information and store the information in separate columns in the database.<br />Full includes also the posssibility to mark downloads on the basis of user agent names and IP addresses as downloads of <a href="http://en.wikipedia.org/wiki/Internet_bot" target="_blank" title="en.Wikipedia: Internet bot">Internets bots</a> and filter the statistic tables and graphs. (The db table name is e.g. wp_podpress_stats.) If you add more than one media file to a post (with podPress) then these files should have different file names.', 'podpress').'</li>';
  275. echo ' <li>'.__('"Full+" - If you would like to know all the information "Full" gives you and additionally whether a download has been completed or not. podPress can only try to find out whether a file transfer was complete, if the file is on the same server as your blog (if it is a local file for the script). If you add more than one media file to a post (with podPress) then these files should have different file names. In order to get the information whetehr a download was complete or not podPress (or at least a PHP script of podPress) needs to run during the whole download. But this may lead to problems if the file is relative big or the maximum execution time for PHP scripts is relative short on the server of your blog. If the time limit is reached the download stops. So if you are not allowed to change the max_execution_time setting of the PHP configuration on the server of your blog or if you are unsure what this all means then please use the "Full" method (as recommended).', 'podpress').'</li>';
  276. echo ' <ul>'."\n";
  277. echo ' '.__('Note that if you enable the statistics, the Counts Only counter counts always even if you choose Full or Full+ but not vice versa.', 'podpress')."\n";
  278. echo ' </td>'."\n";
  279. echo ' </tr> '."\n";
  280. if ( TRUE == version_compare($wp_version, '2.5', '>=') AND TRUE == version_compare($wp_version, '2.7', '<') ) {
  281. $this->settings['disabledashboardwidget'] = TRUE;
  282. $descwidget_disabled = ' disabled = "disabled"';
  283. $descwidget_notice = __('podPress offers no Dashboard Widget for WP 2.5.x and WP 2.6.x.', 'podpress');
  284. } else {
  285. $descwidget_disabled = '';
  286. $descwidget_notice = '';
  287. }
  288. echo ' <tr id="disabledashboardwidgetrow" '.$showStatsOptions.'>'."\n";
  289. echo ' <th><label for="disabledashboardwidget">'.__('Disable the dashboard widget', 'podpress').':</label></th>'."\n";
  290. echo ' <td>'."\n";
  291. echo ' <input type="checkbox" name="disabledashboardwidget" id="disabledashboardwidget" value="yes"'; if ( (isset($this->settings['disabledashboardwidget']) AND TRUE === $this->settings['disabledashboardwidget']) ) { echo 'checked="checked"'; } echo $descwidget_disabled.' />'."\n";
  292. echo ' </td>'."\n";
  293. echo ' <td>'.$descwidget_notice.'</td>'."\n";
  294. echo ' </tr> '."\n";
  295. // ntm: reactivate this feature with the constant PODPRESS_ACTIVATE_3RD_PARTY_STATS in the podpress.php files
  296. if ( TRUE == defined('PODPRESS_ACTIVATE_3RD_PARTY_STATS') AND TRUE === constant('PODPRESS_ACTIVATE_3RD_PARTY_STATS') ) {
  297. Switch ( $this->settings['enable3rdPartyStats'] ) {
  298. case 'PodTrac' :
  299. $podtrac_checked = ' checked="checked"';
  300. $blubrry_checked = '';
  301. $disable3rdparty_checked = '';
  302. break;
  303. case 'Blubrry' :
  304. $podtrac_checked = '';
  305. $blubrry_checked = ' checked="checked"';
  306. $disable3rdparty_checked = '';
  307. break;
  308. default :
  309. $podtrac_checked = '';
  310. $blubrry_checked = '';
  311. $disable3rdparty_checked = ' checked="checked"';
  312. break;
  313. }
  314. $podtrac_disabled = '';
  315. $blubrry_disabled = '';
  316. $blubrry_readonly = '';
  317. } else {
  318. $podtrac_disabled = ' disabled = "disabled"';
  319. $blubrry_disabled = ' disabled = "disabled"';
  320. $blubrry_readonly = 'readonly = "readonly"';
  321. $podtrac_checked = '';
  322. $blubrry_checked = '';
  323. $disable3rdparty_checked = ' checked="checked"';
  324. }
  325. echo ' <tr id="3rdpartyinfo" class="podpress_settings_headerrow" '.$showStatsOptions.'>'."\n";
  326. echo ' <th colspan="3">'.__('In addition to the podPress own counter mechanisms, you can use one from a company:', 'podpress').'</th>'."\n";
  327. echo ' </tr> '."\n";
  328. echo ' <tr id="podtracrow" '.$showStatsOptions.'>'."\n";
  329. echo ' <th><label for="enablePodTracStats">'.__('Enable Podtrac Statistics', 'podpress').':</label></th>'."\n";
  330. echo ' <td>'."\n";
  331. echo ' <input type="radio" name="enable3rdPartyStats" id="enablePodTracStats" value="PodTrac"' . $podtrac_checked . $podtrac_disabled . ' />'."\n";
  332. echo ' </td>'."\n";
  333. echo ' <td>'.__('This will use the Podtrac service. <a href="http://www.podtrac.com/" target="_new">More info ...</a>', 'podpress').'</td>'."\n";
  334. echo ' </tr> '."\n";
  335. echo ' <tr id="blubrryrow" '.$showStatsOptions.'>'."\n";
  336. echo ' <th><label for="enableBlubrryStats">'.__('Enable blubrry Statistics', 'podpress').':</label></th>'."\n";
  337. echo ' <td>'."\n";
  338. echo ' <input type="radio" name="enable3rdPartyStats" id="enableBlubrryStats" value="Blubrry"' . $blubrry_checked . $blubrry_disabled . ' />'."\n";
  339. echo ' </td>'."\n";
  340. echo ' <td>'.__('This will use the Blubrry service. <a href="http://www.blubrry.com/podpress/" target="_new">More info ...</a>', 'podpress').'</td>'."\n";
  341. echo ' </tr> '."\n";
  342. echo ' <tr id="statBluBrryWrapper" '.$showStatsOptions.'>'."\n";
  343. echo ' <th></th>'."\n";
  344. echo ' <td></td>'."\n";
  345. echo ' <td>';
  346. echo ' <label for="statBluBrryProgramKeyword">'.__('Program Keyword', 'podpress').'</label>:';
  347. echo ' <input type="input" name="statBluBrryProgramKeyword" id="statBluBrryProgramKeyword" ' . $blubrry_readonly . ' value="'.$this->settings['statBluBrryProgramKeyword'].'"/>';
  348. echo ' </td>'."\n";
  349. echo ' </tr> '."\n";
  350. echo ' <tr id="3rdpartystatsrow" '.$showStatsOptions.'>'."\n";
  351. echo ' <th><label for="disable3rdPartyStats">'.__('Disable 3rd Party Statistics', 'podpress').':</label></th>'."\n";
  352. echo ' <td>'."\n";
  353. echo ' <input type="radio" name="enable3rdPartyStats" id="disable3rdPartyStats" value="No"' . $disable3rdparty_checked . ' />'."\n";
  354. echo ' </td>'."\n";
  355. echo ' <td></td>'."\n";
  356. echo ' </tr> '."\n";
  357. echo ' <tr id="3rdpartystatsnoticerow" '.$showStatsOptions.'>'."\n";
  358. echo ' <th>&nbsp;</th>'."\n";
  359. echo ' <td colspan="2">'."\n";
  360. // ntm: reactivate this feature with the constant PODPRESS_ACTIVATE_3RD_PARTY_STATS in the podpress.php files
  361. if ( TRUE == defined('PODPRESS_ACTIVATE_3RD_PARTY_STATS') AND TRUE === constant('PODPRESS_ACTIVATE_3RD_PARTY_STATS') ) {
  362. echo ' '.__('You can use only one of these services together with the podPress statistics at the same time. If you want to have more or different statistics then you could use the service of e.g. Feedburner or eventually Libsyn.', 'podpress')."\n";
  363. } else {
  364. echo ' <span class="nonessential">'.__('This feature is deactivated and will maybe be removed in one of a future versions. If you want to activate this feature despite then ask for help in <a href="http://wordpress.org/tags/podpress?forum_id=10" target="_blank">this WP.org Forum</a>.', 'podpress').'</span>'."\n";
  365. }
  366. echo ' </td>'."\n";
  367. echo ' </tr> '."\n";
  368. echo ' </table>'."\n";
  369. echo ' </fieldset>'."\n";
  370. echo ' <fieldset class="options">'."\n";
  371. echo ' <legend>'.__('Post Editing', 'podpress').'</legend>'."\n";
  372. echo ' <table class="editform podpress_settings_table">'."\n";
  373. echo ' <tr>'."\n";
  374. echo ' <th><label for="maxMediaFiles">'.__('max. number of media files', 'podpress').':</label></th>'."\n";
  375. echo ' <td>'."\n";
  376. echo ' <input type="text" maxlength="3" size="3" name="maxMediaFiles" id="maxMediaFiles" value="'.$this->settings['maxMediaFiles'].'"'."/>\n";
  377. echo ' </td>'."\n";
  378. echo ' <td>'.__('which you want to add to single posts (or pages). The higher the number, the bigger the performance impact when loading the Posts editor. (default: 10)', 'podpress').'</td>'."\n";
  379. echo ' </tr> '."\n";
  380. echo ' </table>'."\n";
  381. echo ' </fieldset>'."\n";
  382. echo ' <fieldset class="options">'."\n";
  383. echo ' <legend>'.__('Podango Integration', 'podpress').'</legend>'."\n";
  384. echo ' <p class="message error">'.__('Podango Integration does not work anymore and causes probably long page loading times e.g. on the post/page editor pages of this blog. Since 2008/2009 Podango <a href="http://sites.google.com/site/podangohibernate/">is currently on vacation</a> and the API which podPress tries to use is unavailable. That is why it is most likely that you will experience a lot of warning and error messages if you activate this feature.', 'podpress').'</p>';
  385. echo ' <table class="editform podpress_settings_table">'."\n";
  386. echo ' <tr>'."\n";
  387. echo ' <th><label for="enablePodangoIntegration">'.__('Enable Podango Integration', 'podpress').':</label></th>'."\n";
  388. echo ' <td>'."\n";
  389. // ntm: reactivate this feature with the constant PODPRESS_ACTIVATE_PODANGO_INTEGRATION in the podpress.php files
  390. if ( TRUE == defined('PODPRESS_ACTIVATE_PODANGO_INTEGRATION') AND TRUE === constant( 'PODPRESS_ACTIVATE_PODANGO_INTEGRATION') ) {
  391. echo ' <input type="checkbox" name="enablePodangoIntegration" id="enablePodangoIntegration" '; if($this->settings['enablePodangoIntegration']) { echo 'checked="checked"'; } echo " />\n";
  392. } else {
  393. echo ' <input type="checkbox" name="enablePodangoIntegration" id="enablePodangoIntegration" disabled="disabled" />'."\n";
  394. }
  395. echo ' </td>'."\n";
  396. echo ' <td>';
  397. if ( TRUE == defined('PODPRESS_ACTIVATE_PODANGO_INTEGRATION') AND TRUE === constant( 'PODPRESS_ACTIVATE_PODANGO_INTEGRATION') ) {
  398. echo ' '.__('podPress users can gain additional functionality when used in combination with Podango hosting.', 'podpress').'<br />'."\n";
  399. } else {
  400. echo ' <span class="nonessential">'.__('This feature is deactivated and will maybe be removed in one of a future versions. If you want to activate this feature despite the absence of the Podango platform then ask for help in <a href="http://wordpress.org/tags/podpress?forum_id=10" target="_blank">this WP.org Forum</a>.', 'podpress').'</span><br />'."\n";
  401. }
  402. echo ' </td>'."\n";
  403. echo ' </tr> '."\n";
  404. echo ' </table>'."\n";
  405. echo ' </fieldset>'."\n";
  406. echo ' <fieldset class="options">'."\n";
  407. echo ' <legend>'.__('Premium Content', 'podpress').'</legend>'."\n";
  408. if (!$this->settings['enablePremiumContent']) {
  409. $showPremiumOptions = 'style="display: none;"';
  410. }
  411. $premiumcontenthelp = ' <tr id="premiumPodcastingHelp" '.$showPremiumOptions.'>'."\n";
  412. $premiumcontenthelp .= ' <th>&nbsp;</th>'."\n";
  413. $premiumcontenthelp .= ' <td colspan="2">';
  414. $premiumcontenthelp .= ' '.sprintf(__('<p>If you want use this part of the plugin then you should <a href="http://codex.wordpress.org/Roles_and_Capabilities" target="_blank">read more about roles and capabilities</a> and you need to get and install a roles and capabilities management plugin like <a href="http://wordpress.org/extend/plugins/members/" target="_blank">Members</a> or <a href="http://wordpress.org/extend/plugins/capsman/" target="_blank">Capability Manager</a> (The former recommendation was the <a href="http://redalt.com/wiki/Role+Manager" target="_blank">Role Manager</a> plugin. But it is unclear whether it works with current WP version or not.)</p><p>Anyone that should have access to the premium podcasting files need to have the Premium Content role, which can be done by making them Premium Subscribers.<br />Then just in each post set the media file as premium content and normal visitors will not be able to see the content via the web or from the feed.</p><p>If you are using a WordPress version which is newer than v2.1, then users can just use <a href="%1$s">%1$s</a> for their premium content needs. User will be asked for their user/pass before giving the RSS feed. For instance Juice and iTunes support this fine.</p><p>Keep in mind, that this does NOT protect your content if someone discovers the URLs, it only hides the location from showing up on the site or in the feed. To fully protect your files you can use this feature in combination with an external service like the one from <a href="http://www.amember.com/" target="_blank">aMemberPro</a> which should work with podPress. aMemberPro will protect the files from being downloaded at all, unless authorized. It also handles monthly subscription issues through <a href="http://en.wikipedia.org/wiki/Paypal" target="_blank" title="en.Wikipedia: PayPal">PayPal</a> and such. If you combine such a service with WordPress and podPress you can have your own premium content podcasting service.</p>', 'podpress'), get_feed_link('premium'))."\n";
  415. // ntm: Parts of this text are obviously aut dated and I took the chance to modify it
  416. //$premiumcontenthelp .= ' '.__('Full documentation is still under development on <a href="http://podcasterswiki.com/index.php?title=PodPress_Documentation#Premium_Podcasting">the wiki</a><br /><br />This is the short of it is that you need to get and install the <a href="http://redalt.com/wiki/Role+Manager">Role Manager plugin</a><br />Anyone that should have access to the premium podcasting files need to have the Premium Content role, which can be done by making them Premium Subscribers<br /><br />Then just in each post set the media file as premium content and normal visitors will not be able to see the content via the web or from the feed.<br />If your using Wordpress 2.1, then users can just use http://www.yoursite.com/?feed=premium for their premium content needs.<br />If your using WP 1.5 or 2.0.x, then you need to put premiumcast.php in your main wordpress dir and then have your subscribers use this file as their rss feed.<br />These will cause the site to ask for their user/pass before giving the RSS feed. Juice and iTunes supports this fine.<br /><br />Keep in mine, that this does NOT protect your content if someone discovers the URLS, it only hides the location from showing up on the site or in the feed. To fully protect your files I have also been able to get this working with <a href="http://www.amember.com/">aMemberPro</a><br />aMemberPro will protect the files from being downloaded at all, unless authorized. It also handles monthly subscription issues thru paypal and such. Its a great tool, and combines with WordPress and podPress you can have a full blown premium content podcasting service.', 'podpress')."\n";
  417. $premiumcontenthelp .= ' </td>'."\n";
  418. $premiumcontenthelp .= ' </tr> '."\n";
  419. echo ' <table class="editform podpress_settings_table">'."\n";
  420. echo ' <tr>'."\n";
  421. echo ' <th><label for="enablePremiumContent">'.__('Enable Premium Content:', 'podpress').'</label></th>'."\n";
  422. if(!podPress_WPVersionCheck('2.0.0')) {
  423. echo ' <td>&nbsp;</td>'."\n";
  424. echo ' <td>'.__('Only available in WordPress 2.0.0 or greater', 'podpress').'</td>'."\n";
  425. echo ' </tr> '."\n";
  426. echo $premiumcontenthelp;
  427. } else {
  428. echo ' <td colspan="2">'."\n";
  429. echo ' <input type="checkbox" name="enablePremiumContent" id="enablePremiumContent" '; if($this->settings['enablePremiumContent']) { echo 'checked="checked"'; } echo " onclick=\"javascript: podPressShowHideRow('premiumPodcastingHelp'); podPressShowHideRow('premiumMethodWrapper'); podPressShowHideRow('premiumContentFakeEnclosureWrapper');\" />\n";
  430. //ntm: with the podPressShowHideRow('protectedMediaFilePathWrapper'); podPressShowHideRow('protectedMediaFilePathHelp');
  431. //~ echo ' <input type="checkbox" name="enablePremiumContent" id="enablePremiumContent" '; if($this->settings['enablePremiumContent']) { echo 'checked="checked"'; } echo " onclick=\"javascript: podPressShowHideRow('premiumPodcastingHelp'); podPressShowHideRow('protectedMediaFilePathWrapper'); podPressShowHideRow('protectedMediaFilePathHelp'); podPressShowHideRow('premiumMethodWrapper'); podPressShowHideRow('premiumContentFakeEnclosureWrapper');\" />\n";
  432. echo ' </td>'."\n";
  433. echo ' </tr> '."\n";
  434. echo $premiumcontenthelp;
  435. // ntm: there is nothing behind this input that is why is deactivated
  436. //~ echo ' <tr id="protectedMediaFilePathWrapper" '.$showPremiumOptions.'>'."\n";
  437. //~ echo ' <th><label for="protectedMediaFilePath">'.__('Absolute path to protected media', 'podpress').':</label></th>'."\n";
  438. //~ echo ' <td colspan="2">'."\n";
  439. //~ echo ' <input type="text" id="protectedMediaFilePath" name="protectedMediaFilePath" class="podpress_wide_text_field" size="40" value="'.attribute_escape($this->settings['protectedMediaFilePath']).'" />'."\n";
  440. //~ echo ' </td>'."\n";
  441. //~ echo ' </tr>'."\n";
  442. //~ echo ' <tr id="protectedMediaFilePathHelp" '.$showPremiumOptions.'>'."\n";
  443. //~ echo ' <th>&nbsp;</th>'."\n";
  444. //~ echo ' <td colspan="2">';
  445. //~ echo ' '.sprintf(__('Insert here the complete path name of the folder which contains the premium meda files. This folder needs to be on the same server as your blog. But it should NOT be in a dir under your web root. It should be a dir outside of the web root so that users cannot simply browse to the dir and get access to the files. For example this could be <code>%1$s/premium_mp3s/</code> or maybe with random number as folder name: <code>%1$s/%2$s/premium_mp3s/</code>. Create this folder before you start to use this feature.', 'podpress'), $this->uploadPath, rand(10000, 99999))."\n";
  446. //~ echo ' </td>'."\n";
  447. //~ echo ' </tr> '."\n";
  448. echo ' <tr id="premiumMethodWrapper" '.$showPremiumOptions.'>'."\n";
  449. echo ' <th><label for="premiumMethod">'.__('Method', 'podpress').':</label></th>'."\n";
  450. echo ' <td>'."\n";
  451. echo ' <select name="premiumMethod" id="premiumMethod">'."\n";
  452. echo ' <option value="Digest" '; if($this->settings['premiumMethod'] != 'Basic') { echo 'selected="selected"'; } echo '>'.__('Digest', 'podpress').'</option>'."\n";
  453. echo ' <option value="Basic" '; if($this->settings['premiumMethod'] == 'Basic') { echo 'selected="selected"'; } echo '>'.__('Basic', 'podpress').'</option>'."\n";
  454. echo ' </select>'."\n";
  455. echo ' </td>'."\n";
  456. echo ' <td>'.__('Digest auth is MUCH better than Basic, which is easily unencrypted.', 'podpress').'</td>'."\n";
  457. echo ' </tr> '."\n";
  458. echo ' <tr id="premiumContentFakeEnclosureWrapper" '.$showPremiumOptions.'>'."\n";
  459. echo ' <th><label for="premiumContentFakeEnclosure">'.__('Use fake enclosure', 'podpress').':</label></th>'."\n";
  460. echo ' <td>'."\n";
  461. echo ' <input type="checkbox" name="premiumContentFakeEnclosure" id="premiumContentFakeEnclosure" '; if($this->settings['premiumContentFakeEnclosure']) { echo 'checked="checked"'; } echo "/>\n";
  462. echo ' </td>'."\n";
  463. echo ' <td>'.__('If you want the <a href="http://en.wikipedia.org/wiki/RSS_enclosure" target="_blank" title="en.Wikipedia: RSS enclosures">enclosures</a> (elements of the news feeds which contain usually links to the media files) to always exist (so the feed will show up in iTunes) then check this. A fake enclosure contains a place holder URL and not the real one.', 'podpress').'</td>'."\n";
  464. echo ' </tr> '."\n";
  465. }
  466. echo ' </table>'."\n";
  467. echo ' </fieldset>'."\n";
  468. echo ' <fieldset class="options">'."\n";
  469. echo ' <legend>'.__('Post Content', 'podpress').'</legend>'."\n";
  470. echo ' <table class="editform podpress_settings_table">'."\n";
  471. echo ' <tr>'."\n";
  472. echo ' <th><label for="contentLocation">'.__('Location:', 'podpress').'</label></th>'."\n";
  473. echo ' <td>'."\n";
  474. echo ' <select name="contentLocation" id="contentLocation">'."\n";
  475. echo ' <option value="start" '; if($this->settings['contentLocation'] == 'start') { echo 'selected="selected"'; } echo '>'.__('Start', 'podpress').'</option>'."\n";
  476. echo ' <option value="end" '; if($this->settings['contentLocation'] != 'start') { echo 'selected="selected"'; } echo '>'.__('End', 'podpress').'</option>'."\n";
  477. echo ' </select>'."\n";
  478. echo ' </td>'."\n";
  479. echo ' <td>'.__('Part of the Post where the podPress content (Player, and links) will go. Default is at the end.', 'podpress').'</td>'."\n";
  480. echo ' </tr> '."\n";
  481. echo ' <tr>'."\n";
  482. echo ' <th><label for="contentPlayer">'.__('Player:', 'podpress').'</label></th>'."\n";
  483. echo ' <td>'."\n";
  484. echo ' <select name="contentPlayer" id="contentPlayer">'."\n";
  485. echo ' <option value="both" '; if($this->settings['contentPlayer'] == 'both') { echo 'selected="selected"'; } echo '>'.__('Enabled', 'podpress').'</option>'."\n";
  486. echo ' <option value="inline" '; if($this->settings['contentPlayer'] == 'inline') { echo 'selected="selected"'; } echo '>'.__('Inline Only', 'podpress').'</option>'."\n";
  487. echo ' <option value="popup" '; if($this->settings['contentPlayer'] == 'popup') { echo 'selected="selected"'; } echo '>'.__('Popup Only', 'podpress').'</option>'."\n";
  488. echo ' <option value="disabled" '; if($this->settings['contentPlayer'] == 'disabled') { echo 'selected="selected"'; } echo '>'.__('Disabled', 'podpress').'</option>'."\n";
  489. echo ' </select>'."\n";
  490. echo ' </td>'."\n";
  491. echo ' <td>'.__('Allow users to make use of the web players for your content / Popup Only - Only the Popup Player is available and it is not possible to use the player in the posts. / Inline Only - The Popup player is not available and it is only possible to use the player in the posts.', 'podpress').'</td>'."\n";
  492. echo ' </tr> '."\n";
  493. echo ' <tr>'."\n";
  494. echo ' <th><label for="contentImage">'.__('Image:', 'podpress').'</label></th>'."\n";
  495. echo ' <td>'."\n";
  496. echo ' <select name="contentImage" id="contentImage">'."\n";
  497. echo ' <option value="button" '; if($this->settings['contentImage'] == 'button') { echo 'selected="selected"'; } echo '>'.__('Button', 'podpress').'</option>'."\n";
  498. echo ' <option value="icon" '; if($this->settings['contentImage'] == 'icon') { echo 'selected="selected"'; } echo '>'.__('Icon', 'podpress').'</option>'."\n";
  499. echo ' <option value="none" '; if($this->settings['contentImage'] == 'none') { echo 'selected="selected"'; } echo '>'.__('None', 'podpress').'</option>'."\n";
  500. echo ' </select>'."\n";
  501. echo ' </td>'."\n";
  502. echo ' <td>'.__('The image that shows up before links for the media file.', 'podpress').'</td>'."\n";
  503. echo ' </tr> '."\n";
  504. echo ' <tr>'."\n";
  505. echo ' <th><label for="contentHidePlayerPlayNow">'.__('Hide Player/Play Now:', 'podpress').'</label></th>'."\n";
  506. echo ' <td>'."\n";
  507. echo ' <select name="contentHidePlayerPlayNow" id="contentHidePlayerPlayNow">'."\n";
  508. echo ' <option value="enabled" '; if($this->settings['contentHidePlayerPlayNow'] == 'enabled') { echo 'selected="selected"'; } echo '>'.__('Show', 'podpress').'</option>'."\n";
  509. echo ' <option value="disabled" '; if($this->settings['contentHidePlayerPlayNow'] == 'disabled') { echo 'selected="selected"'; } echo '>'.__('Hide', 'podpress').'</option>'."\n";
  510. echo ' </select>'."\n";
  511. echo ' </td>'."\n";
  512. echo ' <td>'.__('Show the Hide Player/Play Now link', 'podpress').'</td>'."\n";
  513. echo ' </tr> '."\n";
  514. echo ' <tr>'."\n";
  515. echo ' <th><label for="contentDownload">'.__('Download:', 'podpress').'</label></th>'."\n";
  516. echo ' <td>'."\n";
  517. echo ' <select name="contentDownload" id="contentDownload">'."\n";
  518. echo ' <option value="enabled" '; if($this->settings['contentDownload'] == 'enabled') { echo 'selected="selected"'; } echo '>'.__('Enabled', 'podpress').'</option>'."\n";
  519. echo ' <option value="disabled" '; if($this->settings['contentDownload'] == 'disabled') { echo 'selected="selected"'; } echo '>'.__('Disabled', 'podpress').'</option>'."\n";
  520. echo ' </select>'."\n";
  521. echo ' </td>'."\n";
  522. echo ' <td>'.__('Allow users to download the media files directly from the website.', 'podpress').'</td>'."\n";
  523. echo ' </tr> '."\n";
  524. echo ' <tr>'."\n";
  525. echo ' <th><label for="contentDownloadText">'.__('Show Download Text:', 'podpress').'</label></th>'."\n";
  526. echo ' <td>'."\n";
  527. echo ' <select name="contentDownloadText" id="contentDownloadText">'."\n";
  528. echo ' <option value="enabled" '; if($this->settings['contentDownloadText'] == 'enabled') { echo 'selected="selected"'; } echo '>'.__('Enabled', 'podpress').'</option>'."\n";
  529. echo ' <option value="disabled" '; if($this->settings['contentDownloadText'] == 'disabled') { echo 'selected="selected"'; } echo '>'.__('Disabled', 'podpress').'</option>'."\n";
  530. echo ' </select>'."\n";
  531. echo ' </td>'."\n";
  532. echo ' <td>'.__('If disabled, users can still download using the icon link.', 'podpress').'</td>'."\n";
  533. echo ' </tr> '."\n";
  534. echo ' <tr>'."\n";
  535. echo ' <th><label for="contentDownloadStats">'.__('Show Download Stats:', 'podpress').'</label></th>'."\n";
  536. echo ' <td>'."\n";
  537. echo ' <select name="contentDownloadStats" id="contentDownloadStats">'."\n";
  538. echo ' <option value="enabled" '; if($this->settings['contentDownloadStats'] == 'enabled') { echo 'selected="selected"'; } echo '>'.__('Enabled', 'podpress').'</option>'."\n";
  539. echo ' <option value="disabled" '; if($this->settings['contentDownloadStats'] == 'disabled') { echo 'selected="selected"'; } echo '>'.__('Disabled', 'podpress').'</option>'."\n";
  540. echo ' </select>'."\n";
  541. echo ' </td>'."\n";
  542. echo ' <td>'.__('Display download stats for each media file for everyone to see at the end of the podPress line. This will cause a per…

Large files files are truncated, but you can click here to view the full file