A simple way to create responsive tabs with Bootstrap 5. Tabs functionality is replaced by Accordion on small screens.
View sample on JsFiiddle
A simple way to create responsive tabs with Bootstrap 5. Tabs functionality is replaced by Accordion on small screens.
View sample on JsFiiddle
<?php | |
$repo_dir = '/home/username'; | |
$branch_to_deploy = 'master'; | |
$update = false; | |
// Parse data from Bitbucket hook payload | |
$payload = json_decode($_POST['payload']); | |
if (empty($payload->commits)) { |
<?php | |
namespace MyApp\Response; | |
use Symfony\Component\HttpFoundation\Response; | |
class CsvResponse extends Response | |
{ | |
protected $data; |
<?php | |
// This line needs to be called after initialize but before run | |
$app['upload'] = $app->extend( | |
'upload', | |
function ($handler, $app) { | |
if ($app['request']->get('contenttypeslug') && $app['request']->get('id')) { | |
$handler->setPrefix("/".$app['request']->get('contenttypeslug')."/".$app['request']->get('id')); | |
} | |
$app['upload'] = $app->share( | |
$app->extend( | |
'upload', | |
function ($upload, $app) { | |
$upload->setSanitizerCallback( | |
function ($filename) use () { | |
// do custom sanitising here... | |
} | |
); |
var CKEDITORPluginExtras = false; | |
if (typeof(CKEDITOR) != 'undefined' ) { | |
CKEDITOR.on('instanceReady',function(event, instance){ | |
if (CKEDITORPluginExtras) { | |
return; | |
} | |
var config = event.editor.config; | |
CKEDITOR.instances.body.destroy(); |
$app->initialize(); | |
$app['upload'] = $app->extend('upload', function ($handler, $app) { | |
if ($app['request']->get('contenttype') == 'pages') { | |
$handler->addRule('size', ['size' => '100K'], '{label} uploads are limited to {size}', 'Page Image'); | |
} | |
return $handler; | |
}); | |
$app->run(); |
.background-layers(@top, @bottom) { | |
background: url(@top), url(@bottom); | |
background-position: top center, top center; | |
background-attachment: fixed, fixed; | |
background-repeat: repeat, repeat; | |
-webkit-background-size: auto, cover; | |
-moz-background-size: auto, cover; | |
-o-background-size: auto, cover; | |
background-size: auto, cover; | |
} |
# LESS compiler | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} ^(.*)\.css | |
RewriteCond %1.less -f | |
RewriteRule ^(.*)\.css lessphp/less.php?f=$1.less |
{ "keys": ["alt+1"], "command": "open_browser", "args": {"keyPressed": "1"} }, | |
{ "keys": ["alt+2"], "command": "open_browser", "args": {"keyPressed": "2"} }, | |
{ "keys": ["alt+3"], "command": "open_browser", "args": {"keyPressed": "3"} }, | |
{ "keys": ["alt+4"], "command": "open_browser", "args": {"keyPressed": "4"} } |