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 -S localhost:4000 |
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 | |
require __DIR__ . '/vendor/autoload.php'; | |
$app = new Slim\App(); | |
$app->run(); |
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
composer init | |
# Follow the on screen instructions... | |
composer require slim/slim "^3.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
<div class="pure-g <?php print $classes;?>"> | |
<?php if ($left): ?> | |
<div class="pure-u-1-2<?php print $left_classes; ?>"> | |
<?php print $left; ?> | |
</div> | |
<?php endif; ?> | |
<?php if ($right): ?> | |
<div class="pure-u-1-2<?php print $right_classes; ?>"> |
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 | |
function ds_article_small() { | |
return array( | |
'label' => t('Article Small'), | |
'regions' => array( | |
'left' => t('Left'), | |
'right' => t('Right'), | |
) | |
); |
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
-- ds_layouts | |
--- article_small | |
---- article_small.inc | |
---- article-small.tpl.php |
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 print $layout_wrapper; ?> class="pure-g"> | |
<<?php print $left_wrapper ?> class="pure-u-1-2"> | |
<?php print $left; ?> | |
</<?php print $left_wrapper ?>> | |
<<?php print $right_wrapper ?> class="pure-u-1-2"> | |
<?php print $right; ?> | |
</<?php print $right_wrapper ?>> |
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
ds-2col--node.tpl.php | |
ds-2col--node-article.tpl.php | |
ds-2col--node-article-full.tpl.php |
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
<!-- views-view-fields.tpl.php --> | |
... | |
<?php foreach ($fields as $id => $field): ?> | |
<?php if (!empty($field->separator)): ?> | |
<?php print $field->separator; ?> | |
<?php endif; ?> | |
<div class="view-content pure-u-1-2"> |
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
<!-- views-view.tpl.php --> | |
<div class="<?php print $classes; ?>"> | |
... | |
<?php if ($rows): ?> | |
<div class="view-content pure-g"> | |
<?php print $rows; ?> | |
</div> |