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
<footer> | |
<h3>[[++site_name]]</h3> | |
<p>[[++site_desc]]</p> | |
<h3 class="mt1">Phone</h3> | |
<p>[[++site_phone]]</p> | |
<small class="m1">[[++site_copyright]]</small> | |
</footer> |
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
[[!Register? | |
&submittedResourceId=`1` | |
&validate=` | |
fullname:required, | |
email:email:required, | |
username:required:minLength=^6^, | |
password:required:minLength=^6^ | |
` | |
]] |
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
<section> | |
<label>Birth Date </label> | |
<select id="birthMonth"> | |
<option value="0">January</option> | |
<option value="1">February</option> | |
<option value="2">March</option> | |
<option value="3">April</option> | |
<option value="4">May</option> | |
<option value="5">June</option> | |
<option value="6">July</option> |
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 | |
$year = date("Y"); | |
$jerseyYS = 0; | |
$jerseyYM = 0; | |
$jerseyYL = 0; | |
$jerseyYXL = 0; | |
$jerseyAS = 0; | |
$jerseyAM = 0; | |
$jerseyAL = 0; |
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 | |
$datearr = []; | |
$users = $modx->getIterator('modUser', array('active'=>'1')); | |
foreach ($users as $user) { | |
$profile = $user->getOne('Profile'); | |
$dob = date("Y", $profile->get('dob')); | |
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
//chunk youtube-video-tpl | |
<div class="col-1-3"> | |
<a class="mediabox" rel="ytv" href="http://www.youtube.com/embed/[[+id]]"> | |
<img src="[[+thumb]]" alt=""> | |
<h3>[[+title]]</h3> | |
</a> | |
</div> | |
//Snippet | |
<?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
// == Script Origin and Discussion | |
// https://forums.modx.com/thread/?thread=80740&page=2 | |
// Used Oct 2016 on MODX 2.5 | |
// == Form Markup | |
[[!UpdateProfile? &validate=`fullname:required,email:required:email` &preHooks=`UploadProfilePhoto`]] | |
<label for="Profile_Photos">Profile Photo <span class="error">[[!+fi.error.Profile_Photos]]</span></label> | |
<img src="[[+Profile_Photos:phpthumbof=`w=210&h=210`]]" /> | |
<input id="Profile_Photos" name="Profile_Photos" type="file" value="[[+fi.Profile_Photos]]" maxlength="100000" /> |
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
GetParentAlias | |
$output = ''; | |
/* Get the current resource's 'parent' field */ | |
$parentId = $modx->resource->get('parent'); | |
/* Get the parent object */ | |
$parentObj = $modx->getObject('modResource', $parentId); | |