function render()
 {
     $this->user = new User();
     $this->user->load((int) $this->uid);
     $this->title = sprintf(__('About: %s'), chop_string($this->user->login_name, 12));
     $user_generaldata = User::load_user_profile((int) $this->uid, $this->login_uid, GENERAL);
     $this->general_info = sanitize_user_data($user_generaldata);
     $user_personaldata = User::load_user_profile((int) $this->uid, $this->login_uid, PERSONAL);
     $this->personal_info = sanitize_user_data($user_personaldata);
     $user_professionaldata = User::load_user_profile((int) $this->uid, $this->login_uid, PROFESSIONAL);
     $this->professional_info = sanitize_user_data($user_professionaldata);
     $this->inner_HTML = $this->generate_inner_html();
     $content = parent::render();
     return $content;
 }
 public function generate_inner_html()
 {
     switch ($this->mode) {
         default:
             $inner_template = PA::$blockmodule_path . '/' . get_class($this) . '/side_inner_public.tpl';
     }
     $this->generate_group_links();
     $this->title = chop_string(stripslashes(!empty($this->group_details) ? $this->group_details->title : NULL), GROUP_TITLE_LENGTH);
     $inner_html_gen = new Template($inner_template);
     $inner_html_gen->set_object('group_details', $this->group_details);
     $inner_html_gen->set('join_this_group_string', $this->join_this_group_string);
     $inner_html_gen->set('is_member', $this->is_member);
     $inner_html_gen->set('is_admin', $this->is_admin);
     $inner_html = $inner_html_gen->fetch();
     return $inner_html;
 }
 function generate_inner_html()
 {
     global $current_theme_path, $base_url;
     switch ($this->mode) {
         default:
             $inner_template = dirname(__FILE__) . '/side_inner_public.tpl';
     }
     // Here we calculating the links ;) if we not set from the web page
     if (empty($this->group_details)) {
         $this->group_details = $this->generate_group_links();
         $this->join_this_group_string = $this->group_details['join_str'];
         $this->title = chop_string(stripslashes($this->group_details['title']), GROUP_TITLE_LENGTH);
     }
     $inner_html_gen =& new Template($inner_template);
     $inner_html_gen->set('current_theme_path', $current_theme_path);
     $inner_html_gen->set('base_url', $base_url);
     $inner_html_gen->set('group_details', $this->group_details);
     //join_this_group_string is set to change group join text. If it is a moderated group
     $inner_html_gen->set('join_this_group_string', $this->join_this_group_string);
     $inner_html = $inner_html_gen->fetch();
     return $inner_html;
 }
                echo $g_id;
                ?>
]" id="role_extra_groups_<?php 
                echo $curr_role_id . '_' . $g_id;
                ?>
" <?php 
                echo $cheked;
                ?>
 value="<?php 
                echo $cheked ? '1' : '0';
                ?>
" onclick="javascript: toggle_chhkbox('role_extra_groups_<?php 
                echo $curr_role_id . '_' . $g_id;
                ?>
');" />&nbsp;<?php 
                echo __('Apply to ') . chop_string($g_name, 15) . __(' group');
                ?>
<br />
              <?php 
            }
            ?>
            <?php 
        }
        ?>
          </div>
        <?php 
    }
    ?>
          <div style="float: left; width: auto; margin-left: 16px;">
            <div style="font-weight: bold; padding-bottom: 0.5em"><?php 
    echo __('Tasks/Permissions');
>
        <a href="<?php 
        echo $network_url;
        ?>
">
            <?php 
        echo $img;
        ?>
        </a>
        <hr/>
        <a href="<?php 
        echo $network_url;
        ?>
">
            <?php 
        echo chop_string(stripslashes(strip_tags($network['name'])), 11);
        ?>
        </a>
        <?php 
        if ($network['member_count'] != '') {
            ?>
        <span class="badge">
            <?php 
            echo $network['member_count'] . ' Members';
            ?>
        </span>
        <?php 
        }
        ?>
    </li>
    <?php 
