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 media_category_init() { | |
register_taxonomy( 'media-category', array( 'attachment' ), array( | |
'hierarchical' => true, | |
'public' => true, | |
'show_in_nav_menus' => true, | |
'show_ui' => true, | |
'show_admin_column' => true, | |
'query_var' => 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
// https://gist.github.com/854622 | |
(function(window,undefined){ | |
// Prepare our Variables | |
var | |
History = window.History, | |
$ = window.jQuery, | |
document = window.document; | |
// Check to see if History.js is enabled for our Browser |
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 error handling for development servers | |
php_flag display_startup_errors on | |
php_flag display_errors on | |
php_flag html_errors on | |
php_flag log_errors on | |
php_flag ignore_repeated_errors off | |
php_flag ignore_repeated_source off | |
php_flag report_memleaks on | |
php_flag track_errors on | |
php_value docref_root 0 |
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
/** | |
* Flexbox example : flexible header - content takes remaining height and has scroll bar | |
* | |
*/ | |
#page { | |
position: relative; | |
display: flex; | |
background: red; | |
height: 219px; |
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
#container { | |
perspective: 800px; | |
} | |
#d1 { | |
position: absolute; | |
width: 400px; |
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 | |
/** | |
* Setup Twig Templating : http://twig.sensiolabs.org/ | |
* expects a /templates directory to exist in theme directory | |
* | |
* usage with _twig_render wrapper function | |
* _twig_render($template_path, $data_array); | |
* | |
* | |
**/ |
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
.outer { | |
position: relative; | |
background: red; | |
height: 100%; | |
display: flex; | |
flex-direction: column; | |
align-items: stretch; | |
overflow: hidden; |
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
.outer { | |
position: relative; | |
background: red; | |
height: 100%; | |
display: flex; | |
flex-direction: column; | |
align-items: stretch; | |
overflow: hidden; |
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
.outer { | |
position: relative; | |
background: red; | |
height: 100%; | |
display: flex; | |
flex-direction: column; | |
align-items: stretch; | |
overflow: hidden; |
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
.container { | |
height: 200px; | |
background: yellow; | |
display: flex; | |
flex-direction: column; | |
align-items: stretch; | |
} | |
.scroll { |
OlderNewer