* @copyright Copyright (c) 2000-2014 Cyberspace Networks
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * The lastest version of Cyberspace Networks CoreSystem can be obtained from:
 * https://github.com/CyberspaceNetworks/CoreSystem
 * For questions, help, comments, discussion, etc. please visit
 * https://github.com/CyberspaceNetworks/CoreSystem
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 */
?>

<div class="module_definition_list">
<dl>
<?php 
if (count($links) > 0) {
    for ($i = 0; $i < count($links); $i++) {
        $date = content_date($links[$i]['created']);
        $comment = $links[$i]['comment'];
        $comment = _out(chop_string($comment, 48));
        $post_title = $links[$i]['post_title'];
        $post_title = _out(chop_string($post_title, 18));
        $author = $links[$i]['name'];
        $author_id = $links[$i]['user_id'];
        $comment = str_replace('<br />', ' ', $comment);
        ?>

          <dt>
           <a href="<?php 
        echo PA::$url . PA_ROUTE_CONTENT . "/cid=" . $links[$i]["content_id"];
        ?>
"><?php 
        echo $post_title;
        ?>
        
                    <li class="list-group-item">
                        <a href="<?php 
        echo PA::$url . PA_ROUTE_CONTENT;
        ?>
/cid=<?php 
        echo $links[$counter]['content_id'];
        ?>
">
                            <?php 
        echo _out($links[$counter]['title']);
        ?>
                        </a>
                        <span>
                            <?php 
        echo content_date($links[$counter]['changed']);
        ?>
                        </span>  
                    </li>   
                    <?php 
    }
} else {
    echo '<li class="list-group-item">' . sprintf(__('No contents in blog.  <a href="%s">Click here to make a post</a>!'), PA::$url . "/" . FILE_POST_CONTENT . $gidQuery) . '</li>';
}
?>

        </ul>  
    </div>
</div>
}
$page_content->set('header', $header);
//tpl for left side bar
$left_panel =& new Template(CURRENT_THEME_FSPATH . "/left_page.tpl");
$left_panel->set('img_path', $img_path);
$page_content->set('left_panel', $left_panel);
$comments = Comment::get_comment_for_content($cid);
$number_of_comments = count($comments);
$content->no_of_comments = $number_of_comments;
$trackback = Content::get_trackbacks_for_content($cid);
$content->trackback_url = "{$base_url}/pa_trackback.php?cid=" . $cid;
$content_user = new User();
$content_user->load((int) $content->author_id);
$time = content_date($content->changed);
$content->author_name = '<a href="user.php?uid=' . $content_user->user_id . '">' . $content_user->first_name . '</a>';
$content->create_time = content_date($content->changed);
$tags = Tag::load_tags_for_content($cid);
if ($tags) {
    $t = array();
    for ($i = 0; $i < count($tags); $i++) {
        $name = $tags[$i]['name'];
        $uid = $_SESSION['user']['id'];
        $t[] = "<a href=\"tags.php?uid={$uid}&tagname={$name}\">" . $tags[$i]['name'] . "</a>";
    }
    $tag_string = "<b>Tags : </b>" . implode(", ", $t);
} else {
    $tag_string = "";
}
$content->tag_entry = $tag_string;
//tpl for center content
$center =& new Template(CURRENT_THEME_FSPATH . "/content.tpl");
Example #4
0
             for ($j = 0; $j < count($tags); $j++) {
                 $tid = $tags[$j]['id'];
                 $uid = $_SESSION['user']['id'];
                 $t[] = "<a href=\"tags.php?uid={$uid}&tagid={$tid}\">" . $tags[$j]['name'] . "</a>";
             }
             $content_details[$i]['tag_entry'] = "<b>Tags : </b>" . implode(", ", $t);
         } else {
             $content_details[$i]['tag_entry'] = "";
         }
         $u = new User();
         $u->load((int) $c->author_id);
         $content_details[$i]['content_id'] = $c->content_id;
         $content_details[$i]['title'] = $c->title;
         $content_details[$i]['body'] = $c->body;
         $content_details[$i]['author_name'] = '<a href="user.php?uid=' . $u->user_id . '">' . $u->login_name . '</a>';
         $content_details[$i]['create_time'] = content_date($c->created);
         $i++;
     }
 }
 if ($g->reg_type == $g->REG_MODERATED) {
     $j = 0;
     foreach ($mod_users as $user) {
         $u = new User();
         $u->load((int) $user);
         $user_details[$j]['user_id'] = $u->user_id;
         $user_details[$j]['user_page_link'] = '<a href="user.php?uid=' . $u->user_id . '">' . $u->login_name . '</a>';
         $user_details[$j]['user_name'] = $u->first_name . ' ' . $u->last_name;
         $j++;
     }
 }
 //print_r($user_details);exit;
			<?php 
    if (isset($data['id'])) {
        ?>
			<input type="radio" value="1" name="updatetime" onClick="$('#updatetime').hide()" /> <?php 
        echo lang('a-con-130');
        ?>
			&nbsp;
			<?php 
    }
    ?>
			<input type="radio" value="3" name="updatetime" onClick="$('#updatetime').show()" /> <?php 
    echo lang('a-con-133');
    ?>
			&nbsp;&nbsp;&nbsp;&nbsp;
			<span id="updatetime" style="display:none"><?php 
    echo content_date('select_time');
    ?>
</span>
			</td>
		</tr>
		<?php 
}
?>
		<tr>
			<th><?php 
echo lang('a-con-46');
?>
:</th>
			<td>
			<?php 
if ($a == 'editverify') {