</head> <body> <h1>Hi there</h1> <?php if (!$this->socializeauth->logged_in()) { ?> <?php socialize_layout('login_buttons'); ?> <?php } else { ?> <?php var_dump($this->socializeauth->user()); ?> <a class="logout" href="<?php echo site_url('welcome/logout'); ?> ">Logout</a> <?php } ?> <span class="socialize-name socialize-name-twitter">elliothaughin</span> <?php socialize_layout('footer'); ?> </body> </html>
<div id="content"> <h1>Here is a newspaper site!</h1> <div id="news"> <?php $i = 1;?> <div class="news_item" id="news_<?=$i?>"> <h2><a class="share-url share-title" href="<?php echo site_url('articles/'.$i)?>">This is a <?=$i?> Title!!</a></h2> <p class="share-body">This is the body for <?=$i?></p> <img class="share-image" src="http://www.realworldimage.com/images/photos_med/marijuana-grow-op-vancouver-illegal-pot-joints-cannabis-drugs-cities-abstract-lifestyles-men-people-editorial-news_14339.jpg" /> <p><a href="#" class="share" rel="#news_<?=$i?>">Share This</a></p> </div> </div> <style type="text/css"> .news_item { padding: 10px; border: 1px solid #CCC; margin-bottom: 10px; } .news_item img { width: 160px; } </style> <div style="clear:both"></div> </div> </div> <?php socialize_layout('footer');?> </body> </html>