Changeset 584654
- Timestamp:
- 08/12/2012 08:14:55 PM (14 years ago)
- Location:
- network-shared-posts
- Files:
-
- 12 added
- 3 edited
- 1 moved
-
tags/1.1.2 (added)
-
tags/1.1.2/language (added)
-
tags/1.1.2/language/netsposts-es_ES.mo (added)
-
tags/1.1.2/language/netsposts-es_ES.po (added)
-
tags/1.1.2/language/netsposts-ru_RU.mo (added)
-
tags/1.1.2/language/netsposts-ru_RU.po (added)
-
tags/1.1.2/language/netsposts.pot (added)
-
tags/1.1.2/net_shared_posts.css (added)
-
tags/1.1.2/network-shared-posts.php (added)
-
tags/1.1.2/readme.txt (added)
-
tags/1.1.2/screenshot-1.png (moved) (moved from network-shared-posts/tags/1.1.0/screenshot-1.png)
-
tags/1.1.2/screenshot-2.png (added)
-
tags/1.1.2/screenshot-3.png (added)
-
trunk/net_shared_posts.css (modified) (1 diff)
-
trunk/network-shared-posts.php (modified) (10 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
network-shared-posts/trunk/net_shared_posts.css
r581811 r584654 33 33 } 34 34 35 36 .netsposts-post-titles-only { 37 font-size:22px; 38 font-weight:lighter; 39 margin-bottom:5px; 40 display:block; 41 35 42 .netsposts-excerpt{ 36 43 font-size:13px; 37 font-family:Arial Narrow, Helvetica, Arial;38 44 text-align:justify; 39 45 line-height:120%; -
network-shared-posts/trunk/network-shared-posts.php
r584143 r584654 4 4 Plugin URI: http://code-ext.com/blog/2012/07/30/network-shared-posts/ 5 5 Description: Network Shared Posts plugin enables you to share posts over WP Multi Site network. You can display on any blog in your network the posts selected by taxanomy from any other blogs including that blog itself. 6 Version: 1.1. 16 Version: 1.1.2 7 7 Author: Code Ext 8 8 Author URI: https://code-ext.com … … 51 51 extract(shortcode_atts(array( 52 52 'limit' => '', 53 'days' => '0',53 'days' => 0, 54 54 'titles_only' => false, 55 55 'wrap_start' => null, … … 59 59 'include_blog' => null, 60 60 'exclude_blog' => null, 61 'taxonomy' => 'null',61 'taxonomy' => null, 62 62 'paginate' => false, 63 63 'pages' => null, 64 64 'list' => '10', 65 'excerpt_length' => '400',66 'auto_excerpt' => 'null',65 'excerpt_length' => 400, 66 'auto_excerpt' => false, 67 67 'show_author' => false, 68 68 'full_text' => false, … … 70 70 'image_class' => 'post-thumbnail', 71 71 'date_format' => 'n/j/Y', 72 'prev_next' => false, 72 73 'end_size' => '', 73 74 'mid_size' => '', … … 83 84 function get_net_shared_posts($limit, $days, $titles_only, $wrap_start, $wrap_end, $thumbnail, $post_type, $include_blog, $exclude_blog, $taxonomy, $paginate, $pages, $list, $excerpt_length, $auto_excerpt, $full_meta, $size , $image_class, $date_format, $full_text, $end_size, $mid_size, $prev, $next ) 84 85 { 85 86 $titles_only = strtolower($titles_only) == 'true'? true: false; 87 $thumbnail = strtolower($thumbnail) == 'true'? true: false; 88 $paginate = strtolower($paginate) == 'true'? true: false; 89 $auto_excerpt = strtolower($auto_excerpt) == 'true'? true: false; 90 $show_author = strtolower($show_author) == 'true'? true: false; 91 $full_text = strtolower($full_text) == 'true'? true: false; 92 $prev_next = strtolower($prev_next) == 'true'? true: false; 86 93 global $wpdb; 87 94 global $table_prefix; … … 149 156 if($tax_id) $taxonomy_arr[] = $tax_id; 150 157 } 151 }158 152 159 foreach($taxonomy_arr as $tax_id) 153 160 { … … 160 167 } 161 168 } 162 } 169 }} 163 170 164 171 if ($ids) { $ids = ' AND ('. substr($ids,0,strlen($ids)-2).')'; } … … 187 194 foreach($postdata as $key => $the_post) 188 195 { 189 $blog_details = get _blog_details( $the_post['blog_id']);196 $blog_details = get blog_details( $the_post['blog_id']); 190 197 $blog_name = $blog_details->blogname; 191 198 $blog_url = $blog_details->siteurl; 192 199 if($titles_only) $title_class = 'netsposts-titles-only'; else $title_class = 'netsposts-title'; 193 200 echo html_entity_decode($wrap_start).'<div class="netsposts-content"><span class="'.$title_class.'"><a href="'.$the_post['guid'].'">'.$the_post['post_title'].'</a></span> '; 194 if( !$titles_only)201 if($titles_only == 'false') 195 202 { 196 203 $date = new DateTime(trim($the_post['post_date'])); … … 200 207 if( $show_author) 201 208 { 202 echo ' ' . __('Author','netsposts'). ' ' . '<a href="'. get_blog_permalink($the_post['blog_id']).'/?author='. $the_post['post_author'] .'">'. get_the_author_meta( 'display_name' , $the_post['post_author'] ) . ' </a>';209 echo ' ' . __('Author','netsposts'). ' ' . '<a href="'.$blog_url .'?author='. $the_post['post_author'] .'">'. get_the_author_meta( 'display_name' , $the_post['post_author'] ) . ' </a>'; 203 210 } 204 211 echo '</span>'; … … 207 214 $width = explode('X',$size); 208 215 $width = $width[0] + 10; 209 echo '<a href="'.$th ispermalink.'">'.get_thumbnail_by_blog($the_post['blog_id'],$the_post['ID'],$size, $image_class).'</a><p class="netsposts-excerpt">';216 echo '<a href="'.$the_post['guid'].'">'.get_thumbnail_by_blog($the_post['blog_id'],$the_post['ID'],$size, $image_class).'</a><p class="netsposts-excerpt">'; 210 217 $the_post['post_content'] = preg_replace("/<img[^>]+\>/i", "", $the_post['post_content']); 211 218 } 212 if($auto_excerpt) $exerpt = get_excerpt($excerpt_length, $the_post['post_content'], $th ispermalink);219 if($auto_excerpt) $exerpt = get_excerpt($excerpt_length, $the_post['post_content'], $the_post['guid']); 213 220 else $exerpt = $the_post['post_excerpt']; 214 221 if($full_text) $text = $the_post['post_content']; else $text = $exerpt; 215 222 echo strip_shortcodes( $text); 216 } 217 echo '</p></div>'; 223 echo '</p>'; 224 } 225 echo '</div>'; 226 if($titles_only) echo "<br />"; 218 227 echo html_entity_decode($wrap_end); 219 228 } -
network-shared-posts/trunk/readme.txt
r584150 r584654 6 6 Requires at least: 3.0 7 7 Tested up to: 3.4.1 8 Stable tag: 1.1. 18 Stable tag: 1.1.2 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 25 25 == Screenshots == 26 26 1. Network Shared Posts in demo action 27 2. Admin Tool for short code (extended version only 28 3. Network Shared Posts Ext (extended version) in demo action (you can put custom menu on the left, content in 2 or more columns, custom title) 27 29 28 30 == Frequently Asked Questions == … … 51 53 =1.1.1=<br /> 52 54 Bug fixed.<br /> 55 =1.1.2=<br /> 56 auuthor link fixed.<br /> 57 image and '..more' links fixed.<br /> 58 taxonomy fix<br /> 59 Type of boolean arguments were sat<br /> 60 Some html issues when titles_only in use were fixed<br /> 61 prev_next ettribute was missed. Fixed. 53 62 54 63 == Upgrade Notice == 55 = 1.1. 1=56 Bugfixed.64 = 1.1.2= 65 Important update. Few bugs were fixed.
Note: See TracChangeset
for help on using the changeset viewer.