🧙♂️
This file contains hidden or 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
| Entry.php | |
| private static function init() : void | |
| { | |
| // Init Parsers | |
| Entry::initParsers(); | |
| // Route for all pages | |
| Router::route('*', function(){ | |
| Entry::processCurrentEntry(); |
This file contains hidden or 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 $posts = Content::getPages('blog', false , 'date') ?> | |
| <?php foreach($posts as $post):?> | |
| <h3><a href="<?= $post['url'] ?>"><?= $post['title'] ?></a></h3> | |
| <?php endforeach ?> |
This file contains hidden or 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
| function fixAfterIOSFullScreenMode() { | |
| var flag = false; | |
| $(window).on('resize', function(){ | |
| if ($(this).height() > 300 && (window.orientation == 90 || window.orientation == -90)) { | |
| if(flag == false) { | |
| $('body').scrollTop($('body').scrollTop()); | |
| flag = true; | |
| } | |
| } else { | |
| flag = false; |
This file contains hidden or 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
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Editor with Preview</title> | |
| <style type=text/css> | |
| #editor { | |
| width: 400px; | |
| height: 300px; | |
| border: 1px solid black; |
This file contains hidden or 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
| <meta name="viewport" content="initial-scale = 1,user-scalable=no,maximum-scale=1.0"> |
This file contains hidden or 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
| /* IE8 Only */ | |
| .myClass { | |
| color:red\0/; | |
| padding:70px\0/; | |
| } | |
| /* IE 6 Only */ | |
| * html .myClass { | |
| ... | |
| } |
This file contains hidden or 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
| $locales = array( | |
| 'om' => 'Afaan Oromoo', | |
| 'aa' => 'Afaraf', | |
| 'af' => 'Afrikaans', | |
| 'ak' => 'Akan', | |
| 'an' => 'aragonés', | |
| 'ig' => 'Asụsụ Igbo', | |
| 'gn' => 'Avañe\'ẽ', | |
| 'ae' => 'avesta', | |
| 'ay' => 'aymar aru', |
This file contains hidden or 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
| // Numeric plugin | |
| (function($) { | |
| $.fn.numeric = function() { | |
| return this.each(function() { | |
| $(this).keydown(function(e) { | |
| var key = e.charCode || e.keyCode || 0; | |
| return (key == 8 || key == 9 || key == 46 || (key >= 35 && key <= 40) || (key >= 48 && key <= 57) || (key >= 96 && key <= 105)); | |
| }); | |
| }); | |
| }; |
This file contains hidden or 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 | |
| include 'tweetpl.php'; | |
| $user = 'Awilum'; | |
| Tweetpl::display('profile.php', array('user' => $user)); |