Changeset 717625
- Timestamp:
- 05/24/2013 05:04:18 AM (13 years ago)
- Location:
- bcms/trunk
- Files:
-
- 11 added
- 4 deleted
- 22 edited
-
. (modified) (1 prop)
-
admin.php (modified) (3 diffs, 1 prop)
-
bcms.php (modified) (4 diffs)
-
components/child-posts.php (deleted)
-
components/class-bcms-postloop-scroller.php (added)
-
components/class-bcms-postloop-widget.php (added)
-
components/class-bcms-postloop.php (added)
-
components/class-bcms-search.php (added)
-
components/class-bcms-wiframe-encode.php (added)
-
components/class-bcms-wijax-widget.php (added)
-
components/class-bcms-wijax.php (added)
-
components/cms-widgets.php (modified) (14 diffs)
-
components/functions.php (added)
-
components/img/arrow-large-hori.png (modified) (previous)
-
components/img/arrow-large-vert.png (modified) (previous)
-
components/img/scrollable-navigator.png (modified) (previous)
-
components/innerindex.php (modified) (2 diffs)
-
components/js/bcms-wiframe-notify.js (added)
-
components/js/bcms-wiframe.js (added)
-
components/js/jquery.ba-postmessage.min.js (added)
-
components/js/waypoints.js (modified) (1 prop)
-
components/js/waypoints.min.js (modified) (1 prop)
-
components/late-enqueue.php (modified) (3 diffs)
-
components/listchildren.php (modified) (1 diff)
-
components/postloops.php (deleted)
-
components/search.php (deleted)
-
components/wijax.php (deleted)
-
license.txt (modified) (1 prop)
-
readme.txt (modified) (1 diff, 1 prop)
-
screenshot-1.png (modified) (previous)
-
screenshot-2.png (modified) (previous)
-
screenshot-3.png (modified) (previous)
-
screenshot-4.png (modified) (1 prop) (previous)
-
screenshot-5.png (modified) (previous)
-
templates-post/e_default_icon.php (modified) (1 prop)
-
templates-post/e_default_icontiny.php (modified) (1 prop)
-
templates-post/f_default_scroller_before.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
bcms/trunk
-
Property
svn:ignore
set to
README.md
.git
.gitignore
.gitmodules
deploy/
-
Property
svn:ignore
set to
-
bcms/trunk/admin.php
- Property svn:executable deleted
r531201 r717625 134 134 135 135 <p class="submit"> 136 <input type="submit" name="Submit" value="<?php _e('Save Changes') ?>" class="button" />136 <input type="submit" name="Submit" value="<?php esc_attr_e('Save Changes') ?>" class="button" /> 137 137 </p> 138 138 </form> … … 153 153 <th scope="row" class="th-full"> 154 154 <form method="post"> 155 <input type="submit" name="Options" value="<?php _e('Rebuild bCMS search index') ?>" /> 155 <input type="submit" name="Options" value="<?php esc_attr_e('Rebuild bCMS search index') ?>" /> 156 156 </th> 157 157 </tr> … … 165 165 <th scope="row" class="th-full"> 166 166 <form method="post"> 167 <input type="submit" name="Options" value="<?php _e('Show rewrite rules') ?>" /> 168 <input type="submit" name="Options" value="<?php _e('PHP Info') ?>" /></form>167 <input type="submit" name="Options" value="<?php esc_attr_e('Show rewrite rules') ?>" /> 168 <input type="submit" name="Options" value="<?php esc_attr_e('PHP Info') ?>" /></form> 169 169 </th> 170 170 </tr> -
bcms/trunk/bcms.php
r559688 r717625 4 4 Plugin URI: http://maisonbisson.com/bsuite/ 5 5 Description: Make WordPress a better CMS. Create a post loop in a widget. Lazy load widgets. More shortcodes. More good. 6 Version: 5. 06 Version: 5.1 7 7 Author: Casey Bisson 8 8 Author URI: http://maisonbisson.com/blog/ … … 11 11 // the admin menu 12 12 if ( is_admin() ) 13 { 13 14 require_once dirname( __FILE__ ) . '/admin.php'; 15 } 14 16 15 17 // include the core components 16 require_once( dirname( __FILE__ ) .'/components/postloops.php' ); 17 require_once( dirname( __FILE__ ) .'/components/wijax.php' ); 18 require_once( dirname( __FILE__ ) .'/components/class-bcms-postloop.php' ); 19 bcms_postloop(); 20 require_once( dirname( __FILE__ ) .'/components/class-bcms-wijax.php' ); 21 bcms_wijax(); 22 require_once( dirname( __FILE__ ) .'/components/class-bcms-postloop-widget.php' ); 23 require_once( dirname( __FILE__ ) .'/components/class-bcms-wijax-widget.php' ); 24 require_once( dirname( __FILE__ ) .'/components/functions.php' ); 18 25 require_once( dirname( __FILE__ ) .'/components/late-enqueue.php' ); 26 add_action( 'widgets_init', 'bcms_widgets_init', 1 ); 27 19 28 20 29 // override the URL path by setting it in the object as such: … … 22 31 23 32 // include the CMS convenience features 24 require_once( dirname( __FILE__ ) .'/components/child-posts.php' );25 33 require_once( dirname( __FILE__ ) .'/components/cms-widgets.php' ); 26 34 require_once( dirname( __FILE__ ) .'/components/innerindex.php'); … … 29 37 30 38 // optionally include the mysql-based full text indexing 31 if( get_option('bcms_searchsmart')) 32 require_once( dirname( __FILE__ ) .'/components/search.php' ); 39 if( get_option( 'bcms_searchsmart' )) 40 { 41 require_once( dirname( __FILE__ ) .'/components/class-bcms-search.php' ); 42 bcms_search(); 43 } -
bcms/trunk/components/cms-widgets.php
r531109 r717625 14 14 function widget( $args, $instance ) { 15 15 extract( $args ); 16 16 17 17 if( $instance['startpage'] < 0 || $instance['startpage'] === 'c' ) 18 18 { … … 42 42 $exclude = empty( $instance['exclude'] ) ? '' : $instance['exclude']; 43 43 $depth = isset( $instance['depth'] ) ? $instance['depth'] : 1; 44 44 45 45 if( $instance['startpage'] < 0 ) 46 46 { … … 67 67 68 68 $out = wp_list_pages( array( 69 'child_of' => $startpage, 70 'title_li' => '', 71 'echo' => 0, 72 'sort_column' => $sortby, 73 'exclude' => $exclude, 74 'depth' => $depth 69 'child_of' => $startpage, 70 'title_li' => '', 71 'echo' => 0, 72 'sort_column' => $sortby, 73 'exclude' => $exclude, 74 'depth' => $depth 75 75 )); 76 76 … … 91 91 92 92 // get any children, insert them into the tree 93 if( $children = wp_list_pages( array( 'child_of' => $post->ID, 'title_li' => '', 'echo' => 0, 'sort_column' => $sortby, 'exclude' => $exclude, 'depth' => $depth ))){ 93 if( $children = wp_list_pages( array( 'child_of' => $post->ID, 'title_li' => '', 'echo' => 0, 'sort_column' => $sortby, 'exclude' => $exclude, 'depth' => $depth ))){ 94 94 $subtree = preg_replace( '/current_page_item[^<]*<a([^<]*)/i', 'current_page_item"><a\1<ul>'. $children .'</ul>', $subtree ); 95 95 } … … 102 102 } 103 103 } 104 104 105 105 if ( !empty( $out ) ) { 106 106 echo $before_widget; … … 138 138 function form( $instance ) { 139 139 //Defaults 140 $instance = wp_parse_args( (array) $instance, 141 array( 142 'sortby' => 'post_title', 143 'title' => '', 144 'exclude' => '', 145 'depth' => 1, 140 $instance = wp_parse_args( (array) $instance, 141 array( 142 'sortby' => 'post_title', 143 'title' => '', 144 'exclude' => '', 145 'depth' => 1, 146 146 'startpage' => 0, 147 147 'expandtree' => 1, … … 181 181 <p> 182 182 <label for="<?php echo $this->get_field_id('startpage'); ?>"><?php _e( 'Start page hierarchy at:' ); ?></label> 183 <?php echo preg_replace( 183 <?php echo preg_replace( 184 184 '#<select.*?>#i', 185 185 … … 223 223 extract( $args ); 224 224 225 if( is_tax() || is_tag() || is_category() ) 225 if( is_tax() || is_tag() || is_category() ) 226 226 $category_description = term_description(); 227 227 else … … 231 231 $term = $wp_query->get_queried_object(); 232 232 $my_tag = &get_term( $term->term_id , $term->taxonomy , OBJECT , 'display' ); 233 233 234 234 if ( is_wp_error( $my_tag ) ) 235 235 return false; 236 236 237 237 $my_tag_name = $my_tag->name; 238 238 // $my_tag_name = apply_filters( 'single_tag_title' , $my_tag->name ); … … 252 252 function update( $new_instance, $old_instance ) { 253 253 $instance = $old_instance; 254 $instance['title'] = wp_ filter_nohtml_kses( $new_instance['title']);254 $instance['title'] = wp_kses( $new_instance['title'], array() ); 255 255 256 256 return $instance; … … 259 259 function form( $instance ) { 260 260 //Defaults 261 $instance = wp_parse_args( (array) $instance, 262 array( 263 'title' => '%term_name% Archives', 261 $instance = wp_parse_args( (array) $instance, 262 array( 263 'title' => '%term_name% Archives', 264 264 ) 265 265 ); … … 369 369 function form( $instance ) { 370 370 //Defaults 371 $instance = wp_parse_args( (array) $instance, 372 array( 373 'title' => '', 371 $instance = wp_parse_args( (array) $instance, 372 array( 373 'title' => '', 374 374 'homelink' => get_option('blogname'), 375 375 'maxchars' => 35, … … 416 416 $urlbase = preg_replace( '#/page/[0-9]+?(/+)?$#' , '/', remove_query_arg( 'paged' ) ); 417 417 $prettylinks = ( $wp_rewrite->using_permalinks() && ( !strpos( $urlbase , '?' ))); 418 419 $ page_links = paginate_links(array(418 419 $opts = array( 420 420 'base' => $urlbase . '%_%', 421 421 'format' => $prettylinks ? user_trailingslashit( trailingslashit( 'page/%#%' )) : ( strpos( $urlbase , '?' ) ? '&paged=%#%' : '?paged=%#%' ), 422 422 'total' => absint( $wp_query->max_num_pages ), 423 423 'current' => absint( $wp_query->query_vars['paged'] ) ? absint( $wp_query->query_vars['paged'] ) : 1, 424 )); 425 424 ); 425 426 if ( $instance['prev_text'] ) 427 $opts['prev_text'] = $instance['prev_text']; 428 429 if ( $instance['next_text'] ) 430 $opts['next_text'] = $instance['next_text']; 431 432 $page_links = paginate_links( $opts ); 433 426 434 if ( $page_links ) 427 435 echo $before_widget . $page_links .'<div class="clear"></div>'. $after_widget; … … 439 447 } 440 448 449 function form( $instance ) { 450 //Defaults 451 $instance = wp_parse_args( (array) $instance, 452 array( 453 'prev_text' => null, 454 'next_text' => null, 455 ) 456 ); 457 $prev_text = esc_attr( $instance['prev_text'] ); 458 $next_text = esc_attr( $instance['next_text'] ); 459 460 ?> 461 <p> 462 <label for="<?php echo $this->get_field_id('prev_text'); ?>"><?php _e('Previous text:'); ?></label> <input class="widefat" id="<?php echo $this->get_field_id('prev_text'); ?>" name="<?php echo $this->get_field_name('prev_text'); ?>" type="text" value="<?php echo $prev_text; ?>" /><br /><small><?php _e( 'Optional, leave empty to use WP default.' ); ?></small> 463 </p> 464 <p> 465 <label for="<?php echo $this->get_field_id('next_text'); ?>"><?php _e('Next text:'); ?></label> <input class="widefat" id="<?php echo $this->get_field_id('next_text'); ?>" name="<?php echo $this->get_field_name('next_text'); ?>" type="text" value="<?php echo $next_text; ?>" /><br /><small><?php _e( 'Optional, leave empty to use WP default.' ); ?></small> 466 </p> 467 <?php 468 } 441 469 }// end bSuite_Widget_Pagednav 442 443 // register these widgets444 function bcms_widgets_init()445 {446 register_widget( 'bSuite_Widget_CategoryDescription' );447 448 register_widget( 'bSuite_Widget_Crumbs' );449 450 register_widget( 'bSuite_Widget_Pagednav' );451 452 unregister_widget('WP_Widget_Pages');453 register_widget( 'bSuite_Widget_Pages' );454 }455 add_action('widgets_init', 'bcms_widgets_init', 1); -
bcms/trunk/components/innerindex.php
r531086 r717625 8 8 // add_filter( 'content_save_pre' , array( $this, 'addsections' ) , 7 ); 9 9 add_filter( 'save_post' , array( $this , 'delete_cache' )); 10 add_filter( 'go_theme_page_summary' , array( $this , 'go_theme_page_summary' )); 10 11 $this->allowedposttags(); // allow IDs on H1-H6 tags 11 12 } … … 153 154 return; 154 155 } 156 157 function go_theme_page_summary() 158 { 159 $this->shortcode( array( 'title' => '', 'div_class' => '' ) ); 160 } 155 161 } 156 $bbuite_innerindex = new bSuite_Innerindex; 162 163 function bsuite_innerindex() 164 { 165 global $bsuite_innerindex; 166 167 if ( ! is_object( $bsuite_innerindex ) ) 168 { 169 $bsuite_innerindex = new bSuite_Innerindex(); 170 } 171 172 return $bsuite_innerindex; 173 } 174 175 bsuite_innerindex(); -
bcms/trunk/components/js/waypoints.js
- Property svn:executable deleted
-
bcms/trunk/components/js/waypoints.min.js
- Property svn:executable deleted
-
bcms/trunk/components/late-enqueue.php
r531109 r717625 27 27 $wp_styles->in_footer = array_merge( (array) $wp_styles->in_footer , (array) array_diff( (array) $wp_styles->to_do , $to_do_orig ) ); 28 28 29 add_filter( 'print_footer_scripts', 'bcms_print_late_styles' );29 add_filter( 'print_footer_scripts', 'bcms_print_late_styles', 10, 1 ); 30 30 } 31 31 32 function bcms_print_late_styles( )32 function bcms_print_late_styles( $finish_print ) 33 33 { 34 34 global $wp_styles; … … 50 50 51 51 if( ! array( $tags )) 52 return ;52 return $finish_print; 53 53 54 54 ?> … … 66 66 </script> 67 67 <?php 68 return $finish_print; 68 69 } 69 70 -
bcms/trunk/components/listchildren.php
r529722 r717625 34 34 'exclude' => '', 35 35 'authors' => '', 36 'post_type' => 'page', 37 'post_status' => 'publish' 36 38 ), $arg ); 37 39 -
bcms/trunk/license.txt
- Property svn:executable deleted
-
bcms/trunk/readme.txt
- Property svn:executable deleted
r531272 r717625 4 4 Tags: bSuite, cms, content management, formatting, widgets, shortcodes, post loop, post, posts, page, pages, show posts, scroller, featured posts 5 5 Requires at least: 3.3 6 Tested up to: 3. 3.16 Tested up to: 3.5.1 7 7 Stable tag: trunk 8 8 -
bcms/trunk/screenshot-4.png
- Property svn:executable deleted
-
bcms/trunk/templates-post/e_default_icon.php
- Property svn:executable deleted
-
bcms/trunk/templates-post/e_default_icontiny.php
- Property svn:executable deleted
-
bcms/trunk/templates-post/f_default_scroller_before.php
r531179 r717625 1 1 <?php 2 2 3 new bCMS_PostLoop_Scroller( array(3 bcms_get_new_postloop_scroller( array( 4 4 // configuration 5 5 'parent_selector' => '#'. $this->current->widget->id .' .scrollable',
Note: See TracChangeset
for help on using the changeset viewer.