Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

changed folder structure

  • Loading branch information...
commit 6430e9925cc39a3d76c52325691729979d794413 1 parent ed8645e
madalinungureanu authored

Showing 66 changed files with 5,908 additions and 0 deletions. Show diff stats Hide diff stats

  1. +30 0 404.php
  2. +74 0 archive.php
  3. +73 0 author.php
  4. +63 0 category.php
  5. +74 0 comments.php
  6. +34 0 content-aside.php
  7. +62 0 content-gallery.php
  8. +28 0 content-image.php
  9. +21 0 content-page.php
  10. +31 0 content-single.php
  11. +38 0 content.php
  12. 0  css/cvar_blue.css
  13. BIN  css/cvar_blue.png
  14. 0  css/red.css
  15. BIN  css/red.png
  16. +30 0 footer.php
  17. +40 0 functions.php
  18. +102 0 header.php
  19. +56 0 index.php
  20. +3 0  js/html5.js
  21. +90 0 library/admin/Minify/CommentPreserver.php
  22. +250 0 library/admin/Minify/Compressor.php
  23. +31 0 library/admin/admin.php
  24. +57 0 library/admin/meta-box-archive-display.php
  25. +157 0 library/admin/meta-box-style-css-compression.php
  26. +83 0 library/admin/meta-box-theme-about.php
  27. +114 0 library/admin/meta-box-theme-css-variations.php
  28. +80 0 library/admin/meta-box-theme-font.php
  29. +69 0 library/admin/meta-box-theme-footer.php
  30. +190 0 library/admin/meta-box-theme-logo-and-favicon.php
  31. +251 0 library/admin/theme-settings.php
  32. +183 0 library/bareskin.php
  33. +86 0 library/css/2c-l-fixed.css
  34. +86 0 library/css/2c-r-fixed.css
  35. +95 0 library/css/3c-fixed.css
  36. +76 0 library/css/admin.css
  37. +4 0 library/css/reset.css
  38. +152 0 library/css/responsive.css
  39. +572 0 library/functions/breadcrumb-trail.php
  40. +22 0 library/functions/color_variation.php
  41. +56 0 library/functions/comments.php
  42. +104 0 library/functions/content.php
  43. +120 0 library/functions/core.php
  44. +100 0 library/functions/fonts.php
  45. +498 0 library/functions/get-the-image.php
  46. +67 0 library/functions/menus.php
  47. +114 0 library/functions/shortcodes.php
  48. +120 0 library/functions/sidebars.php
  49. +46 0 library/functions/widgets.php
  50. +163 0 library/widgets/widget_adv_recent_posts.php
  51. +57 0 library/widgets/widget_advanced_text.php
  52. +51 0 library/widgets/widget_advertisment.php
  53. +40 0 loop-nav.php
  54. +16 0 menu-primary.php
  55. +33 0 page.php
  56. +82 0 readme.txt
  57. +48 0 search.php
  58. +16 0 searchform.php
  59. +16 0 sidebar-after-content.php
  60. +16 0 sidebar-before-content.php
  61. +29 0 sidebar-subsidiary.php
  62. +40 0 sidebar.php
  63. +36 0 single.php
  64. +545 0 style.css
  65. +64 0 tag.php
  66. +24 0 tpl_full-width-page.php
30 404.php
... ... @@ -0,0 +1,30 @@
  1 +<?php
  2 +/**
  3 + * The template for displaying 404 pages (Not Found).
  4 + *
  5 + * @package WordPress
  6 + * @subpackage BareSkin
  7 + */
  8 +
  9 +get_header(); ?>
  10 +
  11 + <div id="container">
  12 + <div id="content" role="main">
  13 +
  14 + <article id="post-0" class="post error404 not-found">
  15 + <header class="entry-header">
  16 + <h1 class="entry-title"><?php _e( 'Well this is somewhat embarrassing, isn&rsquo;t it?', bareskin_get_textdomain() ); ?></h1>
  17 + </header>
  18 +
  19 + <div class="entry-content">
  20 + <p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching, or one of the links below, can help.', bareskin_get_textdomain() ); ?></p>
  21 +
  22 + <?php get_search_form(); ?>
  23 +
  24 + </div><!-- .entry-content -->
  25 + </article><!-- #post-0 -->
  26 +
  27 + </div><!-- #content -->
  28 + </div><!-- #container -->
  29 +
  30 +<?php get_footer(); ?>
