function render()
    {
        $data = unserialize(ModuleData::get('showcase'));
        $u = $data['featured_user_name'];
        $upage = PA::$url . '/user/' . $u;
        $up = $data['auto_user_picture_url'];
        $g = TypedGroupEntity::load_for_group($data['featured_group_id']);
        $gname = $g->attributes["name"]["value"];
        $gpage = PA::$url . '/group/gid=' . $data['featured_group_id'];
        $gp = $g->attributes["logo"]["value"];
        //PUT VIDEO STUFF HERE
        $b = TypedGroupEntity::load_for_group($data['featured_business_id']);
        $bname = $b->attributes["name"]["value"];
        $bpage = PA::$url . '/group/gid=' . $data['featured_business_id'];
        $bp = $b->attributes["logo"]["value"];
        $table = '<table width="100%%" border="0" cellpadding="0" cellspacing="0" style="background-color:#fff; padding-top:3px; padding-bottom:10px; ">
					  <tr>
						<th colspan="4" align="center" style="background-color:#999; color:#dfe2e3; padding:4px 0 4px 0;" scope="col">Featured Bar</th>
					  </tr>
					  <tr style="color:#000;">
						<td align="center"><b>User</b></td>
						<td align="center"><b>Group</b></td>
						<td align="center"><b>Video</b></td>
						<td align="center"><b>Business</b></td>
					  </tr>
					  <tr>
						<td align="center">%s</td>
						<td align="center">%s</td>
						<td align="center">%s</td>
						<td align="center">%s</td>
					  </tr>
					</table>';
        $user = "******" . $upage . "'>" . uihelper_resize_mk_img($up, 100, 100, 'images/default.png', 'alt=PeopleAggregator') . "</a><h4>" . $data['featured_user_name'] . "</h4>";
        $group = "<a href='" . $gpage . "'>" . uihelper_resize_mk_img($gp, 100, 100, 'images/default.png', 'alt=PeopleAggregator') . "</a><h4>" . $gname . "</h4>";
        $video = "<a href='http://www.people.tdooner.com/'>" . uihelper_resize_mk_img('images/default.png', 100, 100, 'images/default.png', 'alt=PeopleAggregator') . "</a>";
        $business = "<a href='" . $bpage . "'>" . uihelper_resize_mk_img($bp, 100, 100, 'images/default.png', 'alt=PeopleAggregator') . "</a><h4>" . $bname . "</h4>";
        return sprintf($table, $user, $group, $video, $business);
    }
    ?>
