{"id":970,"date":"2019-05-13T22:13:25","date_gmt":"2019-05-13T22:13:25","guid":{"rendered":"https:\/\/sunandgolfproperties.com\/?page_id=970"},"modified":"2019-06-27T12:22:10","modified_gmt":"2019-06-27T12:22:10","slug":"favourites","status":"publish","type":"page","link":"https:\/\/sunandgolfproperties.com\/en\/favourites\/","title":{"rendered":"Favourites"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; fullwidth=&#8221;on&#8221; _builder_version=&#8221;3.22.7&#8243;][et_pb_fullwidth_header title=&#8221;FAVOURITES&#8221; subhead=&#8221;Send your favourite properties!&#8221; button_one_url=&#8221;#&#8221; button_two_url=&#8221;#&#8221; _builder_version=&#8221;3.22.7&#8243; background_image=&#8221;https:\/\/sunandgolfproperties.com\/wp-content\/uploads\/2019\/05\/villapng.png&#8221; parallax=&#8221;on&#8221; child_filter_brightness=&#8221;46%&#8221;]<\/p>\n<div style=\"float: left;\">\n<div style=\"float: left;\"><a id=\"botonenviar\" class=\"et_pb_button et_pb_more_button et_pb_button_one\" href=\"#\">Send to a friend<\/a> \u00a0\u00a0 <a id=\"botonborrartodo\" class=\"et_pb_button et_pb_more_button et_pb_button_one\" href=\"#\">Remove All<\/a><\/div>\n<p><!--<\/p>\n\n\n\n\n<div style=\"float: left; padding-left: 10px;\"><a id=\"botonimprimirtodas\" class=\"et_pb_button et_pb_more_button et_pb_button_one\" href=\"#\">Print all<\/a><\/div>\n\n\n\n\n<p>--><\/p>\n<\/div>\n<p>[\/et_pb_fullwidth_header][\/et_pb_section][et_pb_section fb_built=&#8221;1&#8243; admin_label=&#8221;section&#8221; _builder_version=&#8221;3.22.3&#8243;][et_pb_row admin_label=&#8221;row&#8221; _builder_version=&#8221;3.22.3&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;3.0.47&#8243;][et_pb_code _builder_version=&#8221;3.22.7&#8243;]<style>\n\n                    .prop-list .prop-item {\n                        position: relative;\n                        border-bottom: solid 1px #eee;\n                        padding-bottom: 30px !important;\n                        margin-bottom: 30px !important;\n                    }\n\n                    .prop-list .prop-item img {\n                        width: 100%;\n                        height: auto;\n                        margin: 0;\n                        padding: 0;\n                    }\n\n                    .prop-list .prop-item .desc p {\n                        padding-top: 50px;\n                        font-size: .875rem;\n                    }\n\n                    .prop-list .prop-item .desc h2 { color: #80006F; }\n\n                    .prop-list .prop-item .price {\n                        padding-bottom: 20px;\n                        line-height: 35px;\n                    }\n                    .price {\n                        font-size: 26px;\n                        color: #333;\n                        font-family: \"Nunito Sans\",sans-serif;\n                    }\n\n                    .prop-list .prop-item .prop-specs ul li {\n                        list-style: none;\n                        border-bottom: solid 1px #ddd;\n                        padding-bottom: 5px;\n                        margin-bottom: 5px;\n                        font-size: .875rem;\n                    }\n\n                    .prop-list .col-lg-6 { float: left; }\n                    .image .card-img-top { height: 330px;}\n                    .card { margin-bottom: 10px !important; padding-bottom:15px; max-height: 645px;}\n                    .card-text { padding-left:10px;padding-right:10px; text-align: justify;}\n                    .btn-lila{  background-color: #80006F; border-color: #80006F; } \n                    .btn-lila:hover {  background-color: #48003e; border-color: #48003e; }\n                    .list-group-item { padding: 0px; }\n                    .desc .card-title{ margin: 5px; }\n                    .txtChico { font-size: 12px; }\n                    .txtChico .pull-right { float:right; }\n\n                    .laclase {\n                        padding-left: 5px;\n                        text-align: right;\n                    }\n\n                    .card {\n                        -webkit-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);\n                        transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);\n                    }\n\n                    .card:hover {\n                        box-shadow: 0 1px 15px rgba(0,0,0,0.3);\n                        transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);\n                        -webkit-transform: scale(1.015, 1.015);\n                        transform: scale(1.015, 1.015);\n                    }\n\n                    .card:after {\n                        -webkit-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);\n                        transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);\n                    }\n\n                    .modal-header  {  background-color: #48003e; }\n                    .modal-title { color: #FFFF; }\n                    #myModalEnviar {margin-top: 50px;}\n\n            <\/style><div class=\"prop-list\">\n\n            <!--MODAL -->\n\n            <div id=\"myModalEnviar\" class=\"modal\" tabindex=\"-1\" role=\"dialog\">\n            <div class=\"modal-dialog\" role=\"document\">\n              <div class=\"modal-content\">\n                <div class=\"modal-header\">\n                  <h5 class=\"modal-title\">Send your favorites<\/h5>\n                  <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n                    <span aria-hidden=\"true\">&times;<\/span>\n                  <\/button>\n                <\/div>\n                <div class=\"modal-body\">\n\n                    <form class=\"form\" id=\"form-5cf5834272adc\" action=\"https:\/\/sunandgolfproperties.com\/wp-content\/plugins\/resales-master\/scripts\/enviar_mail.php\">\n                        <div class=\"form-horizontal\">                <!--emails-->\n                            <div class=\"form-group\">\n                                <div class=\"col-md-12\">\n                                    <input type=\"email\" name=\"email\" class=\"form-control\" placeholder=\"Your email\" required>\n                                <\/div>\n                            <\/div>\n                            <!--name-->\n                            <div class=\"form-group\">\n                                <div class=\"col-md-12\">\n                                    <input type=\"text\" name=\"name\" class=\"form-control\" placeholder=\"Your name\" required>\n                                <\/div>\n                            <\/div>\n                            <!--phone-->\n                            <div class=\"form-group\">\n                                <div class=\"col-md-12\">\n                                    <input type=\"tel\" name=\"phone\" class=\"form-control\" placeholder=\"Your Phone\" >\n                                <\/div>\n                            <\/div>\n                            <div class=\"form-group\">\n                                <div class=\"col-md-12\">\n                                    <input type=\"email\" name=\"emailfriend\" class=\"form-control\" placeholder=\"Email to your friend\" required>\n                                <\/div>\n                            <\/div>\n                            <!--name-->\n                            <div class=\"form-group\">\n                                <div class=\"col-md-12\">\n                                    <input type=\"text\" name=\"namefriend\" class=\"form-control\" placeholder=\"Name to your friend\" required>\n                                <\/div>\n                            <\/div>\n                            <!--message-->\n                            <div class=\"form-group\">\n                                <div class=\"col-md-12\">\n                                    <textarea name=\"message\" cols=\"5\" rows=\"5\" class=\"form-control\" placeholder=\"Message\"><\/textarea>\n                                <\/div>\n                            <\/div>    \n\n                            <div class=\"form-group\">\n                                <div class=\"col-md-12\">\n                                    <input type=\"checkbox\" name=\"rgdp\" value=\"rgdp\" required > I agree with the Sun and Golf Properties privacy clause and the data protection rules\n                                <\/div>\n                            <\/div>\n\n\n                <\/div>\n                    \n\n                  <p>0 Properties selected<\/p>\n                <\/div>\n                <div class=\"modal-footer\">\n\n                    <input type=\"hidden\" name=\"lang\" value=\"en\">\n                    <input type=\"hidden\" name=\"action\" value=\"process_form\">\n                    <input type=\"hidden\" name=\"nombre_usuario\" value=\"\">\n                    <input type=\"hidden\" name=\"telefono_usuario\" value=\"\">\n                    <input type=\"hidden\" name=\"mail_usuario\" value=\"\">\n\n\n                  <button type=\"submit\" class=\"btn btn-primary btn-lila\" >Send<\/button>\n                  <button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">Close<\/button>\n                <\/div>\n                <\/form>\n              <\/div>\n            <\/div>\n          <\/div>\n\n\n\n         \n        <script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/js-cookie\/2.0.1\/js.cookie.js\"><\/script>\n        <script>\n\n            (function ($,window,document,undefined){\n\n                $(document).ready(function(){\n                    \n                    !function(n,o,e){\"use strict\";e(\".modal\").appendTo(\"body\"),e(\"#onshowbtn\").on(\"click\",function(){e(\"#onshow\").on(\"show.bs.modal\",function(){alert(\"onShow event fired.\")})}),e(\"#onshownbtn\").on(\"click\",function(){e(\"#onshown\").on(\"shown.bs.modal\",function(){alert(\"onShown event fired.\")})}),e(\"#onhidebtn\").on(\"click\",function(){e(\"#onhide\").on(\"hide.bs.modal\",function(){alert(\"onHide event fired.\")})}),e(\"#onhiddenbtn\").on(\"click\",function(){e(\"#onhidden\").on(\"hidden.bs.modal\",function(){alert(\"onHidden event fired.\")})})}(window,document,jQuery);\n\n\n                    if(typeof(Cookies.get(\"shortlist\"))!=\"undefined\"&&Cookies.get(\"shortlist\")!=\"\"){\n                        jQuery(\"#fav_contador\").html(Cookies.get(\"shortlist\").split(\",\").length);\n                    }else{jQuery(\"#fav_contador\").html(\"0\");}\n\n                    \n                    $(\"#botonimprimirtodas\").click(function(){\n\n                        alert(\"Imprimir todas las fichas\");\n\n                    });\n\n                    $(\"#botonborrartodo\").click(function(){\n                        Cookies.set(\"shortlist\", \"\", {\n                            expires: 7\n                          });\n                          Cookies.set(\"shortlistrentshort\", \"\", {\n                            expires: 7\n                          });\n                          Cookies.set(\"shortlistrentlarge\", \"\", {\n                            expires: 7\n                          });\n                          location.reload();\n\n                    });\n                    \n\n                    $(\"#botonenviar\").click(function(){\n                        $(\"#myModalEnviar\").modal();\n                    });\n\n\n\n                    $(\"#CerrarModalEnviar\").click(function(){\n\n                        \/\/event.preventDefault();\n\n                        \/\/ envio el mail\n                        var email = $(\"input[name=email]\").val();\n                        var name = $(\"input[name=name]\").val();\n                        var phone = $(\"input[name=phone]\").val();\n                        var mensaje = $(\"textarea[name=message]\").val();\n\n                        var form_data = jQuery( this ).serializeArray();\n     \n                        \n                                            \n\n                        var datos = \"nombre=\"+ name + \"&email=\" + email + \"&mensaje=\" + mensaje + \"&phone=\" + phone;\n                        \n                        \n                         $.ajax({\n                                type: \"POST\",\n                                url: \"https:\/\/sun.benalvillas.com\/wp-content\/plugins\/resales-master\/scripts\/envio.php\",\n                                data: datos,\n                                success: function(response){\n                                    $(\".modal:visible\").modal(\"toggle\");\n                                },\n                                error: function (response) {\n                                    console.log(response);       \n                                }\n                            });\n                        \n                          \n\n\n                            return false;\n\n\n                        $(\".modal:visible\").modal(\"toggle\");\n\n                    });\n\n\n\n                    $(\".add_to_shortlist\").click(function(){\n                   \n                        var shortlistrentlarge = Cookies.get(\"shortlistrentlarge\");\n                        var shortlistrentshort = Cookies.get(\"shortlistrentshort\");\n                        var shortlist = Cookies.get(\"shortlist\");\n\n                        \n                        if (typeof(shortlist) != \"undefined\" && shortlist !== null && shortlist !== \"\") {\n                      \n                          var ref = jQuery(this).data(\"ref\");\n                          shortlist = Cookies.get(\"shortlist\").split(\",\");\n                      \n\n                          if (jQuery.inArray(ref, shortlist) != -1) {\n                            shortlist.splice(jQuery.inArray(ref, shortlist), 1);\n                            jQuery(this).html(jQuery(this).data(\"label-add\"));\n                            jQuery(this).closest(\".removable\").remove();\n                          } else {\n                            shortlist.push(ref);\n                            jQuery(this).html(jQuery(this).data(\"label-remove\"));\n                          }\n                          shortlist = shortlist.join(\",\");\n                      \n                        } else {\n                          shortlist = jQuery(this).data(\"ref\");\n                          jQuery(this).html(jQuery(this).data(\"label-remove\"));\n                        }\n                      \n                        Cookies.set(\"shortlist_status\", jQuery(this).data(\"status\"), {\n                          expires: 7\n                        });\n                        Cookies.set(\"shortlist\", shortlist, {\n                          expires: 7\n                        });\n                      \n                        \n                         var shortlistCount = 0;\n                            if (typeof(shortlist) != \"undefined\" && shortlist !== null && shortlist !== \"\"){\n                                shortlistCount += shortlist.split(\",\").length;\n                            }\n                            if (typeof(shortlistrentlarge) != \"undefined\" && shortlistrentlarge !== null && shortlistrentlarge !== \"\"){\n                              shortlistCount += shortlistrentlarge.split(\",\").length;\n                            }\n                            if  (typeof(shortlistrentshort) != \"undefined\" && shortlistrentshort !== null && shortlistrentshort !== \"\"){\n                              shortlistCount += shortlistrentshort.split(\",\").length;\n                            }\n                      \n                        jQuery(\".fav_contador\").html(shortlistCount);\n                        jQuery(parent.document).find(\".fav_contador\").html(shortlistCount);\n\n\n                    });\n\n                    $(\".add_to_shortlistrentshort\").click(function(){\n                   \n                        var shortlistrentlarge = Cookies.get(\"shortlistrentlarge\");\n                        var shortlistrentshort = Cookies.get(\"shortlistrentshort\");\n                        var shortlist = Cookies.get(\"shortlist\");\n\n\n                        var ref = jQuery(this).data(\"ref\");\n                        shortlistrentshort = Cookies.get(\"shortlistrentshort\").split(\",\");\n                      \n\n                        if (jQuery.inArray(ref, shortlistrentshort) != -1) {\n                          shortlistrentshort.splice(jQuery.inArray(ref, shortlistrentshort), 1);\n                          \n                          jQuery(this).html(jQuery(this).data(\"label-add\"));\n                          jQuery(this).closest(\".removable\").remove();\n                        }\n                        shortlistrentshort = shortlistrentshort.join(\",\");\n                        \n                      \n                        Cookies.set(\"shortlist_status\", jQuery(this).data(\"status\"), {\n                          expires: 7\n                        });\n                        Cookies.set(\"shortlistrentshort\", shortlistrentshort, {\n                          expires: 7\n                        });\n                      \n                        \n                        var shortlistCount = 0;\n                        if (typeof(shortlist) != \"undefined\" && shortlist !== null && shortlist !== \"\"){\n                            shortlistCount += shortlist.split(\",\").length;\n                        }\n                        if (typeof(shortlistrentlarge) != \"undefined\" && shortlistrentlarge !== null && shortlistrentlarge !== \"\"){\n                          shortlistCount += shortlistrentlarge.split(\",\").length;\n                        }\n                        if  (typeof(shortlistrentshort) != \"undefined\" && shortlistrentshort !== null && shortlistrentshort !== \"\"){\n                          shortlistCount += shortlistrentshort.split(\",\").length;\n                        }\n                      \n                        jQuery(\".fav_contador\").html(shortlistCount);\n                        jQuery(parent.document).find(\".fav_contador\").html(shortlistCount);\n\n\n                    });\n\n\n                    $(\".add_to_shortlistrentlarge\").click(function(){\n                   \n                        var shortlistrentlarge = Cookies.get(\"shortlistrentlarge\");\n                        var shortlistrentshort = Cookies.get(\"shortlistrentshort\");\n                        var shortlist = Cookies.get(\"shortlist\");\n\n                        \n                        var ref = jQuery(this).data(\"ref\");\n                        shortlistrentlarge = Cookies.get(\"shortlistrentlarge\").split(\",\");\n                        if (jQuery.inArray(ref, shortlistrentlarge) != -1) {\n                            shortlistrentlarge.splice(jQuery.inArray(ref, shortlistrentlarge), 1);\n                            jQuery(this).html(jQuery(this).data(\"label-add\"));\n                            jQuery(this).closest(\".removable\").remove();\n                        }\n                        shortlistrentlarge = shortlistrentlarge.join(\",\");\n                      \n                        Cookies.set(\"shortlist_status\", jQuery(this).data(\"status\"), {\n                          expires: 7\n                        });\n                        Cookies.set(\"shortlistrentlarge\", shortlistrentlarge, {\n                          expires: 7\n                        });\n                      \n                        \n\n\n\n                       var shortlistCount = 0;\n                        if (typeof(shortlist) != \"undefined\" && shortlist !== null && shortlist !== \"\"){\n                            shortlistCount += shortlist.split(\",\").length;\n                        }\n                        if (typeof(shortlistrentlarge) != \"undefined\" && shortlistrentlarge !== null && shortlistrentlarge !== \"\"){\n                          shortlistCount += shortlistrentlarge.split(\",\").length;\n                        }\n                        if  (typeof(shortlistrentshort) != \"undefined\" && shortlistrentshort !== null && shortlistrentshort !== \"\"){\n                          shortlistCount += shortlistrentshort.split(\",\").length;\n                        }\n                      \n                        jQuery(\".fav_contador\").html(shortlistCount);\n                        jQuery(parent.document).find(\".fav_contador\").html(shortlistCount);\n\n\n                    });\n\n\n\n                });\n                  \n\n                 \n\n            })(jQuery,window,document)\n                               \n        <\/script>\n[\/et_pb_code][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Send to a friend \u00a0\u00a0 Remove All <style>\n\n                    .prop-list .prop-item {\n                        position: relative;\n                        border-bottom: solid 1px #eee;\n                        padding-bottom: 30px !important;\n                        margin-bottom: 30px !important;\n                    }\n\n                    .prop-list .prop-item img {\n                        width: 100%;\n                        height: auto;\n                        margin: 0;\n                        padding: 0;\n                    }\n\n                    .prop-list .prop-item .desc p {\n                        padding-top: 50px;\n                        font-size: .875rem;\n                    }\n\n                    .prop-list .prop-item .desc h2 { color: #80006F; }\n\n                    .prop-list .prop-item .price {\n                        padding-bottom: 20px;\n                        line-height: 35px;\n                    }\n                    .price {\n                        font-size: 26px;\n                        color: #333;\n                        font-family: \"Nunito Sans\",sans-serif;\n                    }\n\n                    .prop-list .prop-item .prop-specs ul li {\n                        list-style: none;\n                        border-bottom: solid 1px #ddd;\n                        padding-bottom: 5px;\n                        margin-bottom: 5px;\n                        font-size: .875rem;\n                    }\n\n                    .prop-list .col-lg-6 { float: left; }\n                    .image .card-img-top { height: 330px;}\n                    .card { margin-bottom: 10px !important; padding-bottom:15px; max-height: 645px;}\n                    .card-text { padding-left:10px;padding-right:10px; text-align: justify;}\n                    .btn-lila{  background-color: #80006F; border-color: #80006F; } \n                    .btn-lila:hover {  background-color: #48003e; border-color: #48003e; }\n                    .list-group-item { padding: 0px; }\n                    .desc .card-title{ margin: 5px; }\n                    .txtChico { font-size: 12px; }\n                    .txtChico .pull-right { float:right; }\n\n                    .laclase {\n                        padding-left: 5px;\n                        text-align: right;\n                    }\n\n                    .card {\n                        -webkit-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);\n                        transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);\n                    }\n\n                    .card:hover {\n                        box-shadow: 0 1px 15px rgba(0,0,0,0.3);\n                        transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);\n                        -webkit-transform: scale(1.015, 1.015);\n                        transform: scale(1.015, 1.015);\n                    }\n\n                    .card:after {\n                        -webkit-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);\n                        transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);\n                    }\n\n                    .modal-header  {  background-color: #48003e; }\n                    .modal-title { color: #FFFF; }\n                    #myModalEnviar {margin-top: 50px;}\n\n            <\/style><div class=\"prop-list\">\n\n            <!--MODAL -->\n\n            <div id=\"myModalEnviar\" class=\"modal\" tabindex=\"-1\" role=\"dialog\">\n            <div class=\"modal-dialog\" role=\"document\">\n              <div class=\"modal-content\">\n                <div class=\"modal-header\">\n                  <h5 class=\"modal-title\">Send your favorites<\/h5>\n                  <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n                    <span aria-hidden=\"true\">&times;<\/span>\n                  <\/button>\n                <\/div>\n                <div class=\"modal-body\">\n\n                    <form class=\"form\" id=\"form-5cf5834272adc\" action=\"https:\/\/sunandgolfproperties.com\/wp-content\/plugins\/resales-master\/scripts\/enviar_mail.php\">\n                        <div class=\"form-horizontal\">                <!--emails-->\n                            <div class=\"form-group\">\n                                <div class=\"col-md-12\">\n                                    <input type=\"email\" name=\"email\" class=\"form-control\" placeholder=\"Your email\" required>\n                                <\/div>\n                            <\/div>\n                            <!--name-->\n                            <div class=\"form-group\">\n                                <div class=\"col-md-12\">\n                                    <input type=\"text\" name=\"name\" class=\"form-control\" placeholder=\"Your name\" required>\n                                <\/div>\n                            <\/div>\n                            <!--phone-->\n                            <div class=\"form-group\">\n                                <div class=\"col-md-12\">\n                                    <input type=\"tel\" name=\"phone\" class=\"form-control\" placeholder=\"Your Phone\" >\n                                <\/div>\n                            <\/div>\n                            <div class=\"form-group\">\n                                <div class=\"col-md-12\">\n                                    <input type=\"email\" name=\"emailfriend\" class=\"form-control\" placeholder=\"Email to your friend\" required>\n                                <\/div>\n                            <\/div>\n                            <!--name-->\n                            <div class=\"form-group\">\n                                <div class=\"col-md-12\">\n                                    <input type=\"text\" name=\"namefriend\" class=\"form-control\" placeholder=\"Name to your friend\" required>\n                                <\/div>\n                            <\/div>\n                            <!--message-->\n                            <div class=\"form-group\">\n                                <div class=\"col-md-12\">\n                                    <textarea name=\"message\" cols=\"5\" rows=\"5\" class=\"form-control\" placeholder=\"Message\"><\/textarea>\n                                <\/div>\n                            <\/div>    \n\n                            <div class=\"form-group\">\n                                <div class=\"col-md-12\">\n                                    <input type=\"checkbox\" name=\"rgdp\" value=\"rgdp\" required > I agree with the Sun and Golf Properties privacy clause and the data protection rules\n                                <\/div>\n                            <\/div>\n\n\n                <\/div>\n                    \n\n                  <p>0 Properties selected<\/p>\n                <\/div>\n                <div class=\"modal-footer\">\n\n                    <input type=\"hidden\" name=\"lang\" value=\"en\">\n                    <input type=\"hidden\" name=\"action\" value=\"process_form\">\n                    <input type=\"hidden\" name=\"nombre_usuario\" value=\"\">\n                    <input type=\"hidden\" name=\"telefono_usuario\" value=\"\">\n                    <input type=\"hidden\" name=\"mail_usuario\" value=\"\">\n\n\n                  <button type=\"submit\" class=\"btn btn-primary btn-lila\" >Send<\/button>\n                  <button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">Close<\/button>\n                <\/div>\n                <\/form>\n              <\/div>\n            <\/div>\n          <\/div>\n\n\n\n         \n        <script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/js-cookie\/2.0.1\/js.cookie.js\"><\/script>\n        <script>\n\n            (function ($,window,document,undefined){\n\n                $(document).ready(function(){\n                    \n                    !function(n,o,e){\"use strict\";e(\".modal\").appendTo(\"body\"),e(\"#onshowbtn\").on(\"click\",function(){e(\"#onshow\").on(\"show.bs.modal\",function(){alert(\"onShow event fired.\")})}),e(\"#onshownbtn\").on(\"click\",function(){e(\"#onshown\").on(\"shown.bs.modal\",function(){alert(\"onShown event fired.\")})}),e(\"#onhidebtn\").on(\"click\",function(){e(\"#onhide\").on(\"hide.bs.modal\",function(){alert(\"onHide event fired.\")})}),e(\"#onhiddenbtn\").on(\"click\",function(){e(\"#onhidden\").on(\"hidden.bs.modal\",function(){alert(\"onHidden event fired.\")})})}(window,document,jQuery);\n\n\n                    if(typeof(Cookies.get(\"shortlist\"))!=\"undefined\"&&Cookies.get(\"shortlist\")!=\"\"){\n                        jQuery(\"#fav_contador\").html(Cookies.get(\"shortlist\").split(\",\").length);\n                    }else{jQuery(\"#fav_contador\").html(\"0\");}\n\n                    \n                    $(\"#botonimprimirtodas\").click(function(){\n\n                        alert(\"Imprimir todas las fichas\");\n\n                    });\n\n                    $(\"#botonborrartodo\").click(function(){\n                        Cookies.set(\"shortlist\", \"\", {\n                            expires: 7\n                          });\n                          Cookies.set(\"shortlistrentshort\", \"\", {\n                            expires: 7\n                          });\n                          Cookies.set(\"shortlistrentlarge\", \"\", {\n                            expires: 7\n                          });\n                          location.reload();\n\n                    });\n                    \n\n                    $(\"#botonenviar\").click(function(){\n                        $(\"#myModalEnviar\").modal();\n                    });\n\n\n\n                    $(\"#CerrarModalEnviar\").click(function(){\n\n                        \/\/event.preventDefault();\n\n                        \/\/ envio el mail\n                        var email = $(\"input[name=email]\").val();\n                        var name = $(\"input[name=name]\").val();\n                        var phone = $(\"input[name=phone]\").val();\n                        var mensaje = $(\"textarea[name=message]\").val();\n\n                        var form_data = jQuery( this ).serializeArray();\n     \n                        \n                                            \n\n                        var datos = \"nombre=\"+ name + \"&email=\" + email + \"&mensaje=\" + mensaje + \"&phone=\" + phone;\n                        \n                        \n                         $.ajax({\n                                type: \"POST\",\n                                url: \"https:\/\/sun.benalvillas.com\/wp-content\/plugins\/resales-master\/scripts\/envio.php\",\n                                data: datos,\n                                success: function(response){\n                                    $(\".modal:visible\").modal(\"toggle\");\n                                },\n                                error: function (response) {\n                                    console.log(response);       \n                                }\n                            });\n                        \n                          \n\n\n                            return false;\n\n\n                        $(\".modal:visible\").modal(\"toggle\");\n\n                    });\n\n\n\n                    $(\".add_to_shortlist\").click(function(){\n                   \n                        var shortlistrentlarge = Cookies.get(\"shortlistrentlarge\");\n                        var shortlistrentshort = Cookies.get(\"shortlistrentshort\");\n                        var shortlist = Cookies.get(\"shortlist\");\n\n                        \n                        if (typeof(shortlist) != \"undefined\" && shortlist !== null && shortlist !== \"\") {\n                      \n                          var ref = jQuery(this).data(\"ref\");\n                          shortlist = Cookies.get(\"shortlist\").split(\",\");\n                      \n\n                          if (jQuery.inArray(ref, shortlist) != -1) {\n                            shortlist.splice(jQuery.inArray(ref, shortlist), 1);\n                            jQuery(this).html(jQuery(this).data(\"label-add\"));\n                            jQuery(this).closest(\".removable\").remove();\n                          } else {\n                            shortlist.push(ref);\n                            jQuery(this).html(jQuery(this).data(\"label-remove\"));\n                          }\n                          shortlist = shortlist.join(\",\");\n                      \n                        } else {\n                          shortlist = jQuery(this).data(\"ref\");\n                          jQuery(this).html(jQuery(this).data(\"label-remove\"));\n                        }\n                      \n                        Cookies.set(\"shortlist_status\", jQuery(this).data(\"status\"), {\n                          expires: 7\n                        });\n                        Cookies.set(\"shortlist\", shortlist, {\n                          expires: 7\n                        });\n                      \n                        \n                         var shortlistCount = 0;\n                            if (typeof(shortlist) != \"undefined\" && shortlist !== null && shortlist !== \"\"){\n                                shortlistCount += shortlist.split(\",\").length;\n                            }\n                            if (typeof(shortlistrentlarge) != \"undefined\" && shortlistrentlarge !== null && shortlistrentlarge !== \"\"){\n                              shortlistCount += shortlistrentlarge.split(\",\").length;\n                            }\n                            if  (typeof(shortlistrentshort) != \"undefined\" && shortlistrentshort !== null && shortlistrentshort !== \"\"){\n                              shortlistCount += shortlistrentshort.split(\",\").length;\n                            }\n                      \n                        jQuery(\".fav_contador\").html(shortlistCount);\n                        jQuery(parent.document).find(\".fav_contador\").html(shortlistCount);\n\n\n                    });\n\n                    $(\".add_to_shortlistrentshort\").click(function(){\n                   \n                        var shortlistrentlarge = Cookies.get(\"shortlistrentlarge\");\n                        var shortlistrentshort = Cookies.get(\"shortlistrentshort\");\n                        var shortlist = Cookies.get(\"shortlist\");\n\n\n                        var ref = jQuery(this).data(\"ref\");\n                        shortlistrentshort = Cookies.get(\"shortlistrentshort\").split(\",\");\n                      \n\n                        if (jQuery.inArray(ref, shortlistrentshort) != -1) {\n                          shortlistrentshort.splice(jQuery.inArray(ref, shortlistrentshort), 1);\n                          \n                          jQuery(this).html(jQuery(this).data(\"label-add\"));\n                          jQuery(this).closest(\".removable\").remove();\n                        }\n                        shortlistrentshort = shortlistrentshort.join(\",\");\n                        \n                      \n                        Cookies.set(\"shortlist_status\", jQuery(this).data(\"status\"), {\n                          expires: 7\n                        });\n                        Cookies.set(\"shortlistrentshort\", shortlistrentshort, {\n                          expires: 7\n                        });\n                      \n                        \n                        var shortlistCount = 0;\n                        if (typeof(shortlist) != \"undefined\" && shortlist !== null && shortlist !== \"\"){\n                            shortlistCount += shortlist.split(\",\").length;\n                        }\n                        if (typeof(shortlistrentlarge) != \"undefined\" && shortlistrentlarge !== null && shortlistrentlarge !== \"\"){\n                          shortlistCount += shortlistrentlarge.split(\",\").length;\n                        }\n                        if  (typeof(shortlistrentshort) != \"undefined\" && shortlistrentshort !== null && shortlistrentshort !== \"\"){\n                          shortlistCount += shortlistrentshort.split(\",\").length;\n                        }\n                      \n                        jQuery(\".fav_contador\").html(shortlistCount);\n                        jQuery(parent.document).find(\".fav_contador\").html(shortlistCount);\n\n\n                    });\n\n\n                    $(\".add_to_shortlistrentlarge\").click(function(){\n                   \n                        var shortlistrentlarge = Cookies.get(\"shortlistrentlarge\");\n                        var shortlistrentshort = Cookies.get(\"shortlistrentshort\");\n                        var shortlist = Cookies.get(\"shortlist\");\n\n                        \n                        var ref = jQuery(this).data(\"ref\");\n                        shortlistrentlarge = Cookies.get(\"shortlistrentlarge\").split(\",\");\n                        if (jQuery.inArray(ref, shortlistrentlarge) != -1) {\n                            shortlistrentlarge.splice(jQuery.inArray(ref, shortlistrentlarge), 1);\n                            jQuery(this).html(jQuery(this).data(\"label-add\"));\n                            jQuery(this).closest(\".removable\").remove();\n                        }\n                        shortlistrentlarge = shortlistrentlarge.join(\",\");\n                      \n                        Cookies.set(\"shortlist_status\", jQuery(this).data(\"status\"), {\n                          expires: 7\n                        });\n                        Cookies.set(\"shortlistrentlarge\", shortlistrentlarge, {\n                          expires: 7\n                        });\n                      \n                        \n\n\n\n                       var shortlistCount = 0;\n                        if (typeof(shortlist) != \"undefined\" && shortlist !== null && shortlist !== \"\"){\n                            shortlistCount += shortlist.split(\",\").length;\n                        }\n                        if (typeof(shortlistrentlarge) != \"undefined\" && shortlistrentlarge !== null && shortlistrentlarge !== \"\"){\n                          shortlistCount += shortlistrentlarge.split(\",\").length;\n                        }\n                        if  (typeof(shortlistrentshort) != \"undefined\" && shortlistrentshort !== null && shortlistrentshort !== \"\"){\n                          shortlistCount += shortlistrentshort.split(\",\").length;\n                        }\n                      \n                        jQuery(\".fav_contador\").html(shortlistCount);\n                        jQuery(parent.document).find(\".fav_contador\").html(shortlistCount);\n\n\n                    });\n\n\n\n                });\n                  \n\n                 \n\n            })(jQuery,window,document)\n                               \n        <\/script>\n<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"class_list":["post-970","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/sunandgolfproperties.com\/en\/wp-json\/wp\/v2\/pages\/970","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sunandgolfproperties.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sunandgolfproperties.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sunandgolfproperties.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sunandgolfproperties.com\/en\/wp-json\/wp\/v2\/comments?post=970"}],"version-history":[{"count":34,"href":"https:\/\/sunandgolfproperties.com\/en\/wp-json\/wp\/v2\/pages\/970\/revisions"}],"predecessor-version":[{"id":4630,"href":"https:\/\/sunandgolfproperties.com\/en\/wp-json\/wp\/v2\/pages\/970\/revisions\/4630"}],"wp:attachment":[{"href":"https:\/\/sunandgolfproperties.com\/en\/wp-json\/wp\/v2\/media?parent=970"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}