</div> <? if (!empty($Changes)) echo str_replace('@',CGUtils::getChangesHTML($Changes),CGUtils::CHANGES_SECTION); if ($Appearance['id'] !== 0 && ($CGDb->where('ponyid',$Appearance['id'])->has('tagged') || Permission::sufficient('staff'))){ ?> <section id="tags"> <h2><span class='typcn typcn-tags'></span>Tags</h2> <div class='tags'><?=Appearances::getTagsHTML($Appearance['id'],NOWRAP)?></div> </section> <?php } echo Appearances::getRelatedEpisodesHTML($Appearance, $EQG); if (!empty($Appearance['notes'])){ ?> <section> <h2><span class='typcn typcn-info-large'></span>Additional notes</h2> <p id="notes"><?=Appearances::getNotesHTML($Appearance, NOWRAP, NOTE_TEXT_ONLY)?></p> </section> <? } if (!empty($Appearance['cm_favme'])){ $preview = Appearances::getCMPreviewURL($Appearance); ?> <section class="approved-cutie-mark"> <h2>Recommended cutie mark vector</h2> <?=Permission::sufficient('staff')&&!isset($Appearance['cm_dir'])?CoreUtils::notice('fail','Missing CM orientation, falling back to <strong>Tail-Head</strong>. Please edit the appaearance and provide an orientation!'):''?> <a id="pony-cm" href="http://fav.me/<?=$Appearance['cm_favme']?>" style="background-image:url('<?=Appearances::getCMPreviewSVGURL($Appearance['id'])?>')"> <div class="img cm-dir-<?=$Appearance['cm_dir']===CM_DIR_HEAD_TO_TAIL?'ht':'th'?>" style="background-image:url('<?=CoreUtils::aposEncode($preview)?>')"></div> </a> <p class="aside">This is only an illustration, the body shape & colors are <strong>not</strong> guaranteed to reflect the actual design.</p> <p>The image above links to the vector made by <?php $Vector = DeviantArt::getCachedSubmission($Appearance['cm_favme']); echo Users::get($Vector['author'],'name','name, avatar_url')->getProfileLink(User::LINKFORMAT_FULL);
Logs::action('color_modify', array('ponyid' => $AppearanceID, 'reason' => $reason)); if ($AppearancePage) { $FullChangesSection = isset($_POST['FULL_CHANGES_SECTION']); $response['changes'] = CGUtils::getChangesHTML(Updates::get($AppearanceID), $FullChangesSection); if ($FullChangesSection) { $response['changes'] = str_replace('@', $response['changes'], CGUtils::CHANGES_SECTION); } } else { $response['update'] = Appearances::getUpdatesHTML($AppearanceID); } } CGUtils::clearRenderedImages($AppearanceID, array(CGUtils::CLEAR_PALETTE, CGUtils::CLEAR_PREVIEW)); if (isset($_POST['APPEARANCE_PAGE'])) { $response['cm_img'] = "/cg/v/{$AppearanceID}.svg?t=" . time(); } else { $response['notes'] = Appearances::getNotesHTML($CGDb->where('id', $AppearanceID)->getOne('appearances'), NOWRAP); } $logdata = array(); if ($adding) { Logs::action('cgs', array('action' => 'add', 'groupid' => $Group['groupid'], 'ponyid' => $AppearanceID, 'label' => $data['label'], 'order' => $data['order'] ?? null)); } else { if ($data['label'] !== $Group['label']) { $logdata['oldlabel'] = $Group['label']; $logdata['newlabel'] = $data['label']; } } $origColors = ColorGroups::stringifyColors($origColors); $recvColors = ColorGroups::stringifyColors($recvColors); $colorsChanged = $origColors !== $recvColors; if ($colorsChanged) { $logdata['oldcolors'] = $origColors;