- Twig templates
- Theme architecture
- All theme functions as namespaced classes
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
('Abkhazia', 'Abkhazian', 'Abkhazians'); | |
('Afghanistan', 'Afghan', 'Afghans'); | |
('Albania', 'Albanian', 'Albanians'); | |
('Algeria', 'Algerian', 'Algerians'); | |
('American Samoa', 'American Samoan', 'American Samoans'); | |
('Andorra', 'Andorran', 'Andorrans'); | |
('Angola', 'Angolan', 'Angolans'); | |
('Anguilla', 'Anguillan', 'Anguillans'); | |
('Antigua and Barbuda', 'Antiguan', 'Antiguans'); | |
('Argentina', 'Argentinian', 'Argentinians'); |
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
use Phinx\Config\Config; | |
use Phinx\Migration\Manager; | |
use Symfony\Component\Console\Output\NullOutput; | |
$migrationspath = 'path/to/migrations/folder'; | |
$config = new Config(array( | |
'paths' => array( | |
'migrations' => $migrationspath | |
), |
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
ps aux | egrep '(apache|httpd)' |
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
// Gives an element that only contains floated elements its "natural" height | |
// (Without using overflow: hidden) | |
@mixin clearfix { | |
&:after { | |
content: ""; | |
display: table; | |
clear: both; | |
} | |
} |
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 doTest($value) { | |
return $value === FALSE || is_null($value); | |
} | |
var_dump(doTest('')); | |
var_dump(doTest(0)); | |
var_dump(doTest(null)); | |
var_dump(doTest(FALSE)); | |
?> |
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
::-webkit-input-placeholder { /* WebKit, Blink, Edge */ | |
color: #fff; | |
} | |
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */ | |
color: #fff; | |
opacity: 1; | |
} | |
::-moz-placeholder { /* Mozilla Firefox 19+ */ | |
color: #fff; | |
opacity: 1; |
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 | |
/** | |
* This is a drop-in replacement for the default PhpStrategy. | |
* | |
* Instead of checking for `mcrypt` as a required extension, it checks for PHP extensions required in composer.json | |
* (e.g. `ext-mcrypt`) | |
* | |
* - Save the file as `.rocketeer/strategies/PhpCheckStrategy.php` | |
* - Change your strategy setting from 'Php' to `PhpExtensionCheck` | |
* |
$content[field_machine_name] =>
0,
1,
2,
#theme,
#title,
#label_display,
#view_mode,
#language,
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
/* http://stackoverflow.com/a/19054794/698511 */ | |
body.no-scroll { | |
left: 0; | |
-webkit-overflow-scrolling: touch; | |
position: fixed; | |
top: 0; | |
width: 100%; | |
} |
OlderNewer