Changeset 203320
- Timestamp:
- 02/08/2010 07:34:46 PM (16 years ago)
- Location:
- blog-in-blog/trunk
- Files:
-
- 4 edited
-
bib_post_template.tpl (modified) (1 diff)
-
blog-in-blog.php (modified) (5 diffs)
-
options.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
blog-in-blog/trunk/bib_post_template.tpl
r202589 r203320 1 <!--fragment of html for post template blog-in-blog Version: 0.9. 4-->1 <!--fragment of html for post template blog-in-blog Version: 0.9.5 --> 2 2 <div class="post"> 3 3 <!-- Post Headline --> -
blog-in-blog/trunk/blog-in-blog.php
r202589 r203320 5 5 Plugin URI: http://informationtakesover.co.uk/blog-in-blog-wordpress-plugin/ 6 6 Description: Create a blog within a blog using a category. This plugin basically shows posts in a category on a page using shortcodes. 7 Version: 0.9. 47 Version: 0.9.5 8 8 Author: Tim Hodson 9 9 Author URI: http://timhodson.com … … 119 119 120 120 $data['post_content'] = apply_filters('the_content', $post->post_content); 121 122 $data['post_excerpt'] = apply_filters('the_excerpt', bib_process_excerpt($post) ); 123 121 124 $data['post_permalink'] = apply_filters('the_permalink', get_permalink($post)); 122 125 $data['post_comments'] = bib_process_comments($post->comment_status, $post->comment_count, $data['post_permalink']); … … 184 187 // get template string from options 185 188 if( file_exists( $blog_in_blog_opts['bib_post_template'] ) ) { 189 186 190 $template = file_get_contents( $blog_in_blog_opts['bib_post_template'] ); 191 192 // post id 187 193 $template = str_replace("%post_id%", $data['post_id'], $template); 188 194 195 // dates 189 196 $template = str_replace("%post_date%", $data['post_date'], $template); 190 197 $template = str_replace("%post_time%", $data['post_time'], $template); … … 197 204 $template = str_replace("%post_yr%", $data['post_yr'], $template); 198 205 $template = str_replace("%post_title%", $data['post_title'], $template); 199 206 207 // author 200 208 $template = str_replace("%post_author%", $data['post_author'], $template); 201 209 $template = str_replace("%post_author_avatar%", $data['post_author_avatar'], $template); 202 210 211 // content 203 212 $template = str_replace("%post_content%", $data['post_content'], $template); 213 $template = str_replace("%post_excerpt%", $data['post_excerpt'] , $template); 214 215 // post meta 204 216 $template = str_replace("%post_permalink%", $data['post_permalink'], $template); 205 217 $template = str_replace("%post_categories%", $data['post_categories'], $template); … … 302 314 303 315 } 316 317 function bib_process_excerpt($post) { 318 319 //var_dump($post); 320 $output = $post->post_excerpt; 321 322 if ( post_password_required($post) ) { 323 $output = __('There is no excerpt because this is a protected post.'); 324 return $output; 325 } 326 327 return apply_filters('get_the_excerpt', $output); 328 } 329 304 330 305 331 /** -
blog-in-blog/trunk/options.php
r202589 r203320 75 75 76 76 function blog_in_blog_menu() { 77 add_ menu_page('Blog-in-Blog Options', 'Blog-in-Blog', 8, __FILE__ , 'blog_in_blog_options', 'favicon.ico');77 add_options_page('Blog-in-Blog Options', 'Blog-in-Blog', 8, __FILE__ , 'blog_in_blog_options', 'favicon.ico'); 78 78 add_action( 'admin_init', 'register_bib_settings' ); 79 79 } -
blog-in-blog/trunk/readme.txt
r202589 r203320 5 5 Requires at least: 2.7.1 6 6 Tested up to: 2.9 7 Stable tag: 0.9. 47 Stable tag: 0.9.5 8 8 9 9 Create a blog within a blog using a category. This plugin basically shows posts in a category on a page using shortcodes. … … 58 58 * `%post_categories%` - The categories that the post belongs to. 59 59 * `%post_content%` - The content of the post. 60 * `%post_excerpt%` - The excerpt of the post (if defined) Note blog-in-blog will also recognise the `<!--more-->` tag in your content. 60 61 * `%post_comments%` - A comments link. 61 62 * `%post_date%` - The date of the post as defined by the format string in the admin page. … … 70 71 71 72 == Changelog == 73 74 = 0.9.5 = 75 * Added: `%post_excerpt%' tag (will only show anything if you actualy have an excerpt). blog-in-blog already recognises the `<!--more-->` quicktag. 76 77 = 0.9.4 = 78 * Updated: Admin page now uses the Wordpress Settings API. 72 79 73 80 = 0.9.3 =
Note: See TracChangeset
for help on using the changeset viewer.