<h2 class='gwpm-content-title'> <?php gwpm_echo(gwpm_get_display_name($this->get('pid'))); ?> Gallery Page <?php if (!$this->isEditMode() && !$this->isUpdateMode() && $this->isOwnPage()) { ?> - <a class='edit-mode-link' href='<?php $this->get_gwpm_edit_link(); ?> '>Edit Galley</a> <?php } ?> </h2> <br /> <?php $modelObj = $this->get('model'); ?> <table class='gwpm-table'> <tbody> <tr> <td> <div id="gwpm-gallery"> <ul> <?php if (isset($modelObj->gwpm_gallery_img) && sizeof($modelObj->gwpm_gallery_img) > 0) { foreach ($modelObj->gwpm_gallery_img as $galObj) { ?>
$this->get_gwpm_formated_url('page=profile&action=view&pid=' . $messageObj->user_id); ?> " target="_blank" ><?php gwpm_echo(GWPM_USER_PREFIX . $messageObj->user_id); ?> </a><br />@ <?php gwpm_echo($messageObj->created); ?> </td> <td valign="top"><?php gwpm_echo($messageObj->user_message); ?> </td> <!-- <td valign="top" class="gwpm-created-date"><?php gwpm_echo($messageObj->created); ?> </td> --> </tr> <?php $counter++; } } else { echo "<h3>No Converstaions found for the user. Please try again later.</h3>"; } ?> </tbody> </table> <nav id="nav-single"><br /> <span class="nav-previous"> <?php
?> </td> <td valign="top"><a href="<?php $this->get_gwpm_formated_url('page=profile&action=view&pid=' . $userObj->ID); ?> " target="_blank" ><?php gwpm_echo(GWPM_USER_PREFIX . $userObj->ID); ?> </a></td> <td valign="top"><?php gwpm_echo($userObj->display_name); ?> </td> <td valign="top"><?php gwpm_echo($userObj->user_email); ?> </td> </tr> <?php $counter++; } } else { echo "<h3>No Results found with the given criterias. Please try some other options.</h3>"; } ?> </tbody> </table> <nav id="nav-single"><br /> <span class="nav-previous"> <?php
?> <tr> <th valign="top">Activity</th> <th valign="top">Time</th> </tr> <?php foreach ($resultObj as $activityObj) { ?> <tr> <td valign="top"><?php gwpm_echo($activityObj->act_text); ?> </td> <td valign="top"><?php gwpm_echo($activityObj->act_time); ?> </td> </tr> <?php $counter++; } } else { echo "<h3>No Activity found for the user. Please try again later.</h3>"; } ?> </tbody> </table> <nav id="nav-single"><br /> <span class="nav-previous"> <?php
<div> <table class='gwpm-table'> <tbody> <?php $keys = array_keys($dyna_field_item); foreach ($keys as $vkey) { ?> <tr> <td valign="top"><?php echo $dyna_field_item[$vkey]['label']; ?> :</td> <td valign="top"> <?php if ($dyna_field_item[$vkey]['type'] == 'text') { gwpm_echo('<input name="' . $vkey . '" id="' . $vkey . '" value="' . $modelObj->{$vkey} . '" />'); } else { if ($dyna_field_item[$vkey]['type'] == 'select') { $this->getSelectItem(getDynamicFieldOptions($dyna_field_item[$vkey]['value']), $vkey, $modelObj->{$vkey}); } else { if ($dyna_field_item[$vkey]['type'] == 'yes_no') { $this->getSelectItem(getYesNoOptions(), $vkey, $modelObj->{$vkey}); } } } ?> <span class="gwpm-mandatory">*</span></td> </tr> <?php } ?>
<?php $totalDynamicFields = $modelObj['gwpm_dynamic_field_count']; $dyna_field_item = $modelObj['dyna_field_item']; if ($dyna_field_item != null && sizeof($dyna_field_item) > 0) { $keys = array_keys($dyna_field_item); foreach ($keys as $vkey) { ?> <tr> <td valign="top"><?php echo $dyna_field_item[$vkey]['label']; ?> :</td> <td valign="top"> <?php if ($dyna_field_item[$vkey]['type'] == 'text') { gwpm_echo('<input name="' . $vkey . '" id="' . $vkey . '" />'); } else { if ($dyna_field_item[$vkey]['type'] == 'select') { $this->getSelectItem(getDynamicFieldOptions($dyna_field_item[$vkey]['value']), $vkey); } else { if ($dyna_field_item[$vkey]['type'] == 'yes_no') { $this->getSelectItem(getYesNoOptions(), $vkey); } } } ?> </td> </tr> <?php } }
</div> <div id="gwpm_resultBox"></div> <div id="gwpm-gallery"> <ul> <?php if (isset($modelObj->gwpm_gallery_img)) { $counter = 0; foreach ($modelObj->gwpm_gallery_img as $galObj) { ?> <li id="gwpm_image_holder_<?php echo $counter; ?> "> <img class="gwpm-thumb-image" alt="profile-picture" id="<?php gwpm_echo($galObj['id']); ?> " src="<?php echo $this->getUserImageURL($modelObj->userId, $galObj['thumb_name']); ?> " /> </li> <?php $counter++; } } else { echo "<li>No photos found in user gallery.</li>"; } ?> </ul>
$keys = array_keys($dyna_field_item); foreach ($keys as $vkey) { ?> <tr> <td valign="top"><?php echo $dyna_field_item[$vkey]['label']; ?> :</td> <td valign="top"> <?php $_type = $dyna_field_item[$vkey]['type']; if ($_type == 'text') { gwpm_echo($modelObj->{$vkey}); } else { if ($_type == 'yes_no') { gwpm_echo(getYesNoOptions($modelObj->{$vkey})); } else { if ($_type == 'select') { gwpm_echo($dyna_field_item[$vkey]['value'][$modelObj->{$vkey}]); } } } ?> </td> </tr> <?php } } ?> </tbody> </table>
<?php $login_url = wp_login_url($_SERVER['REQUEST_URI']); $signup_url = get_option('siteurl') . '/wp-login.php?action=register'; ?> <p><?php printf(__('You\'re unauthorized to view this page. Why don\'t you %s and try again.', ''), '<a href="' . $login_url . '">' . __('Login', '') . '</a>'); if (get_option('users_can_register')) { ?> <br /><br /> <?php _e('1. Don\'t have a Login?', ''); ?> <a href="<?php echo $signup_url; ?> "><?php _e('Register for an Account.', ''); ?> </a> <?php } ?> <br /> <?php global $gwpm_setup_model; gwpm_echo("2. If you have already registered, Click <a href='" . get_option('siteurl') . "/wp-admin/profile.php'>Here</a> to update your profile or click <a href='" . get_option('siteurl') . '/?page_id=' . $gwpm_setup_model->getMatrimonialId() . '&page=subscribe' . "'>Here</a> to get approval from Admin"); ?> <br /><br /><br /><br /><br />