Skip to content

Instantly share code, notes, and snippets.

View ryanbelisle's full-sized avatar

Ryan Belisle ryanbelisle

View GitHub Profile
@ryanbelisle
ryanbelisle / gist:434ed2112880e45538e9
Created October 21, 2014 17:21
Get Joomla Page View
<?php
$pageView = "view-";
$pageView .= JRequest::getVar('view');
if ($pageView == 'view-calendar') {
$divid = '-f';
}
if ($pageView == 'view-event') {
$divid = '-fl';
@ryanbelisle
ryanbelisle / 0_reuse_code.js
Created April 23, 2014 16:39
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@ryanbelisle
ryanbelisle / rwd-twitter-feed
Created April 14, 2014 15:33
RWD Twitter Feed
.twitter-timeline {
width: 100% !important;
}
@ryanbelisle
ryanbelisle / Disable IE filter
Created March 7, 2014 16:15
Disable IE Filter CSS
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

@ryanbelisle
ryanbelisle / jquery-string-replace
Created February 12, 2014 14:34
Replace all instances of String w/ jQuery
<script type="text/javascript">
$.noConflict();
jQuery(document).ready(function ($) {
$("span.createdate").each(function() {
$(this).html($(this).html().replace("on&nbsp;", ""));
});
});
</script>
@ryanbelisle
ryanbelisle / soapbox-getuser-intemplate
Created February 4, 2014 14:09
Get if user is logged in or not inside the template
$user =& JFactory::getUser();
$logged = "";
if($user->id)
{
$logged = "user-private";
}
else
{
$logged = "user-public";
}
@ryanbelisle
ryanbelisle / fa-blockquote
Created January 29, 2014 14:46
Font Awesome Blockquote
blockquote {
display: block;
position: relative;
padding-left: 60px;
}
blockquote:before {
content: "\f10d";
font-size: 30px;
font-family: FontAwesome;
@ryanbelisle
ryanbelisle / border-box
Created January 29, 2014 14:31
Border Box FTW
*, *:before, *:after {
-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
}