示例#1
0
<div class="activity">
	<div class="activity_left">
		<div class="avatar_thumb_container">
			<div class="activity_thumb">
				<?php 
$avatarImg = html::image(Helper_Account::get_avatar($user, "thumb"));
echo html::anchor(Helper_Account::get_public_account_url($user), $avatarImg);
?>
			</div>
		</div>
	</div>
	<div class="activity_right">
		<div class="activity_title"><span class="user"><?php 
echo html::anchor(Helper_Account::get_public_account_url($user), $user->display_name);
?>
</span>
			left a comment on <span class="user"><?php 
echo html::anchor(Helper_Photos::get_photo_url($photo), $photo->user->display_name . "'s");
?>
</span> photo</div>
		<div class="activity_comment"><?php 
echo $comment->comment;
?>
</div>
		<div class="timestamp"><?php 
echo Helper_Game::displayTime(strtotime($activity->time_stamp));
?>
</div>
	</div>
	<div class="clear"></div>
</div>
示例#2
0
<div class="more"><?php 
    echo html::anchor('trophies', 'See All Trophies');
    ?>
</div>
Trophy Case</div>
<div id="trophy_container">
    <div class="previous_container">
        <a href="#">Previous</a>
    </div>
    <div id="trophy_carousel">
        <ul class="thumbs">
            <?php 
    foreach ($honors as $honor) {
        ?>
            <li><?php 
        $honor->honor->type == "award" ? Helper_Game::outputHonorImageWithToolTip($honor->honor, Helper_Game::IMAGE_105, Helper_Photos::get_photo_url($honor->photo)) : Helper_Game::outputHonorImageWithToolTip($honor->honor, Helper_Game::IMAGE_105, Helper_Account::get_public_account_url($honor->user));
        ?>
</li>
            <?php 
    }
    ?>
        </ul>

    </div>
    <div class="next_container">
        <a href="#">Next</a>
    </div>
