<div class="sideMostRecentChallenges">
	<h3>Most Recent Challenges</h3>
	<?php 
$recentDesign = get_active_contests_ajax('', 'design', 1, 1);
$recentDesign = $recentDesign->data[0];
$recentDev = get_active_contests_ajax('', 'develop', 1, 1);
$recentDev = $recentDev->data[0];
$recentData = get_active_contests_ajax('', 'data/marathan');
$recentData = $recentData->data[0];
$chLink = get_page_link_by_slug('challenge-details');
?>
	<ul>									
		<li><a class="contestName contestType1" href="<?php 
echo $chLink . $recentDev->challengeId;
?>
">
				<i></i><?php 
echo $recentDev->challengeName;
?>
			</a></li>
		<li class="alt"><a class="contestName contestType2" href="<?php 
echo $chLink . $recentDesign->challengeId;
?>
/?type=design">
				<i></i><?php 
echo $recentDesign->challengeName;
?>
			</a></li>
	
	</ul>
</div>
<div class="content">
  <p>
    <img src="<?php 
echo get_template_directory_uri();
?>
/images/cover.jpg" alt="">
  </p>
  <p>
    Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis.
  </p>
  <p class="muted">
    <small>
      47 Autorinnen und Autoren<br>
      392 Seiten<br>
      Paperback
    </small>
  </p>
  <p>
    <a href="<?php 
echo get_page_link_by_slug('bestellen');
?>
" class="order-link">Leitfaden jetzt bestellen</a>
  </p>
</div>
<?php

/*
Template Name: Password Recovery
*/
get_header();
$values = get_post_custom($post->ID);
$userkey = get_option('api_user_key');
$changePasswordPage = get_page_link_by_slug("password-reset");
$redirectDelay = get_option("tcPasswordRecoveryRedirectDelay") == null ? 3000 : get_option("tcPasswordRecoveryRedirectDelay");
$handle = $_POST["handle"];
$msg = null;
$redirect = false;
$tokenObj = null;
if (trim($handle) != '') {
    $response = generateResetToken($handle);
    $obj = json_decode($response['body']);
    if ($response['response']['code'] == 200) {
        $tokenObj = $obj;
    } else {
        $msg = $obj->error->details;
    }
}
if ($tokenObj != null) {
    if ($tokenObj->successful) {
        $changePasswordLink = $changePasswordPage;
        $msg = "Sit tight! A confirmation code is on its way to your email.";
        $redirect = true;
    } elseif (isset($tokenObj->socialProvider)) {
        $msg = 'It looks like you have a social account associated with your profile. You can login using your ' . $tokenObj->socialProvider . ' account, or click <a href="/password-reset">here</a> to reset your password.';
    }
Example #4
0
    function widget($args, $instance)
    {
        extract($args);
        /* Before widget (defined by themes). */
        echo $before_widget;
        $displayedTitle = "Most Recent Challenges";
        /* Display the widget title if one was input (before and after defined by themes). */
        if ($title) {
            $displayedTitle = $before_title . $title . $after_title;
        }
        ?>
    <div class="sideMostRecentChallenges">
			<h3><?php 
        echo $displayedTitle;
        ?>
</h3>
			<?php 
        $recentDesign = get_active_contests_ajax('', 'design', 1, 1);
        $recentDesign = $recentDesign->data[0];
        $recentDev = get_active_contests_ajax('', 'develop', 1, 1);
        $recentDev = $recentDev->data[0];
        $recentData = get_active_contests_ajax('', 'data/marathan');
        $recentData = $recentData->data[0];
        $chLink = get_page_link_by_slug('challenge-details');
        ?>
			<ul>
				<li><a class="contestName contestType1" href="<?php 
        echo $chLink . $recentDev->challengeId;
        ?>
">
						<i></i><?php 
        echo $recentDev->challengeName;
        ?>
					</a></li>
				<li class="alt"><a class="contestName contestType2" href="<?php 
        echo $chLink . $recentDesign->challengeId;
        ?>
/?type=design">
						<i></i><?php 
        echo $recentDesign->challengeName;
        ?>
					</a></li>

			</ul>
		</div>

    <?php 
        echo $after_widget;
    }
										<input id="username" type="text" class="name" placeholder="Username"/>
										<span class="err1">Your username or password are incorrect.</span>
										<span class="err3">Please input your username.</span>
									</p>
									<p class="row">
										<label>Password</label>
										<input id="password" type="password" class="pwd" placeholder="Password"/>
										<span class="err4">Please input your password.</span>
									</p>
									<p class="row lSpace">
										<label><input type="checkbox"/> Remember me</label>
									</p>
									<p class="row lSpace btns">
										<a href="javascript:;" class="signin-db btn btnSubmit">Login</a>
										<a href="<?php 
    echo get_page_link_by_slug('password-recovery');
    ?>
" target="_blank" class="forgotPwd">Forgot password?</a>
									</p>
									<p class="row lSpace">
										<span class="not-a-member">Not a member? <a href="javascript:;" class="btnRegister" >Sign Up Now!</a></span>
									</p>
								</form>
								<div class="register-text"></div>
								<div class="clear"></div>
							</div>
							<!-- END .form login -->
						</div>
					</div>
					<!-- END #login -->
					<?php