-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
apohl1111
committed
Dec 7, 2011
0 parents
commit 95bc334
Showing
1,098 changed files
with
236,516 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); | ||
?> |
Oops, something went wrong.