<div id="GroupsDirectoryModule">
  <div class="group_list">
    <table cellspacing="0" cellpadding="0">
     <?php 
    for ($i = 0; $i < $cnt; $i++) {
        $pic = $links[$i]['picture'];
        ?>
         
       <tr>   
         <td align="center" valign="top" width="80">
           <a href="<?php 
        echo PA::$url . PA_ROUTE_GROUP . '/gid=' . $links[$i]['group_id'];
        ?>
"><?php 
        echo uihelper_resize_mk_img($pic, 60, 55, "images/default_group.gif", 'alt="group image"', RESIZE_CROP);
        ?>
</a>
         </td>
              
         <td valign="top" width="415">
           <h2><a href="<?php 
        echo PA::$url . PA_ROUTE_GROUP . '/gid=' . $links[$i]['group_id'];
        ?>
"><?php 
        echo $links[$i]['title'];
        ?>
</a></h2>
               
         <?php 
        echo stripslashes($links[$i]['description']);
 private function build_list_of_items($items)
 {
     $entity_attrs = array('user_id', 'giveuser_id', 'family_id', 'network_id', 'entity_id', 'category', 'description', 'media_cid', 'media_type', 'media_file', 'rating', 'place', 'updated', 'created');
     $results = array();
     $cnt = 0;
     foreach ($items as $item) {
         $results[$cnt]['entity_id'] = $item['entity_id'];
         $results[$cnt]['entity_name'] = $item['entity_name'];
         foreach ($entity_attrs as $attr) {
             $results[$cnt][$attr] = !empty($item['attributes'][$attr]['value']) ? $item['attributes'][$attr]['value'] : null;
         }
         $user = new User();
         $user->load((int) $results[$cnt]['user_id']);
         $results[$cnt]['user'] = $user;
         if (!isset($results[$cnt]['giveuser_id']) || empty($results[$cnt]['giveuser_id'])) {
             $results[$cnt]['giveuser_id'] = $this->familly->owner_id;
         }
         $giveuser = new User();
         $giveuser->load((int) $results[$cnt]['giveuser_id']);
         $results[$cnt]['giveuser'] = $giveuser;
         switch ($results[$cnt]['media_type']) {
             case 'image':
                 $default_pic = uihelper_resize_mk_img($results[$cnt]['media_file'], 86, 92, 'images/default_image.png', "", RESIZE_CROP);
                 break;
             case 'audio':
                 $default_pic = uihelper_resize_mk_img(null, 86, 92, 'images/default_audio.png', "", RESIZE_CROP);
                 break;
             case 'video':
                 $default_pic = uihelper_resize_mk_img(null, 86, 92, 'images/default_video.png', "", RESIZE_CROP);
                 break;
             default:
                 $default_pic = $default_pic = uihelper_resize_mk_img(null, 86, 92, 'images/default_image.png', "", RESIZE_CROP);
         }
         if (!empty($results[$cnt]['media_cid'])) {
             $content_url = PA::$url . "/" . FILE_MEDIA_FULL_VIEW . "?cid={$results[$cnt]['media_cid']}";
             $default_pic = "<a href=\"{$content_url}\" alt=\"{$results[$cnt]['media_file']}\">{$default_pic}</a>";
         }
         $results[$cnt]['media_icon'] = $default_pic;
         $cnt++;
     }
     return $results;
 }
            if (!$image_file) {
                $error = $myUploadobj->error;
            }
        } catch (Exception $e) {
            $error = $e->getMessage();
        }
        $img_resized = uihelper_resize_mk_img($image_file, 200, 200, NULL, 'style="margin-left: 10px"');
    }
    echo "{";
    echo "error: '" . $error . "',\n";
    echo "image: '" . htmlspecialchars($img_resized) . "',\n";
    echo "image_file: '" . $image_file . "'\n";
    echo "}";
} else {
    if (preg_match("|http://(.*?)/(.*)|", $img_url, $m)) {
        try {
            list(, $uf_server, $uf_path) = $m;
            $image_file = Storage::save($img_url, basename($uf_path), "critical", "image");
        } catch (Exception $e) {
            $error = $e->getMessage();
        }
        $img_resized = uihelper_resize_mk_img($image_file, 200, 200, NULL, 'style="margin-left: 10px"');
    } else {
        $error = 'Invalid Image URL.';
    }
    echo "{";
    echo "error: '" . $error . "',\n";
    echo "image: '" . htmlspecialchars($img_resized) . "',\n";
    echo "image_file: '" . $image_file . "'\n";
    echo "}";
}
예제 #5
0
        echo uihelper_resize_mk_img($item['user']->picture, 64, 64, 'images/default.png', 'style=""');
        ?>
        <a href="<?php 
        echo PA::$url . PA_ROUTE_USER_PUBLIC . "/{$item['user']->user_id}";
        ?>
" alt="<?php 
        echo $item['user']->display_name;
        ?>
"><?php 
        echo abbreviate_text($item['user']->display_name, 12, 7);
        ?>
</a>
      </div>
      <div class="points_rating">
         <?php 
        echo uihelper_resize_mk_img($item['giveuser']->picture, 32, 32, 'images/default.png', 'style=""');
        ?>
<br />
         <a style="font-weight: normal" href="<?php 
        echo PA::$url . PA_ROUTE_USER_PUBLIC . "/{$item['giveuser']->user_id}";
        ?>
" alt="<?php 
        echo $item['giveuser']->display_name;
        ?>
"><?php 
        echo abbreviate_text($item['giveuser']->display_name, 12, 7);
        ?>
