Changeset 441867
- Timestamp:
- 09/22/2011 12:36:43 AM (14 years ago)
- Location:
- export-posts/trunk
- Files:
-
- 3 edited
-
export-posts-admin.php (modified) (3 diffs)
-
export-posts.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
export-posts/trunk/export-posts-admin.php
r432332 r441867 108 108 $story .= $image_text; 109 109 $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"; 110 124 } 111 125 … … 273 287 <input type="checkbox" name="photo" value="1"/> Feature Photo 274 288 </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> 276 295 <p style="text-align: center; width: 750px;"> 277 296 <input type="hidden" id="selected_values" name="selected_values" value="0"/> … … 393 412 }); 394 413 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 395 426 }); 396 427 </script> -
export-posts/trunk/export-posts.php
r432332 r441867 5 5 Description: Plugin is for dumping articles to a zip file 6 6 Author: Joe Boydston 7 Version: 1.3. 17 Version: 1.3.2 8 8 Author URI: http://joeboydston.com 9 9 */ -
export-posts/trunk/readme.txt
r441852 r441867 5 5 Requires at least: 2.9.1 6 6 Tested up to: 3.0.1 7 Stable Tag: 1.3. 17 Stable Tag: 1.3.2 8 8 9 9 Plugin for WordPress that exports text files for print publication. … … 44 44 == Changelog == 45 45 46 = 1.3.2 = 47 Added new XML export options (comment count, e-section quote, short link) 48 46 49 = 1.3.1 = 47 50 Added total inches to selected stories
Note: See TracChangeset
for help on using the changeset viewer.