Changeset 3334985
- Timestamp:
- 07/27/2025 07:49:30 PM (7 months ago)
- Location:
- havenlytics
- Files:
-
- 105 added
- 8 edited
-
tags/1.0.11 (added)
-
tags/1.0.11/admin (added)
-
tags/1.0.11/admin/assets (added)
-
tags/1.0.11/admin/assets/css (added)
-
tags/1.0.11/admin/assets/css/havenlytics-metabox.css (added)
-
tags/1.0.11/admin/assets/css/leaflet (added)
-
tags/1.0.11/admin/assets/css/leaflet/leaflet.css (added)
-
tags/1.0.11/admin/assets/js (added)
-
tags/1.0.11/admin/assets/js/havenlytics-metabox.js (added)
-
tags/1.0.11/admin/assets/js/leaflet (added)
-
tags/1.0.11/admin/assets/js/leaflet/leaflet.js (added)
-
tags/1.0.11/admin/class-admin-assets.php (added)
-
tags/1.0.11/havenlytics.php (added)
-
tags/1.0.11/includes (added)
-
tags/1.0.11/includes/class-init.php (added)
-
tags/1.0.11/includes/class-meta-fields.php (added)
-
tags/1.0.11/includes/class-post-type.php (added)
-
tags/1.0.11/includes/class-property-views.php (added)
-
tags/1.0.11/includes/class-shortcodes.php (added)
-
tags/1.0.11/includes/features (added)
-
tags/1.0.11/includes/features/similar-carousel (added)
-
tags/1.0.11/includes/functions-core.php (added)
-
tags/1.0.11/includes/modals (added)
-
tags/1.0.11/includes/modals/modal-agent.php (added)
-
tags/1.0.11/includes/modals/modal-brochure.php (added)
-
tags/1.0.11/includes/modals/modal-enquiry.php (added)
-
tags/1.0.11/includes/modals/modal-epc.php (added)
-
tags/1.0.11/includes/modals/modal-floorplan.php (added)
-
tags/1.0.11/includes/modals/modal-map.php (added)
-
tags/1.0.11/includes/modals/modal-mortgage-calculator.php (added)
-
tags/1.0.11/includes/modals/modal-viewing.php (added)
-
tags/1.0.11/includes/modals/modal-virtual-tour.php (added)
-
tags/1.0.11/languages (added)
-
tags/1.0.11/languages/havenlytics.pot (added)
-
tags/1.0.11/public (added)
-
tags/1.0.11/public/assets (added)
-
tags/1.0.11/public/assets/css (added)
-
tags/1.0.11/public/assets/css/havenlytics-mortgage-calculator.init.css (added)
-
tags/1.0.11/public/assets/css/havenlytics-property-featured-carousel.css (added)
-
tags/1.0.11/public/assets/css/havenlytics-property-grid.css (added)
-
tags/1.0.11/public/assets/css/havenlytics-property-list.css (added)
-
tags/1.0.11/public/assets/css/havenlytics-property-popups.css (added)
-
tags/1.0.11/public/assets/css/havenlytics-property-related-carousel.css (added)
-
tags/1.0.11/public/assets/css/havenlytics-property-single.css (added)
-
tags/1.0.11/public/assets/css/havenlytics-property-video.css (added)
-
tags/1.0.11/public/assets/css/havenlytics-root-style.css (added)
-
tags/1.0.11/public/assets/img (added)
-
tags/1.0.11/public/assets/img/layers-2x.png (added)
-
tags/1.0.11/public/assets/img/layers.png (added)
-
tags/1.0.11/public/assets/img/marker-icon.png (added)
-
tags/1.0.11/public/assets/img/no-thumb.png (added)
-
tags/1.0.11/public/assets/img/video-placeholder.png (added)
-
tags/1.0.11/public/assets/js (added)
-
tags/1.0.11/public/assets/js/havenlytics-frontend-popups.js (added)
-
tags/1.0.11/public/assets/js/havenlytics-frontend-scripts.js (added)
-
tags/1.0.11/public/assets/js/havenlytics-map.js (added)
-
tags/1.0.11/public/assets/js/havenlytics-mortgage-calculator.init.js (added)
-
tags/1.0.11/public/assets/plugins (added)
-
tags/1.0.11/public/assets/plugins/bootstrap (added)
-
tags/1.0.11/public/assets/plugins/bootstrap/css (added)
-
tags/1.0.11/public/assets/plugins/bootstrap/css/bootstrap.min.css (added)
-
tags/1.0.11/public/assets/plugins/bootstrap/css/leaflet.css (added)
-
tags/1.0.11/public/assets/plugins/bootstrap/js (added)
-
tags/1.0.11/public/assets/plugins/bootstrap/js/bootstrap.bundle.min.js (added)
-
tags/1.0.11/public/assets/plugins/bootstrap/js/leaflet.js (added)
-
tags/1.0.11/public/assets/plugins/chart (added)
-
tags/1.0.11/public/assets/plugins/chart/chart.js (added)
-
tags/1.0.11/public/assets/plugins/fontawesome (added)
-
tags/1.0.11/public/assets/plugins/fontawesome/css (added)
-
tags/1.0.11/public/assets/plugins/fontawesome/css/all.min.css (added)
-
tags/1.0.11/public/assets/plugins/fontawesome/css/fontawesome.min.css (added)
-
tags/1.0.11/public/assets/plugins/fontawesome/webfonts (added)
-
tags/1.0.11/public/assets/plugins/fontawesome/webfonts/fa-brands-400.ttf (added)
-
tags/1.0.11/public/assets/plugins/fontawesome/webfonts/fa-brands-400.woff2 (added)
-
tags/1.0.11/public/assets/plugins/fontawesome/webfonts/fa-regular-400.ttf (added)
-
tags/1.0.11/public/assets/plugins/fontawesome/webfonts/fa-regular-400.woff2 (added)
-
tags/1.0.11/public/assets/plugins/fontawesome/webfonts/fa-solid-900.ttf (added)
-
tags/1.0.11/public/assets/plugins/fontawesome/webfonts/fa-solid-900.woff2 (added)
-
tags/1.0.11/public/assets/plugins/fontawesome/webfonts/fa-v4compatibility.ttf (added)
-
tags/1.0.11/public/assets/plugins/fontawesome/webfonts/fa-v4compatibility.woff2 (added)
-
tags/1.0.11/public/assets/plugins/jspdf (added)
-
tags/1.0.11/public/assets/plugins/jspdf/html2canvas.min.js (added)
-
tags/1.0.11/public/assets/plugins/jspdf/jspdf.umd.min.js (added)
-
tags/1.0.11/public/assets/plugins/leaflet (added)
-
tags/1.0.11/public/assets/plugins/leaflet/css (added)
-
tags/1.0.11/public/assets/plugins/leaflet/css/leaflet.css (added)
-
tags/1.0.11/public/assets/plugins/leaflet/js (added)
-
tags/1.0.11/public/assets/plugins/leaflet/js/leaflet.js (added)
-
tags/1.0.11/public/assets/plugins/owl.carouse (added)
-
tags/1.0.11/public/assets/plugins/owl.carouse/css (added)
-
tags/1.0.11/public/assets/plugins/owl.carouse/css/owl.carousel.min.css (added)
-
tags/1.0.11/public/assets/plugins/owl.carouse/js (added)
-
tags/1.0.11/public/assets/plugins/owl.carouse/js/owl.carousel.min.js (added)
-
tags/1.0.11/public/assets/plugins/theia-sticky-sidebar (added)
-
tags/1.0.11/public/assets/plugins/theia-sticky-sidebar/ResizeSensor.js (added)
-
tags/1.0.11/public/assets/plugins/theia-sticky-sidebar/theia-sticky-sidebar.js (added)
-
tags/1.0.11/public/class-frontend-assets.php (added)
-
tags/1.0.11/public/class-frontend.php (added)
-
tags/1.0.11/readme.txt (added)
-
tags/1.0.11/templates (added)
-
tags/1.0.11/templates/hvnly_property-single.php (added)
-
tags/1.0.11/templates/property-card-grid.php (added)
-
tags/1.0.11/templates/property-card-list.php (added)
-
tags/1.0.11/templates/property-card.php (added)
-
tags/1.0.11/uninstall.php (added)
-
trunk/havenlytics.php (modified) (2 diffs)
-
trunk/public/assets/css/havenlytics-property-list.css (modified) (1 diff)
-
trunk/public/class-frontend.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/templates/hvnly_property-single.php (modified) (4 diffs)
-
trunk/templates/property-card-grid.php (modified) (1 diff)
-
trunk/templates/property-card-list.php (modified) (1 diff)
-
trunk/templates/property-card.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
havenlytics/trunk/havenlytics.php
r3334824 r3334985 4 4 Plugin URI: https://wordpress.org/plugins/havenlytics/ 5 5 Description: A property listing plugin for WordPress that allows users to easily manage and display property listings. 6 Version: 1.0.1 06 Version: 1.0.11 7 7 Author: Havenlytics 8 8 Author URI: https://havenlytics.com … … 30 30 31 31 // Define constants 32 define('HVNLY_PROPERTY_VERSION', '1.0.1 0');32 define('HVNLY_PROPERTY_VERSION', '1.0.11'); 33 33 define('HVNLY_PROPERTY_URL', plugin_dir_url(__FILE__)); 34 34 define('HVNLY_PROPERTY_PATH', plugin_dir_path(__FILE__)); -
havenlytics/trunk/public/assets/css/havenlytics-property-list.css
r3333158 r3334985 70 70 } 71 71 .havenlytics-property-title-container { 72 max-width: 70%;72 max-width: 65%; 73 73 } 74 74 /* Property Card */ -
havenlytics/trunk/public/class-frontend.php
r3334405 r3334985 837 837 } 838 838 839 /** 840 * Format a property price with proper thousands separator and decimals. 841 * 842 * @param mixed $price The raw price value to format. 843 * @param int $decimals Number of decimal places (default 2). 844 * @param string $decimal_point Decimal point character (default '.'). 845 * @param string $thousands_sep Thousands separator (default ','). 846 * 847 * @return string Formatted price string. 848 */ 849 private function format_property_price($price, $decimals = 2, $decimal_point = '.', $thousands_sep = ',') 850 { 851 // Ensure price is numeric 852 if (!is_numeric($price)) { 853 return $price; // Return unformatted if not numeric (fallback) 854 } 855 856 // Convert to float for consistent formatting 857 $price = floatval($price); 858 859 // Format the price using number_format() 860 return number_format($price, $decimals, $decimal_point, $thousands_sep); 861 } 862 863 864 839 865 840 866 -
havenlytics/trunk/readme.txt
r3334824 r3334985 6 6 Tested up to: 6.8 7 7 Requires PHP: 7.2 8 Stable tag: 1.0.1 08 Stable tag: 1.0.11 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 145 145 146 146 == Changelog == 147 = 1.0.11 (2025-07-28) = 148 * Fix: Minor code issues. 149 * Enhancement: Added helper method to format property price with thousands separator and decimal point for better readability. 150 151 152 147 153 = 1.0.10 (2025-07-27) = 148 154 * Fix: Minor bug in Owl Carousel JS. -
havenlytics/trunk/templates/hvnly_property-single.php
r3334735 r3334985 115 115 $currency_symbol = isset($currency_symbols[$currency_code]) ? $currency_symbols[$currency_code] : '$'; 116 116 117 function format_property_price($price, $decimals = 2, $decimal_point = '.', $thousands_sep = ',') 118 { 119 // Ensure price is numeric 120 if (!is_numeric($price)) { 121 return $price; // Return unformatted if not numeric (fallback) 122 } 123 124 // Convert to float for consistent formatting 125 $price = floatval($price); 126 127 // Format the price using number_format() 128 return number_format($price, $decimals, $decimal_point, $thousands_sep); 129 } 117 130 118 131 … … 219 232 220 233 <div class="property-price"> 234 <?php 235 $price = format_property_price($price); 236 ?> 221 237 <?php echo esc_html($currency_symbol); ?> <?php echo esc_html($price); ?> 222 238 </div> … … 768 784 <?php if ($price) : ?> 769 785 <div class="havenlytics_price"> 786 <?php 787 $price = format_property_price($price); 788 ?> 770 789 <?php echo esc_html($currency_symbol . $price); ?></div> 771 790 <?php endif; ?> … … 1060 1079 <?php if ($price) : ?> 1061 1080 <div class="havenlytics-property-amount"> 1081 <?php 1082 $price = format_property_price($price); 1083 ?> 1062 1084 <h5> 1063 1085 <span> -
havenlytics/trunk/templates/property-card-grid.php
r3334735 r3334985 74 74 <?php 75 75 // Get the currency symbol 76 $currency_sign = $this->get_currency_symbol($property_id); 76 77 $currency = $this->get_currency_symbol($property_id); 78 $price = $this->format_property_price($meta_fields['price']); 77 79 ?> 78 80 <div class="havenlytics-property-amount"> 79 <h5><span><?php echo esc_html($currency _sign); ?> <?php echo esc_html($meta_fields['price']); ?>81 <h5><span><?php echo esc_html($currency); ?> <?php echo esc_html($price); ?> 80 82 </span></h5> 81 83 </div> -
havenlytics/trunk/templates/property-card-list.php
r3334735 r3334985 85 85 // Get the currency symbol 86 86 $currency_sign = $this->get_currency_symbol($property_id); 87 $price = $this->format_property_price($meta_fields['price']); 87 88 ?> 88 89 <div class="havenlytics-property-price"><?php echo esc_html($currency_sign); ?> 89 <?php echo esc_html($ meta_fields['price']); ?></div>90 <?php echo esc_html($price); ?></div> 90 91 91 92 <?php endif; ?> -
havenlytics/trunk/templates/property-card.php
r3334735 r3334985 74 74 // Get the currency symbol 75 75 $currency_sign = $this->get_currency_symbol($property_id); 76 $price = $this->format_property_price($meta_fields['price']); 76 77 ?> 77 78 <div class="havenlytics-property-amount"> 78 <h5><span><?php echo esc_html($currency_sign); ?> <?php echo esc_html($ meta_fields['price']); ?>79 <h5><span><?php echo esc_html($currency_sign); ?> <?php echo esc_html($price); ?> 79 80 </span></h5> 80 81 </div>
Note: See TracChangeset
for help on using the changeset viewer.