</a><br />
        <p>
         <?php 
        echo $item['rating'];
 private function addGroupData($group)
 {
     $owner_id = Group::get_owner_id((int) $group->group_id);
     $group_owner = new User();
     $group_owner->load((int) $owner_id);
     $group_owner_info = $this->getUserProfile($group_owner, 'group.owner');
     // get group owner profile info
     $this->template_vars = array_merge($this->template_vars, $group_owner_info);
     $this->template_vars["%group.icon_image%"] = uihelper_resize_mk_img($group->picture, 219, 35, DEFAULT_NETWORK_ICON, 'alt="' . $group->title . '"');
     $this->template_vars["%group.name%"] = $group->title;
     $this->template_vars["%group.description%"] = $group->description;
     $this->template_vars['%group.member_count%'] = Group::get_member_count($group->group_id);
     $this->template_vars['%group.join_url%'] = UrlHelper::url_for(PA_ROUTE_GROUP, array('action' => 'join', 'gid' => $group->collection_id));
     $this->template_vars['%group.join_link%'] = UrlHelper::link_to(PA_ROUTE_GROUP, $this->template_vars['%group.join_url%'], null, array('action' => 'join', 'gid' => $group->collection_id));
     $this->template_vars["%group.url%"] = UrlHelper::url_for(PA_ROUTE_GROUP, array('gid' => $group->collection_id));
     $this->template_vars["%group.link%"] = UrlHelper::link_to(PA_ROUTE_GROUP, $group->title, null, array('gid' => $group->collection_id));
     $this->template_vars['%group.moderation_url%'] = UrlHelper::url_for(PA_ROUTE_GROUP_MODERATION, array('view' => 'users', 'gid' => $group->collection_id));
     $this->template_vars['%group.moderation_link%'] = UrlHelper::link_to(PA_ROUTE_GROUP_MODERATION, __("Group moderation"), null, array('view' => 'users', 'gid' => $group->collection_id));
 }