74 archive.php
... ... @@ -0,0 +1,74 @@
  1 +<?php
  2 +/**
  3 + * The template for displaying Archive pages.
  4 + *
  5 + * Used to display archive-type pages if nothing more specific matches a query.
  6 + * For example, puts together date-based pages if no date.php file exists.
  7 + *
  8 + * Learn more: http://codex.wordpress.org/Template_Hierarchy
  9 + *
  10 + * @package WordPress
  11 + * @subpackage BareSkin
  12 + *
  13 + */
  14 +
  15 +get_header(); ?>
  16 +
  17 + <section id="container">
  18 + <div id="content" role="main">
  19 +
  20 + <?php if ( have_posts() ) : ?>
  21 +
  22 + <header class="page-header">
  23 + <h1 class="page-title">
  24 + <?php
  25 + if ( is_day() ) :
  26 + printf( __( 'Daily Archives: %s', bareskin_get_textdomain() ), '<span>' . get_the_date() . '</span>' );
  27 + elseif ( is_month() ) :
  28 + printf( __( 'Monthly Archives: %s', bareskin_get_textdomain() ), '<span>' . get_the_date( 'F Y' ) . '</span>' );
  29 + elseif ( is_year() ) :
  30 + printf( __( 'Yearly Archives: %s', bareskin_get_textdomain() ), '<span>' . get_the_date( 'Y' ) . '</span>' );
  31 + else :
  32 + _e( 'Archives', bareskin_get_textdomain() );
  33 + endif;
  34 + ?>
  35 + </h1>
  36 + </header>
  37 +
  38 + <?php rewind_posts(); ?>
  39 +
  40 + <?php /* Start the Loop */ ?>
  41 + <?php while ( have_posts() ) : the_post(); ?>
  42 +
  43 + <?php
  44 + /* Include the Post-Format-specific template for the content.
  45 + * If you want to overload this in a child theme then include a file
  46 + * called content-___.php (where ___ is the Post Format name) and that will be used instead.
  47 + */
  48 + get_template_part( 'content', get_post_format() );
  49 + ?>
  50 +
  51 + <?php endwhile; ?>
  52 +
  53 + <?php get_template_part( 'loop-nav' ); ?>
  54 +
  55 + <?php else : ?>
  56 +
  57 + <article id="post-0" class="post no-results not-found">
  58 + <header class="entry-header">
  59 + <h1 class="entry-title"><?php _e( 'Nothing Found', bareskin_get_textdomain() ); ?></h1>
  60 + </header><!-- .entry-header -->
  61 +
  62 + <div class="entry-content">
  63 + <p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', bareskin_get_textdomain() ); ?></p>
  64 + <?php get_search_form(); ?>
  65 + </div><!-- .entry-content -->
  66 + </article><!-- #post-0 -->
  67 +
  68 + <?php endif; ?>
  69 +
  70 + </div><!-- #content -->
  71 + </section><!-- #container -->
  72 +
  73 +<?php get_sidebar(); ?>
  74 +<?php get_footer(); ?>
