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 | |
* |
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
<p>A clean responsive grid system with a typographic baseline powered by LESS/SCSS.</p> | |
<ul> | |
<li><strong>Clean Markup:</strong> All grid styles are applied in your CSS leaving your markup nice, clean and shiny.</li> | |
<li><strong>CSS Normalize:</strong> No CSS reset is used, instead elements are normalised for browser consistency.</li> | |
<li><strong>Responsive Images:</strong> Uses the power of jQuery Picture to add responsitivity to all your images.</li> | |
<li><strong>Nested Columns:</strong> Column widths can be customised allowing for easy grid nesting and customisation.</li> | |
<li><strong>Baseline Grid:</strong> A baseline grid is integrated into css normalize adding consistency to your typography.</li> | |
<li><strong>Base Styles:</strong> Base form, table and typography styles are provided allowing a good jumping off point for your projects.</li> | |
</ul> |
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
- (void)secondPan:(UIPanGestureRecognizer *)gesture | |
{ | |
if ((gesture.state == UIGestureRecognizerStateChanged) || | |
(gesture.state == UIGestureRecognizerStateEnded)){ | |
CGPoint location = [gesture locationInView:gesture.view.superview]; | |
int topBound = gesture.view.bounds.size.height / 2.0f; | |
float bottomBound = gesture.view.superview.bounds.size.height - topBound; | |