if ($resource->get('menutitle') == "!") $class[] = 'my_class';$modx->regClientStartupHTMLBlock('<link rel="stylesheet" type="text/css" href="'.MODX_BASE_URL.'assets/css/my_style.css" />');.my_class a span {
color: green;
}
{{={{{ }}}=}} ... {{{={{ }}=}}}.{{={{{ }}}=}}
<div id="app" data-name="{{name}}">{{name}}</div>
{{{={{ }}=}}}
$username = 'username';
$query = $modx->newQuery('modUser', array(
'username' => $username,
));
$query->select('id');
$userId = $modx->getValue($query->prepare());
<div class="input">
<input type="text" value="Имя..." />
</div>.input input {
font-size:20px;
border:none;
outline:none;
background: transparent;
}
.input {
border:none;
display:inline-block;
border-bottom:solid #333 2px;
}
.input:before, .input:after {
content:" ";
display: inline-block;
vertical-align:bottom;
height: 5px;
width: 2px;
background: #333;
}
<div class="container">
<div class="box"></div>
</div>.container {
position: relative;
display: block;
float: left;
width: 100px;
height: 100px;
background-color: #ccc;
margin: 0 1.5%;
text-align: center;
}
.box {
position: absolute;
bottom: 0px;
top: 0px;
right: 0px;
left: 0px;
margin: auto;
width: 20px;
height: 20px;
background-color: #c2c;
}