WordPress.org

Plugin Directory

Changeset 586206


Ignore:
Timestamp:
08/16/12 12:46:43 (20 months ago)
Author:
ntm
Message:

8.8.10.14 beta 23

Location:
podpress/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • podpress/trunk/podpress.php

    r583579 r586206  
    11<?php 
    2 define('PODPRESS_VERSION', '8.8.10.14 beta 22'); 
     2define('PODPRESS_VERSION', '8.8.10.14 beta 23'); 
    33/* 
    44Info for WordPress: 
    55============================================================================== 
    66Plugin Name: podPress 
    7 Version: 8.8.10.14 beta 22 
     7Version: 8.8.10.14 beta 23 
    88Plugin URI: http://www.mightyseek.com/podpress/ 
    99Description: The podPress plugin gives you everything you need in one easy plugin to use WordPress for Podcasting. Set it up in <a href="admin.php?page=podpress/podpress_feed.php">'podPress'->Feed/iTunes Settings</a>. If this plugin works for you, send us a comment. 
  • podpress/trunk/podpress_admin_feed_class.php

    r560585 r586206  
    340340            echo '              </th>'."\n"; 
    341341            echo '              <td colspan="2">'."\n"; 
    342             echo '                  <input type="text" name="rss_license_url" id="rss_license_url" class="podpress_wide_text_field" class="podpress_wide_text_input_field" value="'.attribute_escape($this->settings['rss_license_url']).'" size="65" />'."\n"; 
     342            echo '                  <input type="text" name="rss_license_url" id="rss_license_url" class="podpress_wide_text_field podpress_wide_text_input_field" value="'.attribute_escape($this->settings['rss_license_url']).'" size="65" />'."\n"; 
    343343            echo '                  <br />'.__('If you use a special license like a <a href="http://creativecommons.org/licenses" target="_blank" title="Creative Commons">Creative Commons</a> License for your news feeds then enter the complete URL (e.g. <a href="http://creativecommons.org/licenses/by-nc-sa/2.5/" target="_blank">http://creativecommons.org/licenses/by-nc-sa/2.5/</a>) to the full text of this particular license here.', 'podpress')."<br />\n"; 
    344344            echo '                  <p>'.__('Notice: You can set post specific license URLs and names by defining two custom fields per post. One with the name <strong>podcast_episode_license_name</strong> and one custom field with the name <strong>podcast_episode_license_url</strong>. If you want to set post specific values then it is necessary to define at least the custom field with the URL. If the license name is not defined then the name will be the URL.', 'podpress').'</p>';            
     345            echo '              </td>'."\n"; 
     346            echo '          </tr>'."\n"; 
     347             
     348            echo '          <tr>'."\n"; 
     349            echo '              <th>'."\n"; 
     350            echo '                  <label for="print_podpress_in_contentencoded">'.sprintf(__('Print podPress elements into the %1$s tags', 'podpress'), '<code>&lt;content:encoded&gt;</code>').'</label>'; 
     351            echo '              </th>'."\n"; 
     352            echo '              <td>'."\n"; 
     353            if (TRUE === isset($this->settings['print_podpress_in_contentencoded']) AND TRUE == $this->settings['print_podpress_in_contentencoded']) { 
     354                echo '                  <input type="radio" name="print_podpress_in_contentencoded" id="print_podpress_in_contentencoded_yes" value="yes" checked="checked" /><label for="print_podpress_in_contentencoded_yes">'.__('yes', 'podpress').'</label><br />'."\n"; 
     355                echo '                  <input type="radio" name="print_podpress_in_contentencoded" id="print_podpress_in_contentencoded_no" value="no" /><label for="print_podpress_in_contentencoded_no">'.__('no', 'podpress').'</label>'."\n"; 
     356            } else { 
     357                echo '                  <input type="radio" name="print_podpress_in_contentencoded" id="print_podpress_in_contentencoded_yes" value="yes" /><label for="print_podpress_in_contentencoded_yes">'.__('yes', 'podpress').'</label><br />'."\n"; 
     358                echo '                  <input type="radio" name="print_podpress_in_contentencoded" id="print_podpress_in_contentencoded_no" value="no" checked="checked" /><label for="print_podpress_in_contentencoded_no">'.__('no', 'podpress').'</label>'."\n"; 
     359            } 
     360            echo '              </td>'."\n"; 
     361            echo '              <td>'."\n"; 
     362            echo '                  '.sprintf(__('Print the podPress elements to the %1$s section of the %2$s of the RSS feeds. BETA version: This option inlfuences all feeds of the blog and not only the default feeds. (later version of podPress will probably contain such an option for each podPress Feed and the default feeds.)', 'podpress'), '<code>&lt;content:encoded&gt;</code>', '<code>&lt;item&gt;</code>')."<br />\n"; 
    345363            echo '              </td>'."\n"; 
    346364            echo '          </tr>'."\n"; 
     
    906924                $this->settings['rss_license_url'] = clean_url($_POST['rss_license_url'], array('http', 'https'), 'db'); 
    907925            } 
     926            if ( isset($_POST['print_podpress_in_contentencoded']) AND 'yes' == $_POST['print_podpress_in_contentencoded'] ) { 
     927                $this->settings['print_podpress_in_contentencoded'] = TRUE; 
     928            } 
     929             
    908930            //~ if( isset($_POST['protectFeed']) AND 'yes' == strtolower($_POST['protectFeed']) ) { 
    909931                //~ $this->settings['protectFeed'] = 'Yes'; 
  • podpress/trunk/podpress_class.php

    r561378 r586206  
    10691069 
    10701070        function insert_content($content = '', $is_the_excerpt = FALSE) { 
    1071             GLOBAL $post, $podPressTemplateData, $podPressTemplateUnauthorizedData, $wpdb, $wp_version; 
     1071            GLOBAL $post, $podPressTemplateData, $podPressTemplateUnauthorizedData, $wpdb, $wp_version, $podpress_is_itunessubtitle_or_summary, $podPress; 
    10721072            if ( !empty($post->post_password) ) { // if there's a password 
    10731073            //~ printphpnotices_var_dump('post has a password'); 
     
    10911091            } 
    10921092            $this->isexcerpt = FALSE; 
     1093             
     1094            //~ if ( isset($podpress_is_itunessubtitle_or_summary) ) { 
     1095                //~ printphpnotices_var_dump('podpress_is_itunessubtitle_or_summary exists'); 
     1096                //~ if ( TRUE === $podpress_is_itunessubtitle_or_summary ) { 
     1097                    //~ printphpnotices_var_dump('podpress_is_itunessubtitle_or_summary : TRUE'); 
     1098                //~ } else { 
     1099                    //~ printphpnotices_var_dump('podpress_is_itunessubtitle_or_summary : FALSE'); 
     1100                //~ } 
     1101            //~ } else { 
     1102                //~ printphpnotices_var_dump('podpress_is_itunessubtitle_or_summary does not exist'); 
     1103            //~ } 
     1104 
    10931105            if ( isset($this->tempcontentaddedto[$post->ID]) ) { 
    10941106                if ( is_feed() ) { 
    1095                     return str_replace($this->podcasttag,'',$content); 
     1107                //~ printphpnotices_var_dump('A:'); 
     1108                //~ printphpnotices_var_dump($print_podpress_elements_in_contentencoded); 
     1109                //~ printphpnotices_var_dump(isset($podpress_is_itunessubtitle_or_summary)); 
     1110                //~ printphpnotices_var_dump($podpress_is_itunessubtitle_or_summary); 
     1111                    if ( FALSE === isset($podPress->settings['print_podpress_in_contentencoded']) OR FALSE === $podPress->settings['print_podpress_in_contentencoded'] OR (TRUE === isset($podpress_is_itunessubtitle_or_summary) AND TRUE === $podpress_is_itunessubtitle_or_summary) ) { 
     1112                        return str_replace($this->podcasttag,'',$content); 
     1113                    } else { 
     1114                        return $content; 
     1115                    } 
    10961116                } else { 
    10971117                    return $content; 
     
    11021122             
    11031123            if ( is_feed() ) { 
    1104                 return str_replace($this->podcasttag, '', $content); 
     1124                //~ printphpnotices_var_dump('B:'); 
     1125                //~ printphpnotices_var_dump($print_podpress_elements_in_contentencoded); 
     1126                //~ printphpnotices_var_dump(isset($podpress_is_itunessubtitle_or_summary)); 
     1127                //~ printphpnotices_var_dump($podpress_is_itunessubtitle_or_summary); 
     1128                if ( FALSE === isset($podPress->settings['print_podpress_in_contentencoded']) OR FALSE === $podPress->settings['print_podpress_in_contentencoded'] OR (TRUE === isset($podpress_is_itunessubtitle_or_summary) AND TRUE === $podpress_is_itunessubtitle_or_summary) ) { 
     1129                    return str_replace($this->podcasttag, '', $content); 
     1130                } 
    11051131            } 
    11061132 
     
    13551381        } 
    13561382         
     1383         
    13571384        /** 
    13581385        * feed_excerpt_filter - a function to filter the excerpt content (mainly to remove the podPress shortcode which is not desired in feed elements) 
  • podpress/trunk/podpress_feed_functions.php

    r564803 r586206  
    308308                echo $enclosureTag; 
    309309            } 
     310global $podpress_is_itunessubtitle_or_summary; 
     311$podpress_is_itunessubtitle_or_summary = TRUE; 
    310312            if ( $post->podPressPostSpecific['itunes:subtitle'] == '##PostExcerpt##' ) { 
    311313                if ( TRUE === $is_password_protected ) { 
     
    347349                break; 
    348350            } 
     351$podpress_is_itunessubtitle_or_summary = FALSE; 
    349352             
    350353            if ( FALSE == empty($post->podPressPostSpecific['itunes:summary']) ) { 
  • podpress/trunk/readme.txt

    r583579 r586206  
    7171* beta 21: podPress uses cURL by default (if it is available) to retrieve file size, duration and ID3 informations 
    7272* beta 22: the folder /optional_files contains now a further mini plugin which makes it possible to use podPress and the plugin WP e-Commerce at the same time 
     73* beta 23: new option which makes it possible to include the code of the podPress post elements into the content:encoded sections 
    7374 
    7475= v8.8.10.13 = 
Note: See TracChangeset for help on using the changeset viewer.