Changeset 2243950
- Timestamp:
- 02/13/2020 03:02:02 PM (6 years ago)
- Location:
- yes-co-ores-wordpress-plugin/trunk
- Files:
-
- 8 edited
-
inc/js/admin_object.js (modified) (1 diff)
-
inc/js/admin_object.min.js (modified) (1 diff)
-
includes/classes/yog_fields_settings.php (modified) (2 diffs)
-
includes/classes/yog_project_bog_translation.php (modified) (19 diffs)
-
includes/config/config.php (modified) (2 diffs)
-
package.json (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
yesco-og.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
yes-co-ores-wordpress-plugin/trunk/inc/js/admin_object.js
r2128552 r2243950 284 284 horecaVisible = true; 285 285 break; 286 case 'Garagebox': 287 gebouwVisible = true; 288 break; 289 case 'Leisure': 290 gebouwVisible = true; 291 break; 292 case 'Maatschappelijk vastgoed': 293 gebouwVisible = true; 294 break; 295 case 'Praktijkruimte': 296 gebouwVisible = true; 297 break; 286 298 } 287 299 -
yes-co-ores-wordpress-plugin/trunk/inc/js/admin_object.min.js
r2134900 r2243950 1 function yogRemoveVideo(uuid){var nonceField=jQuery("input[name=yog-video-nonce]");if(nonceField&&1===nonceField.length&&""!==nonceField.val()){jQuery("#video-"+uuid+" td:last-child").addClass("loading"),jQuery("#video-"+uuid+" td .button-primary").remove();var postId=jQuery("#post_ID").val();jQuery.post(ajaxurl,{action:"removevideo",uuid:uuid,post:postId,cookie:encodeURIComponent(document.cookie),_wpnonce:nonceField.val()},function(uuid){""!==uuid&&(jQuery("#video-"+uuid).fadeOut(),jQuery("#video-"+uuid).remove(),0==jQuery("#yog-video-tabel tbody tr").length&&jQuery("#yog-videos-overview").addClass("hide"))})}}function yogRemoveDocument(uuid){var nonceField=jQuery("input[name=yog-document-nonce]");if(nonceField&&1===nonceField.length&&""!==nonceField.val()){jQuery("#document-"+uuid+" td:last-child").addClass("loading"),jQuery("#document-"+uuid+" td .button-primary").remove();var postId=jQuery("#post_ID").val();jQuery.post(ajaxurl,{action:"removedocument",uuid:uuid,post:postId,cookie:encodeURIComponent(document.cookie),_wpnonce:nonceField.val()},function(uuid){""!==uuid&&(jQuery("#document-"+uuid).fadeOut(),jQuery("#document-"+uuid).remove(),0==jQuery("#yog-documents-table tbody tr").length&&jQuery("#yog-documents-overview").addClass("hide"))})}}function yogRemoveLink(uuid){var nonceField=jQuery("input[name=yog-link-nonce]");if(nonceField&&1===nonceField.length&&""!==nonceField.val()){jQuery("#link-"+uuid+" td:last-child").addClass("loading"),jQuery("#link-"+uuid+" td .button-primary").remove();var postId=jQuery("#post_ID").val();jQuery.post(ajaxurl,{action:"removelink",uuid:uuid,post:postId,cookie:encodeURIComponent(document.cookie),_wpnonce:nonceField.val()},function(uuid){""!==uuid&&(jQuery("#link-"+uuid).fadeOut(),jQuery("#link-"+uuid).remove(),0==jQuery("#yog-links-table tbody tr").length&&jQuery("#yog-links-overview").addClass("hide"))})}}function yogToggleMetaContainers(objectType){var bouwgrondVisible=!1,gebouwVisible=!1,bedrijfsruimteVisible=!1,kantoorruimteVisible=!1,winkelruimteVisible=!1,horecaVisible=!1;switch(objectType){case"Bouwgrond":bouwgrondVisible=!0;break;case"Bedrijfsruimte":bedrijfsruimteVisible=gebouwVisible=!0;break;case"Kantoorruimte":kantoorruimteVisible=gebouwVisible=!0;break;case"Winkelruimte":winkelruimteVisible=gebouwVisible=!0;break;case"Horeca":horecaVisible=gebouwVisible=!0 }bouwgrondVisible?jQuery("#yog-bouwgrond-meta").show():jQuery("#yog-bouwgrond-meta").hide(),gebouwVisible?jQuery("#yog-gebouw-meta").show():jQuery("#yog-gebouw-meta").hide(),bedrijfsruimteVisible?jQuery("#yog-bedrijfsruimte-meta").show():jQuery("#yog-bedrijfsruimte-meta").hide(),kantoorruimteVisible?jQuery("#yog-kantoorruimte-meta").show():jQuery("#yog-kantoorruimte-meta").hide(),winkelruimteVisible?jQuery("#yog-winkelruimte-meta").show():jQuery("#yog-winkelruimte-meta").hide(),horecaVisible?jQuery("#yog-horeca-meta").show():jQuery("#yog-horeca-meta").hide()}jQuery(document).ready(function($){jQuery("#yog-add-video").click(function(){var nonceField=jQuery("input[name=yog-video-nonce]");if(nonceField&&1===nonceField.length&&""!==nonceField.val()){jQuery("#yog-video-form").addClass("loading");var postId=jQuery("#post_ID").val(),videoType=jQuery("#video_type").val(),videoTitle=jQuery("#video_titel").val(),videoUrl=jQuery("#video_url").val();jQuery.post(ajaxurl,{action:"addvideo",post:postId,titel:videoTitle,type:videoType,url:videoUrl,cookie:encodeURIComponent(document.cookie),_wpnonce:nonceField.val()},function(videoUuid){""!==videoUuid&&(videoUrl=videoUrl.replace("http://",""),jQuery("#yog-video-tabel tbody").append('<tr id="video-'+videoUuid+'"><td><a href="http://'+videoUrl+'" target="_blank">'+videoTitle+'</a></td><td class="actions"><input type="button" class="button-primary" onclick="yogRemoveVideo(\''+videoUuid+'\');" value="Verwijderen" /></td></tr>'),jQuery("#video_titel").val(""),jQuery("#video_url").val(""),jQuery("#yog-videos-overview").removeClass("hide"),jQuery("#yog-video-form").removeClass("loading"))})}}),jQuery("#yog-add-document").click(function(){var nonceField=jQuery("input[name=yog-document-nonce]");if(nonceField&&1===nonceField.length&&""!==nonceField.val()){jQuery("#yog-document-form").addClass("loading");var postId=jQuery("#post_ID").val(),documentType=jQuery("#document_type").val(),documentTitel=jQuery("#document_titel").val(),documentUrl=jQuery("#document_url").val();jQuery.post(ajaxurl,{action:"adddocument",post:postId,titel:documentTitel,type:documentType,url:documentUrl,cookie:encodeURIComponent(document.cookie),_wpnonce:nonceField.val()},function(documentUuid){""!==documentUuid&&(jQuery("#yog-documents-table tbody").append('<tr id="document-'+documentUuid+'"><td><a href="http://'+documentUrl+'" class="'+documentType+'">'+documentTitel+'</a></td><td class="actions"><input type="button" class="button-primary" onclick="yogRemoveDocument(\''+documentUuid+'\');" value="Verwijderen" /></td></tr>'),jQuery("#document_titel").val(""),jQuery("#document_type").val(""),jQuery("#document_url").val(""),jQuery("#yog-documents-overview").removeClass("hide"),jQuery("#yog-document-form").removeClass("loading"))})}}),jQuery("#yog-add-link").click(function(){var nonceField=jQuery("input[name=yog-link-nonce]");if(nonceField&&1===nonceField.length&&""!==nonceField.val()){jQuery("#yog-link-form").addClass("loading");var postId=jQuery("#post_ID").val(),linkType=jQuery("#link_type").val(),linkTitle=jQuery("#link_titel").val(),linkUrl=jQuery("#link_url").val();jQuery.post(ajaxurl,{action:"addlink",post:postId,titel:linkTitle,type:linkType,url:linkUrl,cookie:encodeURIComponent(document.cookie),_wpnonce:nonceField.val()},function(linkUuid){""!==linkUuid&&(jQuery("#yog-links-table tbody").append('<tr id="link-'+linkUuid+'"><td><a href="http://'+linkUrl+'" class="'+linkType+'">'+linkTitle+'</a></td><td class="actions"><input type="button" class="button-primary" onclick="yogRemoveLink(\''+linkUuid+'\');" value="Verwijderen" /></td></tr>'),jQuery("#link_type").val(""),jQuery("#link_titel").val(""),jQuery("#link_url").val(""),jQuery("#yog-links-overview").removeClass("hide"),jQuery("#yog-link-form").removeClass("loading"))})}}),jQuery("select#yog-bedrijf_Type").change(function(event){yogToggleMetaContainers(event.currentTarget.value)}),jQuery("select#yog-bedrijf_Type").ready(function(event){yogToggleMetaContainers(jQuery("select#yog-bedrijf_Type").val())}),jQuery("input[type=date].yog-date").each(function(){if("date"!=this.type){var elem=jQuery(this);elem.datepicker({dateFormat:"dd-mm-yy"}),this.min&&elem.datepicker("option","minDate",this.min),this.max&&elem.datepicker("option","maxDate",this.max);var value=elem.val();if(-1!==value.indexOf("-")){var parts=value.split("-");3===parts.length&&4===parts[0].length&&elem.val(parts[2]+"-"+parts[1]+"-"+parts[0])}}}),jQuery("input[type=time].yog-time").each(function(){"time"!=this.type&&jQuery(this).change(function(event){var elem=event.currentTarget;elem.value.match(/^(?:0?\d|1[0-9]|2[0123]):([0-5]{0,1}[0-9]{1})$/)?jQuery(elem).removeClass("error"):jQuery(elem).addClass("error")})})});1 function yogRemoveVideo(uuid){var nonceField=jQuery("input[name=yog-video-nonce]");if(nonceField&&1===nonceField.length&&""!==nonceField.val()){jQuery("#video-"+uuid+" td:last-child").addClass("loading"),jQuery("#video-"+uuid+" td .button-primary").remove();var postId=jQuery("#post_ID").val();jQuery.post(ajaxurl,{action:"removevideo",uuid:uuid,post:postId,cookie:encodeURIComponent(document.cookie),_wpnonce:nonceField.val()},function(uuid){""!==uuid&&(jQuery("#video-"+uuid).fadeOut(),jQuery("#video-"+uuid).remove(),0==jQuery("#yog-video-tabel tbody tr").length&&jQuery("#yog-videos-overview").addClass("hide"))})}}function yogRemoveDocument(uuid){var nonceField=jQuery("input[name=yog-document-nonce]");if(nonceField&&1===nonceField.length&&""!==nonceField.val()){jQuery("#document-"+uuid+" td:last-child").addClass("loading"),jQuery("#document-"+uuid+" td .button-primary").remove();var postId=jQuery("#post_ID").val();jQuery.post(ajaxurl,{action:"removedocument",uuid:uuid,post:postId,cookie:encodeURIComponent(document.cookie),_wpnonce:nonceField.val()},function(uuid){""!==uuid&&(jQuery("#document-"+uuid).fadeOut(),jQuery("#document-"+uuid).remove(),0==jQuery("#yog-documents-table tbody tr").length&&jQuery("#yog-documents-overview").addClass("hide"))})}}function yogRemoveLink(uuid){var nonceField=jQuery("input[name=yog-link-nonce]");if(nonceField&&1===nonceField.length&&""!==nonceField.val()){jQuery("#link-"+uuid+" td:last-child").addClass("loading"),jQuery("#link-"+uuid+" td .button-primary").remove();var postId=jQuery("#post_ID").val();jQuery.post(ajaxurl,{action:"removelink",uuid:uuid,post:postId,cookie:encodeURIComponent(document.cookie),_wpnonce:nonceField.val()},function(uuid){""!==uuid&&(jQuery("#link-"+uuid).fadeOut(),jQuery("#link-"+uuid).remove(),0==jQuery("#yog-links-table tbody tr").length&&jQuery("#yog-links-overview").addClass("hide"))})}}function yogToggleMetaContainers(objectType){var bouwgrondVisible=!1,gebouwVisible=!1,bedrijfsruimteVisible=!1,kantoorruimteVisible=!1,winkelruimteVisible=!1,horecaVisible=!1;switch(objectType){case"Bouwgrond":bouwgrondVisible=!0;break;case"Bedrijfsruimte":bedrijfsruimteVisible=gebouwVisible=!0;break;case"Kantoorruimte":kantoorruimteVisible=gebouwVisible=!0;break;case"Winkelruimte":winkelruimteVisible=gebouwVisible=!0;break;case"Horeca":horecaVisible=gebouwVisible=!0;break;case"Garagebox":case"Leisure":case"Maatschappelijk vastgoed":case"Praktijkruimte":gebouwVisible=!0}bouwgrondVisible?jQuery("#yog-bouwgrond-meta").show():jQuery("#yog-bouwgrond-meta").hide(),gebouwVisible?jQuery("#yog-gebouw-meta").show():jQuery("#yog-gebouw-meta").hide(),bedrijfsruimteVisible?jQuery("#yog-bedrijfsruimte-meta").show():jQuery("#yog-bedrijfsruimte-meta").hide(),kantoorruimteVisible?jQuery("#yog-kantoorruimte-meta").show():jQuery("#yog-kantoorruimte-meta").hide(),winkelruimteVisible?jQuery("#yog-winkelruimte-meta").show():jQuery("#yog-winkelruimte-meta").hide(),horecaVisible?jQuery("#yog-horeca-meta").show():jQuery("#yog-horeca-meta").hide()}jQuery(document).ready(function($){jQuery("#yog-add-video").click(function(){var nonceField=jQuery("input[name=yog-video-nonce]");if(nonceField&&1===nonceField.length&&""!==nonceField.val()){jQuery("#yog-video-form").addClass("loading");var postId=jQuery("#post_ID").val(),videoType=jQuery("#video_type").val(),videoTitle=jQuery("#video_titel").val(),videoUrl=jQuery("#video_url").val();jQuery.post(ajaxurl,{action:"addvideo",post:postId,titel:videoTitle,type:videoType,url:videoUrl,cookie:encodeURIComponent(document.cookie),_wpnonce:nonceField.val()},function(videoUuid){""!==videoUuid&&(videoUrl=videoUrl.replace("http://",""),jQuery("#yog-video-tabel tbody").append('<tr id="video-'+videoUuid+'"><td><a href="http://'+videoUrl+'" target="_blank">'+videoTitle+'</a></td><td class="actions"><input type="button" class="button-primary" onclick="yogRemoveVideo(\''+videoUuid+'\');" value="Verwijderen" /></td></tr>'),jQuery("#video_titel").val(""),jQuery("#video_url").val(""),jQuery("#yog-videos-overview").removeClass("hide"),jQuery("#yog-video-form").removeClass("loading"))})}}),jQuery("#yog-add-document").click(function(){var nonceField=jQuery("input[name=yog-document-nonce]");if(nonceField&&1===nonceField.length&&""!==nonceField.val()){jQuery("#yog-document-form").addClass("loading");var postId=jQuery("#post_ID").val(),documentType=jQuery("#document_type").val(),documentTitel=jQuery("#document_titel").val(),documentUrl=jQuery("#document_url").val();jQuery.post(ajaxurl,{action:"adddocument",post:postId,titel:documentTitel,type:documentType,url:documentUrl,cookie:encodeURIComponent(document.cookie),_wpnonce:nonceField.val()},function(documentUuid){""!==documentUuid&&(jQuery("#yog-documents-table tbody").append('<tr id="document-'+documentUuid+'"><td><a href="http://'+documentUrl+'" class="'+documentType+'">'+documentTitel+'</a></td><td class="actions"><input type="button" class="button-primary" onclick="yogRemoveDocument(\''+documentUuid+'\');" value="Verwijderen" /></td></tr>'),jQuery("#document_titel").val(""),jQuery("#document_type").val(""),jQuery("#document_url").val(""),jQuery("#yog-documents-overview").removeClass("hide"),jQuery("#yog-document-form").removeClass("loading"))})}}),jQuery("#yog-add-link").click(function(){var nonceField=jQuery("input[name=yog-link-nonce]");if(nonceField&&1===nonceField.length&&""!==nonceField.val()){jQuery("#yog-link-form").addClass("loading");var postId=jQuery("#post_ID").val(),linkType=jQuery("#link_type").val(),linkTitle=jQuery("#link_titel").val(),linkUrl=jQuery("#link_url").val();jQuery.post(ajaxurl,{action:"addlink",post:postId,titel:linkTitle,type:linkType,url:linkUrl,cookie:encodeURIComponent(document.cookie),_wpnonce:nonceField.val()},function(linkUuid){""!==linkUuid&&(jQuery("#yog-links-table tbody").append('<tr id="link-'+linkUuid+'"><td><a href="http://'+linkUrl+'" class="'+linkType+'">'+linkTitle+'</a></td><td class="actions"><input type="button" class="button-primary" onclick="yogRemoveLink(\''+linkUuid+'\');" value="Verwijderen" /></td></tr>'),jQuery("#link_type").val(""),jQuery("#link_titel").val(""),jQuery("#link_url").val(""),jQuery("#yog-links-overview").removeClass("hide"),jQuery("#yog-link-form").removeClass("loading"))})}}),jQuery("select#yog-bedrijf_Type").change(function(event){yogToggleMetaContainers(event.currentTarget.value)}),jQuery("select#yog-bedrijf_Type").ready(function(event){yogToggleMetaContainers(jQuery("select#yog-bedrijf_Type").val())}),jQuery("input[type=date].yog-date").each(function(){if("date"!=this.type){var elem=jQuery(this);elem.datepicker({dateFormat:"dd-mm-yy"}),this.min&&elem.datepicker("option","minDate",this.min),this.max&&elem.datepicker("option","maxDate",this.max);var value=elem.val();if(-1!==value.indexOf("-")){var parts=value.split("-");3===parts.length&&4===parts[0].length&&elem.val(parts[2]+"-"+parts[1]+"-"+parts[0])}}}),jQuery("input[type=time].yog-time").each(function(){"time"!=this.type&&jQuery(this).change(function(event){var elem=event.currentTarget;elem.value.match(/^(?:0?\d|1[0-9]|2[0123]):([0-5]{0,1}[0-9]{1})$/)?jQuery(elem).removeClass("error"):jQuery(elem).addClass("error")})})}); -
yes-co-ores-wordpress-plugin/trunk/includes/classes/yog_fields_settings.php
r2165734 r2243950 265 265 'bedrijf_Huuropbrengst' => array( 'type' => 'priceBtw'), 266 266 'bedrijf_Type' => array( 'type' => 'select', 267 'options' => array('Bedrijfsruimte', 'Bouwgrond', 'Horeca', 'Kantoorruimte', 'Winkelruimte' ),267 'options' => array('Bedrijfsruimte', 'Bouwgrond', 'Horeca', 'Kantoorruimte', 'Winkelruimte', 'Garagebox', 'Leisure', 'Maatschappelijk vastgoed', 'Praktijkruimte', 'Verhard buitenterrein'), 268 268 'search' => 'exact'), 269 269 'bedrijf_Oppervlakte' => array( 'type' => 'oppervlakte', … … 465 465 'bedrijf_HorecaPrijsInventarisGoodwill' => array( 'title' => 'Prijs inventaris & goodwill', 466 466 'type' => 'priceBtw', 467 'object' => array('Horeca')) 467 'object' => array('Horeca')), 468 'bedrijf_PraktijkruimteOppervlakte' => array( 'title' => 'Oppervlakte', 469 'type' => 'oppervlakte', 470 'object' => array('Praktijkruimte')), 471 'bedrijf_PraktijkruimteInUnitsVanaf' => array( 'title' => 'In units vanaf', 472 'type' => 'oppervlakte', 473 'object' => array('Praktijkruimte')), 474 'bedrijf_GarageboxOppervlakte' => array( 'title' => 'Oppervlakte', 475 'type' => 'oppervlakte', 476 'object' => array('Garagebox')), 477 'bedrijf_GarageboxInUnitsVanaf' => array( 'title' => 'In units vanaf', 478 'type' => 'oppervlakte', 479 'object' => array('Garagebox')), 480 'bedrijf_LeisureOppervlakte' => array( 'title' => 'Oppervlakte', 481 'type' => 'oppervlakte', 482 'object' => array('Leisure')) 468 483 ); 469 484 } -
yes-co-ores-wordpress-plugin/trunk/includes/classes/yog_project_bog_translation.php
r2153645 r2243950 89 89 break; 90 90 } 91 91 92 92 // Determine a rental price to do calculations with (rental price calculated to a price per year) 93 93 if (!empty($data['HuurPrijs'])) … … 110 110 } 111 111 } 112 112 113 113 // Determine a rental min/max price to do calculations with (rental price calculated to a price per year) 114 114 if (!empty($data['HuurPrijsMin']) || !empty($data['HuurPrijsMax'])) … … 119 119 if (!empty($data['HuurPrijsMin'])) 120 120 $data['HuurPrijsMinPerJaar'] = $data['HuurPrijsMin'] * 12; 121 121 122 122 if (!empty($data['HuurPrijsMax'])) 123 123 $data['HuurPrijsMaxPerJaar'] = $data['HuurPrijsMax'] * 12; … … 137 137 if (!empty($data['HuurPrijsMin'])) 138 138 $data['HuurPrijsMinPerJaar'] = $data['HuurPrijsMin']; 139 139 140 140 if (!empty($data['HuurPrijsMax'])) 141 141 $data['HuurPrijsMaxPerJaar'] = $data['HuurPrijsMax']; … … 170 170 if (!empty($price)) 171 171 return $price; 172 172 173 173 $price = $this->mcp3Project->getStringByPath('//project:Details/project:Huur/project:PrijsVan'); 174 174 if (!empty($price)) 175 175 return $price; 176 176 177 177 $price = $this->mcp3Project->getStringByPath('//project:Details/project:Huur/project:PrijsTot'); 178 178 if (!empty($price)) 179 179 return $price; 180 180 181 181 return 0; 182 182 } … … 347 347 $address = $this->mcp3Project->getAddress(); 348 348 $addition = $address->getHouseNumberAddition(); 349 349 350 350 $data['Huisnummer'] = $address->getHouseNumber() . $addition; 351 351 $data['HuisnummerNumeriek'] = $address->getHouseNumber(); 352 352 353 353 if (!empty($addition)) 354 354 $data['HuisnummerToevoeging'] = $addition; … … 422 422 { 423 423 $data = array( 424 'GarageboxOppervlakte' => $this->mcp3Project->getIntByPath('//project:Details/project:G aragebox/project:Oppervlakte'),425 'Oppervlakte' => $this->mcp3Project->getIntByPath('//project:Details/project:G aragebox/project:Oppervlakte'),426 'GarageboxInUnitsVanaf' => $this->mcp3Project->getIntByPath('//project:Details/project:G aragebox/project:InUnitsVanaf'),427 'GarageboxVerdiepingenAantal' => $this->mcp3Project->getIntByPath('//project:Details/project:G aragebox/project:Verdiepingen/project:Aantal')424 'GarageboxOppervlakte' => $this->mcp3Project->getIntByPath('//project:Details/project:Gebouw/project:Garagebox/project:Oppervlakte'), 425 'Oppervlakte' => $this->mcp3Project->getIntByPath('//project:Details/project:Gebouw/project:Garagebox/project:Oppervlakte'), 426 'GarageboxInUnitsVanaf' => $this->mcp3Project->getIntByPath('//project:Details/project:Gebouw/project:Garagebox/project:InUnitsVanaf'), 427 'GarageboxVerdiepingenAantal' => $this->mcp3Project->getIntByPath('//project:Details/project:Gebouw/project:Garagebox/project:Verdiepingen/project:Aantal') 428 428 ); 429 429 … … 445 445 446 446 // Camping 447 if ($this->mcp3Project->hasNodeByXpath('//project:Details/project: Leisure/project:Camping'))447 if ($this->mcp3Project->hasNodeByXpath('//project:Details/project:Gebouw/project:Leisure/project:Camping')) 448 448 { 449 449 $data['LeisureType'] = 'Camping'; … … 453 453 } 454 454 // Bungalowpark 455 else if ($this->mcp3Project->hasNodeByXpath('//project:Details/project: Leisure/project:Bungalowpark'))455 else if ($this->mcp3Project->hasNodeByXpath('//project:Details/project:Gebouw/project:Leisure/project:Bungalowpark')) 456 456 { 457 457 $data['LeisureType'] = 'Bungalowpark'; … … 460 460 } 461 461 // Dagrecreatie 462 else if ($this->mcp3Project->hasNodeByXpath('//project:Details/project: Leisure/project:Dagrecreatie'))462 else if ($this->mcp3Project->hasNodeByXpath('//project:Details/project:Gebouw/project:Leisure/project:Dagrecreatie')) 463 463 { 464 464 $data['LeisureType'] = 'Dagrecreatie'; … … 467 467 } 468 468 // Wellness 469 else if ($this->mcp3Project->hasNodeByXpath('//project:Details/project: Leisure/project:Wellness'))469 else if ($this->mcp3Project->hasNodeByXpath('//project:Details/project:Gebouw/project:Leisure/project:Wellness')) 470 470 { 471 471 $data['LeisureType'] = 'Wellness'; … … 476 476 } 477 477 // Overige 478 else if ($this->mcp3Project->hasNodeByXpath('//project:Details/project: Leisure/project:Overige'))478 else if ($this->mcp3Project->hasNodeByXpath('//project:Details/project:Gebouw/project:Leisure/project:Overige')) 479 479 { 480 480 $data['LeisureType'] = 'Overige'; … … 501 501 502 502 // Zorg instelling 503 if ($this->mcp3Project->hasNodeByXpath('//project:Details/project: MaatschappelijkVastgoed/project:ZorgInstelling'))503 if ($this->mcp3Project->hasNodeByXpath('//project:Details/project:Gebouw/project:MaatschappelijkVastgoed/project:ZorgInstelling')) 504 504 { 505 505 $data['MaatschappelijkVastgoedType'] = 'Zorg instelling'; … … 512 512 } 513 513 // Sport instelling 514 else if ($this->mcp3Project->hasNodeByXpath('//project:Details/project: MaatschappelijkVastgoed/project:SportInstelling'))514 else if ($this->mcp3Project->hasNodeByXpath('//project:Details/project:Gebouw/project:MaatschappelijkVastgoed/project:SportInstelling')) 515 515 { 516 516 $data['MaatschappelijkVastgoedType'] = 'Sport instelling'; … … 518 518 } 519 519 // Culturele instelling 520 else if ($this->mcp3Project->hasNodeByXpath('//project:Details/project: MaatschappelijkVastgoed/project:CultureleInstelling'))520 else if ($this->mcp3Project->hasNodeByXpath('//project:Details/project:Gebouw/project:MaatschappelijkVastgoed/project:CultureleInstelling')) 521 521 { 522 522 $data['MaatschappelijkVastgoedType'] = 'Culturele instelling'; … … 524 524 } 525 525 // Religieuze instelling 526 else if ($this->mcp3Project->hasNodeByXpath('//project:Details/project: MaatschappelijkVastgoed/project:ReligieuzeInstelling'))526 else if ($this->mcp3Project->hasNodeByXpath('//project:Details/project:Gebouw/project:MaatschappelijkVastgoed/project:ReligieuzeInstelling')) 527 527 { 528 528 $data['MaatschappelijkVastgoedType'] = 'Religieuze instelling'; … … 530 530 } 531 531 // Onderwijs instelling 532 else if ($this->mcp3Project->hasNodeByXpath('//project:Details/project: MaatschappelijkVastgoed/project:OnderwijsInstelling'))532 else if ($this->mcp3Project->hasNodeByXpath('//project:Details/project:Gebouw/project:MaatschappelijkVastgoed/project:OnderwijsInstelling')) 533 533 { 534 534 $data['MaatschappelijkVastgoedType'] = 'Onderwijs instelling'; … … 551 551 { 552 552 $data = array( 553 'PraktijkruimteOppervlakte' => $this->mcp3Project->getIntByPath('//project:Details/project: Praktijkruimte/project:Oppervlakte'),554 'Oppervlakte' => $this->mcp3Project->getIntByPath('//project:Details/project: Praktijkruimte/project:Oppervlakte'),555 'PraktijkruimteInUnitsVanaf' => $this->mcp3Project->getIntByPath('//project:Details/project: Praktijkruimte/project:InUnitsVanaf'),556 'PraktijkruimteVerdiepingenAantal' => $this->mcp3Project->getIntByPath('//project:Details/project: Praktijkruimte/project:Verdiepingen/project:Aantal')553 'PraktijkruimteOppervlakte' => $this->mcp3Project->getIntByPath('//project:Details/project:Gebouw/project:Praktijkruimte/project:Oppervlakte'), 554 'Oppervlakte' => $this->mcp3Project->getIntByPath('//project:Details/project:Gebouw/project:Praktijkruimte/project:Oppervlakte'), 555 'PraktijkruimteInUnitsVanaf' => $this->mcp3Project->getIntByPath('//project:Details/project:Gebouw/project:Praktijkruimte/project:InUnitsVanaf'), 556 'PraktijkruimteVerdiepingenAantal' => $this->mcp3Project->getIntByPath('//project:Details/project:Gebouw/project:Praktijkruimte/project:Verdiepingen/project:Aantal') 557 557 ); 558 558 … … 589 589 $bedrijfshalOppervlakte = $this->mcp3Project->getIntByPath('//project:Gebouw/project:Bedrijfsruimte/project:Bedrijfshal/project:Oppervlakte'); 590 590 $kantoorOppervlakte = $this->mcp3Project->getIntByPath('//project:Gebouw/project:Bedrijfsruimte/project:Kantoorruimte/project:Oppervlakte'); 591 591 592 592 $totaleOppervlakte = 0; 593 593 594 594 if (!empty($bedrijfshalOppervlakte)) 595 595 $totaleOppervlakte += (int) $bedrijfshalOppervlakte; 596 596 597 597 if (!empty($kantoorOppervlakte)) 598 598 $totaleOppervlakte += (int) $kantoorOppervlakte; 599 599 600 600 $data = array( 601 601 'BedrijfshalOppervlakte' => $bedrijfshalOppervlakte, -
yes-co-ores-wordpress-plugin/trunk/includes/config/config.php
r2238953 r2243950 1 1 <?php 2 define('YOG_MCP3_VERSIONS', '1.6 ;1.5;1.4');2 define('YOG_MCP3_VERSIONS', '1.6'); 3 3 define('YOG_MCP3_FEED_URL', 'https://webservice.yes-co.com/3mcp/collection/%s/%s/feed/%s.xml'); 4 4 … … 21 21 define('YOG_POST_TYPE_ATTACHMENT', 'attachment'); 22 22 23 define('YOG_PLUGIN_VERSION', '1.3.6 2');23 define('YOG_PLUGIN_VERSION', '1.3.63'); 24 24 define('YOG_PLUGIN_DOJO_VERSION', '1.12.2'); // Old 1.9.3 25 25 ?> -
yes-co-ores-wordpress-plugin/trunk/package.json
r2238953 r2243950 1 1 { 2 2 "name": "yesco-ores", 3 "version": "1.3.6 2",3 "version": "1.3.63", 4 4 "devDependencies": { 5 5 "grunt": "~1.0.3", -
yes-co-ores-wordpress-plugin/trunk/readme.txt
r2238953 r2243950 4 4 Requires at least: 3.1 5 5 Tested up to: 5.2.4 6 Stable tag: 1.3.6 26 Stable tag: 1.3.63 7 7 8 8 Directly post real estate objects from your Yes-co system to your wordpress blog with the Yes-co Open Real Estate System (Yes-co ORES) Plugin. … … 88 88 89 89 == Changelog == 90 = 1.3.63 = 91 * Added: synchronisation for extra BOG fields (Praktijkruimte/Leisure/Maatschappelijk vastgoed/Garagebox/Verhard buitenterrein) 92 * Changed: removed support for 3mcp versions 1.5 and 1.4 (only supporting 3mcp 1.6) 90 93 = 1.3.62 = 91 94 * Added: option to set sortorder to relations -
yes-co-ores-wordpress-plugin/trunk/yesco-og.php
r2238953 r2243950 5 5 Text Domain: yes-co-ores-wordpress-plugin 6 6 Description: Publiceert uw onroerend goed op uw Wordpress Blog 7 Version: 1.3.6 27 Version: 1.3.63 8 8 Author: Yes-co 9 9 Author URI: https://www.yes-co.nl
Note: See TracChangeset
for help on using the changeset viewer.