Example #1
0
            ?>
						</li>
						<?php 
        }
    }
    wp_reset_query();
    ?>
					</ul>
				</div>
			</div>
		</div>
		<div id="stats">
			<div class="container">
				<p>
					<em class="members"><?php 
    echo get_activity_summary("memberCount");
    ?>
</em> of the world's best minds competing

				</p>
				<a class="btn btnAlt" href="<?php 
    bloginfo('wpurl');
    ?>
/challenges">View Challenges</a>
			</div>
		</div>
		<!-- /#stats -->



Example #2
0
 function tcapi_get_memberCount($atts, $key = "")
 {
     return get_activity_summary("memberCount");
 }
<?php

get_header();
global $activity;
$activity = get_activity_summary();
$handle = get_query_var('handle');
$coder = get_raw_coder($handle, '');
# if handle not found redirect to 404 - member not found (Dan.V - I-104783)
if (!isset($coder->handle)) {
    wp_redirect(site_url('404.php'));
    exit;
}
$tab = get_query_var('tab');
$track = "data/srm";
if ($tab == "algo") {
    $track = "data/srm";
} else {
    if ($tab == "develop") {
        $track = "develop";
    } else {
        if ($tab == "design") {
            $track = "design";
        }
    }
}
$ct = get_query_var('ct');
if ($ct == 'marathon') {
    $track = "data/marathon";
}
echo "<script>\r\n\t\tvar basicCoderData=" . json_encode($coder) . ";\r\n\t\tvar tab='" . $tab . "';\r\n\t\tvar currTab='" . $ct . "';\r\n\t</script>";
$userkey = get_option('api_user_key');