Changeset 3036468
- Timestamp:
- 02/15/2024 04:35:17 PM (2 years ago)
- Location:
- apimo/trunk
- Files:
-
- 3 edited
-
apimo.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
templates/single_property_style_1.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
apimo/trunk/apimo.php
r3036205 r3036468 7 7 * Description: Manage Real Estat Bussiness 8 8 9 * Version: 2.5.5. 19 * Version: 2.5.5.2 10 10 11 11 * Author: ApiWork -
apimo/trunk/readme.txt
r3036205 r3036468 3 3 Tags: real estate, property management, listings, clients, leads, showings, open houses, reports 4 4 Tested up to: 6.4.2 5 Stable tag: 2.5.5. 15 Stable tag: 2.5.5.2 6 6 License: GPLv2 7 7 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
apimo/trunk/templates/single_property_style_1.php
r3036205 r3036468 1100 1100 </span> 1101 1101 <?php endif; ?> 1102 1103 1102 1104 1103 1105 <div class="Pro-info"> … … 1644 1646 ?> 1645 1647 1646 1647 1648 <!--apimo_agreement -->1649 <?php1650 // Define agreement type descriptions1651 $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 array1664 $serialized_agreement = $apimo_agreement_data[0];1665 // Unserialize the data1666 $agreement = unserialize($serialized_agreement);1667 // Check if all properties are empty1668 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 <?php1704 }1705 }1706 }1707 1708 ?>1709 1710 1711 1712 1648 <?php 1713 1649 // foreach (maybe_unserialize($metas['apimo_regulations'][0]) as $regulations) {
Note: See TracChangeset
for help on using the changeset viewer.