Permalink
Browse files

adv recent posts widget

  • Loading branch information...
1 parent 8a83bac commit dedacb87a156fc61be00348e87305a413df06bd0 @madalinungureanu committed Oct 17, 2011
Showing with 4,344 additions and 4,172 deletions.
  1. +29 −29 bareskin/footer.php
  2. +1 −0 bareskin/functions.php
  3. +101 −101 bareskin/header.php
  4. +250 −250 bareskin/library/admin/Minify/Compressor.php
  5. +30 −30 bareskin/library/admin/admin.php
  6. +56 −56 bareskin/library/admin/meta-box-archive-display.php
  7. +156 −156 bareskin/library/admin/meta-box-style-css-compression.php
  8. +82 −82 bareskin/library/admin/meta-box-theme-about.php
  9. +79 −79 bareskin/library/admin/meta-box-theme-font.php
  10. +68 −68 bareskin/library/admin/meta-box-theme-footer.php
  11. +189 −189 bareskin/library/admin/meta-box-theme-logo-and-favicon.php
  12. +250 −250 bareskin/library/admin/theme-settings.php
  13. +182 −182 bareskin/library/bareskin.php
  14. +75 −75 bareskin/library/css/admin.css
  15. +3 −3 bareskin/library/css/reset.css
  16. +151 −151 bareskin/library/css/responsive.css
  17. +571 −571 bareskin/library/functions/breadcrumb-trail.php
  18. +21 −21 bareskin/library/functions/color_variation.php
  19. +55 −55 bareskin/library/functions/comments.php
  20. +103 −103 bareskin/library/functions/content.php
  21. +119 −119 bareskin/library/functions/core.php
  22. +99 −99 bareskin/library/functions/fonts.php
  23. +497 −497 bareskin/library/functions/get-the-image.php
  24. +66 −66 bareskin/library/functions/menus.php
  25. +113 −113 bareskin/library/functions/shortcodes.php
  26. +119 −119 bareskin/library/functions/sidebars.php
  27. +8 −0 bareskin/library/functions/widgets.php
  28. +163 −0 bareskin/library/widgets/widget_adv_recent_posts.php
  29. +50 −50 bareskin/library/widgets/widget_advertisment.php
  30. +39 −39 bareskin/loop-nav.php
  31. +1 −1 bareskin/readme.txt
  32. +15 −15 bareskin/searchform.php
  33. +15 −15 bareskin/sidebar-after-content.php
  34. +15 −15 bareskin/sidebar-before-content.php
  35. +28 −28 bareskin/sidebar-subsidiary.php
  36. +545 −545 bareskin/style.css