</div>
<?php 
}
if ($homeSpot) {
示例#3
0
<h1>Photographers to Watch</h1>
<div id="profile-container">
<?php 
foreach ($watchers as $watcher) {
    if ($watcher->user->loaded()) {
        ?>
	<div class="profile">
		<?php 
        echo HTML::anchor(Helper_Account::get_public_account_url($watcher->user), HTML::image(Helper_Account::get_avatar($watcher->user, 'medium')));
        echo new Element("p", date("M d, Y", strtotime($watcher->from)) . " - " . date("M d, Y", strtotime($watcher->to)), array("class" => "date-stamp"));
        if ($watcher->isFuture()) {
            echo HTML::anchor("admin/watcher/edit/{$watcher->id}", "change date", array("class" => "watcher-control edit"));
            echo HTML::anchor("admin/watcher/remove/{$watcher->id}", "remove", array("class" => "watcher-control delete"));
        }
        ?>
	</div>
	<?php 
    }
}
?>
</div>
示例#4
0
">
				<div class="photographer" style="background-image: url('<?php 
    echo addcslashes(Helper_Photos::get($photographer->photos->find(), "medium"), "'");
    ?>
')">
					<a href="/profile/<?php 
    echo $photographer->getVanity();
    ?>
" class="invisi-link"><?php 
    echo $photographer->display_name;
    ?>
</a>
					<div class="details-container">
						<?php 
    echo HTML::image(Helper_Account::get_avatar($photographer, "thumbnail"));
    echo new Element("p", HTML::anchor(Helper_Account::get_public_account_url($photographer), $photographer->display_name));
    echo new Element("p", $photographer->photos->count_all() . " photos posted");
    ?>
					</div>
				</div>
			</div>
			<?php 
    /*<div class="photo <?php if ($i % 2 == 0) { echo 'last'; } ?>">
    			<div class="thumb_container">
    				<div class="thumb" style="background-image: url('<?php echo addcslashes(Helper_Photos::get($photo, "medium"), "'") ?>');" ></div>
    				<div class="frame"><a href="/<?= Helper_Photos::get_photo_url($photo); ?>"><?= $photo->name; ?></a></div>
    			</div>
    			<div class="details-container">
    				<h2><a href="/<?= Helper_Photos::get_photo_url($photo); ?>"><?= $photo->name; ?></a></h2>
    				<p><?= $photo->creationDate(); ?><br />
    				<?php echo Helper_Photos::get_comment_link($photo); ?><br />
示例#5
0
foreach ($slideshow->getOrderedPhotos() as $photo) {
    ?>
				<div class="slide">
					<?php 
    echo html::image(Helper_Photos::get($photo, 'medium'), array('alt' => $photo->name));
    ?>
				</div>
				<?php 
}
?>
			</div>
		</div>
		<div class="cap">
			<div class="text">
				<p>Slideshow by: <?php 
echo "<a href=\"/" . Helper_Account::get_public_account_url($user) . "\">" . substr($user->display_name, 0, 7) . (strlen($user->display_name) > 7 ? "&#8230;" : "") . "</a>";
?>
</a></p>
			</div>

			<div class="controls">
				<audio preload>
					<source src="<?php 
echo $slideshow->music->mp3;
?>
" />
					<source src="<?php 
echo $slideshow->music->ogg;
?>
" />
				</audio>
示例#6
0
    ?>
">
			<div class="avatar<?php 
    if ($ngstaff_user) {
        echo " ngstaff";
    }
    ?>
">
				<div class="avatar_inner<?php 
    if ($ngstaff_user) {
        echo " ngstaff_inner";
    }
    ?>
">
					<?php 
    echo html::anchor(Helper_Account::get_public_account_url($awaiting_comment->user), html::image(Helper_Account::get_avatar($awaiting_comment->user, 'thumbnail')));
    ?>
				</div>
				<?php 
    if ($ngstaff_user) {
        ?>
<p class="natgeo_comment">NatGeo<br />Kids Staff</p><?php 
    }
    ?>
			</div>
			<div class="text">
				<p><?php 
    echo Helper_Account::get_public_account_link($awaiting_comment->user);
    ?>
<br />
				<span class="date"><?php 
示例#7
0
if (count($following)) {
    ?>

    <div id="following" class="widget">
        <h2>Your Favorite Photographers</h2>
        <div class="thumb-window">
            <div class="thumbs" data-user-id="<?php 
    echo $loggedInUser->id;
    ?>
">
                <?php 
    foreach ($following as $follow) {
        $fuser = ORM::factory('user', $follow->user_id);
        if ($fuser->loaded()) {
            $avatarImg = html::image(Helper_Account::get_avatar($fuser, "thumbnail"));
            echo html::anchor(Helper_Account::get_public_account_url($fuser), $avatarImg, array("class" => "user-thumb", "data-game-id" => $follow->id));
        }
    }
    ?>
            </div>
        </div>
        <div class="controls">
            <?php 
    echo HTML::anchor("/", "See all", array("class" => "see-all"));
    ?>
            <div class="pagination">

            </div>
        </div>
    </div>
	<script>
示例#8
0
<?php

$photoURL = html::anchor(Kohana::config('myshot.siteURL') . Helper_Photos::get_photo_url($photo), Kohana::config('myshot.siteURL') . Helper_Photos::get_photo_url($photo));
$userURL = html::anchor(Kohana::config('myshot.siteURL') . Helper_Account::get_public_account_url($user), Kohana::config('myshot.siteURL') . Helper_Account::get_public_account_url($user));
?>
NG Staff, <br />
A user has removed one of their photos. Please note that viewing the photo is no longer possible.
<br /><br />
User name: <?php 
echo $user->username;
?>
<br />
Display name: <?php 
echo $user->display_name;
?>
<br />
User Profile: <?php 
echo $userURL;
?>
<br />
Photo Title: <?php 
echo $photo->name;
?>
<br />
Created: <?php 
echo $photo->created;
?>
<br />
Original Link* : <?php 
echo $photoURL;
?>
示例#9
0
<?php

if (!empty($watcher) && $watcher->user->loaded()) {
    ?>
<div id="photographer-to-watch">
    <h2>PHOTOGRAPHER TO WATCH</h2>
    <div class="photographer" style="background-image: url('<?php 
    echo addcslashes(Helper_Photos::get($photo, "medium"), "'");
    ?>
')">
        <?php 
    echo HTML::anchor(Helper_Account::get_public_account_url($watcher->user), $watcher->user->display_name, array("class" => "invisi-link"));
    ?>
        <div class="details-container">
            <?php 
    echo HTML::image(Helper_Account::get_avatar($watcher->user, "thumbnail"));
    echo new Element("p", HTML::anchor(Helper_Account::get_public_account_url($watcher->user), $watcher->user->display_name));
    echo new Element("p", "{$numPhotos} photos posted");
    ?>
        </div>
    </div>
    <p><a href="/photos/watch" class="see-all-photographers-link">Past Photographers to Watch</a></p>
</div>
<?php 
}
示例#10
0
        $user = ORM::factory('user')->where('id', '=', $photo->user_id)->find();
        ?>
	<div class="comment <?php 
        echo $class;
        ?>
">
		<div class="mod_buttons">
			<div class="button_reject"><?php 
        echo html::anchor('admin/backtalk/reject/' . $caption_photo->id, 'Reject');
        ?>
</div>
		</div>
		<div class="item">
            <p class="left avatar">
	            <?php 
        echo html::anchor(Helper_Account::get_public_account_url($user), html::image(Helper_Account::get_avatar($user, 'thumbnail')));
        ?>
            </p>
            <p class="right avatar"><?php 
        echo Helper_Account::get_public_account_link($user);
        ?>
's profile page</p>
			<p class="left">Caption date:</p>
		      <script>
		      $(function() {
		    	  var dates = $( "#from<?php 
        echo $caption_photo->id;
        ?>
, #to<?php 
        echo $caption_photo->id;
        ?>
示例#11
0
Dear Parent,<br />
Your child's avatar for NG Kids My Shot has been approved. To view the avatar, <a href="<?php 
echo url::site(Helper_Account::get_public_account_url($user), true);
?>
">click here.</a><br />
<br />
Thanks,<br />
National Geographic Kids