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
#!/bin/bash | |
############## | |
echo " | |
////////////////////////////////////// | |
// // | |
// Welcome to MODx autoinstaller. // | |
// // | |
////////////////////////////////////// |
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
<html> | |
<head> | |
<title>Select styles with CSS only</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
body { | |
background-color: #fff; | |
font-family: helvetica, sans-serif; | |
margin: 4% 10% | |
} |
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 | |
/** | |
* ========================= | |
* defaultTemplateByParentTv | |
* ========================= | |
* | |
* Plugin for modX Revolution | |
* Set default template for children of a ressource | |
* | |
* Author: |
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 | |
/** | |
* Magento | |
* | |
* NOTICE OF LICENSE | |
* | |
* This source file is subject to the Academic Free License (AFL 3.0) | |
* that is bundled with this package in the file LICENSE_AFL.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://opensource.org/licenses/afl-3.0.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 | |
$default = realpath(dirname(__FILE__).'/core/lexicon/en').'/'; | |
$local = realpath(dirname(__FILE__).'/core/lexicon/nl').'/'; | |
$showSame = false; | |
// find default files | |
$theFiles = array(); | |
if($handle = opendir($default)) { | |
while(false !== ($file = readdir($handle))) { |
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 | |
/* ShowChunk snippet : Credit: Bob Ray */ | |
$subChunks = explode(',', $scriptProperties['subscriberChunks']); | |
$otherChunks = explode(',', $scriptProperties['otherChunks']); | |
if ($modx->user->isMember('paid-members')) { | |
foreach ($subChunks as $subChunk) { | |
$output .= $modx->getChunk($subChunk); | |
} |
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
Snippet: [[SnippetName]] | |
Chunk: [[$ChunkName]] | |
System Setting: [[++SettingName]] | |
TV: [[*fieldName/TvName]] | |
Link tag: [[~PageId? ¶mName=`value`]] | |
Placeholder: [[+PlaceholderName]] | |
<?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
//CALL THIS IN THE FOOTER, AFTER THE DOM HAS BEEN LOADED AND ANY OTHER DOM MANIPULATING JS HAS BEEN EXECUTED | |
function updateSidebar() { | |
var $width = document.documentElement.clientWidth, | |
$height = document.documentElement.clientHeight, | |
$main = jQuery('#main').height(); | |
$sidebar = jQuery('#sidebar').height(); | |
if($width > 755) { | |
if($main > $sidebar) { | |
jQuery('#sidebar').css({'min-height': $main}); |
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="row"> | |
<div class="large-8 column"> | |
My Content | |
</div> | |
<div class="large-4 column full-height"> | |
<aside class="sidebar"> | |
My Sidebar | |
</aside> | |
</div> | |
</div> |