Skip to content
Permalink
Browse files

Initial commit of HuskyPress. This is the (slightly messy) code that is

  • Loading branch information
ejr06006 committed Jan 25, 2012
0 parents commit b5cfdf511126997b537e90426e1b2cf088648b0d
Showing with 13,783 additions and 0 deletions.
  1. +48 −0 404.php
  2. +127 −0 BrowserDetect.js
  3. +5 −0 README
  4. +26 −0 application.js
  5. +72 −0 archive.php
  6. +89 −0 author.php
  7. +64 −0 category.php
  8. +623 −0 colors/dark.css
  9. +77 −0 comments.php
  10. +40 −0 content-aside.php
  11. +47 −0 content-featured.php
  12. +92 −0 content-gallery.php
  13. +64 −0 content-image.php
  14. +21 −0 content-intro.php
  15. +41 −0 content-link.php
  16. +23 −0 content-page.php
  17. +69 −0 content-quote.php
  18. +71 −0 content-single.php
  19. +42 −0 content-status.php
  20. +77 −0 content.php
  21. +24 −0 editor-style-rtl.css
  22. +311 −0 editor-style.css
  23. +28 −0 footer.php
  24. +596 −0 functions.php
  25. +121 −0 header.php
  26. +104 −0 image.php
  27. BIN images/Thumbs.db
  28. BIN images/comment-arrow-bypostauthor-dark-rtl.png
  29. BIN images/comment-arrow-bypostauthor-dark.png
  30. BIN images/comment-arrow-bypostauthor-rtl.png
  31. BIN images/comment-arrow-bypostauthor.png
  32. BIN images/comment-arrow-dark-rtl.png
  33. BIN images/comment-arrow-dark.png
  34. BIN images/comment-arrow-rtl.png
  35. BIN images/comment-arrow.png
  36. BIN images/comment-bubble-dark-rtl.png
  37. BIN images/comment-bubble-dark.png
  38. BIN images/comment-bubble-rtl.png
  39. BIN images/comment-bubble.png
  40. BIN images/search.png
  41. BIN images/wordpress.png
  42. BIN inc/images/content-sidebar.png
  43. BIN inc/images/content.png
  44. BIN inc/images/dark.png
  45. BIN inc/images/light.png
  46. BIN inc/images/sidebar-content.png
  47. +35 −0 inc/theme-options.css
  48. +52 −0 inc/theme-options.js
  49. +449 −0 inc/theme-options.php
  50. +164 −0 inc/widgets.php
  51. +52 −0 index.php
  52. BIN jqui/images/ui-bg_flat_0_aaaaaa_40x100.png
  53. BIN jqui/images/ui-bg_glass_55_fbf9ee_1x400.png
  54. BIN jqui/images/ui-bg_glass_65_ffffff_1x400.png
  55. BIN jqui/images/ui-bg_glass_75_dadada_1x400.png
  56. BIN jqui/images/ui-bg_glass_75_e6e6e6_1x400.png
  57. BIN jqui/images/ui-bg_glass_75_ffffff_1x400.png
  58. BIN jqui/images/ui-bg_highlight-soft_75_cccccc_1x100.png
  59. BIN jqui/images/ui-bg_inset-soft_95_fef1ec_1x100.png
  60. BIN jqui/images/ui-icons_222222_256x240.png
  61. BIN jqui/images/ui-icons_2e83ff_256x240.png
  62. BIN jqui/images/ui-icons_454545_256x240.png
  63. BIN jqui/images/ui-icons_888888_256x240.png
  64. BIN jqui/images/ui-icons_cd0a0a_256x240.png
  65. BIN jqui/images/ui-icons_f6cf3b_256x240.png
  66. +1,320 −0 jqui/jquery-ui-1.8.16.custom.css
  67. +6 −0 jqui/jquery.ui.1.8.16.ie.css
  68. +3 −0 js/html5.js
  69. +18 −0 js/jquery-1.6.2.min.js
  70. +791 −0 js/jquery-ui-1.8.16.custom.min.js
  71. +17 −0 js/showcase.js
  72. +657 −0 languages/twentyeleven.pot
  73. +281 −0 license.txt
  74. +20 −0 mainpage.php
  75. +31 −0 page.php
  76. +5 −0 readme.txt
  77. +583 −0 rtl.css
  78. BIN screenshot.png
  79. +57 −0 search.php
  80. +14 −0 searchform.php
  81. +222 −0 showcase.php
  82. +42 −0 sidebar-footer.php
  83. +28 −0 sidebar-page.php
  84. +36 −0 sidebar.php
  85. +32 −0 single.php
  86. +545 −0 style.css
  87. +65 −0 tag.php
  88. +5,356 −0 twentyeleven.css