73 author.php
... ... @@ -0,0 +1,73 @@
  1 +<?php
  2 +/**
  3 + * The template for displaying Author Archive pages.
  4 + *
  5 + * @package WordPress
  6 + * @subpackage BareSkin
  7 + */
  8 +
  9 +get_header(); ?>
  10 +
  11 + <section id="container">
  12 + <div id="content" role="main">
  13 +
  14 + <?php if ( have_posts() ) : ?>
  15 +
  16 + <?php
  17 + /* Queue the first post, that way we know
  18 + * what author we're dealing with (if that is the case).
  19 + *
  20 + * We reset this later so we can run the loop
  21 + * properly with a call to rewind_posts().
  22 + */
  23 + the_post();
  24 + ?>
  25 +
  26 + <header class="page-header">
  27 + <h1 class="page-title author"><?php printf( __( 'Author Archives: %s', bareskin_get_textdomain() ), '<span class="vcard"><a class="url fn n" href="' . get_author_posts_url( get_the_author_meta( "ID" ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' ); ?></h1>
  28 + </header>
  29 +
  30 + <?php
  31 + /* Since we called the_post() above, we need to
  32 + * rewind the loop back to the beginning that way
  33 + * we can run the loop properly, in full.
  34 + */
  35 + rewind_posts();
  36 + ?>
  37 +
  38 +
  39 + <?php /* Start the Loop */ ?>
  40 + <?php while ( have_posts() ) : the_post(); ?>
  41 +
  42 + <?php
  43 + /* Include the Post-Format-specific template for the content.
  44 + * If you want to overload this in a child theme then include a file
  45 + * called content-___.php (where ___ is the Post Format name) and that will be used instead.
  46 + */
  47 + get_template_part( 'content', get_post_format() );
  48 + ?>
  49 +
  50 + <?php endwhile; ?>
  51 +
  52 + <?php get_template_part( 'loop-nav' ); ?>
  53 +
  54 + <?php else : ?>
  55 +
  56 + <article id="post-0" class="post no-results not-found">
  57 + <header class="entry-header">
  58 + <h1 class="entry-title"><?php _e( 'Nothing Found', bareskin_get_textdomain() ); ?></h1>
  59 + </header><!-- .entry-header -->
  60 +
  61 + <div class="entry-content">
  62 + <p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', bareskin_get_textdomain() ); ?></p>
  63 + <?php get_search_form(); ?>
  64 + </div><!-- .entry-content -->
  65 + </article><!-- #post-0 -->
  66 +
  67 + <?php endif; ?>
  68 +
  69 + </div><!-- #content -->
  70 + </section><!-- #container -->
  71 +
  72 +<?php get_sidebar(); ?>
  73 +<?php get_footer(); ?>
63 category.php
... ... @@ -0,0 +1,63 @@
  1 +<?php
  2 +/**
  3 + * The template for displaying Category Archive pages.
  4 + *
  5 + * @package WordPress
  6 + * @subpackage BareSkin
  7 + */
  8 +
  9 +get_header(); ?>
  10 +
  11 + <section id="container">
  12 + <div id="content" role="main">
  13 +
  14 + <?php if ( have_posts() ) : ?>
  15 +
  16 + <header class="page-header">
  17 + <h1 class="page-title"><?php
  18 + printf( __( 'Category Archives: %s', bareskin_get_textdomain() ), '<span>' . single_cat_title( '', false ) . '</span>' );
  19 + ?></h1>
  20 +
  21 + <?php
  22 + $category_description = category_description();
  23 + if ( ! empty( $category_description ) )
  24 + echo apply_filters( 'category_archive_meta', '<div class="category-archive-meta">' . $category_description . '</div>' );
  25 + ?>
  26 + </header>
  27 +
  28 +
  29 + <?php /* Start the Loop */ ?>
  30 + <?php while ( have_posts() ) : the_post(); ?>
  31 +
  32 + <?php
  33 + /* Include the Post-Format-specific template for the content.
  34 + * If you want to overload this in a child theme then include a file
  35 + * called content-___.php (where ___ is the Post Format name) and that will be used instead.
  36 + */
  37 + get_template_part( 'content', get_post_format() );
  38 + ?>
  39 +
  40 + <?php endwhile; ?>
  41 +
  42 + <?php get_template_part( 'loop-nav' ); ?>
  43 +
  44 + <?php else : ?>
  45 +
  46 + <article id="post-0" class="post no-results not-found">
  47 + <header class="entry-header">
  48 + <h1 class="entry-title"><?php _e( 'Nothing Found', bareskin_get_textdomain() ); ?></h1>
  49 + </header><!-- .entry-header -->
  50 +
  51 + <div class="entry-content">
  52 + <p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', bareskin_get_textdomain() ); ?></p>
  53 + <?php get_search_form(); ?>
  54 + </div><!-- .entry-content -->
  55 + </article><!-- #post-0 -->
  56 +
  57 + <?php endif; ?>
  58 +
  59 + </div><!-- #content -->
  60 + </section><!-- #container -->
  61 +
  62 +<?php get_sidebar(); ?>
  63 +<?php get_footer(); ?>
74 comments.php
... ... @@ -0,0 +1,74 @@
  1 +<?php
  2 +/**
  3 + * The template for displaying Comments.
  4 + *
  5 + * The area of the page that contains both current comments
  6 + * and the comment form. The actual display of comments is
  7 + * handled by a callback to bareskin_comment() which is
  8 + * located in the lybrary in functions/comments.php file.
  9 + *
  10 + * @package WordPress
  11 + * @subpackage BareSkin
  12 + *
  13 + */
  14 +?>
  15 + <div id="comments">
  16 + <?php if ( post_password_required() ) : ?>
  17 + <p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', bareskin_get_textdomain() ); ?></p>
  18 + </div><!-- #comments -->
  19 + <?php
  20 + /* Stop the rest of comments.php from being processed,
  21 + * but don't kill the script entirely -- we still have
  22 + * to fully load the template.
  23 + */
  24 + return;
  25 + endif;
  26 + ?>
  27 +
  28 + <?php // You can start editing here -- including this comment! ?>
  29 +
  30 + <?php if ( have_comments() ) : ?>
  31 + <h2 id="comments-title">
  32 + <?php
  33 + printf( _n( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), bareskin_get_textdomain() ),
  34 + number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
  35 + ?>
  36 + </h2>
  37 +
  38 + <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
  39 + <nav id="comment-nav-above">
  40 + <h1 class="assistive-text"><?php _e( 'Comment navigation', bareskin_get_textdomain() ); ?></h1>
  41 + <div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', bareskin_get_textdomain() ) ); ?></div>
  42 + <div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', bareskin_get_textdomain() ) ); ?></div>
  43 + </nav>
  44 + <?php endif; // check for comment navigation ?>
  45 +
  46 + <ol class="commentlist">
  47 + <?php
  48 + /* Loop through and list the comments. Tell wp_list_comments()
  49 + * to use bareskin_comment() to format the comments.
  50 + */
  51 + wp_list_comments( array( 'callback' => 'bareskin_comment' ) );
  52 + ?>
  53 + </ol>
  54 +
  55 + <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
  56 + <nav id="comment-nav-below">
  57 + <h1 class="assistive-text"><?php _e( 'Comment navigation', bareskin_get_textdomain() ); ?></h1>
  58 + <div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', bareskin_get_textdomain() ) ); ?></div>
  59 + <div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', bareskin_get_textdomain() ) ); ?></div>
  60 + </nav>
  61 + <?php endif; // check for comment navigation ?>
  62 +
  63 + <?php
  64 + /* If there are no comments and comments are closed, let's leave a little note, shall we?
  65 + * But we don't want the note on pages or post types that do not support comments.
  66 + */
  67 + elseif ( ! comments_open() && ! is_page() && post_type_supports( get_post_type(), 'comments' ) ) :
  68 + ?>
  69 + <p class="nocomments"><?php _e( 'Comments are closed.', bareskin_get_textdomain() ); ?></p>
  70 + <?php endif; ?>
  71 +
  72 + <?php comment_form(); ?>
  73 +
  74 +</div><!-- #comments -->
34 content-aside.php
... ... @@ -0,0 +1,34 @@
  1 +<?php
  2 +/**
  3 + * The template for displaying posts in the Aside Post Format on index and archive pages
  4 + *
  5 + * Learn more: http://codex.wordpress.org/Post_Formats
  6 + *
  7 + * @package WordPress
  8 + * @subpackage BareSkin
  9 + */
  10 +?>
  11 +
  12 +<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  13 + <header class="entry-header">
  14 + <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', bareskin_get_textdomain() ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
  15 + </header><!-- .entry-header -->
  16 +
  17 + <?php if ( is_search() ) : // Only display Excerpts for search pages ?>
  18 + <div class="entry-summary">
  19 + <?php the_excerpt(); ?>
  20 + </div><!-- .entry-summary -->
  21 + <?php else : ?>
  22 + <div class="entry-content">
  23 + <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', bareskin_get_textdomain() ) ); ?>
  24 + <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', bareskin_get_textdomain() ), 'after' => '</div>' ) ); ?>
  25 + </div><!-- .entry-content -->
  26 + <?php endif; ?>
  27 +
  28 + <?php
  29 + /* entry-utility */
  30 + if( function_exists( 'bareskin_entry_utility' ) ) bareskin_entry_utility();
  31 + /* entry-utility */
  32 + ?>
  33 +
  34 +</article><!-- #post-<?php the_ID(); ?> -->
62 content-gallery.php
... ... @@ -0,0 +1,62 @@
28 content-image.php
... ... @@ -0,0 +1,28 @@
  1 +<?php
  2 +/**
  3 + * The template for displaying posts in the Image Post Format on index and archive pages
  4 + *
  5 + * Learn more: http://codex.wordpress.org/Post_Formats
  6 + *
  7 + * @package WordPress
  8 + * @subpackage BareSkin
  9 + */
  10 +?>
  11 +
  12 +<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  13 + <header class="entry-header">
  14 + <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', bareskin_get_textdomain() ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
  15 + </header><!-- .entry-header -->
  16 +
  17 + <div class="entry-content">
  18 + <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', bareskin_get_textdomain() ) ); ?>
  19 + <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', bareskin_get_textdomain() ), 'after' => '</div>' ) ); ?>
  20 + </div><!-- .entry-content -->
  21 +
  22 + <?php
  23 + /* entry-utility */
  24 + if( function_exists( 'bareskin_entry_utility' ) ) bareskin_entry_utility();
  25 + /* entry-utility */
  26 + ?>
  27 +
  28 +</article><!-- #post-<?php the_ID(); ?> -->
21 content-page.php
... ... @@ -0,0 +1,21 @@
  1 +<?php
  2 +/**
  3 + * The template used for displaying page content in page.php
  4 + *
  5 + * @package WordPress
  6 + * @subpackage BareSkin
  7 + *
  8 + */
  9 +?>
  10 +
  11 +<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  12 + <header class="entry-header">
  13 + <h1 class="entry-title"><?php the_title(); ?></h1>
  14 + </header><!-- .entry-header -->
  15 +
  16 + <div class="entry-content">
  17 + <?php the_content(); ?>
  18 + <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', bareskin_get_textdomain() ), 'after' => '</div>' ) ); ?>
  19 + <?php edit_post_link( __( 'Edit', bareskin_get_textdomain() ), '<span class="edit-link">', '</span>' ); ?>
  20 + </div><!-- .entry-content -->
  21 +</article><!-- #post-<?php the_ID(); ?> -->
31 content-single.php
... ... @@ -0,0 +1,31 @@
  1 +<?php
  2 +/**
  3 + * @package WordPress
  4 + * @subpackage BareSkin
  5 + */
  6 +?>
  7 +
  8 +<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  9 + <header class="entry-header">
  10 + <h1 class="entry-title"><?php the_title(); ?></h1>
  11 +
  12 + <?php
  13 + /* entry-meta */
  14 + if( function_exists( 'bareskin_entry_meta' ) ) bareskin_entry_meta();
  15 + /* entry-meta */
  16 + ?>
  17 +
  18 + </header><!-- .entry-header -->
  19 +
  20 + <div class="entry-content">
  21 + <?php the_content(); ?>
  22 + <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'toolbox' ), 'after' => '</div>' ) ); ?>
  23 + </div><!-- .entry-content -->
  24 +
  25 + <?php
  26 + /* entry-utility */
  27 + if( function_exists( 'bareskin_entry_utility' ) ) bareskin_entry_utility();
  28 + /* entry-utility */
  29 + ?>
  30 +
  31 +</article><!-- #post-<?php the_ID(); ?> -->