function uihelper_set_user_heading($page, $do_theme = TRUE, $userid = NULL)
{
    global $uid;
    $uid = !empty($userid) ? $userid : $uid;
    // Changing ... if we give User id than it will display the information of that user
    // .. if we not give the id than it displayed (Page users id or login user id )
    if (!empty($userid)) {
        $user = new User();
        $user->load((int) $userid);
    } else {
        $user = get_login_user();
        if (!PA::$login_uid) {
            $user = get_page_user();
        }
    }
    if (empty($user)) {
        return;
    }
    if ($do_theme) {
        // put links all theme CSS files in the header
        $theme_details = get_user_theme($uid);
        if (is_array($theme_details['css_files'])) {
            foreach ($theme_details['css_files'] as $key => $value) {
                $page->add_header_css($value);
            }
        }
        $page->header->set('theme_details', $theme_details);
        // see if we have user defined CSS
        // Here we have to load the user
        $usr = new User();
        $usr->user_id = $uid;
        $newcss = $usr->get_profile_field("ui", "newcss");
        if (!empty($newcss)) {
            $usercss = "<style>" . $newcss . "</style>";
            $page->add_header_html($usercss);
        }
    }
    // get selected general user data, so we can set captions, etc.
    $user_data_general = $user->get_profile_fields(GENERAL, array('user_caption', 'sub_caption', 'user_caption_image', 'desktop_image_action', 'desktop_image_display'));
    // set caption value
    if (!empty($user_data_general['user_caption'])) {
        $caption1 = chop_string($user_data_general['user_caption'], 20);
    } else {
        $caption1 = chop_string($user->first_name . " " . $user->last_name, 20);
    }
    $page->header->set('caption1', $caption1);
    $page->header->set('caption2', chop_string(@$user_data_general['sub_caption'], 40));
    $page->header->set('caption_image', $user_data_general['user_caption_image']);
    $page->header->set('desktop_image_action', $user_data_general['desktop_image_action']);
    $page->header->set('display_image', @$user_data_general['desktop_image_display']);
}
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * @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
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 */
require_once "api/CNPermissions/CNPermissionsHandler.php";
?>

<div class="box-body box-profile">
    <?php 
echo uihelper_resize_mk_user_img($user->picture, 128, 128, 'class="profile-user-img img-responsive img-circle" alt="' . __("User profile picture") . '"');
?>

    <h3 class="profile-username text-center">
        <?php 
$name_string = $user->first_name . ' ' . $user->last_name;
$name_string = chop_string($name_string, 17);
echo $name_string;
?>
    </h3>
    
</div>
<!-- /.box-body -->
        $selected = "";
        if (in_array($user_albums['videos'][$counter]['collection_id'], $collection_id_array)) {
            //if the current album is set as a network settings
            $selected = "selected=\"selected\"";
        } else {
            $selected = "";
        }
        ?>
           <option value="<?php 
        echo $user_albums['videos'][$counter]['collection_id'];
        ?>
" <?php 
        echo $selected;
        ?>
 ><?php 
        echo chop_string($user_albums['videos'][$counter]['description'], 20);
        ?>
</option>
         <?php 
    }
    //for end
} else {
    ?>
        <option value="">----- No video in default user galleries ------</option>
       <?php 
}
?>
     </select>
       <br/>
       <?php 
echo __("For multiple selections hold down the &lt;Ctrl&gt;key PC or the &lt;Command&gt; key(Mac) while clicking the desired selections.");
'); return false;"><?php 
    echo $newarray[$i]['cat_name'];
    ?>
</a> <?php 
    echo $newarray[$i]['members'];
    ?>
      
     <ul id="id_<?php 
    echo $i;
    ?>