48 404.php
@@ -0,0 +1,48 @@
<?php
/**
* The template for displaying 404 pages (Not Found).
*
* @package UConn
* @subpackage HuskyPress
* @since HuskyPress 1.0
*/
get_header(); ?>

<div id="primary">
<div id="content" role="main">

<article id="post-0" class="post error404 not-found">
<header class="entry-header">
<h1 class="entry-title"><?php _e( 'This is somewhat embarrassing, isn&rsquo;t it?', 'twentyeleven' ); ?></h1>
</header>

<div class="entry-content">
<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.', 'twentyeleven' ); ?></p>

<?php get_search_form(); ?>

<?php the_widget( 'WP_Widget_Recent_Posts', array( 'number' => 10 ), array( 'widget_id' => '404' ) ); ?>

<div class="widget">
<h2 class="widgettitle"><?php _e( 'Most Used Categories', 'twentyeleven' ); ?></h2>
<ul>
<?php wp_list_categories( array( 'orderby' => 'count', 'order' => 'DESC', 'show_count' => 1, 'title_li' => '', 'number' => 10 ) ); ?>
</ul>
</div>

<?php
/* translators: %1$s: smilie */
$archive_content = '<p>' . sprintf( __( 'Try looking in the monthly archives. %1$s', 'twentyeleven' ), convert_smilies( ':)' ) ) . '</p>';
the_widget( 'WP_Widget_Archives', array('count' => 0 , 'dropdown' => 1 ), array( 'after_title' => '</h2>'.$archive_content ) );
?>

<?php the_widget( 'WP_Widget_Tag_Cloud' ); ?>

</div><!-- .entry-content -->
</article><!-- #post-0 -->

</div><!-- #content -->
</div><!-- #primary -->

<?php get_footer(); ?>
@@ -0,0 +1,127 @@
var BrowserDetect = {
init: function () {
this.browser = this.searchString(this.dataBrowser) || "An unknown browser";
this.version = this.searchVersion(navigator.userAgent)
|| this.searchVersion(navigator.appVersion)
|| "an unknown version";
this.OS = this.searchString(this.dataOS) || "an unknown OS";
},
searchString: function (data) {
for (var i=0;i<data.length;i++) {
var dataString = data[i].string;
var dataProp = data[i].prop;
this.versionSearchString = data[i].versionSearch || data[i].identity;
if (dataString) {
if (dataString.indexOf(data[i].subString) != -1)
return data[i].identity;
}
else if (dataProp)
return data[i].identity;
}
},
searchVersion: function (dataString) {
var index = dataString.indexOf(this.versionSearchString);
if (index == -1) return;
return parseFloat(dataString.substring(index+this.versionSearchString.length+1));
},
dataBrowser: [
{
string: navigator.userAgent,
subString: "Chrome",
identity: "Chrome"
},
{ string: navigator.userAgent,
subString: "OmniWeb",
versionSearch: "OmniWeb/",
identity: "OmniWeb"
},
{
string: navigator.vendor,
subString: "Apple",
identity: "Safari",
versionSearch: "Version"
},
{
prop: window.opera,
identity: "Opera",
versionSearch: "Version"
},
{
string: navigator.vendor,
subString: "iCab",
identity: "iCab"
},
{
string: navigator.vendor,
subString: "KDE",
identity: "Konqueror"
},
{
string: navigator.userAgent,
subString: "Firefox",
identity: "Firefox"
},
{
string: navigator.vendor,
subString: "Camino",
identity: "Camino"
},
{ // for newer Netscapes (6+)
string: navigator.userAgent,
subString: "Netscape",
identity: "Netscape"
},
{
string: navigator.userAgent,
subString: "MSIE",
identity: "Explorer",
versionSearch: "MSIE"
},
{
string: navigator.userAgent,
subString: "Gecko",
identity: "Mozilla",
versionSearch: "rv"
},
{ // for older Netscapes (4-)
string: navigator.userAgent,
subString: "Mozilla",
identity: "Netscape",
versionSearch: "Mozilla"
}
],
dataOS : [
{
string: navigator.platform,
subString: "Win",
identity: "Windows"
},
{
string: navigator.platform,
subString: "Mac",
identity: "Mac"
},
{
string: navigator.userAgent,
subString: "iPhone",
identity: "iPhone"
},
{
string: navigator.userAgent,
subString: "iPad",
identity: "iPad"
},
{
string: navigator.userAgent,
subString: "Android",
identity: "Android"
},
{
string: navigator.platform,
subString: "Linux",
identity: "Linux"
}
]

};
BrowserDetect.init();
5 README
@@ -0,0 +1,5 @@
= HUSKYPRESS =

* by avid Hicking (david.hicking@uconn.edu) and Erik Reynolds (erik@busn.uconn.edu)

== ABOUT HUSKYPRESS ==
@@ -0,0 +1,26 @@
var taglines = ["Save files to a USB drive, use your own printer, and get better performance.", "Access the vPC from your iPad!", "Use a computer lab even during a blizzard."];
var index = 0;

