⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
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
(function($) { | |
$('div.usedWidgetsHolder div.Widget h3').entwine({ | |
onclick: function(){ | |
this.nextAll().slideToggle(); | |
} | |
}); |
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
#!/bin/bash | |
# | |
# ss-upgrader.sh | |
# | |
# INTRODUCTION | |
# | |
# There are some threads on the SS forums that describe the techdocs for upgrading a 2.4 site to 3.x as being too technical. Mainly from content authors who | |
# also happen to be site maintainers - they are not coders. | |
# The aim of this script is to therefore to automate - in as much as this is possible in a user-configured, open-source software project - to help those new to | |
# SS3 upgrade from 2.x as smoothly as possible. |
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
{ "keys": ["ctrl+shift+alt+~"], "command": "unexpand_tabs", "args" : {"set_translate_tabs" : 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
<?php | |
// nice internal / external link field | |
$fields->replaceField('LinkExteralOrInternal', (SelectionGroup::create( | |
"LinkExteralOrInternal", | |
array( | |
SelectionGroup_Item::create( | |
"external", | |
TextField::create( | |
"ExternalLink", | |
"Externe link" |
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
<%t SITENAME.TEST 'With an argument {arg}' arg="Argument" %> |
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
$form_checkboxfield = | |
CheckboxField::create('ShowForm', 'Formulier tonen') | |
->setFieldHolderTemplate('FormField_holder_small') | |
->setRightTitle('Formulier tonen'); |
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
public function AllChildrenInDateRegion() { | |
return VacaturePage::get()->filter( | |
array( | |
'ParentID' => $this->ID, | |
'DatumFrom:LessThan' => date('Y-m-d').' 00:00:00', | |
'DatumTo:GreaterThan' => date('Y-m-d').' 23:59:59' | |
) | |
); |
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
function is_mobile() { | |
var agents = ['android', 'webos', 'iphone', 'ipad', 'blackberry','Android', 'webos', ,'iPod', 'iPhone', 'iPad', 'Blackberry', 'BlackBerry']; | |
var ismobile=false; | |
for(i in agents) { | |
if (navigator.userAgent.split(agents[i]).length>1) { | |
ismobile = true; | |
} | |
} | |
return ismobile; | |
} |
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
<% loop $Menu(1) %> | |
$RenderLayout | |
<% end_loop %> |