Example #1
0
    foreach ($posts as $post) {
        $inst = $post;
        ?>


<?php 
        echo User::getInstance($post->created_by)->get('name');
        ?>
 | <?php 
        echo Date::of($post->created)->toLocal('M j, Y g:i:s a');
        ?>

<?php 
        echo Hubzero\Utility\Sanitize::stripAll($inst->get('comment'));
        $base = rtrim(Request::root(), '/');
        $sef = Route::urlForClient('site', $inst->link());
        $link = $base . '/' . trim($sef, '/');
        ?>
View this post on <?php 
        echo Config::get('sitename');
        ?>
: <?php 
        echo $link;
    }
    ?>

-----------------------
<?php 
}
?>
Example #2
0
        ?>
 | <?php 
        echo Date::of($post->created)->toLocal('M j, Y g:i:s a');
        ?>
																			</div>
																			<div>
																				<?php 
        echo $post->comment;
        ?>
																			</div>
																			<div style="color: #AAAAAA; font-size: 11px;">
																				<?php 
        $base = rtrim(Request::root(), '/');
        ?>
																				<?php 
        $sef = Route::urlForClient('site', Components\Forum\Models\Post::getInstance($post->id)->link());
        ?>
																				<?php 
        $link = $base . '/' . trim($sef, '/');
        ?>
																				<a href="<?php 
        echo $link;
        ?>
">View this post on <?php 
        echo Config::get('sitename');
        ?>
</a>
																			</div>
																		</div>
																	</td>
																</tr>