This file contains hidden or 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
<?php if (has_post_thumbnail()): the_post_thumbnail('', array('class' => 'img-responsive')); endif; ?> |
This file contains hidden or 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
function excerpt($limit) { | |
$excerpt = explode(' ', get_the_excerpt(), $limit); | |
if (count($excerpt)>=$limit) { | |
array_pop($excerpt); | |
$excerpt = implode(" ",$excerpt).'...'; | |
} else { | |
$excerpt = implode(" ",$excerpt); | |
} | |
$excerpt = preg_replace('`\[[^\]]*\]`','',$excerpt); | |
return $excerpt; |
This file contains hidden or 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
update: function(req, res){ | |
}, |
This file contains hidden or 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
.video-container { | |
position: relative; | |
padding-bottom: 56.25%; | |
padding-top: 30px; | |
height: 0; | |
overflow: hidden; | |
} | |
.video-container iframe, | |
.video-container object, |
This file contains hidden or 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
index: function(req, res){ | |
User.findOne(req.user).populate('files').exec(function( err, fileuser){ | |
console.log(err); | |
console.log(fileuser); | |
res.view({ | |
user : fileuser | |
}); |
This file contains hidden or 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
.featured-post{ | |
color: @white; | |
position: relative; | |
height: auto; | |
float: right; | |
min-height: 225px; | |
max-height: 225px; | |
width: 50%; | |
background-size: cover; | |
background-position: center center; |
This file contains hidden or 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
module.exports = { | |
index: function (req,res) { | |
File.find( function foundFiles(err, files) { | |
if (err) return next(err); | |
// pass the array down to the /views/index.ejs page | |
res.view({ | |
files: files | |
}); |
This file contains hidden or 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
ReferenceError: HTTPStatus is not defined | |
at ClientRequest.<anonymous> (/Users/jordancauley/projects/posted/api/controllers/FileController.js:55:34) | |
at ClientRequest.EventEmitter.emit (events.js:117:20) | |
at HTTPParser.parserOnIncomingClient [as onIncoming] (http.js:1669:21) | |
at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:120:23) | |
at CleartextStream.socketOnData [as ondata] (http.js:1564:20) | |
at CleartextStream.read [as _read] (tls.js:502:12) | |
at CleartextStream.Readable.read (_stream_readable.js:320:10) | |
at EncryptedStream.write [as _write] (tls.js:366:25) | |
at doWrite (_stream_writable.js:219:10) |
This file contains hidden or 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
var gulp = require('gulp'), | |
sass = require('gulp-less'); | |
gulp.task('less', function() { | |
gulp.src('assets-v2/less/app.less') | |
.pipe(gulp.dest('assets-v2/css/')); | |
}); | |
gulp.task('default', function() { | |
gulp.run('less'); |
This file contains hidden or 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
$(function() { | |
var images =['1.jpg', '2.jpg', '3.jpg', '4.jpg']; | |
$('#ai-bg').css({'background-image': 'url(assets/images/bg/' + images[Math.floor(Math.random() * images.length)] + ')'}); | |
}); |