Skip to content
Browse files

sandboxing functions

Shouldn't have sandboxed the function names with the company name but the theme name so I'm correcting this now.
  • Loading branch information...
1 parent 0a32413 commit 87d7d299a3cbde17d89fba455fe89f66ae4e2b45 @curtismchale committed Dec 19, 2011
Showing with 23 additions and 22 deletions.
  1. +15 −14 assets/includes/add-widget-areas.php
  2. +2 −2 assets/includes/custom-comment-styles.php
  3. +1 −1 comments.php
  4. +5 −5 functions.php
View
29 assets/includes/add-widget-areas.php
@@ -1,20 +1,21 @@
<?php // this is the collecting point for all sidebars in the theme
-add_action( 'widgets_init', 'sfn_add_sidebars' );
+add_action( 'widgets_init', 'com_add_sidebars' );
-function sfn_add_sidebars() {
+function com_add_sidebars() {
- register_sidebar( array(
- 'id' => 'sidebar',
- 'name' => 'sidebar',
- 'description' => 'add description of the sidebar into functions file',
- 'before_widget' => '<li id="%1$s" class="widget %2$s">',
- 'after_widget' => '</li>',
- 'before_title' => '<h2 class="widgettitle">',
- 'after_title' => '</h2>',
- ));
+ register_sidebar( array(
+ 'id' => 'sidebar',
+ 'name' => 'sidebar',
+ 'description' => 'add description of the sidebar into functions file',
+ 'before_widget' => '<li id="%1$s" class="widget %2$s">',
+ 'after_widget' => '</li>',
+ 'before_title' => '<h2 class="widgettitle">',
+ 'after_title' => '</h2>',
+ ));
- // repeat register sidebar to add more sidebars
+ // repeat register sidebar to add more sidebars
-} // end sfn_add_sidebars
-?>
+} // end com_add_sidebars
+
+?>
View
4 assets/includes/custom-comment-styles.php
@@ -4,13 +4,13 @@
* Template for comments and pingbacks.
*
* To override this walker in a child theme without modifying the comments template
- * simply create your own comienzo_comment, and that function will be used instead.
+ * simply create your own com_comment, and that function will be used instead.
*
* Used as a callback by wp_list_comments() for displaying the comments.
*
* @since Comienzo 2.0
*/
- function comienzo_comment( $comment, $args, $depth ) {
+ function com_comment( $comment, $args, $depth ) {
$GLOBALS['comment'] = $comment;
switch ( $comment->comment_type ) :
case '' :
View
2 comments.php
@@ -48,7 +48,7 @@
* define twentyten_comment() and that will be used instead.
* See twentyten_comment() in twentyten/functions.php for more.
*/
- wp_list_comments( array( 'callback' => 'comienzo_comment' ) );
+ wp_list_comments( array( 'callback' => 'com_comment' ) );
?>
</ol>
View
10 functions.php
@@ -29,7 +29,7 @@
*
* @uses get_the_content
*/
-function sfn_improved_trim_excerpt( $text ) {
+function com_improved_trim_excerpt( $text ) {
global $post;
if ( '' == $text ) {
$text = get_the_content('');
@@ -49,7 +49,7 @@ function sfn_improved_trim_excerpt( $text ) {
}
remove_filter('get_the_excerpt', 'wp_trim_excerpt');
-add_filter('get_the_excerpt', 'sfn_improved_trim_excerpt');
+add_filter('get_the_excerpt', 'com_improved_trim_excerpt');
/* === ADD THEME SUPPORT === */
add_theme_support('post-thumbnails');
@@ -91,7 +91,7 @@ function sfn_improved_trim_excerpt( $text ) {
* @uses get_page
* @uses sanitize_title
*/
-function sfn_body_classes($classes, $class='') {
+function com_body_classes($classes, $class='') {
global $wp_query;
// detecting the 404 page since the $post_id won't be valid
// if we're on a 404 page and we'll get a debug error
@@ -109,5 +109,5 @@ function sfn_body_classes($classes, $class='') {
}// ends check for 404 page
return $classes;// return the $classes array
}
-add_filter('body_class','sfn_body_classes');
-?>
+add_filter('body_class','com_body_classes');
+?>

0 comments on commit 87d7d29

Please sign in to comment.
Something went wrong with that request. Please try again.