Plugin Directory

Changeset 2243950


Ignore:
Timestamp:
02/13/2020 03:02:02 PM (6 years ago)
Author:
kees-brandenburg
Message:
  • Added: synchronisation for extra BOG fields (Praktijkruimte/Leisure/Maatschappelijk vastgoed/Garagebox/Verhard buitenterrein)
  • Changed: removed support for 3mcp versions 1.5 and 1.4 (only supporting 3mcp 1.6)
Location:
yes-co-ores-wordpress-plugin/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • yes-co-ores-wordpress-plugin/trunk/inc/js/admin_object.js

    r2128552 r2243950  
    284284      horecaVisible         = true;
    285285      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;
    286298  }
    287299
  • 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")})})});
     1function 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  
    265265        'bedrijf_Huuropbrengst'                             => array( 'type'      => 'priceBtw'),
    266266        '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'),
    268268                                                                      'search'    => 'exact'),
    269269        'bedrijf_Oppervlakte'                               => array( 'type'    => 'oppervlakte',
     
    465465        'bedrijf_HorecaPrijsInventarisGoodwill'             => array( 'title'     => 'Prijs inventaris & goodwill',
    466466                                                                      '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'))
    468483      );
    469484    }
  • yes-co-ores-wordpress-plugin/trunk/includes/classes/yog_project_bog_translation.php

    r2153645 r2243950  
    8989                    break;
    9090      }
    91            
     91
    9292            // Determine a rental price to do calculations with (rental price calculated to a price per year)
    9393            if (!empty($data['HuurPrijs']))
     
    110110                }
    111111            }
    112            
     112
    113113            // Determine a rental min/max price to do calculations with (rental price calculated to a price per year)
    114114            if (!empty($data['HuurPrijsMin']) || !empty($data['HuurPrijsMax']))
     
    119119                        if (!empty($data['HuurPrijsMin']))
    120120                            $data['HuurPrijsMinPerJaar'] = $data['HuurPrijsMin'] * 12;
    121                        
     121
    122122                        if (!empty($data['HuurPrijsMax']))
    123123                            $data['HuurPrijsMaxPerJaar'] = $data['HuurPrijsMax'] * 12;
     
    137137                            if (!empty($data['HuurPrijsMin']))
    138138                                $data['HuurPrijsMinPerJaar'] = $data['HuurPrijsMin'];
    139                            
     139
    140140                            if (!empty($data['HuurPrijsMax']))
    141141                                $data['HuurPrijsMaxPerJaar'] = $data['HuurPrijsMax'];
     
    170170      if (!empty($price))
    171171        return $price;
    172            
     172
    173173            $price = $this->mcp3Project->getStringByPath('//project:Details/project:Huur/project:PrijsVan');
    174174      if (!empty($price))
    175175        return $price;
    176            
     176
    177177            $price = $this->mcp3Project->getStringByPath('//project:Details/project:Huur/project:PrijsTot');
    178178      if (!empty($price))
    179179        return $price;
    180            
     180
    181181      return 0;
    182182    }
     
    347347        $address                                        = $this->mcp3Project->getAddress();
    348348                $addition                                       = $address->getHouseNumberAddition();
    349                
     349
    350350        $data['Huisnummer']                 = $address->getHouseNumber() . $addition;
    351351                $data['HuisnummerNumeriek'] = $address->getHouseNumber();
    352                
     352
    353353                if (!empty($addition))
    354354                    $data['HuisnummerToevoeging'] = $addition;
     
    422422        {
    423423      $data = array(
    424         'GarageboxOppervlakte'              => $this->mcp3Project->getIntByPath('//project:Details/project:Garagebox/project:Oppervlakte'),
    425         'Oppervlakte'                                   => $this->mcp3Project->getIntByPath('//project:Details/project:Garagebox/project:Oppervlakte'),
    426         'GarageboxInUnitsVanaf'             => $this->mcp3Project->getIntByPath('//project:Details/project:Garagebox/project:InUnitsVanaf'),
    427                 'GarageboxVerdiepingenAantal'   => $this->mcp3Project->getIntByPath('//project:Details/project:Garagebox/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')
    428428      );
    429429
     
    445445
    446446            // 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'))
    448448            {
    449449                $data['LeisureType']                                = 'Camping';
     
    453453            }
    454454            // 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'))
    456456            {
    457457                $data['LeisureType']                                = 'Bungalowpark';
     
    460460            }
    461461            // 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'))
    463463            {
    464464                $data['LeisureType']                                    = 'Dagrecreatie';
     
    467467            }
    468468            // 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'))
    470470            {
    471471                $data['LeisureType']                                    = 'Wellness';
     
    476476            }
    477477            // 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'))
    479479            {
    480480                $data['LeisureType']                                    = 'Overige';
     
    501501
    502502            // 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'))
    504504            {
    505505                $data['MaatschappelijkVastgoedType']                                        = 'Zorg instelling';
     
    512512            }
    513513            // 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'))
    515515            {
    516516                $data['MaatschappelijkVastgoedType']                                        = 'Sport instelling';
     
    518518            }
    519519            // 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'))
    521521            {
    522522                $data['MaatschappelijkVastgoedType']                                        = 'Culturele instelling';
     
    524524            }
    525525            // 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'))
    527527            {
    528528                $data['MaatschappelijkVastgoedType']                                        = 'Religieuze instelling';
     
    530530            }
    531531            // 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'))
    533533            {
    534534                $data['MaatschappelijkVastgoedType']                                        = 'Onderwijs instelling';
     
    551551        {
    552552      $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')
    557557      );
    558558
     
    589589            $bedrijfshalOppervlakte = $this->mcp3Project->getIntByPath('//project:Gebouw/project:Bedrijfsruimte/project:Bedrijfshal/project:Oppervlakte');
    590590            $kantoorOppervlakte         = $this->mcp3Project->getIntByPath('//project:Gebouw/project:Bedrijfsruimte/project:Kantoorruimte/project:Oppervlakte');
    591            
     591
    592592            $totaleOppervlakte          = 0;
    593            
     593
    594594            if (!empty($bedrijfshalOppervlakte))
    595595                $totaleOppervlakte += (int) $bedrijfshalOppervlakte;
    596            
     596
    597597            if (!empty($kantoorOppervlakte))
    598598                $totaleOppervlakte += (int) $kantoorOppervlakte;
    599            
     599
    600600      $data = array(
    601601        'BedrijfshalOppervlakte'          => $bedrijfshalOppervlakte,
  • yes-co-ores-wordpress-plugin/trunk/includes/config/config.php

    r2238953 r2243950  
    11<?php
    2   define('YOG_MCP3_VERSIONS',       '1.6;1.5;1.4');
     2  define('YOG_MCP3_VERSIONS',       '1.6');
    33  define('YOG_MCP3_FEED_URL',       'https://webservice.yes-co.com/3mcp/collection/%s/%s/feed/%s.xml');
    44
     
    2121  define('YOG_POST_TYPE_ATTACHMENT',    'attachment');
    2222
    23   define('YOG_PLUGIN_VERSION',      '1.3.62');
     23  define('YOG_PLUGIN_VERSION',      '1.3.63');
    2424  define('YOG_PLUGIN_DOJO_VERSION', '1.12.2'); // Old 1.9.3
    2525?>
  • yes-co-ores-wordpress-plugin/trunk/package.json

    r2238953 r2243950  
    11{
    22    "name": "yesco-ores",
    3     "version": "1.3.62",
     3    "version": "1.3.63",
    44    "devDependencies": {
    55        "grunt": "~1.0.3",
  • yes-co-ores-wordpress-plugin/trunk/readme.txt

    r2238953 r2243950  
    44Requires at least: 3.1
    55Tested up to: 5.2.4
    6 Stable tag: 1.3.62
     6Stable tag: 1.3.63
    77
    88Directly 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.
     
    8888
    8989== 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)
    9093= 1.3.62 =
    9194* Added: option to set sortorder to relations
  • yes-co-ores-wordpress-plugin/trunk/yesco-og.php

    r2238953 r2243950  
    55  Text Domain: yes-co-ores-wordpress-plugin
    66  Description: Publiceert uw onroerend goed op uw Wordpress Blog
    7   Version: 1.3.62
     7  Version: 1.3.63
    88  Author: Yes-co
    99  Author URI: https://www.yes-co.nl
Note: See TracChangeset for help on using the changeset viewer.