38 content.php
... ... @@ -0,0 +1,38 @@
  1 +<?php
  2 +/**
  3 + * @package WordPress
  4 + * @subpackage BareSkin
  5 + */
  6 +?>
  7 +
  8 +<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  9 + <header class="entry-header">
  10 + <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', bareskin_get_textdomain() ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
  11 +
  12 + <?php
  13 + /* entry-meta */
  14 + if( function_exists( 'bareskin_entry_meta' ) ) bareskin_entry_meta();
  15 + /* entry-meta */
  16 + ?>
  17 +
  18 + </header><!-- .entry-header -->
  19 +
  20 + <?php if ( bareskin_get_setting( 'archive-display' ) == 'show-excerpt-thumb' || bareskin_get_setting( 'archive-display' ) == false ) : // By default or if show excerpt and thumb is chosen from the theme settings show excerpt ( and image thumbnail ) ?>
  21 + <div class="entry-summary">
  22 + <?php if( function_exists( 'get_the_image' ) ) get_the_image( array( 'image_class' => 'alignleft' ) ); ?>
  23 + <?php the_excerpt(); ?>
  24 + </div><!-- .entry-summary -->
  25 + <?php else : ?>
  26 + <div class="entry-content">
  27 + <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', bareskin_get_textdomain() ) ); ?>
  28 + <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', bareskin_get_textdomain() ), 'after' => '</div>' ) ); ?>
  29 + </div><!-- .entry-content -->
  30 + <?php endif; ?>
  31 +
  32 + <?php
  33 + /* entry-utility */
  34 + if( function_exists( 'bareskin_entry_utility' ) ) bareskin_entry_utility();
  35 + /* entry-meta */
  36 + ?>
  37 +
  38 +</article><!-- #post-<?php the_ID(); ?> -->
0  css/cvar_blue.css
No changes.
BIN  css/cvar_blue.png
0  css/red.css
No changes.
BIN  css/red.png
30 footer.php
... ... @@ -0,0 +1,30 @@
40 functions.php
... ... @@ -0,0 +1,40 @@
  1 +<?php
  2 +/* Load the core theme file. */
  3 +require_once( trailingslashit( TEMPLATEPATH ) . 'library/bareskin.php' );
  4 +$theme = new Bareskin();
  5 +
  6 +/* Do theme setup on the 'after_setup_theme' hook. */
  7 +add_action( 'after_setup_theme', 'bareskin_theme_setup' );
  8 +
  9 +
  10 +
  11 +/**
  12 + * Theme setup function. This function adds support for theme features and defines the default theme
  13 + * actions and filters.
  14 + *
  15 + * @since 0.1.0
  16 + */
  17 +function bareskin_theme_setup() {
  18 +
  19 + add_theme_support( 'bareskin-theme-settings', array( 'about', 'footer', 'logo-favicon', 'archive-display', 'color-variations', 'style-minify' ) );
  20 + add_theme_support( 'bareskin-custom-background' );
  21 + add_theme_support( 'bareskin-content-functions' );
  22 + add_theme_support( 'bareskin-sidebars', array( 'primary', 'secondary', 'subsidiary', 'subsidiary2', 'subsidiary3', 'before-content', 'after-content' ) );
  23 + add_theme_support( 'bareskin-menus', array( 'primary', 'secondary' ) );
  24 + add_theme_support( 'bareskin-get-image' );
  25 + add_theme_support( 'bareskin-breadcrumb' );
  26 + add_theme_support( 'bareskin-shortcodes' );
  27 + add_theme_support( 'bareskin-widgets', array( 'recent-posts', 'advanced-text' ) );
  28 +
  29 + add_theme_support( 'post-formats', array( 'aside', 'chat', 'gallery', 'image', 'link', 'quote', 'status', 'video', 'audio' ) );
  30 +
  31 +
  32 +
  33 +}
  34 +
  35 +
  36 +
  37 +
  38 +
  39 +
  40 +?>
