Skip to content

Commit

Permalink
Initialize wordpress repository
Browse files Browse the repository at this point in the history
  • Loading branch information
apohl1111 committed Dec 7, 2011
0 parents commit 95bc334
Show file tree
Hide file tree
Showing 1,098 changed files with 236,516 additions and 0 deletions.
89 changes: 89 additions & 0 deletions blogfeed.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
<?php ?>
<!DOCTYPE html>
<html>
<head runat="server">
<title> </title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="http://www.foundops.com/Content/Site.css" rel="stylesheet" type="text/css" />
<script src="wp-includes/jquery-1.6.1.min.js" type="text/javascript"></script>
<style type="text/css">
html, body {background:none;}
</style>
</head>
<body>
<div id="blog">
<h3>FoundOPS News</h3>
<!-- Load RSS Through Google as JSON using jQuery -->
<script type="text/javascript">
function myDateParser(datestr) {
var year = datestr.substring(12,17);
var day = datestr.substring(5,7);
var month = datestr.substring(8,11);
return month + " " + day + " " + year;
}

function constrain(str,Link){
if(str.length > 150){
var s = str.substr(0, 150);
var words = s.split(' ');
words[words.length-1] = '';
str = words.join(' ') + '... <i><a href="' + Link + '" target="_parent">Continue Reading</a></i>';
}
return str;
}

function displayFeed (feedResponse) {
//define the articles to use
var article1 = feedResponse.entries[0];
var article2 = feedResponse.entries[1];
var article3 = feedResponse.entries[2];

var date1 = myDateParser(article1.publishedDate);
var date2 = myDateParser(article2.publishedDate);
var date3 = myDateParser(article3.publishedDate);

var link1 = article1.link;
var link2 = article2.link;
var link3 = article3.link;

var title1 = article1.title;
var title2 = article2.title;
var title3 = article3.title;

var description1 = constrain(article1.content, link1);
var description2 = constrain(article2.content, link2);
var description3 = constrain(article3.content, link3);

//Build formatted feed
var html = '<div id="post1"><a href="'+ link1 +'" target="_parent"><b>' + title1 + '</b></a><br/>';
html += date1 + '<br />';
html += description1 + '<br /></div>';

html += '<div id="post2"><a href="'+ link2 +'" target="_parent"><b>' + title2 + '</b></a><br/>';
html += date2 + '<br />';
html += description2 + '<br /></div>';

html += '<div id="post3"><a href="'+ link3 +'" target="_parent"><b>' + title3 + '</b></a><br/>';
html += date3 + '<br />';
html += description3 + '<br /></div>';

$('#blog').append(html);
}

function parseRSS(url, callback) {
$.ajax({
url: document.location.protocol + '//ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=10&callback=?&q=' + encodeURIComponent(url),
dataType: 'json',
success: function(data) {
callback(data.responseData.feed);
}
});
}

$(document).ready(function() {
parseRSS("http://wp.foundops.com/feed", displayFeed);
});
</script>
</div>
</body>
</html>
396 changes: 396 additions & 0 deletions dumps/9232011wordpress.sql

Large diffs are not rendered by default.

288 changes: 288 additions & 0 deletions enclosures.log

Large diffs are not rendered by default.

Binary file added images/SiteLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/bgGradient.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/bgLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/facebook.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/favicon.ico
Binary file not shown.
Binary file added images/footerBg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/headerBg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/linkedin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/navLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/search.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/twitter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/

/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);

/** Loads the WordPress Environment and Template */
require('./wp-blog-header.php');
?>
Loading

0 comments on commit 95bc334

Please sign in to comment.