function generate_inner_html($announcement)
 {
     // global var $_base_url has been removed - please, use PA::$url static variable
     $inner_html = '';
     if ($announcement) {
         //generating tpl for each announcement
         for ($i = 0; $i < count($announcement); $i++) {
             $inner_html .= uihelper_generate_center_content($announcement[$i]['content_id']);
         }
     }
     return $inner_html;
 }
 function generate_inner_html($announcement)
 {
     global $current_theme_path;
     global $base_url;
     $inner_html = '';
     if ($announcement) {
         //generating tpl for each announcement
         for ($i = 0; $i < count($announcement); $i++) {
             $inner_html .= uihelper_generate_center_content($announcement[$i]['content_id']);
         }
     }
     return $inner_html;
 }
 function generate_inner_html()
 {
     global $current_theme_path;
     return uihelper_generate_center_content($this->content_id, 1);
 }
 function generate_inner_html()
 {
     return uihelper_generate_center_content($this->content_id, 1);
 }
 function generate_inner_html($contents)
 {
     $request_data = $this->request_data;
     $inner_html = '';
     if ($this->mode == PRI && $this->type == 'user') {
         $inner_html .= '<div id="buttonbar">
     <ul>
       <li><a href="' . PA::$url . '/post_content.php">
         ' . __("Create post") . '</a>
       </li>
       <li><a href="' . PA::$url . '/content_management.php">
         ' . __("Manage posts") . '</a>
       </li>
       <li><a href="' . PA::$url . PA_ROUTE_USER_PUBLIC . '/' . PA::$login_uid . '">
         ' . __("View my public page") . '</a>
       </li>
     </ul>
   </div>';
     } else {
         if ($this->type == 'user') {
             if (PA::$page_uid == PA::$login_uid) {
                 $inner_html .= '<div id="buttonbar">
       <ul>
         <li><a href="' . PA::$url . PA_ROUTE_USER_PRIVATE . '">
           ' . __("Return to private page") . '</a>
         </li>
       </ul>
     </div>';
             }
         }
     }
     if ($this->type == 'tag') {
         $tag_name = Tag::get_tag_name($this->tag_id);
         $inner_html .= "<h1>" . sprintf(__("Showing results for tag %s."), $tag_name) . "</h1>";
     }
     // if ($this->type == 'group')
     if ($contents) {
         // echo "<pre>".print_r($contents, 1)."</pre>";
         //foreach ($contents as $content) {
         for ($i = 0; $i < count($contents); $i++) {
             if ($i == 0) {
                 $inner_html .= uihelper_generate_center_content($contents[$i]['content_id'], 0, 1);
             } else {
                 $inner_html .= uihelper_generate_center_content($contents[$i]['content_id']);
             }
         }
     } else {
         if ($this->type == "search") {
             $inner_html .= "<div class=\"center\" style=\"text-align:center; padding: 16px\"><b>" . __("No items match your search criteria.") . "</b><br /><br /><input type=\"button\" value=\"" . __('Back') . "\" onclick=\"history.back()\"/>" . "</div>";
         } else {
             $inner_html .= '<div class="auto">' . $this->message['message'];
             if ($this->mode == 'private' || isset($this->group)) {
                 if (!empty($this->message['queryString'])) {
                     $link = PA::$url . '/post_content.php?' . $this->message['queryString'];
                     if (isset($this->group->collection_id) && $this->group->collection_id > 0) {
                         $link = PA::$url . '/post_content.php?' . $this->message['queryString'] . '&ccid=' . $this->group->collection_id;
                     }
                 } else {
                     $link = PA::$url . '/post_content.php';
                     if (isset($this->group->collection_id) && $this->group->collection_id > 0) {
                         $link = PA::$url . '/post_content.php?ccid=' . $this->group->collection_id;
                     }
                 }
                 $inner_html .= "  " . sprintf(__('Click <a href="%s">here</a> to add content.'), $link);
             }
             $inner_html .= "</div>";
         }
     }
     return $inner_html;
 }
 function generate_inner_html($contents)
 {
     global $current_theme_path, $login_uid, $page_uid;
     global $base_url;
     $inner_html = '';
     if ($this->mode == PRI) {
         $inner_html .= '<div id="buttonbar">
     <ul>
       <li><a href="' . $base_url . '/post_content.php">
         ' . __("Create post") . '</a>
       </li>
       <li><a href="' . $base_url . '/content_management.php">
         ' . __("Manage posts") . '</a>
       </li>
       <li><a href="' . $base_url . '/user.php?uid=' . $login_uid . '">
         ' . __("View my public page") . '</a>
       </li>
     </ul>
   </div>';
     }
     if ($this->type == 'tag') {
         $tag_name = Tag::get_tag_name($this->tag_id);
         $inner_html .= "<h1>" . sprintf(__("Showing results for tag %s."), $tag_name) . "</h1>";
     }
     if ($this->type == 'group') {
         $inner_html .= '<div id="buttonbar">
     <ul>';
         if ($this->group_member) {
             $inner_html .= '<li><a href="' . $base_url . '/post_content.php?ccid=' . $_GET['gid'] . '">' . __("Create post") . '</a></li>';
             $inner_html .= '<li><a href="' . $base_url . '/group_invitation.php?gid=' . $_GET['gid'] . '">' . __("Invite") . '</a></li>';
         }
         if ($this->group_owner) {
             $inner_html .= '<li><a href="' . $base_url . '/addgroup.php?gid=' . $_GET['gid'] . '">' . __("Group Settings") . '</a></li>';
             $inner_html .= '<li><a href="' . $base_url . '/group_moderation.php?view=members&amp;gid=' . $_GET['gid'] . '">' . __("Moderate") . '</a></li>';
             $inner_html .= '<li><a href="' . $base_url . '/manage_group_content.php?gid=' . $_GET['gid'] . '">' . __("Manage content") . '</a></li>';
         }
         if (empty($this->group_member) && empty($this->group_owner) && !empty($login_uid)) {
             if (!empty($this->join_this_group_string)) {
                 $inner_html .= '<li><a href="' . $base_url . '/group.php?action=join&amp;gid=' . $_GET['gid'] . '">' . $this->join_this_group_string . '</a></li>';
             } else {
                 $inner_html .= '<li><a href="' . $base_url . '/group.php?action=join&amp;gid=' . $_GET['gid'] . '">' . __("Join this group") . '</a></li>';
             }
         }
         $inner_html .= '</ul></div>';
     }
     if ($contents) {
         //foreach ($contents as $content) {
         for ($i = 0; $i < count($contents); $i++) {
             if ($i == 0) {
                 $inner_html .= uihelper_generate_center_content($contents[$i]['content_id'], 0, 1);
             } else {
                 $inner_html .= uihelper_generate_center_content($contents[$i]['content_id']);
             }
         }
     } else {
         if ($this->type == "search") {
             $inner_html .= "<div class=\"center\">" . __("No content found.") . "</div>";
         } else {
             $inner_html .= '<div class="auto">' . $this->message['message'];
             if ($this->mode == 'private' || count($this->group_details) > 0) {
                 if (!empty($this->message['queryString'])) {
                     $link = $base_url . '/post_content.php?' . $this->message['queryString'];
                     if ($this->group_details['collection_id'] > 0) {
                         $link = $base_url . '/post_content.php?' . $this->message['queryString'] . '&ccid=' . $this->group_details['collection_id'];
                     }
                 } else {
                     $link = $base_url . '/post_content.php';
                     if ($this->group_details['collection_id'] > 0) {
                         $link = $base_url . '/post_content.php?ccid=' . $this->group_details['collection_id'];
                     }
                 }
                 $inner_html .= "  " . sprintf(__('Click <a href="%s">here</a> to create one.'), $link);
             }
             $inner_html .= "</div>";
         }
     }
     return $inner_html;
 }
 * @description 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * @note
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * @todo
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * @version 0.0.0-1
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * @author Cyberspace Networks <*****@*****.**>
 * @license GNU General Public License
 * @copyright Copyright (c) 2000-2014 Cyberspace Networks
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * The lastest version of Cyberspace Networks CoreSystem can be obtained from:
 * http://developer.cyberspace-networks.com/
 * For questions, help, comments, discussion, etc. please visit
 * https://github.com/CyberspaceNetworks/CoreSystem
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 */
$contents = $links['content_info'];
$inner_html = NULL;
if ($cnt = count($contents)) {
    //foreach ($contents as $content) {
    for ($i = 0; $i < $cnt; $i++) {
        if ($i == 0) {
            $inner_html .= uihelper_generate_center_content($contents[$i]['content_id'], 0, 1);
        } else {
            $inner_html .= uihelper_generate_center_content($contents[$i]['content_id']);
        }
    }
    echo $inner_html;
}