This file contains 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 = function(grunt) | |
{ | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
sourceDir: 'themes/third_party/tickets', | |
cpjsFiles: [ | |
'<%= sourceDir %>/js/cp-custom.js', | |
'<%= sourceDir %>/js/toolbar-tabs.js', | |
'<%= sourceDir %>/js/chosen.jquery.js', |
This file contains 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
window.SearchView = Backbone.View.extend( | |
{ | |
typingInterval: 1000, | |
el: '#search', | |
events:{ | |
'keyup' : 'typed' | |
}, | |
initialize: function() | |
{ |
This file contains 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
defaults write com.apple.Terminal NSQuitAlwaysKeepsWindows -bool true |
This file contains 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
<div class="select"> | |
<select name="select_element"> | |
<optgroup label="Option Group 1"> | |
<option value="1">Option 1</option> | |
<option value="2">Option 2</option> | |
<option value="3">Option 3</option> | |
</optgroup> | |
<optgroup label="Option Group 2"> | |
<option value="1">Option 1</option> | |
<option value="2">Option 2</option> |
This file contains 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 | |
// In anchor/libraries/anchor.php change lines 50 -65 from: | |
public static function functions() { | |
if( ! is_admin()) { | |
$fi = new FilesystemIterator(APP . 'functions', FilesystemIterator::SKIP_DOTS); | |
foreach($fi as $file) { | |
if($file->isFile() and $file->isReadable() and '.' . $file->getExtension() == EXT) { |
This file contains 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 | |
$(function(){ | |
var date = <?php echo get_the_date('F Y'); ?>'; | |
$('.widget a[title="'+date+'"]').addClass('current'); | |
}); |
This file contains 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
#loading{ | |
position:fixed; | |
z-index:999; | |
top:0; | |
left:0; | |
width:100%; | |
height: 100%; | |
background:rgba(0,0,0,0.3); | |
} |
This file contains 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
<? | |
protected function valid_facebook_url($field){ | |
if(!preg_match('/^(http\:\/\/|https\:\/\/)?(?:www\.)?facebook\.com\/(?:(?:\w\.)*#!\/)?(?:pages\/)?(?:[\w\-\.]*\/)*([\w\-\.]*)/', $field)){ | |
return false; | |
} | |
return true; | |
} |
This file contains 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 | |
/** | |
* logged in | |
* | |
* Programatically check logged in so EE doesnt parse a load of stuff if not | |
* Redirect if a redirection cookie has been set | |
* | |
* Usage | |
* |