예제 #7
0
 * For questions, help, comments, discussion, etc. please visit
 * https://github.com/CyberspaceNetworks/CoreSystem
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 */
if (is_array($links) && sizeof($links) > 0) {
    ?>
    <?php 
    foreach ($links as $link) {
        ?>
        <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>
    </div>

    <div class="field_medium_event" style="height:90px;">
      <h4><label for="event_description"><?= __("Event description") ?></label></h4>
      <div class="center">
      <textarea id="event_description" name="event_description" cols="20" rows="5" style="height:auto;"><?
        echo @$ed['event_description'];
      ?></textarea>
      </div>
    </div>


<?php if (!empty($ed['banner'])) { ?>
      <div class="field_medium_event" style="height:90px;">
        <h4><?=__("Current Event Banner")?></h4>
          <?php echo uihelper_resize_mk_img($ed['banner'], 430, 80,
          NULL, 'alt="Current Event Banner"', RESIZE_FIT); ?>
      </div>
<? } ?>
      <div class="field">
        <h4><label for="upload_event_bannere">
        <?=__("Upload Event Banner")?></label></h4>
        <input name="userfile" type="file" class="text" id="upload_user_event_banner"/>
      </div>
    
    <div class="button_position">
      <? if ($is_edit) { ?>
      <input type="submit" name="update" value="Update Event" />
      <input type="submit" name="delete" value="Delete Event" onclick="return confirm('<?= __("Are you sure you want to delete this Event?") ?>');"/>
      <input type="button" name="back" value="Cancel" onclick="javascript: history.back();" />
      <? } else { ?>
      <input type="submit" name="create" value="Create Event" />
     <?php 
echo __("Choose File");
?>
    </div>
          </div>
           
          <?php 
if (!empty($group_photo)) {
    ?>
          <div class="field_bigger">
            <h4><label for="Current_Photo"><?php 
    echo __("Current Photo");
    ?>
</label></h4>
            <?php 
    echo uihelper_resize_mk_img($group_photo, 100, 100, "files/img/image_not_available.png", 'alt="Group photo."', RESIZE_FIT);
    ?>
          </div>
          <?php 
}
?>
        
          <div class="field_bigger">
            <h4><label for="Group description"><?php 
echo __("Group Description");
?>
:</label></h4>
            <textarea id="group_description" name="groupdesc" cols="64" rows="5"><?php 
echo $body;
?>
</textarea>
예제 #10
0
    </select>
    <hr/>
    <?php 
} else {
}
?>

<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 
    }
예제 #11
0
 $inv->inv_summary = "Invitation from {$user->first_name} {$user->last_name} to join {$group_name}";
 $inv->inv_message = !empty($invitation_message) ? $invitation_message : NULL;
 try {
     $inv->send();
 } catch (PAException $e) {
     $save_msg = "{$e->message}";
     $save_error = TRUE;
 }
 if ($save_error == TRUE) {
     $msg[] = "Sorry: you are unable to invite a friend. <br /> Reason: " . $sav_msg;
 } else {
     // invitation has been sent, now send email
     $user = new User();
     $user->load((int) $login_uid);
     $invitee_image = uihelper_resize_mk_user_img($user->picture, 80, 80, 'alt="' . $user->first_name . '" align="left" style="padding: 0px 12px 12px 0px;"');
     $group_icon_image = uihelper_resize_mk_img('files/' . $group->picture, 219, 35, 'files/' . DEFAULT_NETWORK_ICON, 'alt="' . $group->title . '"');
     $user_type = Group::get_user_type($login_uid, $gid);
     if ($user_type == OWNER) {
         $mail_type = 'invite_group';
     } else {
         if ($user_type == MEMBER) {
             $mail_type = 'invite_group_by_member';
         }
     }
     $group_url = $base_url . '/group.php?gid=' . $inv->inv_collection_id;
     $invitee_url = url_for('user_blog', array('login' => $user->login_name));
     $array_of_data = array('first_name' => $user->first_name, 'last_name' => $user->last_name, 'user_name' => $user->login_name, 'user_id' => $user->user_id, 'message' => $inv->inv_message, 'group_name' => $inv->inv_group_name, 'accept_url' => $inv->accept_url, 'register_url' => $inv->register_url, 'invited_user_name' => $inv->inv_user_first_name, 'invitee_image' => $invitee_image, 'group_id' => $inv->inv_collection_id, 'group_description' => $group->description, 'group_icon_image' => $group_icon_image, 'group_url' => $group_url, 'network_name' => $network_info->name, 'invitee_url' => $invitee_url, 'config_site_name' => $config_site_name);
     $check = pa_mail($inv->inv_email, $mail_type, $array_of_data, $user->email);
     $succ_msg .= $valid_user_first_emails[$counter] . ', ';
     if ($counter == $valid_cnt - 1) {
         $succ_msg = substr($succ_msg, 0, -2);
예제 #12
0
            $images =& $badge[$badge_key];
            if (@$images['enabled']) {
                $html .= <<<ENS
<h4>My {$display_name}</h4>
ENS;
                $recent = Content::get_recent_content_for_user($user->user_id, $content_type, 8);
                $items_html = array();
                foreach ($recent as $obj) {
                    if ($thumbnail_key) {
                        if (strstr($obj[$thumbnail_key], "http://")) {
                            $img = '<img src="' . $obj[$thumbnail_key] . '" width="75px" height="75px" border="0" />';
                        } else {
                            $img = uihelper_resize_mk_img("files/" . $obj[$thumbnail_key], 75, 75);
                        }
                    } else {
                        $img = uihelper_resize_mk_img("{$current_theme_rel_path}/{$icon_file}", 75, 75, NULL, "", RESIZE_FIT_NO_EXPAND);
                    }
                    $url_enc = htmlspecialchars("{$base_url}/media_full_view.php?cid=" . $obj['content_id'] . "&type=" . $mfv_type);
                    $title_enc = htmlspecialchars($obj['title']);
                    $h = <<<EOS
<div class="badge_person">
<a href="{$url_enc}" target="_blank"><div class="person_image">{$img}</div><div class="person_name">{$title_enc}</div></a>
</div>
EOS;
                    $items_html[] = array("item", $h);
                }
                $html .= badge_render_section($items_html);
            }
        }
    } else {
        // old-style friends / groups badge
    <div class="group_list">
      <table cellspacing="0" cellpadding="0">
        <?php 
    for ($i = 0; $i < $cnt; $i++) {
        $pic = $links[$i]['picture'];
        ?>
         
        <tr>

          <td align="center" valign="top" width="80">
            <a href="<?php 
        echo $links[$i]['hyper_link'];
        ?>
"><?php 
        echo uihelper_resize_mk_img($pic, 60, 55, DEFAULT_USER_PHOTO_REL, 'alt="sender"', RESIZE_CROP);
        ?>
</a>
          </td>

          <td valign="top" width="415">
            <a href="<?php 
        echo $links[$i]['hyper_link'];
        ?>
"><?php 
        echo $links[$i]['user_name'];
        ?>
 said:</a><br />


                <?php 
    echo __("Paste the complete URL of the network here");
    ?>
.</div>
    </div>
    
    <div class="field_bigger">
      <h4><label for="curr_desk_image"><?php 
    echo __("Showcased Network Image");
    ?>
</label></h4>
      <div class="curr_image">
        <?php 
    if (!empty($networks_data[$counter]['network_image'])) {
        ?>
        <?php 
        echo uihelper_resize_mk_img($networks_data[$counter]['network_image'], 90, 90, 'files/img/image_not_available.png', 'alt="Cyberspace-Networks"');
        ?>
        <?php 
    } else {
        echo __('No image selected.');
    }
    ?>
      </div>
    </div>
    
    <div class="field_medium">
      <h4><label for="slogan-sub"><?php 
    echo __("Caption");
    ?>
</label></h4>
      <input type="text" class="text longer" id="caption_<?php 
예제 #15
0
             if ($error != TRUE) {
                 try {
                     $inv->send();
                 } catch (PAException $e) {
                     $msg = "{$e->message}";
                     $save_error = TRUE;
                 }
             }
             if ($save_error == TRUE) {
                 $msg = "Sorry: you are unable to invite a friend. <br /> Reason: " . $msg;
             } else {
                 // invitation has been sent, now send mail
                 $user = new User();
                 $user->load((int) $_SESSION['user']['id']);
                 $invitee_image = uihelper_resize_mk_user_img($user->picture, 80, 80, 'alt="' . $user->first_name . '" align="left" style="padding: 0px 12px 12px 0px;"');
                 $network_icon_image = uihelper_resize_mk_img('files/' . $network_info->inner_logo_image, 219, 35, 'files/' . DEFAULT_NETWORK_ICON, 'alt="' . $network_info->name . '"');
                 $invitee_url = url_for('user_blog', array('login' => $user->login_name));
                 $mail_type = "invite_pa";
                 $array_of_data = array('first_name' => $user->first_name, 'last_name' => $user->last_name, 'user_name' => $user->login_name, 'user_id' => $user->user_id, 'message' => $inv->inv_message, 'accept_url' => $inv->accept_url, 'register_url' => $inv->register_url, 'invited_user_name' => $inv->inv_user_first_name, 'invitee_image' => $invitee_image, 'network_name' => $network_info->name, 'network_description' => $network_info->description, 'network_icon_image' => $network_icon_image, 'invitee_url' => $invitee_url, 'config_site_name' => $config_site_name);
                 $check = pa_mail($inv->inv_email, $mail_type, $array_of_data, $user->email);
                 $msg .= '<br />' . $valid_user_first_emails[$counter];
                 if ($counter == $valid_cnt - 1) {
                     $msg = "<br />An Invitation has been sent to -" . $msg;
                 }
             }
         }
         // end for : invitation to multiple email
         $_POST = array();
         // unset $_POST, if invitation has been successfully made.
     }
 }
      }
      $media_value = $show_media->file_name;
      $default_icon = uihelper_resize_mk_img(null, 86, 92, 'images/default_audio.png', "", RESIZE_CROP);
    break;
    case 'TekVideo':
      $image_show = '<script src="'.PA::$tekmedia_site_url.'/Integration/remotePlayer.php?video_id='.$show_media->video_id.'&preroll=true"></script>';
      $default_icon = uihelper_resize_mk_img(null, 86, 92, 'images/default_video.png', "", RESIZE_CROP);
      $media_value = $show_media->video_id;
    break;
    case 'Image':
      if (strstr($show_media->image_file, "http://")) {
        $tt = $show_media->image_file;
          $image_show = getimagehtml($tt, 86, 92, "", $tt);
          $media_value = $show_media->file_name;
      } else {
          $image_show = uihelper_resize_mk_img($show_media->image_file, 86, 92, 'images/default_image.png', "", RESIZE_CROP);
          $default_icon = $image_show;
          $media_value = $show_media->file_name;
      }
    break;
    default:
        die("Content ID $cid is non-media (not image, audio, or video)");
    break;
  }
  $content_url = PA::$url . "/" . FILE_MEDIA_FULL_VIEW . "?cid=$show_media->content_id";
  $content_link = "<a href=\"$content_url\" alt=\"$show_media->title\">$default_icon</a>";
