Skip to content

Instantly share code, notes, and snippets.

View justrjlewis's full-sized avatar

RJ Lewis justrjlewis

View GitHub Profile
@justrjlewis
justrjlewis / complex.html
Last active August 29, 2015 14:12
styleguide
<!doctype html>
<html lang="en">
<head>
<!--
Copyright (c) RJ Lewis| http://justrjlewis.com/
-->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
@justrjlewis
justrjlewis / php_format
Created September 10, 2014 17:21
php date formatting mask
PHP Date Formatting For Mask=
a 'am' or 'pm'
A 'AM' or 'PM'
B Swatch Internet time
d day of the month, 2 digits with leading zeros; i.e. '01' to '31'
D day of the week, textual, 3 letters; i.e. 'Fri'
F month, textual, long; i.e. 'January'
g hour, 12-hour format without leading zeros; i.e. '1' to '12'
G hour, 24-hour format without leading zeros; i.e. '0' to '23'
@justrjlewis
justrjlewis / controller(5-6 and below).php
Last active August 29, 2015 14:06
Concrete5 Package Controllers
<?php
defined('C5_EXECUTE') or die(_("Access Denied."));
/**
* Blocks
* Page Types
* right_sidebar
* left_sidebar
* full
* complex
@justrjlewis
justrjlewis / Info.plist
Created September 3, 2014 17:52
Sublime Text Sass File Type Icon
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleTypeName</key>
<string>SASS</string>
<key>CFBundleTypeExtensions</key>
<array>
<string>sass</string>
<string>scss</string>
</array>
<?php
defined('C5_EXECUTE') or die(_('Access Denied'));
class BasePackage extends Package {
/***************************************************************
* The following variables can be defined by child classes.
*
* Only define the ones you need.
@justrjlewis
justrjlewis / _modules.scss
Created July 23, 2014 01:00
modules boilerplate
//////////////////////////////
//@group global styling
//////////////////////////////
.canvas {
background-color: $blue;
header { //background information
background-image: url(../assets/images/header-bg.svg);
background-position: center -123px;
background-repeat: no-repeat;
background-size: auto;
@mixin inline-block {
display: -moz-inline-stack; // ff 2
display: inline-block;
zoom:1; *display: inline; _height: 15px; // ie 6-7
}
@justrjlewis
justrjlewis / members.php
Created July 11, 2014 18:22
Concrete5 User List Filter
<h1><?php echo t('Filter');?></h1>
<ul class="reg-user-list-filter">
<?php
Loader::model('attribute/type');
Loader::model('attribute/categories/user');
$ak = UserAttributeKey::getByHandle('location');
$sa = new SelectAttributeTypeController(AttributeType::getByHandle('select'));
$sa->setAttributeKey($ak);
$values = $sa->getOptions();
@justrjlewis
justrjlewis / SassMeister-input-HTML.html
Created July 8, 2014 14:58
Generated by SassMeister.com.
<div class="viewport" id="viewport"><!-- viewport(outter wrapper) -->
<div class="canvas" id="canvas"><!-- begin cavas (inner wrapper) -->
<header class="page-header"><!-- begin header -->
<div class="page" data-ui-component="header-top">
<div class="media of1-2" data-ui-component="logo">
<img src="assets/images/logo.png" alt="Zeta Phi Beta Sorority, Inc. – Oklahoma State" width="265px" height="auto">
</div>
<div class="media__body of2-2" data-ui-component="tagline">
<p>Building on the Principles of Zeta<br>by Reconnecting, Retraining & Retaining</p>
</div>
<?php defined('C5_EXECUTE') or die("Access Denied."); ?>
//a-o concrete5 v5.6.2.1::copy the tags folder from concrete/blocks/tags to the root blocks folder and replace the view.php code with this code.
<div class="ccm-tags-display">
<?php if(strlen($title)) {
?><h4><?php echo $title ?></h4><?php
}
if($options instanceof SelectAttributeTypeOptionList && $options->count() > 0) {
?><ul class="ccm-tag-list">