Permalink
Browse files

Importing the News theme files and folders.

git-svn-id: http://svn.locallylost.com/themes/news/trunk@933 dba0f204-706d-4bc1-bc29-8b92e0485636
  • Loading branch information...
0 parents commit 217f7fdece219860abaa658f1cdb4257334d17c7 greenshady committed Dec 5, 2011
Showing with 8,586 additions and 0 deletions.
  1. +63 −0 404.php
  2. +63 −0 archive.php
  3. +87 −0 attachment.php
  4. +111 −0 classes/widget-image-stream.php
  5. +112 −0 classes/widget-newsletter.php
  6. +175 −0 classes/widget-popular-tabs.php
  7. +42 −0 comment.php
  8. +69 −0 comments.php
  9. +339 −0 docs/license.txt
  10. +75 −0 docs/readme.html
  11. BIN fonts/Lobster_1.3-webfont.eot
  12. +144 −0 fonts/Lobster_1.3-webfont.svg
  13. BIN fonts/Lobster_1.3-webfont.ttf
  14. BIN fonts/Lobster_1.3-webfont.woff
  15. +86 −0 fonts/OFL.txt
  16. BIN fonts/league_gothic-webfont.eot
  17. +223 −0 fonts/league_gothic-webfont.svg
  18. BIN fonts/league_gothic-webfont.ttf
  19. BIN fonts/league_gothic-webfont.woff
  20. +54 −0 footer.php
  21. +430 −0 functions.php
  22. +102 −0 functions/admin.php
  23. +225 −0 functions/shortcodes.php
  24. +68 −0 header.php
  25. BIN images/bg-breadcrumb.jpg
  26. BIN images/bg-container-bottom.jpg
  27. BIN images/bg-container-bottom.png
  28. BIN images/bg-container.png
  29. BIN images/bg-content.png
  30. BIN images/bg-entry-utility.png
  31. BIN images/bg-footer.png
  32. BIN images/bg-header-search.png
  33. BIN images/bg-header.png
  34. BIN images/bg-menu-footer.png
  35. BIN images/bg-menu-primary-item-y.png
  36. BIN images/bg-post.png
  37. BIN images/bg-shortlink-popup-inner.png
  38. BIN images/bg-shortlink-popup-shadow.png
  39. BIN images/bg-shortlink-popup-title.png
  40. BIN images/bg-shortlink.png
  41. BIN images/bg-sidebar-calendar-td.png
  42. BIN images/bg-sidebar-calendar-tfoot.png
  43. BIN images/bg-sidebar-calendar-th.png
  44. BIN images/bg-sidebar-newsletter.png
  45. BIN images/bg-sidebar-primary.png
  46. BIN images/bg-sidebar-search-form.png
  47. BIN images/bg-sidebar-ui-tabs-nav-item-selected.png
  48. BIN images/bg-sidebar-ui-tabs-nav-item.png
  49. BIN images/bg-sidebar-ui-tabs-nav.png
  50. BIN images/breadcrumb-sep.png
  51. BIN images/bullet.png
  52. BIN images/calendar-icon.png
  53. BIN images/caption-control.png
  54. BIN images/comment-bg.png
  55. BIN images/comments-bottom.png
  56. BIN images/comments-link-icon.png
  57. BIN images/comments-nav.gif
  58. BIN images/comments-template.png
  59. BIN images/comments-top.png
  60. BIN images/dotted-h.png
  61. BIN images/dotted-v.png
  62. BIN images/email-icon.png
  63. BIN images/feature-sidebar-ui-nav.png
  64. BIN images/feature-sidebar-widget-title.png
  65. BIN images/feature-sidebar.png
  66. BIN images/feature.png
  67. BIN images/footer-menu-bullet.png
  68. BIN images/logo.png
  69. BIN images/menu-secondary-icon-envelope.png
  70. BIN images/menu-secondary-icon-key.png
  71. BIN images/menu-secondary-icon-person.png
  72. BIN images/pagination-gradient.png
  73. BIN images/post-footer.png
  74. BIN images/post-header.png
  75. BIN images/primary-menu-arrows.png
  76. BIN images/primary-menu-current.png
  77. BIN images/primary-menu-level-2.png
  78. BIN images/print-icon.png
  79. BIN images/reply-icon.png
  80. BIN images/respond-input.png
  81. BIN images/rss-icon.png
  82. BIN images/search.png
  83. BIN images/secondary-menu-level-2.png
  84. BIN images/share-icon.png
  85. BIN images/shortlink-icon.png
  86. BIN images/shortlink-light-icon.png
  87. BIN images/singular-featured-title.png
  88. BIN images/slider-controls.png
  89. BIN images/slideshow-title.png
  90. BIN images/submit-button.png
  91. BIN images/tags.png
  92. BIN images/ui-tabs-current.png
  93. BIN images/ui-tabs-top.png
  94. BIN images/view-more.png
  95. BIN images/widget-bottom.png
  96. BIN images/widget-list-item.png
  97. BIN images/widget-top.png
  98. +67 −0 index.php
  99. +4 −0 js/MIT.txt
  100. +121 −0 js/news-theme.js
  101. BIN languages/news-en_EN.mo
  102. +1,302 −0 languages/news-en_EN.po
  103. +1,302 −0 languages/news.pot
  104. +121 −0 loop-meta.php
  105. +28 −0 loop-nav.php
  106. +27 −0 menu-primary.php
  107. +27 −0 menu-secondary.php
  108. +28 −0 menu-subsidiary.php
  109. +196 −0 page-template-home.php
  110. +65 −0 page-template-popular.php
  111. +68 −0 page.php
  112. BIN screenshot.png
  113. +64 −0 search.php
  114. +24 −0 searchform.php
  115. +100 −0 sidebar-after-singular.php
  116. +63 −0 sidebar-feature.php
  117. +20 −0 sidebar-header.php
  118. +24 −0 sidebar-primary.php
  119. +24 −0 sidebar-secondary.php
  120. +82 −0 sidebar-slideshow.php
  121. +82 −0 sidebar-video.php
  122. +11 −0 sidebar.php
  123. +71 −0 singular.php
  124. +65 −0 slideshow.php
  125. +16 −0 style.css
  126. +2,051 −0 style.dev.css
  127. +65 −0 video.php
