Ticket #1073: podpress_admin_feed_class_1073.3.patch
| File podpress_admin_feed_class_1073.3.patch, 11.3 KB (added by ntm, 2 years ago) |
|---|
-
podpress_admin_feed_class.php
104 104 echo ' <td width="50%">'; 105 105 echo ' <label for="blogname"><strong>'.__('Blog/Podcast title', 'podpress').'</strong></label>'; 106 106 echo ' <br/>'; 107 echo ' <input type="text" id="blogname" name="blogname" size="40" value="'.htmlentities(get_option('blogname'), ENT_QUOTES, $blog_charset).'" onchange="podPress_updateFeedSettings();" /><br />'.__('Used for both Blog and Podcast.', 'podpress') ;107 echo ' <input type="text" id="blogname" name="blogname" size="40" value="'.htmlentities(get_option('blogname'), ENT_QUOTES, $blog_charset).'" onchange="podPress_updateFeedSettings();" /><br />'.__('Used for both Blog and Podcast.', 'podpress').' <em class="message error">'.sprintf(__('Changes here will affect %1$s!', 'podpress'),__('the blog title', 'podpress')).'</em>'; 108 108 echo ' </td>'."\n"; 109 109 echo ' </tr>'."\n"; 110 110 … … 119 119 echo ' <label for="blogdescription"><strong>'.__('Blog Description', 'podpress').'</strong></label>'; 120 120 echo ' <br/>'; 121 121 echo ' <textarea id="blogdescription" name="blogdescription" rows="4" cols="40" onchange="podPress_updateFeedSettings();">'.htmlentities(stripslashes(get_option('blogdescription')), ENT_QUOTES, $blog_charset).'</textarea>'; 122 echo ' <br/>'.__('Standard feed description.', 'podpress'). "\n";122 echo ' <br/>'.__('Standard feed description.', 'podpress').' <em class="message error">'.sprintf(__('Changes here will affect %1$s!', 'podpress'),__('the blog description', 'podpress')).'</em>'."\n"; 123 123 echo ' </td>'."\n"; 124 124 echo ' </tr>'."\n"; 125 125 … … 127 127 echo ' <td width="50%">'."\n"; 128 128 echo ' <label for="iTunesImage"><strong>'.__('iTunes:Image', 'podpress').'</strong></label>'; 129 129 echo ' <br/>'; 130 echo ' '.__('The iTunes image should be a square image with <a href="http://www.apple.com/itunes/podcasts/specs.html#image" target="_blank">at least 600 x 600 pixels</a> as Apple writes ( 2009) in "<a href="http://www.apple.com/itunes/podcasts/specs.html" target="_blank">Making a Podcast</a>" of their own Podcasting Resources. In the past 300 x 300 pixels were recommended. iTunes supports JPEG and PNG images (the file name extensions should ".jpg" or ".png").', 'podpress')."\n";130 echo ' '.__('The iTunes image should be a square image with <a href="http://www.apple.com/itunes/podcasts/specs.html#image" target="_blank">at least 600 x 600 pixels</a> as Apple writes (01/2010) in "<a href="http://www.apple.com/itunes/podcasts/specs.html" target="_blank">Making a Podcast</a>" of their own Podcasting Resources. In the "<a href="http://www.apple.com/itunes/podcasts/creatorfaq.html" target="_blank">FAQs: For Podcast Makers</a>" 300 x 300 pixels are recommended by Apple. iTunes supports JPEG and PNG images (the file name extensions should ".jpg" or ".png").', 'podpress')."\n"; 131 131 echo ' <br/>'; 132 132 echo ' <input id="iTunesImage" type="text" name="iTunes[image]" value="'.$this->settings['iTunes']['image'].'" size="40" onchange="podPress_updateFeedSettings();"/>'."\n"; 133 133 echo ' <br />'; … … 152 152 echo ' <td width="50%">'; 153 153 echo ' <label for="admin_email"><strong>'.__('Owner E-mail address', 'podpress').'</strong></label>'; 154 154 echo ' <br/>'; 155 echo ' <input name="admin_email" type="text" id="admin_email" value="'.htmlentities(stripslashes(get_option('admin_email')), ENT_QUOTES, $blog_charset).'" size="40" /> ';155 echo ' <input name="admin_email" type="text" id="admin_email" value="'.htmlentities(stripslashes(get_option('admin_email')), ENT_QUOTES, $blog_charset).'" size="40" /><br /><em class="message error">'.sprintf(__('Changes here will affect %1$s!', 'podpress'),__('the email address of the blog admin', 'podpress')).'</em>'; 156 156 echo ' </td>'."\n"; 157 157 echo ' </tr>'."\n"; 158 158 … … 164 164 echo ' <br/>'.__('Used as default Podcast Episode Title', 'podpress').' (255 '.__('characters', 'podpress').')'."\n"; 165 165 echo ' </td>'."\n"; 166 166 echo ' <td width="50%">'; 167 echo ' <label for="rss_language"><strong>'.__('Language ', 'podpress').'</strong></label>';167 echo ' <label for="rss_language"><strong>'.__('Language of the News Feed content', 'podpress').'</strong></label>'; 168 168 echo ' <br/>'; 169 169 echo ' <select id="rss_language" name="rss_language" onchange="podPress_updateFeedSettings();">'."\n"; 170 170 echo ' <optgroup label="'.__('Select Language', 'podpress').'">'."\n"; 171 171 podPress_itunesLanguageOptions(get_option('rss_language')); 172 172 echo ' </optgroup>'."\n"; 173 echo ' </select>'."\n" ;173 echo ' </select>'."\n".'<br /><em class="message error">'.sprintf(__('Changes here will affect %1$s!', 'podpress'),__('the language of the main feeds of this blog', 'podpress')).'</em> <em>'.__('(This select box is not the only but probably the most comfortable way to change this option. So change it back if you do not want to use this plugin anymore.)', 'podpress').'</em>'; 174 174 echo ' </td>'."\n"; 175 175 echo ' </tr>'."\n"; 176 176 … … 182 182 echo ' <br/>('.__('Comma seperated list', 'podpress').', '.__('max 8', 'podpress').')'; 183 183 echo ' </td>'."\n"; 184 184 echo ' <td width="50%">'; 185 echo ' <label for="rss_showlinks"><strong>'.__('Show Download Links in RSS Encoded Content', 'podpress').'</strong></label>';186 echo ' <br/>';187 echo ' <select name="rss_showlinks" id="rss_showlinks">'."\n";188 echo ' <option value="yes" '; if($this->settings['rss_showlinks'] == 'yes') { echo 'selected="selected"'; } echo '>'.__('Yes', 'podpress').'</option>'."\n";189 echo ' <option value="no" '; if($this->settings['rss_showlinks'] != 'yes') { echo 'selected="selected"'; } echo '>'.__('No', 'podpress').'</option>'."\n";190 echo ' </select>'."\n";191 echo ' <br/>'.__('Yes will put download links in the RSS encoded content. That means users can download from any site displaying the link.', 'podpress')."\n";185 //~ echo ' <label for="rss_showlinks"><strong>'.__('Show Download Links in RSS Encoded Content', 'podpress').'</strong></label>'; 186 //~ echo ' <br/>'; 187 //~ echo ' <select name="rss_showlinks" id="rss_showlinks">'."\n"; 188 //~ echo ' <option value="yes" '; if($this->settings['rss_showlinks'] == 'yes') { echo 'selected="selected"'; } echo '>'.__('Yes', 'podpress').'</option>'."\n"; 189 //~ echo ' <option value="no" '; if($this->settings['rss_showlinks'] != 'yes') { echo 'selected="selected"'; } echo '>'.__('No', 'podpress').'</option>'."\n"; 190 //~ echo ' </select>'."\n"; 191 //~ echo ' <br/>'.__('Yes will put download links in the RSS encoded content. That means users can download from any site displaying the link.', 'podpress')."\n"; 192 192 echo ' </td>'."\n"; 193 193 echo ' </tr>'."\n"; 194 194 … … 229 229 echo ' <option value="Yes" '; if($this->settings['iTunes']['explicit'] == 'Yes') { echo 'selected="selected"'; } echo '>'.__('Yes', 'podpress').'</option>'."\n"; 230 230 echo ' <option value="Clean" '; if($this->settings['iTunes']['explicit'] == 'Clean') { echo 'selected="selected"'; } echo '>'.__('Clean', 'podpress').'</option>'."\n"; 231 231 echo ' </select>'."\n"; 232 echo ' <br/>'.__('Sets the parental advisory graphic in name column.', 'podpress')."\n"; 232 echo ' <br/>'.__('Setting to indicate whether or not your podcast contains explicit material', 'podpress')."\n"; 233 echo ' <br/>'.__('"No" (default) - no indicator will show up', 'podpress')."\n"; 234 echo ' <br/>'.__('"Yes" - an "EXPLICIT" parental advisory graphic will appear next to your podcast artwork or name in iTunes', 'podpress')."\n"; 235 echo ' <br/>'.__('"Clean" - means that you are sure that no explicit language or adult content is included any of the episodes, and a "CLEAN" graphic will appear', 'podpress')."\n"; 236 echo ' <p>'.__('You can also use such an option for each of your podcast episodes (in the post/page editor).', 'podpress').'</p>'."\n"; 233 237 echo ' </td>'."\n"; 234 238 echo ' <td width="50%">'."\n"; 235 239 echo ' <label for="rss_copyright"><strong>'.__('Feed Copyright / license name', 'podpress').'</strong></label>'; … … 262 266 echo ' <td width="50%">'; 263 267 echo ' <label for="posts_per_rss"><strong>'.__('Show the most recent', 'podpress').'</strong></label>'; 264 268 echo ' <br/>'; 265 echo ' <input type="text" id="posts_per_rss" name="posts_per_rss" size="3" value="'.htmlentities(get_option('posts_per_rss'), ENT_QUOTES, $blog_charset).'" /> '.__('posts', 'podpress') ;269 echo ' <input type="text" id="posts_per_rss" name="posts_per_rss" size="3" value="'.htmlentities(get_option('posts_per_rss'), ENT_QUOTES, $blog_charset).'" /> '.__('posts', 'podpress').'<br />'.'<em class="message error">'.sprintf(__('Changes here will affect %1$s!', 'podpress'),sprintf(__('the same value as on the %1$s page', 'podpress'), __('Reading Settings'))).'</em>'; 266 270 echo ' </td>'."\n"; 267 271 echo ' </tr>'."\n"; 268 272 … … 275 279 echo ' <option value="Yes" '; if($this->settings['iTunes']['block'] == 'Yes') { echo 'selected="selected"'; } echo '>'.__('Yes', 'podpress').'</option>'."\n"; 276 280 echo ' </select>'."\n"; 277 281 echo ' <br/>'.__('Use this if you are no longer creating a podcast and you want it removed from iTunes.', 'podpress')."\n"; 282 echo ' <br/>'.__('"No" (default) - the podcast appears in the iTunes Podcast directory', 'podpress')."\n"; 283 echo ' <br/>'.__('"Yes" - prevent the entire podcast from appearing in the iTunes Podcast directory', 'podpress')."\n"; 284 echo ' <p>'.__('You can also use such an option for each of your podcast episodes (in the post/page editor).', 'podpress').'</p>'."\n"; 285 278 286 echo ' </td>'."\n"; 279 287 echo ' <td width="50%">'; 280 288 echo ' <label for="blog_charset"><strong>'.__('Encoding for pages and feeds', 'podpress').'</strong></label>'; 281 289 echo ' <br/>'; 282 echo ' <input type="text" id="blog_charset" name="blog_charset" size="20" value="'.htmlentities($blog_charset, ENT_QUOTES, $blog_charset).'" /><br />'.__('The character encoding you write your blog in', 'podpress').' ('.__('UTF-8 is', 'podpress').' <a href="http://developer.apple.com/documentation/macos8/TextIntlSvcs/TextEncodingConversionManager/TEC1.5/TEC.b0.html" target="_new">'.__('recommended', 'podpress').'</a>)' ;290 echo ' <input type="text" id="blog_charset" name="blog_charset" size="20" value="'.htmlentities($blog_charset, ENT_QUOTES, $blog_charset).'" /><br />'.__('The character encoding you write your blog in', 'podpress').' ('.__('UTF-8 is', 'podpress').' <a href="http://developer.apple.com/documentation/macos8/TextIntlSvcs/TextEncodingConversionManager/TEC1.5/TEC.b0.html" target="_new">'.__('recommended', 'podpress').'</a>)'.' <em class="message error">'.sprintf(__('Changes here will affect %1$s!', 'podpress'),sprintf(__('the same value as on the %1$s page', 'podpress'), __('Reading Settings'))).'</em>'; 283 291 echo ' </td>'."\n"; 284 292 echo ' </tr>'."\n"; 285 293 … … 324 332 325 333 if(is_array($_POST['iTunes']['category'])) { 326 334 foreach ($_POST['iTunes']['category'] as $value) { 327 if( $value != '#') {335 if('#' != $value AND '[ '.__('nothing', 'podpress').' ]' != $value) { 328 336 $iTunesSettings['category'][] = $value; 329 337 } 330 338 }