?>
  <input type="hidden" name="media[cid]" id="media_cid" value="<?=$show_media->content_id?>" />
  <input type="hidden" name="media[type]" id="media_type" value="<?=$media_type?>" />
  <input type="hidden" name="media[file]" id="media_file" value="<?=$media_value?>" />
  <input type="hidden" name="media[url]" id="media_url" value="<?=$content_url?>" />
예제 #17
0
 * For questions, help, comments, discussion, etc. please visit
 * https://github.com/CyberspaceNetworks/CoreSystem
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 */
?>
<ul class="list-group">
    <?php 
if (is_array($links) && sizeof($links) > 0) {
    $counter = 0;
    for ($i = 0; $i < count($links); $i++) {
        $network = $links[$i];
        $extra = unserialize($network['extra']);
        $network_image_name = $network['inner_logo_image'];
        $class = $counter % 1 == 0 ? ' class="list-group-item"' : NULL;
        $counter++;
        $img = uihelper_resize_mk_img($network_image_name, 250, 250, PA::$theme_rel . "/files/img/image_not_available.png");
        $network_url = 'http://' . trim($network['address']) . '.' . PA::$domain_suffix . BASE_URL_REL . PA_ROUTE_HOME_PAGE;
        ?>
    <li<?php 
        echo $class;
        ?>
>
        <a href="<?php 
        echo $network_url;
        ?>
">
            <?php 
        echo $img;
        ?>
        </a>
        <hr/>
</div>
      </div>
      <?php 
if ($edit) {
    ?>
      <div class="field_bigger">
        <h4><label for="ad pre image">
        <input type="hidden" name="edit_image"  value="<?php 
    echo $form_data['ad_image'];
    ?>
"><?php 
    echo __("Previously Selected Image");
    ?>
</label></h4>
        <?php 
    echo uihelper_resize_mk_img($form_data['ad_image'], 400, 80, 'files/img/image_not_available.png', 'alt="No Image Selected" align="left"', RESIZE_FIT);
    ?>
      </div>
      <?php 
}
?>
      <div class="field_medium">
        <h4><label for="ad url"><?php 
echo __("Enter URL");
?>
</label></h4>
        <input type="text" name="ad_url" id="ad_url" class="text longer" value="<?php 
echo $form_data['ad_url'];
?>
" maxlength="200"/>
      </div>
예제 #19
0
          


<?php 
if (!empty($server_announcement)) {
    ?>
          <div class="text">
            <?php 
    echo $server_announcement['description'];
    ?>
<br><br>
          </div>
          <div class="text" align="center">
            <a href="http://wiki.peopleaggregator.org/Main_Page">
              <?php 
    echo uihelper_resize_mk_img('files/' . $server_announcement['network_image'], 185, 110, 'images/default.png', 'alt="PeopleAggregator"');
    ?>
            </a>
          </div>
          
          <?php 
}
?>

</div>





        if (!empty($video_albums[0])) {
            $album = $video_albums[0]['collection_id'];
        } else {
            // we need to create one
            $new_al = new Album(VIDEO_ALBUM);
            $new_al->author_id = PA::$login_uid;
            $new_al->type = 2;
            $new_al->description = $new_im_al->name = $new_al->title = PA::$config->default_album_titles[VIDEO_ALBUM];
            $new_al->save();
            $album = $new_al->collection_id;
        }
    }
    $new_video->video_perm = $new_video->file_perm = $perm;
    $new_video->parent_collection_id = $album;
    $new_video->save();
    $default_icon = uihelper_resize_mk_img(null, 86, 92, 'images/default_video.png', "", RESIZE_CROP);
    $content_url = PA::$url . "/" . FILE_MEDIA_FULL_VIEW . "?cid={$new_video->content_id}";
    // echo "<pre>".print_r($new_video,1)."</pre>";
    ?>
<p><b>Video was uploaded successfully.</p>
<script>
/*
    NOTE: this code added by Z.Hron
    BOF - forward media data to the parent form (if exists)
*/

function create_hidden_tag(tag_name, tag_id, tag_value) {
  var elem = document.createElement('input');
  elem.setAttribute("type", 'hidden' );
  elem.setAttribute("name", tag_name );
  elem.setAttribute("id", tag_id );
?>
"/><br />
      <?php 
echo __("(enter screen names of registered network users, separated by commas)");
?>
 
    </div>
    <div class="description">
  <h3><?php 
echo __("Desktop Image");
?>
:</h3><?php 
list($rsz_opts) = uihelper_explain_desktop_image_action($option);
?>
      <?php 
echo uihelper_resize_mk_img(@$form_data['extra']['user_defaults']['desktop_image']['name'], 550, 100, PA::$theme_rel . "/img/default_desktop_image.jpg", 'alt="desktop image"', $rsz_opts);
?>
        <br/>
      <?php 
echo __("Current default desktop image");
?>
<br />
        <?php 
echo __("(Images 1190 pixels wide by 350 pixels tall will have the best results)");
?>
<br />
        <br />
       </div>
      <div class="field_medium">
      <?php 
echo __("Upload default desktop image");
echo field_value(@$networks_data['description'], field_value(@$_POST['description'], ''));
?>
</textarea>
    </div>
    
    <div class="field_bigger">
      <h4><label for="curr_desk_image"><?php 
echo __("Network of the Moment Image");
?>
</label></h4>
      <div class="curr_image">
        <?php 
if (!empty($networks_data['network_image'])) {
    ?>
        <?php 
    echo uihelper_resize_mk_img($networks_data['network_image'], 193, 67, 'files/img/image_not_available.png', 'alt="Network of the Moment"');
    ?>
        <?php 
} else {
    echo __('No image selected.');
}
?>
      </div>
    </div>
    
    <div class="field_medium">
      <h4><label for="upload_desk_image"><span class="required"> * </span> <?php 
echo __("Upload Image");
?>
</label></h4>
      <input type="file" class="text long" id="network_image" name="network_image" />
예제 #23
0
echo uihelper_resize_mk_img($info_boxes[1]['network_image'], 850, 250, 'files/img/image_not_available.png', 'alt="Network image"');
?>

                                                <div class="carousel-caption">
                                                    <a href=<?php 
echo $info_boxes[1]['network_url'];
?>
><?php 
echo $info_boxes[1]['caption'];
?>
</a>
                                                </div>
                                            </div>
                                            <div class="item">
                                                <?php 
echo uihelper_resize_mk_img($info_boxes[2]['network_image'], 850, 250, 'files/img/image_not_available.png', 'alt="Network image"');
?>

                                                <div class="carousel-caption">
                                                    <a href=<?php 
echo $info_boxes[2]['network_url'];
?>
><?php 
echo $info_boxes[2]['caption'];
?>
</a>
                                                </div>
                                            </div>
                                        </div>
                                        <a class="left carousel-control" href="#carousel-example-generic" data-slide="prev">
                                            <span class="fa fa-angle-left"></span>
예제 #24
0
<h2>expanding and cropping 135x75 to fit inside 300x300</h2>
<p>new: 
<?php 
echo uihelper_resize_mk_img("images/palogo_black_bg.jpg", 300, 300, NULL, "", RESIZE_CROP);
?>
</p>
<p>reduce only: <?php 
echo uihelper_resize_mk_img("images/palogo_black_bg.jpg", 300, 300, NULL, "", RESIZE_CROP_NO_EXPAND);
?>
</p>
<p>reduce only, smaller: <?php 
echo uihelper_resize_mk_img("images/palogo_black_bg.jpg", 100, 100, NULL, "", RESIZE_CROP_NO_EXPAND);
?>
</p>

<h2>fitting 135x75 inside 300x300</h2>
<p>new: 
<?php 
echo uihelper_resize_mk_img("images/palogo_black_bg.jpg", 300, 300, NULL, "", RESIZE_FIT);
?>
</p>
<p>reduce only: <?php 
echo uihelper_resize_mk_img("images/palogo_black_bg.jpg", 300, 300, NULL, "", RESIZE_FIT_NO_EXPAND);
?>
</p>
<p>reduce only, smaller: <?php 
echo uihelper_resize_mk_img("images/palogo_black_bg.jpg", 100, 100, NULL, "", RESIZE_FIT_NO_EXPAND);
?>
</p>

<div class="module_moderator_info">
 <div style="padding:8px">

  <?php 
foreach ($posts as $post) {
    $thread_id = $post->get_thread_id();
    $post_id = $post->get_id();
    ?>
  <div class="latest_posts">
   <div class="lpost_img">
    <a href="<?php 
    echo PA::$url . PA_ROUTE_USER_PUBLIC . "/" . $post->user->user_id;
    ?>
">
    <?php 
    echo uihelper_resize_mk_img($post->user->picture, 35, 35, "images/default.png", 'alt="Picture of the forum owner."');
    ?>
    </a>
   </div>
   <div>
    <a href="<?php 
    echo $forums_url . "&thread_id={$thread_id}&post_id={$post_id}#p_{$post_id}";
    ?>
"><?php 
    echo $post->get_title(24);
    ?>
</a><br />
    by: <a href="<?php 
    echo PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $post->user->user_id;
    ?>
"><?php 
    <tr>
      <td><?php 
echo __("Founded") . ":";
?>
</td><td><?php 
echo PA::date(strtotime($statistics['created_at']), 'short');
?>
</td>
    </tr>
  </table>
  <div class="box center">
  Owner:<br />
    <a href="<?php 
echo PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $statistics['owner']->user_id;
?>
">
    <?php 
echo uihelper_resize_mk_img($statistics['owner']->picture, 90, 68, "files/img/image_not_available.png", 'alt="Picture of the forum owner."');
?>
</a><br />
    <a href="<?php 
echo PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $statistics['owner']->user_id;
?>
"><?php 
echo $statistics['owner']->login_name;
?>
</a>
  </div>
 </div>
</div>
예제 #27
0
        </td>
	<td class="image">
        <a href=<?php 
echo $info_boxes[7]['network_url'];
?>
><?php 
echo uihelper_resize_mk_img($info_boxes[7]['network_image'], 145, 145, 'images/default.png', 'alt="PeopleAggregator"');
?>
</a>
        </td>
	<td class="image">
        <a href=<?php 
echo $info_boxes[8]['network_url'];
?>
><?php 
echo uihelper_resize_mk_img($info_boxes[8]['network_image'], 145, 145, 'images/default.png', 'alt="PeopleAggregator"');
?>
</a>
        </td>
	</tr>	
	</table>
    </div>

<!-- <div id="survey" class="wide_content">
<?php 
?>
<?php/*
require_once("BlockModules/PollModule/PollModule.php");
$p = new PollModule();
echo $p->render();*/
?>
<div class="module_moderator_info">
 <div style="padding:8px">

  <?php 
foreach ($posts as $post) {
    $thread_id = $post->get_thread_id();
    $post_id = $post->get_id();
    ?>
  <div class="latest_posts">
   <div class="lpost_img">
    <a href="<?php 
    echo PA::$url . PA_ROUTE_USER_PUBLIC . "/" . $post->user->user_id;
    ?>
">
    <?php 
    echo uihelper_resize_mk_img($post->user->picture, 35, 35, "files/img/image_not_available.png", 'alt="Picture of the forum owner."');
    ?>
    </a>
   </div>
   <div>
    <a href="<?php 
    echo $forums_url . "&thread_id={$thread_id}&post_id={$post_id}#p_{$post_id}";
    ?>
"><?php 
    echo $post->get_title(24);
    ?>
</a><br />
    by: <a href="<?php 
    echo PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $post->user->user_id;
    ?>
"><?php 
echo __("Related Media");
?>
</label></h4>
      <div id="related_media" style="height:116px; display: block">
        <div id="media_icon" style="width:40%; clear: both; float: left;">
          <?php 
if (!empty($item['media_icon'])) {
    ?>
            <?php 
    echo $item['media_icon'];
    ?>
          <?php 
} else {
    ?>
            <?php 
    echo uihelper_resize_mk_img(null, 86, 92, 'images/default_image.png', "", RESIZE_CROP);
    ?>
          <?php 
}
?>
        </div>
        <div style="float: left; position: relative;">
        <?php 
echo __("Click here to upload");
?>
        <a class="button_silver" href="#" onclick="return show_upload('Images');"><?php 
echo __('Image');
?>
</a>
        <a class="button_silver" href="#" onclick="return show_upload('Audios');"><?php 
echo __('Audio');
 * http://developer.cyberspace-networks.com/
 * For questions, help, comments, discussion, etc. please visit
 * https://github.com/CyberspaceNetworks/CoreSystem
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 */
?>

<div class="module_html_text">
    <?php 
foreach ($links as $k => $v) {
    ?>
        <a href="<?php 
    echo htmlspecialchars($v['url']);
    ?>
" target="_blank"><?php 
    echo uihelper_resize_mk_img($v['file_name'], 198, 135);
    ?>
</a>
        <?php 
    echo htmlspecialchars($v['title']);
    ?>
<br />
        <?php 
    if ($v['url']) {
        ?>
        <a href="<?php 
        echo htmlspecialchars($v['url']);
        ?>
" target="_blank"><?php 
        echo __("Click here to watch the video");
        ?>