102 header.php
... ... @@ -0,0 +1,102 @@
  1 +<?php
  2 +/**
  3 + * The Header for our theme.
  4 + *
  5 + * Displays all of the <head> section and everything up till <div id="main">
  6 + *
  7 + * @package WordPress
  8 + * @subpackage BareSkin
  9 + *
  10 + */
  11 +?><!DOCTYPE html>
  12 +<!--[if IE 6]>
  13 +<html id="ie6" <?php language_attributes(); ?>>
  14 +<![endif]-->
  15 +<!--[if IE 7]>
  16 +<html id="ie7" <?php language_attributes(); ?>>
  17 +<![endif]-->
  18 +<!--[if IE 8]>
  19 +<html id="ie8" <?php language_attributes(); ?>>
  20 +<![endif]-->
  21 +<!--[if !(IE 6) | !(IE 7) | !(IE 8) ]><!-->
  22 +<html <?php language_attributes(); ?>>
  23 +<!--<![endif]-->
  24 +<head>
  25 +<meta charset="<?php bloginfo( 'charset' ); ?>" />
  26 +<meta name="viewport" content="width=device-width" />
  27 +<title><?php
  28 + /*
  29 + * Print the <title> tag based on what is being viewed.
  30 + */
  31 + global $page, $paged;
  32 +
  33 + wp_title( '|', true, 'right' );
  34 +
  35 + // Add the blog name.
  36 + bloginfo( 'name' );
  37 +
  38 + // Add the blog description for the home/front page.
  39 + $site_description = get_bloginfo( 'description', 'display' );
  40 + if ( $site_description && ( is_home() || is_front_page() ) )
  41 + echo " | $site_description";
  42 +
  43 + // Add a page number if necessary:
  44 + if ( $paged >= 2 || $page >= 2 )
  45 + echo ' | ' . sprintf( __( 'Page %s', bareskin_get_textdomain() ), max( $paged, $page ) );
  46 +
  47 + ?></title>
  48 +<link rel="profile" href="http://gmpg.org/xfn/11" />
  49 +<?php
  50 + /* Get theme-supported meta boxes for the settings page. */
  51 + $supports = get_theme_support( 'bareskin-theme-settings' );
  52 +
  53 + if ( in_array( 'style-minify', $supports[0] ) ){
  54 + $style_to_use = bareskin_get_setting( 'style_to_use' );
  55 + if( $style_to_use == 'style' || $style_to_use === false ){
  56 +?>
  57 +<link rel="stylesheet" type="text/css" media="all" href="<?php echo get_stylesheet_uri().'?'.bareskin_get_filemtime('stylesheet'); ?>" />
  58 +<?php
  59 + }
  60 + else{
  61 +?>
  62 +<link rel="stylesheet" type="text/css" media="all" href="<?php echo get_stylesheet_directory_uri().'/style.dev.css?'.bareskin_get_filemtime('style.dev.css'); ?>" />
  63 +<?php
  64 + }
  65 + }
  66 + else{
  67 +?>
  68 + <link rel="stylesheet" type="text/css" media="all" href="<?php echo get_stylesheet_uri().'?'.bareskin_get_filemtime('stylesheet'); ?>" />
  69 +<?php
  70 + }
  71 +?>
  72 +<?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>
  73 +<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
  74 +<!--[if lt IE 9]>
  75 +<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
  76 +<![endif]-->
  77 +
  78 +<?php wp_head(); ?>
  79 +</head>
  80 +
  81 +<body <?php body_class(); ?>>
  82 +<div id="wrapper" class="hfeed">
  83 + <header id="branding" role="banner">
  84 + <div id="inner-header">
  85 + <hgroup>
  86 + <h1 id="site-title">
  87 + <a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
  88 + <?php if( bareskin_get_setting( 'logo_source' ) ): ?>
  89 + <img src="<?php echo bareskin_get_setting( 'logo_source' ) ?>" width="350" height="150"/>
  90 + <?php else: ?>
  91 + <?php bloginfo( 'name' ); ?>
  92 + <?php endif; ?>
  93 + </a>
  94 + </h1>
  95 + <h2 id="site-description"><?php bloginfo( 'description' ); ?></h2>
  96 + </hgroup>
  97 +
  98 + <?php get_template_part( 'menu', 'primary' ); // Loads the menu-primary.php template. ?>
  99 + </div><!-- #inner-header -->
  100 + </header><!-- #branding -->
  101 + <div id="main-wrapper">
  102 + <div id="main">
