Esempio n. 1
0
                }
            }
        }
        $Colors = array_merge($Colors, array(array('hex' => '#D8D8D8', 'label' => 'Mannequin | Outline'), array('hex' => '#E6E6E6', 'label' => 'Mannequin | Fill'), array('hex' => '#BFBFBF', 'label' => 'Mannequin | Shadow Outline'), array('hex' => '#CCCCCC', 'label' => 'Mannequin | Shdow Fill')));
        $SafeLabel = Appearances::getSafeLabel($Appearance);
        CoreUtils::fixPath("{$CGPath}/sprite/{$Appearance['id']}-{$SafeLabel}");
        CoreUtils::loadPage(array('view' => "{$do}-sprite", 'title' => "Sprite of {$Appearance['label']}", 'css' => "{$do}-sprite", 'js' => "{$do}-sprite"));
    } else {
        if ($data === 'full') {
            $GuideOrder = !isset($_REQUEST['alphabetically']) && !$EQG;
            if (!$GuideOrder) {
                $CGDb->orderBy('label', 'ASC');
            }
            $Appearances = Appearances::get($EQG, null, 'id,label,private');
            if (isset($_REQUEST['ajax'])) {
                Response::done(array('html' => CGUtils::getFullListHTML($Appearances, $GuideOrder, NOWRAP)));
            }
            $js = array();
            if (Permission::sufficient('staff')) {
                $js[] = 'Sortable';
            }
            $js[] = "{$do}-full";
            CoreUtils::loadPage(array('title' => "Full List - {$Color} Guide", 'view' => "{$do}-full", 'css' => "{$do}-full", 'js' => $js));
        }
    }
}
// Guide page output & display
$title = '';
$AppearancesPerPage = UserPrefs::get('cg_itemsperpage');
$Ponies = [];
try {
Esempio n. 2
0
<?php 
}
?>
		<a class='btn blue typcn typcn-world' href="/cg<?php 
echo $EQG ? '' : '/eqg';
?>
/full">List of <?php 
echo $EQG ? 'Ponies' : 'Equestria Girls';
?>
</a>
		<a class='btn darkblue typcn typcn-tags' href="/cg/tags">Tags</a>
		<a class='btn darkblue typcn typcn-warning' href="/cg/changes">Major Changes</a>
	</p>

	<?php 
echo CGUtils::getFullListHTML($Appearances, $GuideOrder);
?>
</div>

<?  $export = array(
		'Color' => $Color,
		'color' => $color,
		'EQG' => $EQG,
	);
	if (Permission::sufficient('staff'))
		$export = array_merge($export,array(
			'TAG_TYPES_ASSOC' => Tags::$TAG_TYPES_ASSOC,
			'MAX_SIZE' => CoreUtils::getMaxUploadSize(),
			'HEX_COLOR_PATTERN' => $HEX_COLOR_REGEX,
		));
	echo CoreUtils::exportVars($export);