" class="display_false">
         
         <?php 
    if ($newarray[$i]['members'] > 0) {
        for ($j = 0; $j < $newarray[$i]['members']; $j++) {
            $network_name = chop_string(stripslashes($newarray[$i]['networks_info'][$j]['network_name']), 18);
            ?>
      
      <li>
        <a href="http://<? echo $newarray[$i]['networks_info'][$j]['address'] .'.' . PA::$domain_suffix . BASE_URL_REL . PA_ROUTE_HOME_PAGE ;?>"><?php 
            echo $network_name;
            ?>
</a>
      </li>

      <?php 
        }
    } else {
        ?>
        <li><?php 
        echo __("No networks in this category");
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* 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
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*/
$size = sizeof($tags_id_name);
?>
<div class="module_browse_tag">
    <?php 
if ($size) {
    $cnt = 1;
    foreach ($tags_id_name as $tag) {
        $url = PA::$url . '/' . FILE_TAG_SEARCH . '?name_string=content_tag&keyword=' . $tag['name'];
        $name = _out(stripslashes(chop_string($tag['name'], 15)));
        ?>
    <a href="<?php 
        echo $url;
        ?>
"><?php 
        echo $name;
        ?>
</a>
    <?php 
        if ($size > $cnt) {
            ?>
    :: 
    <?php 
        }
        ?>
require_once "{$path_prefix}/ext/SBMicroContent/SBMicroContent.php";
require_once "{$path_prefix}/ext/Group/Group.php";
require_once "{$path_prefix}/api/Invitation/Invitation.php";
$setting_data = ModuleSetting::load_setting(PAGE_GROUP_MEMBERS, $uid);
$gid = (int) $_REQUEST['gid'];
$group = ContentCollection::load_collection((int) $gid, $_SESSION['user']['id']);
$group_details = array();
$group_details['collection_id'] = $group->collection_id;
$group_details['type'] = $group->type;
$group_details['author_id'] = $group->author_id;
$user = new User();
$user->load((int) $group->author_id);
$first_name = $user->first_name;
$last_name = $user->last_name;
$login_name = $user->login_name;
$group_details['author_name'] = chop_string($login_name, 15);
$group_details['author_picture'] = $user->picture;
$group_details['title'] = $group->title;
$group_details['description'] = $group->description;
$group_details['is_active'] = $group->is_active;
$group_details['picture'] = $group->picture;
$group_details['desktop_picture'] = @$group->desktop_picture;
$group_details['created'] = date("F d, Y h:i A", $group->created);
$group_details['changed'] = $group->changed;
$group_details['category_id'] = $group->category_id;
$cat_obj = new Category();
$cat_obj->set_category_id($group->category_id);
$cat_obj->load();
$cat_name = stripslashes($cat_obj->name);
$cat_description = stripslashes($cat_obj->description);
$group_details['category_name'] = $cat_name;
?>
<div class="familyandkidsfacewall">

<?php if ($mod->may_see_details) { ?>
  <?php 
  for ($counter = 0; $counter < count($links['users_data']); $counter++) {
  ?>
		<div class="face">
			<div class="picture">
				<a href="<?= PA::$url . PA_ROUTE_USER_PUBLIC . '/' . urlencode($links['users_data'][$counter]['login_name']) ?>">
					<?php echo uihelper_resize_mk_user_img($links['users_data'][$counter]['picture'], 80, 80, 'alt="PA"') ?>
					</a>
			</div>
			<div>
				<p class="name">
					<b><?= chop_string($links['users_data'][$counter]['display_name'], 12) ?></b><br />
					<?= $links['users_data'][$counter]['family_status'] ?>
				</p>
			</div>
		</div>
		<?php } ?>
<? } else { ?>
	<ul class="members">
  <?php
    for ($counter = 0; $counter < count($links['users_data']); $counter++) {
  ?>  
  <li>
  	<span>
          <b><?= link_to($links['users_data'][$counter]['display_name'],
			 "user_blog", array("login" => urlencode($links['users_data'][$counter]['login_name']))) ?></b>,
			 <?= $links['users_data'][$counter]['family_status'] ?>
      <a href="<?php 
        echo PA::$url . PA_ROUTE_FAMILY . "/gid=" . $family['id'];
        ?>
">
        <?php 
        echo uihelper_resize_mk_img($family['picture'], 35, 35, "files/img/image_not_available.png", 'alt="Group image"', RESIZE_CROP);
        ?>
      </a>
      <span>
        <b>
          <a href="<?php 
        echo PA::$url . PA_ROUTE_FAMILY . "/gid=" . $family['id'];
        ?>
">
            <?php 
        echo chop_string(stripslashes($family['title']), 17);
        ?>
          </a>
       </b><br/>
       <?php 
        echo uihelper_plural($family['members'], '' . __('member') . '');
        ?>
     </span>
   </li>
   <?php 
    }
    // End of For
    ?>
  </ul>
</div>
<?php 
}
//$class = ($edit || !empty($form_data)) ? 'class="display_true"' : 'class="display_false"';
$legend_tag = $edit ? __('Edit Static Page') : __('Create Static Page');
$static_page_data = NULL;
if (!empty($links)) {
    $static_page_data = '<table cellpadding="3" cellspacing="3">
                <tr>
                  <td><b>' . __("Caption") . '</b></td>
                  <td><b>' . __("URL") . '</b></td>
                  <td><b>' . __("Page Text") . '</b></td>
                  <td><b>' . __("Edit") . '</b></td>
                  <td><b>' . __("Delete") . '</b></td>
                </tr>';
    foreach ($links as $static_pages) {
        $url = link_to(NULL, "pages_links", array("caption" => $static_pages->url));
        $static_page_data .= '<tr><td>' . $static_pages->caption . '</td>' . '<td>' . $url . '</td><td>' . chop_string($static_pages->page_text, 50) . '</td><td><a href="' . PA::$url . '/manage_static_pages.php?do=edit&amp;id=' . $static_pages->id . '" onclick="javascript: showhide_ad_block(\'new_ad\', 0, \'manage_static_pages.php\');">' . __("Edit") . '</a></td><td><a href="' . PA::$url . '/manage_static_pages.php?action=delete&amp;id=' . $static_pages->id . '" onclick="return delete_confirmation_msg(\'' . __("Are you sure you want to delete this page?") . '\') ">' . __("Delete") . '</a></td></tr>';
    }
    $static_page_data .= '</table>';
}
?>
<form name="formStaticPagesManagement" id="formStaticPagesManagement" action="" method="POST"> 
  <fieldset class="center_box">
    <legend><?php 
echo __("Manage Static Pages");
?>
</legend>
    <?php 
if (!empty($page_links)) {
    ?>
    <div class="prev_next">
      <?php 
 function render()
 {
     if ($this->type == 'group') {
         $this->outer_template = 'outer_show_content_group_module.tpl';
         if ($this->content_type == NULL) {
             $this->content_type = 'all';
         }
         //$type = 'all',$cnt=FALSE, $show='ALL', $page=0, $sort_by='created', $direction='DESC'
         if (!empty($this->content_type)) {
             $this->Paging["count"] = $this->links = $this->group->get_contents_for_collection($this->content_type, TRUE, 10, 1, 'created', 'DESC', TRUE);
             $this->contents = $this->group->get_contents_for_collection($this->content_type, FALSE, $this->Paging["show"], $this->Paging["page"], 'created', 'DESC', TRUE);
         } else {
             $this->Paging["count"] = $this->links = $this->group->get_contents_for_collection($type = 'all', $cnt = TRUE, 'all', 0, $sort_by = 'created', $direction = 'DESC');
             $this->contents = $this->group->get_contents_for_collection($type = 'all', $cnt = FALSE, $this->Paging["show"], $this->Paging["page"], 'created', 'DESC');
         }
         $this->title = chop_string(sprintf(__("%s's Group Blog"), $this->group->title, 32));
     } else {
         if ($this->type == "tag") {
             $this->Paging["count"] = Tag::get_associated_content_ids((int) $this->tag_id, $cnt = TRUE);
             $this->contents = Tag::get_associated_content_ids((int) $this->tag_id, $cnt = FALSE, $this->Paging["show"], $this->Paging["page"]);
             if (!empty($this->contents)) {
                 foreach ($this->contents as $key => $value) {
                     $this->contents[$key]['content_id'] = $value['id'];
                 }
             }
         } else {
             if ($this->type == "search") {
                 $this->Paging["count"] = Content::content_search($this->search_string_array, $cnt = TRUE);
                 $this->contents = Content::content_search($this->search_string_array, $cnt = FALSE, $this->Paging["show"], $this->Paging["page"]);
             } else {
                 $this->Paging["count"] = Content::load_content_id_array($this->uid, $this->content_type, $cnt = TRUE);
                 $contents = Content::load_content_id_array($this->uid, $this->content_type, $cnt = FALSE, $this->Paging["show"], $this->Paging["page"]);
                 $this->contents = $contents;
             }
         }
     }
     $this->orientation = LEFT;
     if ($this->type == 'user') {
         $this->block_type = 'ShowContentUserBlock';
         // $this->do_pagination=TRUE;
     } else {
         if ($this->type == 'group') {
             if ($this->html_block_id_flag == 1) {
                 $this->block_type = 'ShowAllContent';
                 // $this->do_pagination=TRUE;
             } else {
                 $this->block_type = 'ShowContentGroupBlock';
             }
         } else {
             if ($this->type == "tag") {
                 $this->block_type = 'ShowAllContent';
                 // $this->do_pagination=TRUE;
             } else {
                 if ($this->type == "search") {
                     $this->block_type = 'ShowAllContent';
                     // $this->do_pagination=TRUE;
                 } else {
                     if ($this->show_all == 1) {
                         $this->block_type = 'ShowAllContent';
                         // $this->do_pagination=TRUE;
                     } else {
                         $this->block_type = 'ShowContentBlock';
                         // $this->do_pagination=TRUE;
                     }
                 }
             }
         }
     }
     $this->inner_HTML = $this->generate_inner_html($this->contents, $this->type);
     if ($this->do_pagination) {
         $Pagination = new Pagination();
         $Pagination->setPaging($this->Paging);
         $this->page_first = $Pagination->getFirstPage();
         $this->page_last = $Pagination->getLastPage();
         $this->page_links = $Pagination->getPageLinks();
     }
     $content = parent::render();
     return $content;
 }
>
            <a href="<?php 
        echo $action['url'];
        ?>
"<?php 
        echo $action['extra'];
        ?>
><i class="<?php 
        echo $action['icon'];
        ?>
"></i>
                <span><?php 
        if (isset($action['caption'])) {
            echo chop_string($action['caption'], 30);
        } else {
            echo chop_string($action['title'], 30);
        }
        ?>
                </span>
            </a>
        </li>
    <?php 
    } else {
        if (!empty($action['html'])) {
            ?>
        <li <?php 
            echo $class;
            ?>
>
            <?php 
            echo $action['caption'];
        ?>
"><?php 
        echo $links[$i]['login_name'];
        ?>
</a></td>
                        <td><?php 
        echo wordwrap($links[$i]['first_name'] . ' ' . $links[$i]['last_name'], 20, "<br />\n", true);
        ?>
</td>
                        <td><?php 
        echo wordwrap($links[$i]['email'], 20, "<br />\n", true);
        ?>
</td>
                        <!--
                                    <td><?php 
        echo chop_string($links[$i]['first_name'] . ' ' . $links[$i]['last_name'], 25);
        ?>
</td>
                                    <td width="100"><a href="mailto:<?php 
        echo $links[$i]['email'];
        ?>
">
                        <?php 
        $start = 0;
        $length = strlen($links[$i]['email']) + 15;
        for ($end = 0; $end <= $length; $end += 15) {
            echo substr($links[$i]['email'], $start, $end) . "<br>";
            $start = $end;
        }
        ?>
</a>
~<?php 
                echo $message['index_id'];
                ?>
"></td>
                            <td width="222"><a href="<?php 
                echo $url;
                ?>
"><?php 
                echo $message['sender_name'];
                ?>
</a></td>
                            <td width="400"><a href="<?php 
                echo PA::$url . PA_ROUTE_MYMESSAGE . "/folder={$folder_name}&action=view_message&mid=" . $message['message_id'];
                ?>
"><?php 
                echo chop_string($message['subject'], 80);
                ?>
</a></td>
                            <td width="30">&nbsp;</td>
                            <td width="100"><?php 
                echo $date_time;
                ?>
</td>  
                        </tr>
            <?php 
            }
        }
    }
    ?>
                <tr class="no_read">
                    <td colspan="5" id="paging">
    $m = $msg_tpl->fetch();
    $page->add_module("middle", "top", $m);
}
// see if we have a user defined CSS
$user_data_ui = sanitize_user_data(User::load_user_profile($uid, $uid, 'ui'));
if (isset($user_data_ui['newcss'])) {
    $usercss = '<style type="text/css">' . $user_data_ui['newcss'] . '</style>';
    $page->add_header_html($usercss);
}
//To print delete message
if (!empty($_GET['msg_id'])) {
    uihelper_error_msg($_GET['msg_id']);
}
// set caption value
if (isset($user_data_general['user_caption'])) {
    $caption1 = chop_string($user_data_general['user_caption'], 20);
} else {
    $caption1 = chop_string($user->first_name . " " . $user->last_name, 20);
}
if (isset($page_settings['body_attributes'])) {
    $page->html_body_attributes = $page_settings['body_attributes'];
} else {
    $page->html_body_attributes .= 'class="hold-transition skin-blue sidebar-collapse sidebar-mini"';
}
$page->header->set('caption1', $caption1);
$page->header->set('caption2', chop_string(@$user_data_general['sub_caption'], 40));
$page->header->set('caption_image', @$user_data_general['user_caption_image']);
$page->header->set('desktop_image_action', @$user_data_general['desktop_image_action']);
$page->header->set('theme_details', $theme_details);
$page->header->set('display_image', @$user_data_general['desktop_image_display']);
echo $page->render();
?>
</a></h2>
        <div class="user-block">
            <a href="<?php 
echo PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $contents->author->user_id;
?>
"><?php 
echo uihelper_resize_mk_user_img($contents->author->picture, 128, 128, 'class="img-circle img-bordered-sm" alt=".$contents->author_name."');
?>
</a>
            <span class="username">
                <a href="<?php 
echo PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $user_id;
?>
"> <?php 
echo wordwrap(chop_string($user_name, 40), 20);
?>
</a>
            </span>
            <span class="description"><?php 
echo __("Blog post");
?>
 - <?php 
echo date("l, F d Y", $contents->created);
?>
</span>
        </div>
        <!-- /.user-block -->
        <?php 
echo "<p>" . $contents->body . "</p>";
?>
        ?>
        <li>
            <a href="<?php 
        echo PA::$url . PA_ROUTE_GROUP . "/gid=" . $link['id'];
        ?>
">
                <?php 
        echo uihelper_resize_mk_img($link['picture'], 125, 125, "files/img/image_not_available.png", 'alt="Group image"', RESIZE_CROP);
        ?>
            </a>
            <a href="<?php 
        echo PA::$url . PA_ROUTE_GROUP . "/gid=" . $link['id'];
        ?>
">
                <?php 
        echo chop_string(stripslashes($link['title']), 17);
        ?>
            </a>
            <span class="users-list-date">
                <?php 
        echo uihelper_plural($link['members'], '' . __('Member') . '');
        ?>
            </span>
        </li>
    <?php 
    }
} else {
    ?>
        <?php 
    if ($mode == 'private' || !empty($user_name)) {
        ?>
    foreach ($links as $network) {
        $extra = unserialize($network->extra);
        $network_image_name = $network->inner_logo_image;
        ?>
           
                    <tr>

                        <td align="center" valign="top" width="80">
                            <a href="http://<? echo $network->address .'.' . PA::$domain_suffix.BASE_URL_REL . PA_ROUTE_HOME_PAGE?>" ><?php 
        echo uihelper_resize_mk_img($network_image_name, 70, 60, PA::$theme_rel . "/files/img/image_not_available.png");
        ?>
 </a>
                        </td>

                            <?php 
        $network_owner_name = chop_string($owner_info[$network->network_id]['name'], 25);
        ?>

                        <td valign="top" width="415">
                            <h2><a href="http://<? echo $network->address .'.' . PA::$domain_suffix.BASE_URL_REL . PA_ROUTE_HOME_PAGE?>"><?php 
        echo strip_tags(stripslashes($network->network_name));
        ?>
</a></h2>

        <?php 
        echo wordwrap($network->description, 75, " ", 1);
        ?>

                            <div class="post_info">
                        <?php 
        echo uihelper_plural($network->member_count, ' Member');
    $img_desktop_info = manage_user_desktop_image($caption_image, $desktop_image_action);
    $style = ' style="background: url(' . $img_desktop_info['url'] . ') ' . $img_desktop_info['repeat'] . '"';
} else {
    $img_desktop = $theme_details['header_image'];
    if (!empty($img_desktop)) {
        $style = ' style="background-image: url(' . $img_desktop . ') no-repeat"';
    }
}
?>

<!-- Content Header (Page header) -->
<section class="content-header">
    <h1>
        <?php 
if (!empty($group_name)) {
    echo chop_string($group_name, 40);
}
?>
        <?php 
if (!empty($caption2)) {
    ?>
            <small> <?php 
    echo wordwrap($caption2, 60, '<BR />', 1);
    ?>
</small>
        <?php 
}
?>
            <?php 
if (!empty($group_access_type)) {
    echo wordwrap($group_access_type, 60, '<BR />', 1);
?>

<ul class="list-group">
    <?php 
if (!empty($links)) {
    $cnt = count($links);
    for ($counter = 0; $counter < $cnt; $counter++) {
        ?>
            <li class="list-group-item">
                <a href="http://<? echo $links[$counter]->address .'.' . PA::$domain_suffix . BASE_URL_REL . PA_ROUTE_HOME_PAGE?>" ><?php 
        echo uihelper_resize_mk_img(trim($links[$counter]->inner_logo_image), 250, 250, PA::$theme_rel . "/img/default-network-image.gif");
        ?>
</a>
                <hr/>
                <a href="http://<? echo $links[$counter]->address . '.' . PA::$domain_suffix . BASE_URL_REL . PA_ROUTE_HOME_PAGE?>" ><?php 
        echo chop_string(stripslashes($links[$counter]->name), 16);
        ?>
</a>
                <span class="badge">
                    <?php 
        echo uihelper_plural($links[$counter]->member_count, "Member");
        ?>
                </span>
            </li>
            <?php 
    }
} else {
    ?>
        <li><?php 
    echo __('No network created yet.');
    ?>
<ul class="members_list">
<?php 
if (!empty($links)) {
    foreach ($links as $link) {
        $user_link = PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $link['user_id'];
        ?>
<li><a href="<?php 
        echo $user_link;
        ?>
">
      <?php 
        echo uihelper_resize_mk_user_img($link['picture'], 50, 50, 'alt="User picture."');
        ?>
      <div class="description" style="text-align: center">
      <h2><?php 
        echo chop_string($link['display_name'], 18);
        ?>
</h2>
      <?php 
        if (!empty(PA::$config->useTypedGroups) && !empty($link['membertype'])) {
            ?>
      <b><?php 
            echo $link['membertype'];
            ?>
</b>
      <?php 
        }
        ?>
      <?php 
        if ($view_type == 'relations' || $view_type == 'in_relations') {
            switch ((int) $link['relation_type_id']) {
        ?>
/images/16_edit.gif" alt="edit" title="Edit" height="16" width="16" border="0" /></a>
     <a href="#" onclick="return delete_media_content(document.delete_content,'<?php 
        echo $linkForDeleting;
        ?>
');" ><img  src="<?php 
        echo PA::$theme_url;
        ?>
/images/16_delete.gif" alt="delete" height="16" width="16" border="0" title="Delete" /></a>
   </td>
   <td><a href="<?php 
        echo PA::$url . PA_ROUTE_CONTENT . "/cid=" . $links[$i]['content_id'];
        ?>
">
     <?php 
        echo chop_string($links[$i]['title']);
        ?>
 </a>
   </td>
     <?php 
        if (!$type_image || $local_image_variable) {
            if ($links[$i]['type_name'] == 'CNBlogPost') {
                $type_image = PA::$theme_url . "/img/type-blog.gif";
                $local_image_variable = TRUE;
            }
        }
        ?>
   
   <td><img src="<?php 
        echo $type_image;
        ?>
 * 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;
        ?>
</a>
           <br />
           <span><?php 
        echo $counter;
        ?>
" class="display_true">
                        <?php 
        $links = count($links_data_array[$counter]['links']);
        if ($links > 0) {
            for ($link_counter = 0; $link_counter < $links; $link_counter++) {
                ?>

                                <li>
                                    <a href="<?php 
                echo $links_data_array[$counter]['links'][$link_counter]->url;
                ?>
"  target='blank'>
                                        <?php 
                echo chop_string($links_data_array[$counter]['links'][$link_counter]->title, 23);
                ?>
                                    </a>
                                </li>

                                <?php 
            }
        } else {
            ?>
 <li> <?php 
            echo __("No links under this category");
            ?>
 </li><?php 
        }
        ?>
    echo $newarray[$i]['members'];
    ?>
</span>
                    </a>
                </h4>
            </div>
            <div id="<?php 
    echo $i;
    ?>
" class="panel-collapse collapse">
                <div class="panel-body">
                    <ul class="list-unstyled">
                        <?php 
    if ($newarray[$i]['members'] > 0) {
        for ($j = 0; $j < $newarray[$i]['members']; $j++) {
            $group_name = chop_string(stripslashes($newarray[$i]['group_info'][$j]['group_name']), 18);
            ?>

                                <li>
                                    <a href="<?php 
            echo PA::$url . PA_ROUTE_GROUP . "/gid=" . $newarray[$i]['group_info'][$j]['group_id'];
            ?>
" ><?php 
            echo $group_name;
            ?>
</a>
                                </li>

                            <?php 
        }
    } else {
    if ($message_details->in_reply_to > 0) {
        $extclass = ' reply';
    }
    ?>
    <ul class="message <?php 
    echo $extclass;
    ?>
">
      <li class="message_info">
	    <h4>
	      <a href="<?php 
    echo PA::$url . PA_ROUTE_MYMESSAGE . "/action=view_message&mid=" . $message_details->message_id;
    ?>
">
	      <?php 
    echo chop_string($message_details->subject, 80);
    ?>
</a>
	    </h4>
      	<p><strong>
      	<?php 
    // display the sender's name if it is NOT us
    // otherwise display the To:
    if ($message_details->sender_id == PA::$login_uid) {
        ?>
      	To: <?php 
        echo uihelper_lookupnames($message_details->all_recipients);
        ?>
      	<!-- (From:       	<?php 
        echo $message_details->sender_name;
        ?>