function render()
 {
     $this->inner_HTML = $this->generate_inner_html();
     // $this->links
     $content = parent::render();
     return $content;
 }
 function render()
 {
     $conf = new CNNetworkConfig();
     $this->inner_HTML = $this->generate_inner_html();
     $content = parent::render();
     return $content;
 }
 function render()
 {
     $this->links = NULL;
     $Pagination = new CNPagination();
     switch ($this->type) {
         case IMAGE:
             $this->links = CNContent::load_content_id_array($this->uid, IMAGE);
             $this->type_image = PA::$theme_url . "/img/type-image.gif";
             break;
         case AUDIO:
             $this->links = CNContent::load_content_id_array($this->uid, AUDIO);
             $this->type_image = PA::$theme_url . "/img/type-audio.gif";
             break;
         case VIDEO:
             $this->links = CNContent::load_content_id_array($this->uid, VIDEO);
             $this->type_image = PA::$theme_url . "/img/type-video.gif";
             break;
         case BLOGPOST:
             $this->links = CNContent::load_content_id_array($this->uid, BLOGPOST);
             $this->type_image = PA::$theme_url . "/img/type-blog.gif";
             break;
         default:
             $this->links = CNContent::load_content_id_array($this->uid, NULL);
             break;
     }
     $this->inner_HTML = $this->generate_inner_html();
     $content = parent::render();
     return $content;
 }
 public function render()
 {
     $this->get_recent_tags();
     $this->inner_HTML = $this->generate_inner_html();
     $content = parent::render();
     return $content;
 }
 function render()
 {
     // render
     $this->inner_HTML = $this->generate_inner_html();
     $content = parent::render();
     return $content;
 }
 function render()
 {
     $this->outer = get_class_name(PAGE_LOGIN);
     $this->inner_HTML = $this->generate_center_public_inner_html();
     $content = parent::render();
     return $content;
 }
 function render()
 {
     $network = new Network();
     $this->network_links = $network->get();
     $this->inner_HTML = $this->generate_inner_html();
     $links = parent::render();
     return $links;
 }
 /**
  * This handles the situation that there has been no inner_HTML generated
  * and then calls {@link Module::render() }.
  *
  * @return string $content  The html code specific to this module, and its outer html
  */
 function render()
 {
     $this->inner_HTML = $this->generate_inner_html();
     if (!$this->inner_HTML) {
         return "";
     }
     $content = parent::render();
     return $content;
 }
 function render()
 {
     $this->title = __("Network Statistics");
     $param['network_id'] = PA::$network_info->network_id;
     $this->network_statistics = Network::get_network_statistics($param);
     $this->inner_HTML = $this->generate_inner_html($this->network_statistics);
     $network_stats = parent::render();
     return $network_stats;
 }
 function render()
 {
     $this->inner_HTML = $this->generate_inner_html($this->links);
     if ($this->mode == SORT_BY) {
         $content = $this->inner_HTML;
     } else {
         $content = parent::render();
     }
     return $content;
 }
 function render()
 {
     $this->links = $this->get_links();
     if (sizeof($this->links)) {
         $this->view_all_url = PA::$url . "/cnnetworks_home.php?uid=" . $this->uid;
     }
     $this->inner_HTML = $this->generate_inner_html();
     $content = parent::render();
     return $content;
 }
 function render()
 {
     $total_msg = Message::get_new_msg_count(PA::$login_uid);
     if ($total_msg['unread_msg'] != 0 || $total_msg['total'] != 0) {
         $this->view_all_url = PA::$url . PA_ROUTE_MYMESSAGE . '/folder_name=Inbox';
     }
     $this->links = $total_msg;
     $this->inner_HTML = $this->generate_inner_html();
     $content = parent::render();
     return $content;
 }
 function render()
 {
     if (empty($this->user)) {
         $this->user = new User();
         $this->user->load((int) $this->uid);
     }
     $user_socialdata = User::load_user_profile((int) $this->uid, $this->login_uid, SOCIAL);
     $this->professional_info = sanitize_user_data($user_socialdata);
     $this->inner_HTML = $this->generate_inner_html();
     $content = parent::render();
     return $content;
 }
 /** !!
  * Passes the HTML along to be rendered.
  *
  * @return string The HTML.
  */
 function render()
 {
     if (empty($this->title)) {
         $this->title = __('Personal Events');
     }
     if (empty($this->assoc_id)) {
         $this->assoc_id = $_GET['uid'];
     }
     $this->inner_HTML = $this->generate_inner_html();
     $content = parent::render();
     return $content;
 }
 function render()
 {
     $network = new Network();
     $extra = unserialize(PA::$network_info->extra);
     $this->network_data = '';
     if (!empty($extra['network_feature'])) {
         $network->network_id = $extra['network_feature'];
         $this->network_data = $network->get();
     }
     $this->inner_HTML = $this->generate_inner_html();
     $content = parent::render();
     return $content;
 }
 public function render()
 {
     if (empty($this->links)) {
         $this->links = Network::get_largest_networks(false, 5, 1);
     }
     $this->inner_HTML = $this->generate_inner_html($this->links);
     if ($this->mode == SORT_BY) {
         $content = $this->inner_HTML;
     } else {
         $content = parent::render();
     }
     return $content;
 }
 function render()
 {
     if (empty($this->links)) {
         $this->do_skip = TRUE;
         return;
     }
     $this->inner_HTML = $this->generate_inner_html($this->links);
     if ($this->mode == SORT_BY) {
         $content = $this->inner_HTML;
     } else {
         $content = parent::render();
     }
     return $content;
 }
 function render()
 {
     $this->gid = isset($_GET) && isset($_GET['gid']) ? $_GET['gid'] : 0;
     $this->flag = 0;
     $obj = new CNPoll();
     $current = $obj->load_current($this->gid);
     $prev_poll = $obj->load_prev_polls($this->gid);
     $this->cnt_prev = count($prev_poll);
     if ($current) {
         $user_vate = $obj->load_vote($current[0]->poll_id, PA::$login_uid);
         $total_vote = $obj->load_vote($current[0]->poll_id);
         $this->total_vote_count = count($total_vote);
         $this->topic = $obj->load_poll($current[0]->poll_id, $this->gid);
         $this->options = unserialize($this->topic[0]->options);
         $num_option = count($this->options);
         $cnt = count($total_vote);
         $this->previous_vote_detected = false;
         if ($cnt > 0) {
             for ($i = 0; $i < $cnt; $i++) {
                 if ($total_vote[$i]->user_id == PA::$login_uid || @$_COOKIE['vote'] == $current[0]->poll_id || isset($_GET) && isset($_GET['show_poll_results']) && $_GET['show_poll_results'] == 'true') {
                     $this->flag = 1;
                     if ($total_vote[$i]->user_id == PA::$login_uid || @$_COOKIE['vote'] == $current[0]->poll_id) {
                         $this->previous_vote_detected = true;
                     }
                     for ($j = 1; $j <= $num_option; $j++) {
                         if ($this->options['option' . $j] != '') {
                             $vote[] = $obj->load_vote_option($current[0]->poll_id, $this->options['option' . $j]);
                         }
                     }
                     break;
                 } else {
                     $this->flag = 0;
                 }
             }
         }
         if (!empty($vote)) {
             for ($i = 0; $i < count($vote); $i++) {
                 $this->option_precent[] = round($vote[$i][2]->counter / $this->total_vote_count * 100, 1);
                 $this->option_vote_count[] = $vote[$i][2]->counter;
             }
         }
         $this->inner_HTML = $this->generate_inner_html();
         $content = parent::render();
         return $content;
     } else {
         $this->do_skip = TRUE;
         return 'skip';
     }
 }
 public function render()
 {
     $status = null;
     if (!empty(PA::$extra['reciprocated_relationship']) && PA::$extra['reciprocated_relationship'] == NET_YES) {
         $status = APPROVED;
     }
     $relations = Relation::get_all_relations((int) PA::$uid, 6, FALSE, 'ALL', 0, 'created', 'DESC', 'internal', $status, PA::$network_info->network_id);
     for ($i = 0; $i < count($relations); $i++) {
         $count_relations = Relation::get_relations($relations[$i]['user_id'], $status, PA::$network_info->network_id);
         $relations[$i]['no_of_relations'] = count($count_relations);
     }
     $this->links = $relations;
     if (!empty($this->links)) {
         $this->view_all_url = PA::$url . '/' . FILE_VIEW_ALL_MEMBERS . '?view_type=relations&uid=' . PA::$uid;
     }
     $this->inner_HTML = $this->generate_inner_html();
     $content = parent::render();
     return $content;
 }
 function render()
 {
     $this->title = __("Question of the Day");
     $question = new CNQuestion();
     //-- fix by Z.Hron - show Question module only if $questions_total > 0
     $chk_cnt_params = array('cnt' => TRUE, 'is_active' => 1, 'show' => 1);
     $questions_total = $question->load_many($chk_cnt_params);
     if ($questions_total > 0) {
         //--
         $params = array('cnt' => FALSE, 'show' => 1, 'page' => 1, 'is_active' => 1, 'sort_by' => 'changed', 'direction' => 'DESC');
         $data = $question->load_many($params);
         $this->links = objtoarray($data);
         $this->inner_HTML = $this->generate_inner_html();
         $network_stats = parent::render();
         return $network_stats;
         //--
     } else {
         return null;
     }
     //--
 }
 function render()
 {
     switch ($_GET["type"]) {
         case 'Content':
             $this->type = 'Content';
             break;
         case 'Default':
         default:
             $this->type = 'Default';
     }
     if ($_GET['a'] == "edit" && !empty($_GET['cat_id'])) {
         $edit_cat = new Category();
         $edit_cat->category_id = $_GET['cat_id'];
         $edit_cat->load();
         $this->edit_title = $edit_cat->name;
         $this->edit_desc = $edit_cat->description;
         $this->cat_id = $edit_cat->category_id;
         $this->type = $edit_cat->type;
         $parent_id = $edit_cat->find_parent($edit_cat->category_id);
         $this->parent_id = $parent_id ? $parent_id : 0;
         if ($this->parent_id) {
             $edit_cat->category_id = $this->parent_id;
             $edit_cat->load();
             $this->parent_name = $edit_cat->name;
         } else {
             $this->parent_name = '';
         }
     }
     $this->categories = Category::build_all_category_list('', '', '', $this->type);
     $category = Category::build_root_list(NULL, $this->type);
     if (is_array($category)) {
         foreach ($category as $catg) {
             $this->get_childs($catg);
         }
     }
     $this->inner_HTML = $this->generate_inner_html();
     $content = parent::render();
     return $content;
 }
 function render()
 {
     $tpl = new Template(PA::$blockmodule_path . '/' . get_class($this) . "/cnmodule.php");
     $this->inner_HTML = $tpl->fetch();
     return parent::render();
 }
 function render()
 {
     $this->inner_HTML = $this->generate_inner_html();
     $ads = parent::render();
     return $ads;
 }
 /**
  *  Function : render()
  *  Purpose  : produce html code from template file
  *  @return   type string
  *            returns rendered html code
  */
 function render()
 {
     $user_data = NULL;
     $this->get_links();
     $this->inner_HTML = $this->generate_inner_html();
     $this->config_HTML = '';
     $content = parent::render();
     return $content;
 }
 function render()
 {
     if ($this->uid) {
         $this->links = $this->group_info_with_uid($this->uid, $this->sort_by);
         $this->total = count($this->links);
     } else {
         $this->links = $this->get_links();
         $this->total = count($this->links) == $this->Paging["show"] ? $this->total_groups : count($this->links);
     }
     $this->inner_HTML = $this->generate_inner_html();
     $content = parent::render();
     return $content;
 }
 function render()
 {
     switch ($this->column) {
         case 'left':
         case 'right':
             $this->outer_template = 'outer_public_module.php';
             break;
         case 'middle':
             $this->outer_template = 'outer_public_module.php';
             break;
     }
     $this->inner_HTML = $this->generate_inner_html();
     $content = parent::render();
     return $content;
 }
 public function render()
 {
     $this->title = _n(";Browse %d networks\n0-2;Browse networks", $this->total_network);
     $this->links = $this->get_links();
     $this->inner_HTML = $this->generate_center_category_inner_html($this->links);
     $content = parent::render();
     return $content;
 }
 public function render()
 {
     // group recent posts
     if ($this->type == 'group') {
         $group = new Group();
         $group->collection_id = $this->gid;
         $this->links = $group->get_contents_for_collection('all', FALSE, $this->limit, 1, 'created', 'DESC', TRUE);
         // user recent posts
     } else {
         if ($this->type == 'user') {
             $this->links = CNContent::get_user_content($this->uid);
             // network recent posts
         } else {
             $this->links = CNContent::load_content_id_array($user_id = 0, $type = NULL, $cnt = FALSE, $show = $this->limit, $page = 1, $sort_by = 'created', $direction = 'DESC', $only_homepage = false);
         }
     }
     $this->view_all_url = count($this->links) > 0 ? $this->view_all_url : '';
     $this->inner_HTML = $this->generate_inner_html($this->links);
     $content = parent::render();
     return $content;
 }
 function render()
 {
     $this->title ? $this->title : ($this->title = __('My Families'));
     $this->families = $this->get_families();
     if (sizeof($this->families)) {
         // $this->view_all_url = PA::$url . PA_ROUTE_GROUPS.'/uid='.$this->uid;
     }
     $this->inner_HTML = $this->generate_inner_html();
     $content = parent::render();
     return $content;
 }
 function render()
 {
     $content = parent::render();
     return $content;
 }