Changeset 3772658
- Timestamp:
- 10/29/2026 10:41:40 AM (2 days ago)
- Location:
- domtoraj-integration
- Files:
-
- 13 edited
- 1 copied
-
assets/screenshot-1.jpg (modified) ( previous)
-
tags/1.1.1 (copied) (copied from domtoraj-integration/trunk )
-
tags/1.1.1/assets/css/frontend.css (modified) (2 diffs)
-
tags/1.1.1/assets/js/single.js (modified) (1 diff)
-
tags/1.1.1/domtoraj-integration.php (modified) (2 diffs)
-
tags/1.1.1/includes/Frontend/Icons.php (modified) (1 diff)
-
tags/1.1.1/readme.txt (modified) (5 diffs)
-
tags/1.1.1/templates/single-property-content.php (modified) (3 diffs)
-
trunk/assets/css/frontend.css (modified) (2 diffs)
-
trunk/assets/js/single.js (modified) (1 diff)
-
trunk/domtoraj-integration.php (modified) (2 diffs)
-
trunk/includes/Frontend/Icons.php (modified) (1 diff)
-
trunk/readme.txt (modified) (5 diffs)
-
trunk/templates/single-property-content.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
domtoraj-integration/tags/1.1.1/assets/css/frontend.css
r3772329 r3772658 192 192 } 193 193 194 .dtr .dtr-btn--whatsapp {195 background: #25d366;196 color: #fff;197 }198 199 .dtr .dtr-btn--whatsapp:hover {200 background: #1eb858;201 color: #fff;202 }203 204 194 .dtr .dtr-btn--sm { 205 195 min-height: 40px; … … 3284 3274 .dtr .dtr-tabs, 3285 3275 .dtr .dtr-form, 3286 .dtr .dtr-contact-card__buttons .dtr-btn--whatsapp,3287 3276 .dtr .dtr-calc, 3288 3277 .dtr .dtr-related, -
domtoraj-integration/tags/1.1.1/assets/js/single.js
r3772329 r3772658 155 155 window.prompt('', url); 156 156 } 157 });158 on($('[data-dtr-print]', root), 'click', function () {159 if (prose) { prose.classList.remove('is-collapsed'); }160 window.print();161 157 }); 162 158 $$('[data-dtr-phone]', root).forEach(function (a) { -
domtoraj-integration/tags/1.1.1/domtoraj-integration.php
r3772329 r3772658 3 3 * Plugin Name: DomToRaj Integration 4 4 * Description: Integracja z systemem DomToRaj - automatyczna synchronizacja ofert nieruchomości 5 * Version: 1.1. 05 * Version: 1.1.1 6 6 * Author: DomToRaj 7 7 * Author URI: https://domtoraj.pl … … 19 19 20 20 // Definicje stałych 21 define('DOMTORAJ_VERSION', '1.1. 0');21 define('DOMTORAJ_VERSION', '1.1.1'); 22 22 define('DOMTORAJ_PLUGIN_DIR', plugin_dir_path(__FILE__)); 23 23 define('DOMTORAJ_PLUGIN_URL', plugin_dir_url(__FILE__)); -
domtoraj-integration/tags/1.1.1/includes/Frontend/Icons.php
r3772329 r3772658 29 29 'phone' => '<path d="M5 4h3l2 5-2.5 1.5a11 11 0 0 0 6 6L15 14l5 2v3a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2Z"/>', 30 30 'mail' => '<rect x="3" y="5" width="18" height="14" rx="2"/><path d="m3 7 9 6 9-6"/>', 31 'whatsapp' => '<path d="M4 20l1.3-3.9A8 8 0 1 1 8 19l-4 1Z"/><path d="M9.5 9.5c.3 1.6 1.5 3.4 3.4 4.3l1.1-1 1.6.8c-.2 1-1 1.6-2 1.5-2.7-.4-5.4-3-5.7-5.8-.1-1 .5-1.8 1.5-2l.8 1.6-.7.6Z"/>',32 31 'share' => '<circle cx="18" cy="5" r="3"/><circle cx="6" cy="12" r="3"/><circle cx="18" cy="19" r="3"/><path d="m8.6 13.5 6.8 4M15.4 6.5l-6.8 4"/>', 33 'print' => '<path d="M6 9V3h12v6M6 18H4a1 1 0 0 1-1-1v-6a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v6a1 1 0 0 1-1 1h-2"/><path d="M6 14h12v7H6z"/>',34 32 'chev-left' => '<path d="m15 18-6-6 6-6"/>', 35 33 'chev-right' => '<path d="m9 18 6-6-6-6"/>', -
domtoraj-integration/tags/1.1.1/readme.txt
r3772329 r3772658 6 6 Tested up to: 7.1 7 7 Requires PHP: 7.4 8 Stable tag: 1.1. 08 Stable tag: 1.1.1 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 28 28 * Photo mosaic with full-screen gallery (keyboard and swipe). 29 29 * Key facts tiles, description with "read more", details table and amenities. 30 * Sticky contact panel: agent, click-to-reveal phone, WhatsApp,enquiry form and "Book a viewing" form.30 * Sticky contact panel: agent, click-to-reveal phone, enquiry form and "Book a viewing" form. 31 31 * Mortgage calculator, YouTube video, 3D virtual tour, map and "What's nearby" (schools, shops, transport…). 32 * Similar offers, print/PDF view,share button, SEO: JSON-LD (RealEstateListing), Open Graph, page titles with price.32 * Similar offers, share button, SEO: JSON-LD (RealEstateListing), Open Graph, page titles with price. 33 33 34 34 **Leads** … … 69 69 3. **Overpass API** (https://overpass-api.de/, fallback https://overpass.kumi.systems/) — "What's nearby" on the offer page. Your server sends the offer coordinates and caches the result for 30 days; only if that fails, the visitor's browser requests it directly. [Overpass API](https://wiki.openstreetmap.org/wiki/Overpass_API), [Privacy policy](https://osmfoundation.org/wiki/Privacy_Policy). 70 70 4. **YouTube (privacy-enhanced mode)** — only when an offer has a video and the visitor clicks "play"; the thumbnail is loaded from i.ytimg.com. [Terms](https://www.youtube.com/t/terms), [Privacy policy](https://policies.google.com/privacy). 71 5. **WhatsApp** — only a link (wa.me) opened when the visitor clicks the WhatsApp button. [Privacy policy](https://www.whatsapp.com/legal/privacy-policy).72 71 73 72 Enquiry forms send data only to your own WordPress site (and your e-mail inbox). … … 113 112 == Changelog == 114 113 114 = 1.1.1 = 115 * Offer page: removed the WhatsApp and Print buttons (simpler contact panel; the printout did not look good). 116 115 117 = 1.1.0 = 116 118 * New design of listing cards, search form, listing page and offer page (mobile-first, no jQuery, no Slick/Fancybox). 117 119 * Map view on the listing (price pins, clustering) and `[domtoraj_mapa_ofert]`. 118 120 * Live results counter, location autocomplete, active filter chips, sorting by price/area/date. 119 * Offer page: full-screen gallery, sticky contact panel, click-to-reveal phone, WhatsApp, "Book a viewing", mortgage calculator, video, virtual tour, "What's nearby", similar offers, print view.121 * Offer page: full-screen gallery, sticky contact panel, click-to-reveal phone, "Book a viewing", mortgage calculator, video, virtual tour, "What's nearby", similar offers. 120 122 * Enquiries saved in WordPress + HTML e-mail to the agency; seller valuation wizard; anti-spam. 121 123 * Favorites, category tiles, agency numbers, contact form shortcodes. … … 141 143 == Upgrade Notice == 142 144 145 = 1.1.1 = 146 Removes the WhatsApp and Print buttons from the offer page. 147 143 148 = 1.1.0 = 144 149 Big redesign: new search, map view, offer page with lead forms and enquiries inbox. If you overrode plugin templates in your theme, review them after updating. -
domtoraj-integration/tags/1.1.1/templates/single-property-content.php
r3772329 r3772658 29 29 $facts = $p->key_facts( 5 ); 30 30 $phone = preg_replace( '/[^\d+]/', '', $contact['phone'] ); 31 $phone_wa = preg_replace( '/\D/', '', $contact['phone'] );32 if ( strlen( $phone_wa ) === 9 ) {33 $phone_wa = '48' . $phone_wa;34 }35 31 $listings_url = ListingShortcodes::results_url(); 36 32 $site_cfg = get_option( 'domtoraj_site_config', array() ); … … 96 92 <button type="button" class="dtr-icon-btn" data-dtr-fav="<?php echo esc_attr( (string) $p->post_id ); ?>" aria-pressed="false" title="<?php esc_attr_e( 'Zapisz w ulubionych', 'domtoraj-integration' ); ?>"><?php Icons::render( 'heart' ); ?><span class="screen-reader-text"><?php esc_html_e( 'Zapisz w ulubionych', 'domtoraj-integration' ); ?></span></button> 97 93 <button type="button" class="dtr-icon-btn" data-dtr-share data-title="<?php echo esc_attr( $p->title() ); ?>" title="<?php esc_attr_e( 'Udostępnij', 'domtoraj-integration' ); ?>"><?php Icons::render( 'share' ); ?><span class="screen-reader-text"><?php esc_html_e( 'Udostępnij', 'domtoraj-integration' ); ?></span></button> 98 <button type="button" class="dtr-icon-btn" data-dtr-print title="<?php esc_attr_e( 'Drukuj lub zapisz PDF', 'domtoraj-integration' ); ?>"><?php Icons::render( 'print' ); ?><span class="screen-reader-text"><?php esc_html_e( 'Drukuj', 'domtoraj-integration' ); ?></span></button>99 94 </div> 100 95 </div> … … 261 256 <span class="dtr-btn__hint" data-dtr-phone-hint><?php esc_html_e( 'pokaż numer', 'domtoraj-integration' ); ?></span> 262 257 </a> 263 <?php if ( strlen( $phone_wa ) >= 11 ) : ?>264 <a class="dtr-btn dtr-btn--whatsapp dtr-btn--block" href="<?php echo esc_url( 'https://wa.me/' . $phone_wa . '?text=' . rawurlencode( $msg_default . ' ' . $p->url() ) ); ?>" target="_blank" rel="noopener"><?php Icons::render( 'whatsapp' ); ?><span>WhatsApp</span></a>265 <?php endif; ?>266 258 <?php endif; ?> 267 259 </div> -
domtoraj-integration/trunk/assets/css/frontend.css
r3772329 r3772658 192 192 } 193 193 194 .dtr .dtr-btn--whatsapp {195 background: #25d366;196 color: #fff;197 }198 199 .dtr .dtr-btn--whatsapp:hover {200 background: #1eb858;201 color: #fff;202 }203 204 194 .dtr .dtr-btn--sm { 205 195 min-height: 40px; … … 3284 3274 .dtr .dtr-tabs, 3285 3275 .dtr .dtr-form, 3286 .dtr .dtr-contact-card__buttons .dtr-btn--whatsapp,3287 3276 .dtr .dtr-calc, 3288 3277 .dtr .dtr-related, -
domtoraj-integration/trunk/assets/js/single.js
r3772329 r3772658 155 155 window.prompt('', url); 156 156 } 157 });158 on($('[data-dtr-print]', root), 'click', function () {159 if (prose) { prose.classList.remove('is-collapsed'); }160 window.print();161 157 }); 162 158 $$('[data-dtr-phone]', root).forEach(function (a) { -
domtoraj-integration/trunk/domtoraj-integration.php
r3772329 r3772658 3 3 * Plugin Name: DomToRaj Integration 4 4 * Description: Integracja z systemem DomToRaj - automatyczna synchronizacja ofert nieruchomości 5 * Version: 1.1. 05 * Version: 1.1.1 6 6 * Author: DomToRaj 7 7 * Author URI: https://domtoraj.pl … … 19 19 20 20 // Definicje stałych 21 define('DOMTORAJ_VERSION', '1.1. 0');21 define('DOMTORAJ_VERSION', '1.1.1'); 22 22 define('DOMTORAJ_PLUGIN_DIR', plugin_dir_path(__FILE__)); 23 23 define('DOMTORAJ_PLUGIN_URL', plugin_dir_url(__FILE__)); -
domtoraj-integration/trunk/includes/Frontend/Icons.php
r3772329 r3772658 29 29 'phone' => '<path d="M5 4h3l2 5-2.5 1.5a11 11 0 0 0 6 6L15 14l5 2v3a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2Z"/>', 30 30 'mail' => '<rect x="3" y="5" width="18" height="14" rx="2"/><path d="m3 7 9 6 9-6"/>', 31 'whatsapp' => '<path d="M4 20l1.3-3.9A8 8 0 1 1 8 19l-4 1Z"/><path d="M9.5 9.5c.3 1.6 1.5 3.4 3.4 4.3l1.1-1 1.6.8c-.2 1-1 1.6-2 1.5-2.7-.4-5.4-3-5.7-5.8-.1-1 .5-1.8 1.5-2l.8 1.6-.7.6Z"/>',32 31 'share' => '<circle cx="18" cy="5" r="3"/><circle cx="6" cy="12" r="3"/><circle cx="18" cy="19" r="3"/><path d="m8.6 13.5 6.8 4M15.4 6.5l-6.8 4"/>', 33 'print' => '<path d="M6 9V3h12v6M6 18H4a1 1 0 0 1-1-1v-6a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v6a1 1 0 0 1-1 1h-2"/><path d="M6 14h12v7H6z"/>',34 32 'chev-left' => '<path d="m15 18-6-6 6-6"/>', 35 33 'chev-right' => '<path d="m9 18 6-6-6-6"/>', -
domtoraj-integration/trunk/readme.txt
r3772329 r3772658 6 6 Tested up to: 7.1 7 7 Requires PHP: 7.4 8 Stable tag: 1.1. 08 Stable tag: 1.1.1 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 28 28 * Photo mosaic with full-screen gallery (keyboard and swipe). 29 29 * Key facts tiles, description with "read more", details table and amenities. 30 * Sticky contact panel: agent, click-to-reveal phone, WhatsApp,enquiry form and "Book a viewing" form.30 * Sticky contact panel: agent, click-to-reveal phone, enquiry form and "Book a viewing" form. 31 31 * Mortgage calculator, YouTube video, 3D virtual tour, map and "What's nearby" (schools, shops, transport…). 32 * Similar offers, print/PDF view,share button, SEO: JSON-LD (RealEstateListing), Open Graph, page titles with price.32 * Similar offers, share button, SEO: JSON-LD (RealEstateListing), Open Graph, page titles with price. 33 33 34 34 **Leads** … … 69 69 3. **Overpass API** (https://overpass-api.de/, fallback https://overpass.kumi.systems/) — "What's nearby" on the offer page. Your server sends the offer coordinates and caches the result for 30 days; only if that fails, the visitor's browser requests it directly. [Overpass API](https://wiki.openstreetmap.org/wiki/Overpass_API), [Privacy policy](https://osmfoundation.org/wiki/Privacy_Policy). 70 70 4. **YouTube (privacy-enhanced mode)** — only when an offer has a video and the visitor clicks "play"; the thumbnail is loaded from i.ytimg.com. [Terms](https://www.youtube.com/t/terms), [Privacy policy](https://policies.google.com/privacy). 71 5. **WhatsApp** — only a link (wa.me) opened when the visitor clicks the WhatsApp button. [Privacy policy](https://www.whatsapp.com/legal/privacy-policy).72 71 73 72 Enquiry forms send data only to your own WordPress site (and your e-mail inbox). … … 113 112 == Changelog == 114 113 114 = 1.1.1 = 115 * Offer page: removed the WhatsApp and Print buttons (simpler contact panel; the printout did not look good). 116 115 117 = 1.1.0 = 116 118 * New design of listing cards, search form, listing page and offer page (mobile-first, no jQuery, no Slick/Fancybox). 117 119 * Map view on the listing (price pins, clustering) and `[domtoraj_mapa_ofert]`. 118 120 * Live results counter, location autocomplete, active filter chips, sorting by price/area/date. 119 * Offer page: full-screen gallery, sticky contact panel, click-to-reveal phone, WhatsApp, "Book a viewing", mortgage calculator, video, virtual tour, "What's nearby", similar offers, print view.121 * Offer page: full-screen gallery, sticky contact panel, click-to-reveal phone, "Book a viewing", mortgage calculator, video, virtual tour, "What's nearby", similar offers. 120 122 * Enquiries saved in WordPress + HTML e-mail to the agency; seller valuation wizard; anti-spam. 121 123 * Favorites, category tiles, agency numbers, contact form shortcodes. … … 141 143 == Upgrade Notice == 142 144 145 = 1.1.1 = 146 Removes the WhatsApp and Print buttons from the offer page. 147 143 148 = 1.1.0 = 144 149 Big redesign: new search, map view, offer page with lead forms and enquiries inbox. If you overrode plugin templates in your theme, review them after updating. -
domtoraj-integration/trunk/templates/single-property-content.php
r3772329 r3772658 29 29 $facts = $p->key_facts( 5 ); 30 30 $phone = preg_replace( '/[^\d+]/', '', $contact['phone'] ); 31 $phone_wa = preg_replace( '/\D/', '', $contact['phone'] );32 if ( strlen( $phone_wa ) === 9 ) {33 $phone_wa = '48' . $phone_wa;34 }35 31 $listings_url = ListingShortcodes::results_url(); 36 32 $site_cfg = get_option( 'domtoraj_site_config', array() ); … … 96 92 <button type="button" class="dtr-icon-btn" data-dtr-fav="<?php echo esc_attr( (string) $p->post_id ); ?>" aria-pressed="false" title="<?php esc_attr_e( 'Zapisz w ulubionych', 'domtoraj-integration' ); ?>"><?php Icons::render( 'heart' ); ?><span class="screen-reader-text"><?php esc_html_e( 'Zapisz w ulubionych', 'domtoraj-integration' ); ?></span></button> 97 93 <button type="button" class="dtr-icon-btn" data-dtr-share data-title="<?php echo esc_attr( $p->title() ); ?>" title="<?php esc_attr_e( 'Udostępnij', 'domtoraj-integration' ); ?>"><?php Icons::render( 'share' ); ?><span class="screen-reader-text"><?php esc_html_e( 'Udostępnij', 'domtoraj-integration' ); ?></span></button> 98 <button type="button" class="dtr-icon-btn" data-dtr-print title="<?php esc_attr_e( 'Drukuj lub zapisz PDF', 'domtoraj-integration' ); ?>"><?php Icons::render( 'print' ); ?><span class="screen-reader-text"><?php esc_html_e( 'Drukuj', 'domtoraj-integration' ); ?></span></button>99 94 </div> 100 95 </div> … … 261 256 <span class="dtr-btn__hint" data-dtr-phone-hint><?php esc_html_e( 'pokaż numer', 'domtoraj-integration' ); ?></span> 262 257 </a> 263 <?php if ( strlen( $phone_wa ) >= 11 ) : ?>264 <a class="dtr-btn dtr-btn--whatsapp dtr-btn--block" href="<?php echo esc_url( 'https://wa.me/' . $phone_wa . '?text=' . rawurlencode( $msg_default . ' ' . $p->url() ) ); ?>" target="_blank" rel="noopener"><?php Icons::render( 'whatsapp' ); ?><span>WhatsApp</span></a>265 <?php endif; ?>266 258 <?php endif; ?> 267 259 </div>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)