Example #1
0
					<input type="text" name="badge_impression_pixel_url"/>

					<label for="badge_redirect_url"><?php 
echo wfMsg('achievements-community-platinum-sponsored-badge-click-url-label');
?>
</label>
					<input type="text" name="badge_redirect_url"/>
				</div>
			</div>

			<div class="commands accent">
				<input type="submit" value="<?php 
echo wfMsg('achievements-community-platinum-create-badge');
?>
"/>
			</div>
		</fieldset>
	</form>

	<h2><?php 
echo wfMsg('achievements-community-platinum-current-badges');
?>
</h2>

	<?php 
foreach ($badges as $badge) {
    echo AchPlatinumService::getPlatinumForm($badge);
}
?>
</div>
 public static function resetPlatinumBadge()
 {
     global $wgRequest;
     $badge_type_id = (int) $wgRequest->getVal('type_id');
     $ret = null;
     if (!empty($badge_type_id)) {
         $ret = array('typeId' => $badge_type_id, 'output' => AchPlatinumService::getPlatinumForm(AchPlatinumService::getBadge($badge_type_id)));
     }
     return json_encode($ret);
 }