function swapTagline () {
var tl = $(".tagline");
tl.fadeOut('slow', function () {
tl.html(taglines[++index % taglines.length]);
});
tl.fadeIn('slow');
setTimeout('swapTagline()', 9000);
}

$(function () {
setTimeout('swapTagline()', 9000);

var b = BrowserDetect.OS;
if (b in { Mac:1, Windows:1, iPad:1, Linux:1, Android:1 }) {
$("#download_link").attr('href', '/help/' + b);
}

$("#accordion").accordion({
autoHeight: false,
header: "h2",
collapsible: true
});
});
@@ -0,0 +1,72 @@
<?php
/**
* The template for displaying Archive pages.
*
* Used to display archive-type pages if nothing more specific matches a query.
* For example, puts together date-based pages if no date.php file exists.
*
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* @package UConn
* @subpackage HuskyPress
* @since HuskyPress 1.0
*/
get_header(); ?>

<section id="primary">
<div id="content" role="main">

<?php if ( have_posts() ) : ?>

<header class="page-header">
<h1 class="page-title">
<?php if ( is_day() ) : ?>
<?php printf( __( 'Daily Archives: %s', 'twentyeleven' ), '<span>' . get_the_date() . '</span>' ); ?>
<?php elseif ( is_month() ) : ?>
<?php printf( __( 'Monthly Archives: %s', 'twentyeleven' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyeleven' ) ) . '</span>' ); ?>
<?php elseif ( is_year() ) : ?>
<?php printf( __( 'Yearly Archives: %s', 'twentyeleven' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentyeleven' ) ) . '</span>' ); ?>
<?php else : ?>
<?php _e( 'Blog Archives', 'twentyeleven' ); ?>
<?php endif; ?>
</h1>
</header>

<?php twentyeleven_content_nav( 'nav-above' ); ?>

<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>

<?php
/* Include the Post-Format-specific template for the content.
* If you want to overload this in a child theme then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( 'content', get_post_format() );
?>

<?php endwhile; ?>

<?php twentyeleven_content_nav( 'nav-below' ); ?>

<?php else : ?>

<article id="post-0" class="post no-results not-found">
<header class="entry-header">
<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
</header><!-- .entry-header -->

<div class="entry-content">
<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p>
<?php get_search_form(); ?>
</div><!-- .entry-content -->
</article><!-- #post-0 -->

<?php endif; ?>

</div><!-- #content -->
</section><!-- #primary -->

<?php get_sidebar(); ?>
<?php get_footer(); ?>
@@ -0,0 +1,89 @@
<?php
/**
* The template for displaying Author Archive pages.
*
* @package UConn
* @subpackage HuskyPress
* @since HuskyPress 1.0
*/
get_header(); ?>

<section id="primary">
<div id="content" role="main">

<?php if ( have_posts() ) : ?>

<?php
/* Queue the first post, that way we know
* what author we're dealing with (if that is the case).
*
* We reset this later so we can run the loop
* properly with a call to rewind_posts().
*/
the_post();
?>

<header class="page-header">
<h1 class="page-title author"><?php printf( __( 'Author Archives: %s', 'twentyeleven' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( "ID" ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' ); ?></h1>
</header>

<?php
/* Since we called the_post() above, we need to
* rewind the loop back to the beginning that way
* we can run the loop properly, in full.
*/
rewind_posts();
?>

<?php twentyeleven_content_nav( 'nav-above' ); ?>

<?php
// If a user has filled out their description, show a bio on their entries.
if ( get_the_author_meta( 'description' ) ) : ?>
<div id="author-info">
<div id="author-avatar">
<?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyeleven_author_bio_avatar_size', 60 ) ); ?>
</div><!-- #author-avatar -->
<div id="author-description">
<h2><?php printf( __( 'About %s', 'twentyeleven' ), get_the_author() ); ?></h2>
<?php the_author_meta( 'description' ); ?>
</div><!-- #author-description -->
</div><!-- #entry-author-info -->
<?php endif; ?>

<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>

<?php
/* Include the Post-Format-specific template for the content.
* If you want to overload this in a child theme then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( 'content', get_post_format() );
?>

<?php endwhile; ?>

<?php twentyeleven_content_nav( 'nav-below' ); ?>

<?php else : ?>

<article id="post-0" class="post no-results not-found">
<header class="entry-header">
<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
</header><!-- .entry-header -->

<div class="entry-content">
<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p>
<?php get_search_form(); ?>
</div><!-- .entry-content -->
</article><!-- #post-0 -->

<?php endif; ?>

</div><!-- #content -->
</section><!-- #primary -->

<?php get_sidebar(); ?>
<?php get_footer(); ?>

0 comments on commit b5cfdf5

Please sign in to comment.
You can’t perform that action at this time.