56 index.php
... ... @@ -0,0 +1,56 @@
  1 +<?php
  2 +/**
  3 + * The main template file.
  4 + *
  5 + * This is the most generic template file in a WordPress theme
  6 + * and one of the two required files for a theme (the other being style.css).
  7 + * It is used to display a page when nothing more specific matches a query.
  8 + * E.g., it puts together the home page when no home.php file exists.
  9 + * Learn more: http://codex.wordpress.org/Template_Hierarchy
  10 + *
  11 + * @package WordPress
  12 + * @subpackage BareSkin
  13 + */
  14 +
  15 +get_header();?>
  16 +
  17 + <div id="container">
  18 + <div id="content" role="main">
  19 +
  20 + <?php if ( have_posts() ) : ?>
  21 +
  22 + <?php /* Start the Loop */ ?>
  23 + <?php while ( have_posts() ) : the_post(); ?>
  24 +
  25 + <?php
  26 + /* Include the Post-Format-specific template for the content.
  27 + * If you want to overload this in a child theme then include a file
  28 + * called content-___.php (where ___ is the Post Format name) and that will be used instead.
  29 + */
  30 + get_template_part( 'content', get_post_format() );
  31 + ?>
  32 +
  33 + <?php endwhile; ?>
  34 +
  35 + <?php get_template_part( 'loop-nav' ); ?>
  36 +
  37 + <?php else : ?>
  38 +
  39 + <article id="post-0" class="post no-results not-found">
  40 + <header class="entry-header">
  41 + <h1 class="entry-title"><?php _e( 'Nothing Found', bareskin_get_textdomain() ); ?></h1>
  42 + </header><!-- .entry-header -->
  43 +
  44 + <div class="entry-content">
  45 + <p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', bareskin_get_textdomain() ); ?></p>
  46 + <?php get_search_form(); ?>
  47 + </div><!-- .entry-content -->
  48 + </article><!-- #post-0 -->
  49 +
  50 + <?php endif; ?>
  51 +
  52 + </div><!-- #content -->
  53 + </div><!-- #container -->
  54 +
  55 +<?php get_sidebar(); ?>
  56 +<?php get_footer(); ?>
3  js/html5.js
... ... @@ -0,0 +1,3 @@
  1 +// html5shiv MIT @rem remysharp.com/html5-enabling-script
  2 +// iepp v1.6.2 MIT @jon_neal iecss.com/print-protector
  3 +/*@cc_on(function(a,b){function r(a){var b=-1;while(++b<f)a.createElement(e[b])}if(!(!window.attachEvent||!b.createStyleSheet||!function(){var a=document.createElement("div");a.innerHTML="<elem></elem>";return a.childNodes.length!==1}())){a.iepp=a.iepp||{};var c=a.iepp,d=c.html5elements||"abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",e=d.split("|"),f=e.length,g=new RegExp("(^|\\s)("+d+")","gi"),h=new RegExp("<(/*)("+d+")","gi"),i=/^\s*[\{\}]\s*$/,j=new RegExp("(^|[^\\n]*?\\s)("+d+")([^\\n]*)({[\\n\\w\\W]*?})","gi"),k=b.createDocumentFragment(),l=b.documentElement,m=l.firstChild,n=b.createElement("body"),o=b.createElement("style"),p=/print|all/,q;c.getCSS=function(a,b){if(a+""===undefined)return"";var d=-1,e=a.length,f,g=[];while(++d<e){f=a[d];if(f.disabled)continue;b=f.media||b,p.test(b)&&g.push(c.getCSS(f.imports,b),f.cssText),b="all"}return g.join("")},c.parseCSS=function(a){var b=[],c;while((c=j.exec(a))!=null)b.push(((i.exec(c[1])?"\n":c[1])+c[2]+c[3]).replace(g,"$1.iepp_$2")+c[4]);return b.join("\n")},c.writeHTML=function(){var a=-1;q=q||b.body;while(++a<f){var c=b.getElementsByTagName(e[a]),d=c.length,g=-1;while(++g<d)c[g].className.indexOf("iepp_")<0&&(c[g].className+=" iepp_"+e[a])}k.appendChild(q),l.appendChild(n),n.className=q.className,n.id=q.id,n.innerHTML=q.innerHTML.replace(h,"<$1font")},c._beforePrint=function(){o.styleSheet.cssText=c.parseCSS(c.getCSS(b.styleSheets,"all")),c.writeHTML()},c.restoreHTML=function(){n.innerHTML="",l.removeChild(n),l.appendChild(q)},c._afterPrint=function(){c.restoreHTML(),o.styleSheet.cssText=""},r(b),r(k);if(c.disablePP)return;m.insertBefore(o,m.firstChild),o.media="print",o.className="iepp-printshim",a.attachEvent("onbeforeprint",c._beforePrint),a.attachEvent("onafterprint",c._afterPrint)}})(this,document)@*/
90 library/admin/Minify/CommentPreserver.php
... ... @@ -0,0 +1,90 @@
  1 +<?php
  2 +/**
  3 + * Class Minify_CommentPreserver
  4 + * @package Minify
  5 + */
  6 +
  7 +/**
  8 + * Process a string in pieces preserving C-style comments that begin with "/*!"
  9 + *
  10 + * @package Minify
  11 + * @author Stephen Clay <steve@mrclay.org>
  12 + */
  13 +class Minify_CommentPreserver {
  14 +
  15 + /**
  16 + * String to be prepended to each preserved comment
  17 + *
  18 + * @var string
  19 + */
  20 + public static $prepend = "\n";
  21 +
  22 + /**
  23 + * String to be appended to each preserved comment
  24 + *
  25 + * @var string
  26 + */
  27 + public static $append = "\n";
  28 +
  29 + /**
  30 + * Process a string outside of C-style comments that begin with "/*!"
  31 + *
  32 + * On each non-empty string outside these comments, the given processor
  33 + * function will be called. The first "!" will be removed from the
  34 + * preserved comments, and the comments will be surrounded by
  35 + * Minify_CommentPreserver::$preprend and Minify_CommentPreserver::$append.
  36 + *
  37 + * @param string $content
  38 + * @param callback $processor function
  39 + * @param array $args array of extra arguments to pass to the processor
  40 + * function (default = array())
  41 + * @return string
  42 + */
  43 + public static function process($content, $processor, $args = array())
  44 + {
  45 + $ret = '';
  46 + while (true) {
  47 + list($beforeComment, $comment, $afterComment) = self::_nextComment($content);
  48 + if ('' !== $beforeComment) {
  49 + $callArgs = $args;
  50 + array_unshift($callArgs, $beforeComment);
  51 + $ret .= call_user_func_array($processor, $callArgs);
  52 + }
  53 + if (false === $comment) {
  54 + break;
  55 + }
  56 + $ret .= $comment;
  57 + $content = $afterComment;
  58 + }
  59 + return $ret;
  60 + }
  61 +
  62 + /**
  63 + * Extract comments that YUI Compressor preserves.
  64 + *
  65 + * @param string $in input
  66 + *
  67 + * @return array 3 elements are returned. If a YUI comment is found, the
  68 + * 2nd element is the comment and the 1st and 2nd are the surrounding
  69 + * strings. If no comment is found, the entire string is returned as the
  70 + * 1st element and the other two are false.
  71 + */
  72 + private static function _nextComment($in)
  73 + {
  74 + if (
  75 + false === ($start = strpos($in, '/*!'))
  76 + || false === ($end = strpos($in, '*/', $start + 3))
  77 + ) {
  78 + return array($in, false, false);
  79 + }
  80 + $ret = array(
  81 + substr($in, 0, $start)
  82 + ,self::$prepend . '/*' . substr($in, $start + 3, $end - $start - 1) . self::$append
  83 + );
  84 + $endChars = (strlen($in) - $end - 2);
  85 + $ret[] = (0 === $endChars)
  86 + ? ''
  87 + : substr($in, -$endChars);
  88 + return $ret;
  89 + }
  90 +}
