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
--------------- core/components/migx/elements/tv/input/migx.php --------------- | |
index 11a9c2d..53370a5 100644 | |
@@ -133,6 +133,7 @@ $lang = $this->xpdo->lexicon->fetch(); | |
$lang['mig_add'] = !empty($properties['btntext'])?$properties['btntext']:$lang['mig_add']; | |
$modx->smarty->assign('i18n', $lang); | |
$this->xpdo->smarty->assign('properties', $properties); | |
+$this->xpdo->smarty->assign('resource', is_object($this->xpdo->resource) ? $this->xpdo->resource->toArray() : array()); | |
$this->xpdo->smarty->assign('pathconfigs', $this->xpdo->toJSON($pathconfigs)); | |
$this->xpdo->smarty->assign('columns', $this->xpdo->toJSON($cols)); | |
$this->xpdo->smarty->assign('fields', $this->xpdo->toJSON($fields)); |
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 | |
if ($mode == 'new') { | |
$new = $modx->newObject('modDocument'); | |
$new->set('parent',$id); | |
$new->set('pagetitle','My New Pagetitle'); | |
$new->save(); | |
} |
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 | |
// | |
// Create Alias | |
// Receives a template and a new alias and will adjust the alias of each of those docs | |
$template = $modx->getOption('template',$scriptProperties,'1'); | |
$newAlias = $modx->getOption('alias',$scriptProperties,'1'); | |
$changeddocs = $modx->getCollection('modResource',array( | |
'template' => $template | |
)); | |
foreach($changeddocs as $thisdoc){ |
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
/* | |
* Normalize.css converted to Stylus | |
* http://github.com/necolas/normalize.css | |
*/ | |
article, aside, details, figcaption, figure, footer, header, hgroup, nav, section | |
display: block | |
audio, canvas, video | |
display: inline-block |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
#outer {background: lime;} | |
#container { | |
width: 960px; | |
height: 100px; | |
background: hotpink; | |
margin: auto; |
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
/** | |
* transitioning Opacity in CSS | |
*/ | |
div {background: url(http://upload.wikimedia.org/wikipedia/commons/thumb/0/0b/Chihuahua_puppy_001.jpg/220px-Chihuahua_puppy_001.jpg) center no-repeat; | |
width: 100px; | |
height: 220px; | |
transition:opacity 500ms cubic-bezier(0.250, 0.250, 0.750, 0.750) | |
} | |
div:hover { | |
opacity: .1; |
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
/** | |
* Displaying the :contains selector | |
*/ | |
div:contains("lorem") { | |
background: hotpink; | |
} |
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
/** | |
* Displaying the :contains selector | |
*/ | |
div { | |
position: relative; | |
border: 1px solid black; | |
} | |
label { | |
position: absolute; | |
width: 5px; |
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
/** | |
* Displaying the :contains selector | |
*/ | |
[href="/about"] { | |
background: url(https://upload.wikimedia.org/wikipedia/commons/thumb/7/73/Info_icon_001.svg/400px-Info_icon_001.svg.png) left center no-repeat; | |
display: block; | |
padding-left: 2em; | |
background-size: 1em; | |
} |
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
/** | |
* Table with varying widths | |
*/ | |
table { | |
width: 100%; | |
border: 1px solid hotpink; | |
border-collapse: collapse; | |
table-layout: fixed; | |
border-spacing: 1em; | |
} |
OlderNewer