Skip to content

Instantly share code, notes, and snippets.

Nick Berens nickberens360

Block or report user

Report or block nickberens360

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View jquery-iterate.js
var i = 0;
$('.progressBlock').each(function(){
if(i<6){
i++;
}
View new_gist_file.php
<?php if( have_rows('home_sections') ): ?>
<?php while ( have_rows('home_sections') ) : the_row(); ?>
<?php if ( get_row_layout() == 'recent_posts' ) { ?>
<?php include 'components/blocks/cardRow-block.php' ?>
<?php } elseif (get_row_layout() == 'call_out_strip') { ?>
<?php include 'components/blocks/slogan-block.php' ?>
View new_gist_file.scss
.gform_wrapper{
max-width: 590px !important;
input[type=text], select{
height: 45px;
font-weight: 400 !important;
}
}
.gform_wrapper .top_label input.medium, .gform_wrapper .top_label select.medium {
width: 100% !important;
@nickberens360
nickberens360 / new_gist_file.html
Created Mar 23, 2017
Bootstrap Block Grid Layout
View new_gist_file.html
<div class="block-grid-example">
<div class="block-grid-example-item">
<img src="http://placehold.it/350x150">
</div>
<div class="block-grid-example-item">
<img src="http://placehold.it/350x150">
</div>
<div class="block-grid-example-item">
<img src="http://placehold.it/350x150">
</div>
@nickberens360
nickberens360 / new_gist_file.js
Created Mar 23, 2017
Loop through elements with incrementing class name
View new_gist_file.js
var i = 0;
$('.picBoxGrid').find('.picBox').each(function () {
if (i < 4) {
i++;
}
@nickberens360
nickberens360 / new_gist_file.html
Created Dec 12, 2016
Clientwhys - Index card for blog articles
View new_gist_file.html
<div class="indexCard indexCard-alt">
<div class="indexCard__image">
<img src="http://lorempixel.com/360/360/sports/">
</div>
<div class="indexCard__bottom">
<h3 class="h3 indexCard__heading"><a href="#">Heading</a></h3>
<div class="indexCard__content">
<p>iberal Expensing Limits Can Create Major...</p>
<a href="#" class="indexCard__link">Read Article</a>
</div>
View new_gist_file.html
<!-- PLACE DIRECTLY UNDER HEADER. MAKE SURE TO SET THE -->
<div class="intro intro-color section-block">
<div class="intro__inner">
<h2 class="intro__heading h1">Learning Center</h2>
</div>
</div>
@nickberens360
nickberens360 / new_gist_file.html
Last active Dec 9, 2016
Clientwhys Home Page Section Structure
View new_gist_file.html
<section class="section-block">
<div class="section-block__inner">
STUFF HERE
</div>
</section>
@nickberens360
nickberens360 / new_gist_file.html
Last active Dec 8, 2016
Clientwhys Parallax Inner Page Shell
View new_gist_file.html
<!-- HEADER -->
<div class="fixedTop-space"></div>
<div id="contentAnchor" class="contentAnchor"></div>
<div id="mainContent" class="mainContent">
<section class="fullWidth grid-row">
<div class="fullWidth__left fullWidth__item nb-8">
<div class="fullWidth__content section-block">
<div class="intro intro-alt">
<h2 class="intro__heading h1">
@nickberens360
nickberens360 / new_gist_file.php
Created Oct 26, 2016
wp if post is older than published date
View new_gist_file.php
//Functions file
function is_old_post($days = 5) {
$days = (int) $days;
$offset = $days*60*60*24;
if ( get_post_time() < date('U') - $offset )
return true;
return false;
}
You can’t perform that action at this time.