250 library/admin/Minify/Compressor.php
... ... @@ -0,0 +1,250 @@
  1 +<?php
  2 +/**
  3 + * Class Minify_CSS_Compressor
  4 + * @package Minify
  5 + */
  6 +
  7 +/**
  8 + * Compress CSS
  9 + *
  10 + * This is a heavy regex-based removal of whitespace, unnecessary
  11 + * comments and tokens, and some CSS value minimization, where practical.
  12 + * Many steps have been taken to avoid breaking comment-based hacks,
  13 + * including the ie5/mac filter (and its inversion), but expect tricky
  14 + * hacks involving comment tokens in 'content' value strings to break
  15 + * minimization badly. A test suite is available.
  16 + *
  17 + * @package Minify
  18 + * @author Stephen Clay <steve@mrclay.org>
  19 + * @author http://code.google.com/u/1stvamp/ (Issue 64 patch)
  20 + */
  21 +class Minify_CSS_Compressor {
  22 +
  23 + /**
  24 + * Minify a CSS string
  25 + *
  26 + * @param string $css
  27 + *
  28 + * @param array $options (currently ignored)
  29 + *
  30 + * @return string
  31 + */
  32 + public static function process($css, $options = array())
  33 + {
  34 + $obj = new Minify_CSS_Compressor($options);
  35 + return $obj->_process($css);
  36 + }
  37 +
  38 + /**
  39 + * @var array options
  40 + */
  41 + protected $_options = null;
  42 +
  43 + /**
  44 + * @var bool Are we "in" a hack?
  45 + *
  46 + * I.e. are some browsers targetted until the next comment?
  47 + */
  48 + protected $_inHack = false;
  49 +
  50 +
  51 + /**
  52 + * Constructor
  53 + *
  54 + * @param array $options (currently ignored)
  55 + *
  56 + * @return null
  57 + */
  58 + private function __construct($options) {
  59 + $this->_options = $options;
  60 + }
  61 +
  62 + /**
  63 + * Minify a CSS string
  64 + *
  65 + * @param string $css
  66 + *
  67 + * @return string
  68 + */
  69 + protected function _process($css)
  70 + {
  71 + $css = str_replace("\r\n", "\n", $css);
  72 +
  73 + // preserve empty comment after '>'
  74 + // http://www.webdevout.net/css-hacks#in_css-selectors
  75 + $css = preg_replace('@>/\\*\\s*\\*/@', '>/*keep*/', $css);
  76 +
  77 + // preserve empty comment between property and value
  78 + // http://css-discuss.incutio.com/?page=BoxModelHack
  79 + $css = preg_replace('@/\\*\\s*\\*/\\s*:@', '/*keep*/:', $css);
  80 + $css = preg_replace('@:\\s*/\\*\\s*\\*/@', ':/*keep*/', $css);
  81 +
  82 + // apply callback to all valid comments (and strip out surrounding ws
  83 + $css = preg_replace_callback('@\\s*/\\*([\\s\\S]*?)\\*/\\s*@'
  84 + ,array($this, '_commentCB'), $css);
  85 +
  86 + // remove ws around { } and last semicolon in declaration block
  87 + $css = preg_replace('/\\s*{\\s*/', '{', $css);
  88 + $css = preg_replace('/;?\\s*}\\s*/', '}', $css);
  89 +
  90 + // remove ws surrounding semicolons
  91 + $css = preg_replace('/\\s*;\\s*/', ';', $css);
  92 +
  93 + // remove ws around urls
  94 + $css = preg_replace('/
  95 + url\\( # url(
  96 + \\s*
  97 + ([^\\)]+?) # 1 = the URL (really just a bunch of non right parenthesis)
  98 + \\s*
  99 + \\) # )
  100 + /x', 'url($1)', $css);
  101 +
  102 + // remove ws between rules and colons
  103 + $css = preg_replace('/
  104 + \\s*
  105 + ([{;]) # 1 = beginning of block or rule separator
  106 + \\s*
  107 + ([\\*_]?[\\w\\-]+) # 2 = property (and maybe IE filter)
  108 + \\s*
  109 + :
  110 + \\s*
  111 + (\\b|[#\'"]) # 3 = first character of a value
  112 + /x', '$1$2:$3', $css);
  113 +
  114 + // remove ws in selectors
  115 + $css = preg_replace_callback('/
  116 + (?: # non-capture
  117 + \\s*
  118 + [^~>+,\\s]+ # selector part
  119 + \\s*
  120 + [,>+~] # combinators
  121 + )+
  122 + \\s*
  123 + [^~>+,\\s]+ # selector part
  124 + { # open declaration block
  125 + /x'
  126 + ,array($this, '_selectorsCB'), $css);
  127 +
  128 + // minimize hex colors
  129 + $css = preg_replace('/([^=])#([a-f\\d])\\2([a-f\\d])\\3([a-f\\d])\\4([\\s;\\}])/i'
  130 + , '$1#$2$3$4$5', $css);
  131 +
  132 + // remove spaces between font families
  133 + $css = preg_replace_callback('/font-family:([^;}]+)([;}])/'
  134 + ,array($this, '_fontFamilyCB'), $css);
  135 +
  136 + $css = preg_replace('/@import\\s+url/', '@import url', $css);
  137 +
  138 + // replace any ws involving newlines with a single newline
  139 + $css = preg_replace('/[ \\t]*\\n+\\s*/', "\n", $css);
  140 +
  141 + // separate common descendent selectors w/ newlines (to limit line lengths)
  142 + $css = preg_replace('/([\\w#\\.\\*]+)\\s+([\\w#\\.\\*]+){/', "$1\n$2{", $css);
  143 +
  144 + // Use newline after 1st numeric value (to limit line lengths).
  145 + $css = preg_replace('/
  146 + ((?:padding|margin|border|outline):\\d+(?:px|em)?) # 1 = prop : 1st numeric value
  147 + \\s+
  148 + /x'
  149 + ,"$1\n", $css);
  150 +
  151 + // prevent triggering IE6 bug: http://www.crankygeek.com/ie6pebug/
  152 + $css = preg_replace('/:first-l(etter|ine)\\{/', ':first-l$1 {', $css);
  153 +
  154 + return trim($css);
  155 + }
  156 +
  157 + /**
  158 + * Replace what looks like a set of selectors
  159 + *
  160 + * @param array $m regex matches
  161 + *
  162 + * @return string
  163 + */
  164 + protected function _selectorsCB($m)
  165 + {
  166 + // remove ws around the combinators
  167 + return preg_replace('/\\s*([,>+~])\\s*/', '$1', $m[0]);
  168 + }
  169 +
  170 + /**
  171 + * Process a comment and return a replacement
  172 + *
  173 + * @param array $m regex matches
  174 + *
  175 + * @return string
  176 + */
  177 + protected function _commentCB($m)
  178 + {
  179 + $hasSurroundingWs = (trim($m[0]) !== $m[1]);
  180 + $m = $m[1];
  181 + // $m is the comment content w/o the surrounding tokens,
  182 + // but the return value will replace the entire comment.
  183 + if ($m === 'keep') {
  184 + return '/**/';
  185 + }
  186 + if ($m === '" "') {
  187 + // component of http://tantek.com/CSS/Examples/midpass.html
  188 + return '/*" "*/';
  189 + }
  190 + if (preg_match('@";\\}\\s*\\}/\\*\\s+@', $m)) {
  191 + // component of http://tantek.com/CSS/Examples/midpass.html
  192 + return '/*";}}/* */';
  193 + }
  194 + if ($this->_inHack) {
  195 + // inversion: feeding only to one browser
  196 + if (preg_match('@
  197 + ^/ # comment started like /*/
  198 + \\s*
  199 + (\\S[\\s\\S]+?) # has at least some non-ws content
  200 + \\s*
  201 + /\\* # ends like /*/ or /**/
  202 + @x', $m, $n)) {
  203 + // end hack mode after this comment, but preserve the hack and comment content
  204 + $this->_inHack = false;
  205 + return "/*/{$n[1]}/**/";
  206 + }
  207 + }
  208 + if (substr($m, -1) === '\\') { // comment ends like \*/
  209 + // begin hack mode and preserve hack
  210 + $this->_inHack = true;
  211 + return '/*\\*/';
  212 + }
  213 + if ($m !== '' && $m[0] === '/') { // comment looks like /*/ foo */
  214 + // begin hack mode and preserve hack
  215 + $this->_inHack = true;
  216 + return '/*/*/';
  217 + }
  218 + if ($this->_inHack) {
  219 + // a regular comment ends hack mode but should be preserved
  220 + $this->_inHack = false;
  221 + return '/**/';
  222 + }
  223 + // Issue 107: if there's any surrounding whitespace, it may be important, so
  224 + // replace the comment with a single space
  225 + return $hasSurroundingWs // remove all other comments
  226 + ? ' '
  227 + : '';
  228 + }
  229 +
  230 + /**
  231 + * Process a font-family listing and return a replacement
  232 + *
  233 + * @param array $m regex matches
  234 + *
  235 + * @return string
  236 + */
  237 + protected function _fontFamilyCB($m)
  238 + {
  239 + $m[1] = preg_replace('/
  240 + \\s*
  241 + (
  242 + "[^"]+" # 1 = family in double qutoes
  243 + |\'[^\']+\' # or 1 = family in single quotes
  244 + |[\\w\\-]+ # or 1 = unquoted family
  245 + )
  246 + \\s*
  247 + /x', '$1', $m[1]);
  248 + return 'font-family:' . $m[1] . $m[2];
  249 + }
  250 +}
31 library/admin/admin.php
... ... @@ -0,0 +1,31 @@
  1 +<?php
  2 +/**
  3 + * Theme administration functions used with other components of the theme admin. This file is for
  4 + * setting up any basic features and holding additional admin helper functions.
  5 + *
  6 + * @package BareSkin
  7 + * @subpackage Admin
  8 + */
  9 +
  10 + /**
  11 + * Creates a settings field id attribute for use on the theme settings page. This is a helper function for use
  12 + * with the WordPress settings API.
  13 + *
  14 + * @since 1.0.0
  15 + * @param string $setting. The name for the setting