Plugin Directory

Changeset 3036468


Ignore:
Timestamp:
02/15/2024 04:35:17 PM (2 years ago)
Author:
apimofficiel
Message:

Commit Message:
===============

  • Version 2.5.5.2
  • Fix some bugs
Location:
apimo/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • apimo/trunk/apimo.php

    r3036205 r3036468  
    77* Description: Manage Real Estat Bussiness
    88
    9 * Version: 2.5.5.1
     9* Version: 2.5.5.2
    1010
    1111* Author: ApiWork
  • apimo/trunk/readme.txt

    r3036205 r3036468  
    33Tags: real estate, property management, listings, clients, leads, showings, open houses, reports
    44Tested up to: 6.4.2
    5 Stable tag: 2.5.5.1
     5Stable tag: 2.5.5.2
    66License: GPLv2
    77License URI: https://www.gnu.org/licenses/gpl-2.0.html
  • apimo/trunk/templates/single_property_style_1.php

    r3036205 r3036468  
    11001100                                </span>
    11011101                            <?php endif; ?>
     1102
     1103                           
    11021104
    11031105                            <div class="Pro-info">
     
    16441646            ?>
    16451647
    1646            
    1647          
    1648             <!--apimo_agreement -->
    1649             <?php
    1650                 // Define agreement type descriptions
    1651                 $agreement_types = [
    1652                     1 => 'Standard',
    1653                     2 => 'Co-exclusive',
    1654                     3 => 'Exclusive',
    1655                     4 => 'Delegation',
    1656                     5 => 'Exclusive agent',
    1657                     6 => 'Colleague',
    1658                     7 => 'Verbal'
    1659                 ];
    1660                 if(isset($metas['apimo_agreement'])){
    1661                     $apimo_agreement_data = $metas['apimo_agreement'];
    1662                     if ($apimo_agreement_data && isset($apimo_agreement_data[0])) {
    1663                         // Extract the first element of the array
    1664                         $serialized_agreement = $apimo_agreement_data[0];
    1665                         // Unserialize the data
    1666                         $agreement = unserialize($serialized_agreement);
    1667                         // Check if all properties are empty
    1668                         if (!empty($agreement->type) && !empty($agreement->reference) ) {
    1669                         $type_description = isset($agreement_types[$agreement->type]) ? $agreement_types[$agreement->type] : 'Unknown Type';
    1670                             ?>
    1671                             <div class="Pro-info Pro-general-information">
    1672                                 <h5 class="Pro-info-title"><?php _e('Agreement Details', 'apimo'); ?></h5>
    1673                                 <div class="details-table">
    1674                                     <?php if (!empty($agreement->type)): ?>
    1675                                         <dl class="row">
    1676                                             <dt class="term"><?php _e('Type', 'apimo'); ?>:</dt>
    1677                                             <dd class="description"><?php echo _e(esc_html($type_description) , 'apimo' ); ?></dd>
    1678                                         </dl>
    1679                                     <?php endif; ?>
    1680 
    1681                                     <?php if (!empty($agreement->reference)): ?>
    1682                                         <dl class="row">
    1683                                             <dt class="term"><?php _e('Reference', 'apimo'); ?>:</dt>
    1684                                             <dd class="description"><?php echo esc_html($agreement->reference); ?></dd>
    1685                                         </dl>
    1686                                     <?php endif; ?>
    1687 
    1688                                     <?php if (!empty($agreement->start_at)): ?>
    1689                                         <dl class="row">
    1690                                             <dt class="term"><?php _e('Start Date', 'apimo'); ?>:</dt>
    1691                                             <dd class="description"><?php echo esc_html($agreement->start_at); ?></dd>
    1692                                         </dl>
    1693                                     <?php endif; ?>
    1694 
    1695                                     <?php if (!empty($agreement->end_at)): ?>
    1696                                         <dl class="row">
    1697                                             <dt class="term"><?php _e('End Date', 'apimo'); ?>:</dt>
    1698                                             <dd class="description"><?php echo esc_html($agreement->end_at); ?></dd>
    1699                                         </dl>
    1700                                     <?php endif; ?>
    1701                                 </div>
    1702                             </div>
    1703                             <?php
    1704                         }
    1705                     }
    1706                 }
    1707                
    1708             ?>
    1709 
    1710 
    1711 
    17121648            <?php
    17131649                // foreach (maybe_unserialize($metas['apimo_regulations'][0]) as $regulations) {
Note: See TracChangeset for help on using the changeset viewer.