@@ -0,0 +1,63 @@
+<?php
+/**
+ * 404 Template
+ *
+ * The 404 template is used when a reader visits an invalid URL on your site. By default,
+ * the template will display a generic message. However, if the '404 Template' widget area
+ * is active, its widgets will be displayed instead. This allows users to customize their error
+ * pages in any way they want.
+ *
+ * For more information on how WordPress handles 404 errors:
+ * @link http://codex.wordpress.org/Creating_an_Error_404_Page
+ *
+ * @package News
+ * @subpackage Template
+ */
+
+@header( 'HTTP/1.1 404 Not found', true, 404 );
+
+get_header(); ?>
+
+ <?php do_atomic( 'before_content' ); // Before content hook ?>
+
+ <div id="content">
+
+ <?php do_atomic( 'open_content' ); // Open content hook ?>
+
+ <div class="hfeed">
+
+ <?php if ( is_active_sidebar( 'error-404-template' ) ) : ?>
+
+ <div id="sidebar-error-404" class="sidebar utility">
+ <?php dynamic_sidebar( 'error-404-template' ); ?>
+ </div><!-- #sidebar-error-404 .utility -->
+
+ <?php else: ?>
+
+ <div id="post-0" class="<?php hybrid_entry_class(); ?>">
+
+ <h1 class="error-404-title entry-title"><?php _e( 'Not Found', hybrid_get_textdomain() ); ?></h1>
+
+ <div class="entry-content">
+
+ <p>
+ <?php printf( __( 'You tried going to %1$s, and it doesn\'t exist. All is not lost! You can search for what you\'re looking for.', hybrid_get_textdomain() ), '<code>' . site_url( esc_url( $_SERVER['REQUEST_URI'] ) ) . '</code>' ); ?>
+ </p>
+
+ <?php get_search_form(); ?>
+
+ </div><!-- .entry-content -->
+
+ </div><!-- .hentry -->
+
+ <?php endif; ?>
+
+ </div><!-- .hfeed -->
+
+ <?php do_atomic( 'close_content' ); // Close content hook ?>
+
+ </div><!-- #content -->
+
+ <?php do_atomic( 'after_content' ); // After content hook ?>
+
+<?php get_footer(); ?>
@@ -0,0 +1,63 @@
+<?php
+/**
+ * Archive Template
+ *
+ * The archive template is a placeholder for archives views without a more specific template.
+ *
+ * @package News
+ * @subpackage Template
+ */
+
+get_header(); ?>
+
+ <?php do_atomic( 'before_content' ); // Before content hook ?>
+
+ <div id="content">
+
+ <?php do_atomic( 'open_content' ); // Open content hook ?>
+
+ <div class="hfeed">
+
+ <?php get_template_part( 'loop-meta' ); // Get the loop meta box ?>
+
+ <?php if ( have_posts() ) : ?>
+
+ <?php while ( have_posts() ) : the_post(); ?>
+
+ <?php do_atomic( 'before_entry' ); // Before loop hook ?>
+
+ <div id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
+
+ <?php do_atomic( 'open_entry' ); // Open loop hook ?>
+
+ <?php get_the_image( array( 'meta_key' => array( 'Thumbnail' ), 'size' => 'news-thumbnail' ) ); ?>
+
+ <?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>
+
+ <?php echo apply_atomic_shortcode( 'byline', '<div class="byline">[entry-published] [entry-comments-link] [entry-popup-shortlink] [entry-edit-link before=" | "]</div>' ); ?>
+
+ <div class="entry-summary">
+ <?php the_excerpt(); ?>
+ </div><!-- .entry-summary -->
+
+ <?php do_atomic( 'close_entry' ); // Close loop hook ?>
+
+ </div><!-- .hentry -->
+
+ <?php do_atomic( 'after_entry' ); // After loop hook ?>
+
+ <?php endwhile; ?>
+
+ <?php endif; ?>
+
+ </div><!-- .hfeed -->
+
+ <?php do_atomic( 'close_content' ); // Close content hook ?>
+
+ <?php get_template_part( 'loop-nav' ); ?>
+
+ </div><!-- #content -->
+
+ <?php do_atomic( 'after_content' ); // After content hook ?>
+
+<?php get_footer(); ?>
@@ -0,0 +1,87 @@
+<?php
+/**
+ * Attachment Template
+ *
+ * This is the default attachment template. It is used when visiting the singular view of a post attachment
+ * page (images, videos, audio, etc.).
+ *
+ * @package News
+ * @subpackage Template
+ */
+
+get_header(); ?>
+
+ <?php do_atomic( 'before_content' ); // Before content hook ?>
+
+ <div id="content">
+
+ <?php do_atomic( 'open_content' ); // Open content hook ?>
+
+ <div class="hfeed">
+
+ <?php if ( have_posts() ) : ?>
+
+ <?php while ( have_posts() ) : the_post(); ?>
+
+ <?php do_atomic( 'before_entry' ); // Before loop hook ?>
+
+ <div id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
+
+ <?php do_atomic( 'open_entry' ); // Open loop hook ?>
+
+ <?php echo apply_atomic_shortcode( 'entry_utility', '<div class="entry-utility">' . __( '[entry-print-link] [entry-email-link] [entry-popup-shortlink]', hybrid_get_textdomain() ) . '</div>' ); ?>
+
+ <?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>
+
+ <?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( 'By [entry-author] on [entry-published] [entry-terms taxonomy="category" before=" in "] [entry-edit-link before=" | "]', hybrid_get_textdomain() ) . '</div>' ); ?>
+
+ <div class="entry-content">
+ <?php if ( wp_attachment_is_image( get_the_ID() ) ) : ?>
+
+ <p class="attachment-image">
+ <img class="aligncenter" src="<?php echo wp_get_attachment_url(); ?>" alt="<?php the_title_attribute(); ?>" title="<?php the_title_attribute(); ?>" />
+ </p><!-- .attachment-image -->
+
+ <?php else : ?>
+
+ <?php hybrid_attachment(); ?>
+
+ <p class="download">
+ <a href="<?php echo wp_get_attachment_url(); ?>" title="<?php the_title_attribute(); ?>" rel="enclosure" type="<?php echo get_post_mime_type(); ?>"><?php printf( __( 'Download &quot;%1$s&quot;', hybrid_get_textdomain() ), the_title( '<span class="fn">', '</span>', false) ); ?></a>
+ </p><!-- .download -->
+
+ <?php endif; ?>
+
+ <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', hybrid_get_textdomain() ) ); ?>
+ <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', hybrid_get_textdomain() ), 'after' => '</p>' ) ); ?>
+ </div><!-- .entry-content -->
+
+ <?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . __( '<span class="share">Share this on:</span> [entry-mixx-link] [entry-delicious-link] [entry-digg-link] [entry-facebook-link] [entry-twitter-link]', hybrid_get_textdomain() ) . '</div>' ); ?>
+
+ <?php do_atomic( 'close_loop' ); // Close loop hook ?>
+
+ </div><!-- .hentry -->
+
+ <?php do_atomic( 'after_entry' ); // After loop hook ?>
+
+ <?php get_sidebar( 'after-singular' ); ?>
+
+ <?php do_atomic( 'after_singular' ); // After singular hook ?>
+
+ <?php comments_template( '/comments.php', true ); ?>
+
+ <?php endwhile; ?>
+
+ <?php endif; ?>
+
+ </div><!-- .hfeed -->
+
+ <?php do_atomic( 'close_content' ); // Close content hook ?>
+
+ <?php get_template_part( 'loop-nav' ); ?>
+
+ </div><!-- #content -->
+
+ <?php do_atomic( 'after_content' ); // After content hook ?>
+
+<?php get_footer(); ?>
@@ -0,0 +1,111 @@
+<?php
+/**
+ * Gallery Stream Widget Class
+ *
+ * Pulls post thumbnails by category or tag.
+ *
+ * @since 0.1.0
+ *
+ * @package News
+ * @subpackage Classes
+ */
+
+class News_Widget_Image_Stream extends WP_Widget {
+
+ var $prefix;
+ var $textdomain;
+
+ /**
+ * Set up the widget's unique name, ID, class, description, and other options.
+ * @since 0.1.0
+ */
+ function News_Widget_Image_Stream() {
+ $this->prefix = hybrid_get_prefix();
+ $this->textdomain = hybrid_get_textdomain();
+
+ $widget_ops = array( 'classname' => 'image-stream', 'description' => __( 'Displays image thumbnails in a gallery-like format.', $this->textdomain ) );
+ $control_ops = array( 'width' => 200, 'height' => 350, 'id_base' => "{$this->prefix}-image-stream" );
+ $this->WP_Widget( "{$this->prefix}-image-stream", __( 'News: Image Stream', $this->textdomain ), $widget_ops, $control_ops );
+ }
+
+ /**
+ * Outputs the widget based on the arguments input through the widget controls.
+ * @since 0.1.0
+ */
+ function widget( $args, $instance ) {
+ extract( $args );
+
+ $args = array();
+
+ $posts_per_page = intval( $instance['posts_per_page'] );
+
+ echo $before_widget;
+
+ if ( $instance['title'] )
+ echo $before_title . apply_filters( 'widget_title', $instance['title'] ) . $after_title;
+
+ $loop = new WP_Query( array( 'post_type' => 'attachment', 'post_mime_type' => 'image', 'post_status' => 'inherit', 'posts_per_page' => $posts_per_page, 'orderby' => 'parent' ) );
+
+ echo '<div>';
+
+ if ( $loop->have_posts() ) {
+
+ while ( $loop->have_posts() ) {
+
+ $loop->the_post();
+
+ get_the_image( array( 'size' => 'thumbnail' ) );
+ }
+ } else {
+ echo '<p>' . __( 'There are currently no images found.', $this->textdomain ) . '</p>';
+ }
+
+ echo '</div>';
+
+ echo $after_widget;
+ }
+
+ /**
+ * Updates the widget control options for the particular instance of the widget.
+ * @since 0.1.0
+ */
+ function update( $new_instance, $old_instance ) {
+ $instance = $old_instance;
+
+ $instance = $new_instance;
+
+ $instance['title'] = strip_tags( $new_instance['title'] );
+ $instance['posts_per_page'] = strip_tags( $new_instance['posts_per_page'] );
+
+ return $instance;
+ }
+
+ /**
+ * Displays the widget control options in the Widgets admin screen.
+ * @since 0.1.0
+ */
+ function form( $instance ) {
+
+ //Defaults
+ $defaults = array(
+ 'title' => __( 'Image Stream', $this->textdomain ),
+ 'posts_per_page' => 6,
+ );
+ $instance = wp_parse_args( (array) $instance, $defaults ); ?>
+
+ <div class="hybrid-widget-controls columns-1">
+ <p>
+ <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:', $this->textdomain ); ?></label>
+ <input type="text" class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo esc_attr( $instance['title'] ); ?>" />
+ </p>
+ <p>
+ <label for="<?php echo $this->get_field_id( 'posts_per_page' ); ?>"><?php _e( 'Limit:', $this->textdomain ); ?></label>
+ <input type="text" class="widefat" id="<?php echo $this->get_field_id( 'posts_per_page' ); ?>" name="<?php echo $this->get_field_name( 'posts_per_page' ); ?>" value="<?php echo esc_attr( $instance['posts_per_page'] ); ?>" />
+ </p>
+ </div>
+ <div style="clear:both;">&nbsp;</div>
+ <?php
+ }
+}
+
+?>
Oops, something went wrong.

0 comments on commit 217f7fd

Please sign in to comment.