id ) { return; } wp_enqueue_script('colorsnap-admin-color', get_template_directory_uri().'/js/color-picker/color.js'); } add_action('wp_enqueue_scripts','colorsnap_load_styles'); function colorsnap_load_styles() { $options = get_option('colorsnap_options'); } add_action('wp_head', 'colorsnap_print_custom_styles'); function colorsnap_print_custom_styles() { if(!is_admin()){ $options = get_option('colorsnap_options'); if ( false != $options['colorscheme']) { $custom_css = ''; echo $custom_css; } } } add_action('wp_head', 'colorsnap_print_custom_scripts', 99); function colorsnap_print_custom_scripts() { if(!is_admin()){ $options = get_option('colorsnap_options'); ?> *' ); $args['comment_notes_before'] = '

' . __('Your email is kept private.', 'colorsnap') . ( $req ? $required_text : '' ) . '

'; $args['title_reply'] = __('Post a Comment', 'colorsnap'); $args['title_reply_to'] = __('Post a Reply to %s', 'colorsnap'); return $args; } add_action( 'widgets_init', 'colorsnap_widgets_init' ); function colorsnap_widgets_init() { register_sidebar( array ( 'name' => __('Sidebar Widget Area', 'colorsnap'), 'id' => 'primary-widget-area', 'before_widget' => '
  • ', 'after_widget' => "
  • ", 'before_title' => '

    ', 'after_title' => '

    ', ) ); } $preset_widgets = array ( 'primary-aside' => array( 'search', 'pages', 'categories', 'archives' ), ); function colorsnap_get_page_number() { if (get_query_var('paged')) { print ' | ' . __( 'Page ' , 'colorsnap') . get_query_var('paged'); } } function colorsnap_catz($glue) { $current_cat = single_cat_title( '', false ); $separator = "\n"; $cats = explode( $separator, get_the_category_list($separator) ); foreach ( $cats as $i => $str ) { if ( strstr( $str, ">$current_cat<" ) ) { unset($cats[$i]); break; } } if ( empty($cats) ) return false; return trim(join( $glue, $cats )); } function colorsnap_tag_it($glue) { $current_tag = single_tag_title( '', '', false ); $separator = "\n"; $tags = explode( $separator, get_the_tag_list( "", "$separator", "" ) ); foreach ( $tags as $i => $str ) { if ( strstr( $str, ">$current_tag<" ) ) { unset($tags[$i]); break; } } if ( empty($tags) ) return false; return trim(join( $glue, $tags )); } function colorsnap_commenter_link() { $commenter = get_comment_author_link(); if ( ereg( ']* class=[^>]+>', $commenter ) ) { $commenter = preg_replace( '/(]* class=[\'"]?)/', '\\1url ' , $commenter ); } else { $commenter = preg_replace( '/(' . $commenter . ''; } function colorsnap_custom_comments($comment, $args, $depth) { $GLOBALS['comment'] = $comment; $GLOBALS['comment_depth'] = $depth; ?>
  • >
    | | ', ''); ?>
    comment_approved == '0') { echo '\t\t\t\t\t'; _e('Your comment is awaiting moderation.', 'colorsnap'); echo '\n'; } ?>
    __('Reply','colorsnap'), 'login_text' => __('Login to reply.', 'colorsnap'), 'depth' => $depth, 'before' => '' ))); endif; ?>
  • >
    | ', ''); ?>
    comment_approved == '0') { echo '\t\t\t\t\t'; _e('Your trackback is awaiting moderation.', 'colorsnap'); echo '\n'; } ?>