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)

this patch contains only some additional changes for podpress_admin_feed_class.php. Please apply additional_explanations_feed_settings.patch and then this one.

  • podpress_admin_feed_class.php

     
    104104                        echo '                          <td width="50%">'; 
    105105                        echo '                                  <label for="blogname"><strong>'.__('Blog/Podcast title', 'podpress').'</strong></label>'; 
    106106                        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>'; 
    108108                        echo '                          </td>'."\n"; 
    109109                        echo '                  </tr>'."\n"; 
    110110 
     
    119119                        echo '                                  <label for="blogdescription"><strong>'.__('Blog Description', 'podpress').'</strong></label>'; 
    120120                        echo '                                  <br/>'; 
    121121                        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"; 
    123123                        echo '                          </td>'."\n"; 
    124124                        echo '                  </tr>'."\n"; 
    125125 
     
    127127                        echo '                          <td width="50%">'."\n"; 
    128128                        echo '                                  <label for="iTunesImage"><strong>'.__('iTunes:Image', 'podpress').'</strong></label>'; 
    129129                        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"; 
    131131                        echo '                                  <br/>'; 
    132132                        echo '                                  <input id="iTunesImage" type="text" name="iTunes[image]" value="'.$this->settings['iTunes']['image'].'" size="40" onchange="podPress_updateFeedSettings();"/>'."\n"; 
    133133                        echo '                                  <br />'; 
     
    152152                        echo '                          <td width="50%">'; 
    153153                        echo '                                  <label for="admin_email"><strong>'.__('Owner E-mail address', 'podpress').'</strong></label>'; 
    154154                        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>'; 
    156156                        echo '                          </td>'."\n"; 
    157157                        echo '                  </tr>'."\n"; 
    158158 
     
    164164                        echo '                                  <br/>'.__('Used as default Podcast Episode Title', 'podpress').' (255 '.__('characters', 'podpress').')'."\n"; 
    165165                        echo '                          </td>'."\n"; 
    166166                        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>'; 
    168168                        echo '                                  <br/>'; 
    169169                        echo '                                  <select id="rss_language" name="rss_language" onchange="podPress_updateFeedSettings();">'."\n"; 
    170170                        echo '                                          <optgroup label="'.__('Select Language', 'podpress').'">'."\n"; 
    171171                        podPress_itunesLanguageOptions(get_option('rss_language')); 
    172172                        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>'; 
    174174                        echo '                          </td>'."\n"; 
    175175                        echo '                  </tr>'."\n"; 
    176176 
     
    182182                        echo '                                  <br/>('.__('Comma seperated list', 'podpress').', '.__('max 8', 'podpress').')'; 
    183183                        echo '                          </td>'."\n"; 
    184184                        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"; 
    192192                        echo '                          </td>'."\n"; 
    193193                        echo '                  </tr>'."\n"; 
    194194 
     
    229229                        echo '                                          <option value="Yes" '; if($this->settings['iTunes']['explicit'] == 'Yes') { echo 'selected="selected"'; } echo '>'.__('Yes', 'podpress').'</option>'."\n"; 
    230230                        echo '                                          <option value="Clean" '; if($this->settings['iTunes']['explicit'] == 'Clean') { echo 'selected="selected"'; } echo '>'.__('Clean', 'podpress').'</option>'."\n"; 
    231231                        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"; 
    233237                        echo '                          </td>'."\n"; 
    234238                        echo '                          <td width="50%">'."\n"; 
    235239                        echo '                                  <label for="rss_copyright"><strong>'.__('Feed Copyright / license name', 'podpress').'</strong></label>'; 
     
    262266                        echo '                          <td width="50%">'; 
    263267                        echo '                                  <label for="posts_per_rss"><strong>'.__('Show the most recent', 'podpress').'</strong></label>'; 
    264268                        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>'; 
    266270                        echo '                          </td>'."\n"; 
    267271                        echo '                  </tr>'."\n"; 
    268272 
     
    275279                        echo '                                          <option value="Yes" '; if($this->settings['iTunes']['block'] == 'Yes') { echo 'selected="selected"'; } echo '>'.__('Yes', 'podpress').'</option>'."\n"; 
    276280                        echo '                                  </select>'."\n"; 
    277281                        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                         
    278286                        echo '                          </td>'."\n"; 
    279287                        echo '                          <td width="50%">'; 
    280288                        echo '                                  <label for="blog_charset"><strong>'.__('Encoding for pages and feeds', 'podpress').'</strong></label>'; 
    281289                        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>'; 
    283291                        echo '                          </td>'."\n"; 
    284292                        echo '                  </tr>'."\n"; 
    285293 
     
    324332 
    325333                                if(is_array($_POST['iTunes']['category'])) { 
    326334                                        foreach ($_POST['iTunes']['category'] as $value) { 
    327                                                 if($value != '#') { 
     335                                                if('#' != $value AND '[ '.__('nothing', 'podpress').' ]' != $value) { 
    328336                                                        $iTunesSettings['category'][] = $value; 
    329337                                                } 
    330338                                        }