Skip to content

Instantly share code, notes, and snippets.

View zanesensenig's full-sized avatar

Zane Sensenig zanesensenig

View GitHub Profile
@zanesensenig
zanesensenig / page.tpl.php
Last active October 23, 2015 18:57
Source Ordering --Sidebar
<main role="main" class="row l-main">
<!-- sidebar region ( PUSHED TO RIGHT ON LARGE ) -->
<aside role="complementary" class="sidebar-second small-12 medium-6 large-3 large-push-9 columns sidebar">
<?php print render($page['sidebar_second']); ?>
</aside>
<!-- .l-main region ( PULLED TO LEFT ON LARGE ) -->
<div class="main small-12 medium-12 large-9 large-pull-3 columns">
<?php print render($page['content']); ?>
</div>
</main
@zanesensenig
zanesensenig / paragraphs-item--card.tpl.php
Created October 23, 2015 15:34
Basic Paragraphs TPL
<div class="card">
<h2><?php print render($content['field_card_title']); ?></h2>
<?php print render($content['field_card_image']); ?>
<?php print render($content['field_card_link']); ?></li>
</div>
@zanesensenig
zanesensenig / set_of_three.txt
Last active October 23, 2015 15:33
Target the last element in a set of 3
a:nth-child(3):last-child {
/* I'm the last of three */
}
#!/bin/sh
location=$(pwd)
PSU=`echo $location| cut -d'.' -f 1`
echo $PSU
#PSUSTRING=`echo $PSU| cut -d'/' -f 1`
#PSUSTRING=`echo $PSU|tail -c 10`
#echo $PSUSTRING
# SUBSTRING=`echo $INPUT| cut -d'_' -f 2`
#!/bin/sh
# UPDATE DRUPAL CORE
yes | drush up drupal
# UPDATE MODULES
yes | drush up --no-core
# CLEANOUT FILES
drush cu
# COPY PATH
location=$(pwd)