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 | |
/* | |
Fork of the original executioner snippet by opengeek | |
Usage: | |
[[!Executioner? | |
&tElementClass=`modSnippet` | |
&tEcho=`comment` | |
&tElement=`getResourceField` | |
&id=`27` |
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() { | |
var t = $('#thetable tbody').eq(0); | |
var r = t.find('tr'); | |
var cols= r.length; | |
var rows= r.eq(0).find('td').length; | |
var cell, next, tem, i = 0; | |
var tb= $('<tbody></tbody>'); | |
while(i<rows){ | |
cell= 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
// Scenario: Some event handler is blocking events (event.preventDefault()) that shouldn't be blocked, i.e. because it binds to document instead of a more specific element | |
// 1) Place this before all other JavaScript | |
var originalPreventDefault = Event.prototype.preventDefault; | |
Event.prototype.preventDefault = function () { | |
// Lookup specific event you're expecting, i.e. pressing space | |
if (this instanceof KeyboardEvent && this.keyCode === 32) { | |
// This will log an error with full stack trace | |
make_error_to_see_stacktrace |
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
[[[[*page-image:notempty=`$wrapImgThumb? | |
&src=`*page-image` | |
&alt=`[[*pagetitle]]` | |
&thumbOpts=`w=480&h=320` | |
`]]]] |
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
<p>Hi there!</p> | |
<p>The resource [[+pagetitle]] (ID: [[+id]]) has been [[+mode]].</p> | |
<p>You can login to the manager at www.mysite.com/manager/ to review and if needed publish the resource.</p> | |
<p>Thank you!</p> |
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 | |
/* forked from MikeRogers0/twitter-proxy.php */ | |
/** | |
* Usage: | |
* Send the url you want to access url encoded in the url paramater, for example (This is with JS): | |
* /twitter-proxy.php?url='+encodeURIComponent('statuses/user_timeline.json?screen_name=MikeRogers0&count=2') | |
*/ |
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 | |
class videoThumb { | |
var $config; | |
function __construct($config = array()) { | |
$this->config = array_merge(array( | |
'imagesPath' => dirname(__FILE__) . '/images/' | |
,'imagesUrl' => '/images/' |
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
var content = ''; | |
content += '<h3>Hinweise</h3>'; | |
content += '<p>Hinweistext</p>'; | |
content += '<style>.hdkInfo-panel p {margin-bottom: 10px; line-height:1.6;} .hdkInfo-panel h4 {margin-top: 15px; margin-bottom: 5px;}</style>'; | |
var hdkInfo = function(config) { |
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
$modAuth = $this->modx->user->getUserToken('mgr'); | |
$thumbQuery = http_build_query(array( | |
'src' => $image['urlAbsolute'], | |
'w' => 360, | |
'h' => 270, | |
'HTTP_MODAUTH' => $modAuth, | |
//'f' => $thumbnailType, | |
'q' => 80, | |
'wctx' => 'mgr', |
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
Snippet: [[SnippetName]] | |
Chunk: [[$ChunkName]] | |
System Setting: [[++SettingName]] | |
TV: [[*fieldName/TvName]] | |
Link tag: [[~PageId? ¶mName=`value`]] | |
Placeholder: [[+PlaceholderName]] | |
<?php |
OlderNewer