View
@@ -1,30 +1,30 @@
-<?php
-/**
- * The template for displaying the footer.
- *
- * Contains the closing of the id=main div and all content after
- *
- * @package WordPress
- * @subpackage BareSkin
- *
- */
-?>
-
- </div><!-- #main -->
- </div><!-- #main-wrapper -->
-
- <?php get_sidebar( 'subsidiary' );?>
-
- <footer id="colophon" role="contentinfo">
- <div id="inner-footer">
- <div id="site-generator">
- <?php echo do_shortcode( bareskin_get_setting( 'footer_insert' ) ); ?>
- </div>
- </div><!-- #inner-footer -->
- </footer><!-- #colophon -->
-</div><!-- #wrapper -->
-
-<?php wp_footer(); ?>
-
-</body>
+<?php
+/**
+ * The template for displaying the footer.
+ *
+ * Contains the closing of the id=main div and all content after
+ *
+ * @package WordPress
+ * @subpackage BareSkin
+ *
+ */
+?>
+
+ </div><!-- #main -->
+ </div><!-- #main-wrapper -->
+
+ <?php get_sidebar( 'subsidiary' );?>
+
+ <footer id="colophon" role="contentinfo">
+ <div id="inner-footer">
+ <div id="site-generator">
+ <?php echo do_shortcode( bareskin_get_setting( 'footer_insert' ) ); ?>
+ </div>
+ </div><!-- #inner-footer -->
+ </footer><!-- #colophon -->
+</div><!-- #wrapper -->
+
+<?php wp_footer(); ?>
+
+</body>
</html>
@@ -24,6 +24,7 @@ function bareskin_theme_setup() {
add_theme_support( 'bareskin-get-image' );
add_theme_support( 'bareskin-breadcrumb' );
add_theme_support( 'bareskin-shortcodes' );
+ add_theme_support( 'bareskin-widgets', array( 'recent-posts' ) );
add_theme_support( 'post-formats', array( 'aside', 'chat', 'gallery', 'image', 'link', 'quote', 'status', 'video', 'audio' ) );
View
@@ -1,102 +1,102 @@
-<?php
-/**
- * The Header for our theme.
- *
- * Displays all of the <head> section and everything up till <div id="main">
- *
- * @package WordPress
- * @subpackage BareSkin
- *
- */
-?><!DOCTYPE html>
-<!--[if IE 6]>
-<html id="ie6" <?php language_attributes(); ?>>
-<![endif]-->
-<!--[if IE 7]>
-<html id="ie7" <?php language_attributes(); ?>>
-<![endif]-->
-<!--[if IE 8]>
-<html id="ie8" <?php language_attributes(); ?>>
-<![endif]-->
-<!--[if !(IE 6) | !(IE 7) | !(IE 8) ]><!-->
-<html <?php language_attributes(); ?>>
-<!--<![endif]-->
-<head>
-<meta charset="<?php bloginfo( 'charset' ); ?>" />
-<meta name="viewport" content="width=device-width" />
-<title><?php
- /*
- * Print the <title> tag based on what is being viewed.
- */
- global $page, $paged;
-
- wp_title( '|', true, 'right' );
-
- // Add the blog name.
- bloginfo( 'name' );
-
- // Add the blog description for the home/front page.
- $site_description = get_bloginfo( 'description', 'display' );
- if ( $site_description && ( is_home() || is_front_page() ) )
- echo " | $site_description";
-
- // Add a page number if necessary:
- if ( $paged >= 2 || $page >= 2 )
- echo ' | ' . sprintf( __( 'Page %s', bareskin_get_textdomain() ), max( $paged, $page ) );
-
- ?></title>
-<link rel="profile" href="http://gmpg.org/xfn/11" />
-<?php
- /* Get theme-supported meta boxes for the settings page. */
- $supports = get_theme_support( 'bareskin-theme-settings' );
-
- if ( in_array( 'style-minify', $supports[0] ) ){
- $style_to_use = bareskin_get_setting( 'style_to_use' );
- if( $style_to_use == 'style' || $style_to_use === false ){
-?>
-<link rel="stylesheet" type="text/css" media="all" href="<?php echo get_stylesheet_uri().'?'.bareskin_get_filemtime('stylesheet'); ?>" />
-<?php
- }
- else{
-?>
-<link rel="stylesheet" type="text/css" media="all" href="<?php echo get_stylesheet_directory_uri().'/style.dev.css?'.bareskin_get_filemtime('style.dev.css'); ?>" />
-<?php
- }
- }
- else{
-?>
- <link rel="stylesheet" type="text/css" media="all" href="<?php echo get_stylesheet_uri().'?'.bareskin_get_filemtime('stylesheet'); ?>" />
-<?php
- }
-?>
-<?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>
-<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
-<!--[if lt IE 9]>
-<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
-<![endif]-->
-
-<?php wp_head(); ?>
-</head>
-
-<body <?php body_class(); ?>>
-<div id="wrapper" class="hfeed">
- <header id="branding" role="banner">
- <div id="inner-header">
- <hgroup>
- <h1 id="site-title">
- <a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
- <?php if( bareskin_get_setting( 'logo_source' ) ): ?>
- <img src="<?php echo bareskin_get_setting( 'logo_source' ) ?>" width="350" height="150"/>
- <?php else: ?>
- <?php bloginfo( 'name' ); ?>
- <?php endif; ?>
- </a>
- </h1>
- <h2 id="site-description"><?php bloginfo( 'description' ); ?></h2>
- </hgroup>
-
- <?php get_template_part( 'menu', 'primary' ); // Loads the menu-primary.php template. ?>
- </div><!-- #inner-header -->
- </header><!-- #branding -->
- <div id="main-wrapper">
+<?php
+/**
+ * The Header for our theme.
+ *
+ * Displays all of the <head> section and everything up till <div id="main">
+ *
+ * @package WordPress
+ * @subpackage BareSkin
+ *
+ */
+?><!DOCTYPE html>
+<!--[if IE 6]>
+<html id="ie6" <?php language_attributes(); ?>>
+<![endif]-->
+<!--[if IE 7]>
+<html id="ie7" <?php language_attributes(); ?>>
+<![endif]-->
+<!--[if IE 8]>
+<html id="ie8" <?php language_attributes(); ?>>
+<![endif]-->
+<!--[if !(IE 6) | !(IE 7) | !(IE 8) ]><!-->
+<html <?php language_attributes(); ?>>
+<!--<![endif]-->
+<head>
+<meta charset="<?php bloginfo( 'charset' ); ?>" />
+<meta name="viewport" content="width=device-width" />
+<title><?php
+ /*
+ * Print the <title> tag based on what is being viewed.
+ */
+ global $page, $paged;
+
+ wp_title( '|', true, 'right' );
+
+ // Add the blog name.
+ bloginfo( 'name' );
+
+ // Add the blog description for the home/front page.
+ $site_description = get_bloginfo( 'description', 'display' );
+ if ( $site_description && ( is_home() || is_front_page() ) )
+ echo " | $site_description";
+
+ // Add a page number if necessary:
+ if ( $paged >= 2 || $page >= 2 )
+ echo ' | ' . sprintf( __( 'Page %s', bareskin_get_textdomain() ), max( $paged, $page ) );
+
+ ?></title>
+<link rel="profile" href="http://gmpg.org/xfn/11" />
+<?php
+ /* Get theme-supported meta boxes for the settings page. */
+ $supports = get_theme_support( 'bareskin-theme-settings' );
+
+ if ( in_array( 'style-minify', $supports[0] ) ){
+ $style_to_use = bareskin_get_setting( 'style_to_use' );
+ if( $style_to_use == 'style' || $style_to_use === false ){
+?>
+<link rel="stylesheet" type="text/css" media="all" href="<?php echo get_stylesheet_uri().'?'.bareskin_get_filemtime('stylesheet'); ?>" />
+<?php
+ }
+ else{
+?>
+<link rel="stylesheet" type="text/css" media="all" href="<?php echo get_stylesheet_directory_uri().'/style.dev.css?'.bareskin_get_filemtime('style.dev.css'); ?>" />
+<?php
+ }
+ }
+ else{
+?>
+ <link rel="stylesheet" type="text/css" media="all" href="<?php echo get_stylesheet_uri().'?'.bareskin_get_filemtime('stylesheet'); ?>" />
+<?php
+ }
+?>
+<?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>
+<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
+<!--[if lt IE 9]>
+<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
+<![endif]-->
+
+<?php wp_head(); ?>
+</head>
+
+<body <?php body_class(); ?>>
+<div id="wrapper" class="hfeed">
+ <header id="branding" role="banner">
+ <div id="inner-header">
+ <hgroup>
+ <h1 id="site-title">
+ <a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
+ <?php if( bareskin_get_setting( 'logo_source' ) ): ?>
+ <img src="<?php echo bareskin_get_setting( 'logo_source' ) ?>" width="350" height="150"/>
+ <?php else: ?>
+ <?php bloginfo( 'name' ); ?>
+ <?php endif; ?>
+ </a>
+ </h1>
+ <h2 id="site-description"><?php bloginfo( 'description' ); ?></h2>
+ </hgroup>
+
+ <?php get_template_part( 'menu', 'primary' ); // Loads the menu-primary.php template. ?>
+ </div><!-- #inner-header -->
+ </header><!-- #branding -->
+ <div id="main-wrapper">
<div id="main">
Oops, something went wrong.

0 comments on commit dedacb8

Please sign in to comment.