Пример #1
0
</dl>

<a name="comments"></a>
<h3>Comments</h3>
<?php 
if (count($comments)) {
    foreach ($comments as $comment) {
        ?>
<p><strong><a href="?example=user.php&user=<?php 
        echo $comment->getUser();
        ?>
"><?php 
        echo $comment->getUser();
        ?>
</a>: </strong><?php 
        echo \Instagram\Helper::parseTagsAndMentions($comment->getText(), $tags_closure, $mentions_closure);
        if (\Instagram\Helper::commentIsDeletable($comment, $media, $current_user)) {
            ?>
<form action="#comments" method="post">
<input type="submit" value="X">
<input type="hidden" name="example" value="media.php">
<input type="hidden" name="media" value="<?php 
            echo $media->getId();
            ?>
">
<input type="hidden" name="action" value="delete_comment">
<input type="hidden" name="comment_id" value="<?php 
            echo $comment->getId();
            ?>
">
</form>
Пример #2
0
	<dt>Name</dt>
	<dd><?php 
echo $user->getFullName();
?>
</dd>
	<dt>Website</dt>
	<dd><a href="<?php 
echo $user->getWebsite();
?>
"><?php 
echo $user->getWebsite();
?>
</a></dd>
	<dt>Bio</dt>
	<dd><?php 
echo \Instagram\Helper::parseTagsAndMentions($user->getBio(), $tags_closure, $mentions_closure);
?>
</dd>

	<?php 
if ($user->username != $current_user->username) {
    ?>
		<dt>Outgoing Relationship</dt>
		<dd>
			<?php 
    if ($current_user->isFollowing($user)) {
        ?>
				Following
				<form action="" method="post">
					<input type="submit" name="action" value="Unfollow">
					<input type="hidden" name="error_message" value="Error unfollowing <?php