echo Users::get($Vector['author'],'name','name, avatar_url')->getProfileLink(User::LINKFORMAT_FULL);
			?> and shows which way the cutie mark should be facing.</p>
		</section>
<?  } ?>
		<section class="color-list">
			<h2 class="admin">Color groups</h2>
			<div class="admin">
				<button class="darkblue typcn typcn-arrow-unsorted reorder-cgs">Re-order groups</button>
				<button class="green typcn typcn-plus create-cg">Create group</button>
			</div>
<?  if ($placehold = Appearances::getPendingPlaceholderFor($Appearance))
		echo $placehold;
	else { ?>
			<ul id="colors" class="colors"><?php
		$CGs = ColorGroups::get($Appearance['id']);
		$AllColors = ColorGroups::getColorsForEach($CGs);
		foreach ($CGs as $cg)
			echo ColorGroups::getHTML($cg, $AllColors, WRAP, NO_COLON, OUTPUT_COLOR_NAMES);
			?></ul>
		</section>
		<?=Appearances::getRelatedHTML(Appearances::getRelated($Appearance['id']))?>
	</div>
<?  } ?>
</div>

<?  $export = array(
		'Color' => $Color,
		'color' => $color,
		'EQG' => $EQG,
		'AppearancePage' => true,
	);
Beispiel #2
0
 /**
  * Returns the markup of the color list for a specific appearance
  *
  * @param array $Appearance
  * @param bool  $wrap
  * @param bool  $colon
  * @param bool  $colorNames
  *
  * @return string
  */
 static function getColorsHTML($Appearance, bool $wrap = WRAP, $colon = true, $colorNames = false)
 {
     global $CGDb;
     if ($placehold = self::getPendingPlaceholderFor($Appearance)) {
         return $placehold;
     }
     $ColorGroups = ColorGroups::get($Appearance['id']);
     $AllColors = ColorGroups::getColorsForEach($ColorGroups);
     $HTML = '';
     if (!empty($ColorGroups)) {
         foreach ($ColorGroups as $cg) {
             $HTML .= ColorGroups::getHTML($cg, $AllColors, WRAP, $colon, $colorNames);
         }
     }
     return $wrap ? "<ul class='colors'>{$HTML}</ul>" : $HTML;
 }