Plugin Directory

Changeset 441867


Ignore:
Timestamp:
09/22/2011 12:36:43 AM (14 years ago)
Author:
jboydston
Message:

new xml options

Location:
export-posts/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • export-posts/trunk/export-posts-admin.php

    r432332 r441867  
    108108                    $story .= $image_text;         
    109109                    $xml .= $image_xml;   
     110                }
     111               
     112                if ($_POST['comment_count']) {
     113                    $comment_count = wp_count_comments($row->ID);
     114                    $xml .= "<comments>" . $comment_count->total_comments . "</comments>\n";
     115                }
     116               
     117                if ($_POST['short_link']) {
     118                    $xml .= "<shortlink>" . wp_get_shortlink($row->ID) . "</shortlink>\n";
     119                }
     120               
     121                if ($_POST['e_section_quote']) {
     122                    $quote = get_post_meta($row->ID, 'e-sec-quote', true);
     123                    $mxl .= "<e-sec-quote>" . $quote . "</e-sec-quote>\n";
    110124                }
    111125               
     
    273287            <input type="checkbox" name="photo" value="1"/> Feature Photo
    274288        </p>
    275        
     289        <p class="xml_only" style="display: none;">
     290            <input type="checkbox" name="comment_count" value="1"/> Comment Count
     291            <input type="checkbox" name="e_section_quote" value="1"/> E-Section Quote
     292            <input type="checkbox" name="short_link" value="1"/> Short Link
     293           
     294        </p>
    276295        <p style="text-align: center; width: 750px;">
    277296            <input type="hidden" id="selected_values" name="selected_values" value="0"/>
     
    393412        });
    394413       
     414        jQuery("input[name='output']").change(function() {
     415            if (jQuery("input[name='output']:checked").val() == 'xml') {
     416                jQuery('.xml_only').show();
     417            } else {
     418                jQuery('.xml_only').hide();
     419                jQuery("input[name='comment_count']").removeAttr("checked");
     420                jQuery("input[name='e_section_quote']").removeAttr("checked");
     421                jQuery("input[name='short_link']").removeAttr("checked");
     422               
     423            }
     424        });
     425
    395426    });
    396427</script>
  • export-posts/trunk/export-posts.php

    r432332 r441867  
    55Description: Plugin is for dumping articles to a zip file
    66Author: Joe Boydston
    7 Version: 1.3.1
     7Version: 1.3.2
    88Author URI: http://joeboydston.com
    99*/
  • export-posts/trunk/readme.txt

    r441852 r441867  
    55Requires at least: 2.9.1
    66Tested up to: 3.0.1
    7 Stable Tag: 1.3.1
     7Stable Tag: 1.3.2
    88
    99Plugin for WordPress that exports text files for print publication.
     
    4444== Changelog ==
    4545
     46= 1.3.2 =
     47Added new XML export options (comment count, e-section quote, short link)
     48
    4649= 1.3.1 =
    4750Added total inches to selected stories
Note: See TracChangeset for help on using the changeset viewer.